On self-hosted Trigger v4.4.4, the Query and Dashboards pages are accessible by direct URL, but the Observability sidebar section can still be hidden.
What happened:
/orgs/:org/projects/:project/env/:env/query loads
/orgs/:org/projects/:project/env/:env/dashboards/overview loads
- but the sidebar does not show Query/Dashboards unless the org feature flag
hasQueryAccess is set
Why this seems inconsistent:
- route access appears to be allowed by
QUERY_FEATURE_ENABLED / runtime access checks
- sidebar visibility appears to depend on
organization.featureFlags.hasQueryAccess
In our case this made the feature look broken even though the pages existed and worked.
There was a second related issue:
/admin/* was inaccessible for a GitHub-auth user even though ADMIN_EMAILS matched the email
- after checking the code, it looks like
admin is assigned on create for magic-link users, but GitHub user creation does not set admin the same way
- after manually setting
User.admin = true in Postgres, we could access admin feature flags and set hasQueryAccess, which made the menu appear
Questions:
- Should sidebar visibility use the same access logic as the route?
- Should GitHub-auth users matching
ADMIN_EMAILS be granted platform admin on create as well?
- Is this expected behavior or a bug?
On self-hosted Trigger v4.4.4, the Query and Dashboards pages are accessible by direct URL, but the Observability sidebar section can still be hidden.
What happened:
/orgs/:org/projects/:project/env/:env/queryloads/orgs/:org/projects/:project/env/:env/dashboards/overviewloadshasQueryAccessis setWhy this seems inconsistent:
QUERY_FEATURE_ENABLED/ runtime access checksorganization.featureFlags.hasQueryAccessIn our case this made the feature look broken even though the pages existed and worked.
There was a second related issue:
/admin/*was inaccessible for a GitHub-auth user even thoughADMIN_EMAILSmatched the emailadminis assigned on create for magic-link users, but GitHub user creation does not setadminthe same wayUser.admin = truein Postgres, we could access admin feature flags and sethasQueryAccess, which made the menu appearQuestions:
ADMIN_EMAILSbe granted platform admin on create as well?