Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v11.0.x] Data source: Maintain the default data source permissions when switching from unlicensed to licensed Grafana #87142

Merged
merged 2 commits into from
Apr 30, 2024

Conversation

grafana-delivery-bot[bot]
Copy link
Contributor

Backport 5e060d2 from #87119


What is this feature?

Ensures that the default data source permissions for Viewers and Editors remain intact (as in, Viewers and Editors can query data sources) when switching from an unlicensed to licensed Grafana instance.

Why do we need this feature?

To ensure a smooth transition from unlicensed to licensed instances.

Who is this feature for?

Any users whose workflow involves configuring their data sources before setting a license token.

Which issue(s) does this PR fix?:

Fixes https://github.com/grafana/identity-access-team/issues/672

Special notes for your reviewer:

Note that this does not expose any extra functionality to OSS/unlicensed instances - users still can't customize data source permissions for these instances. This only ensures that the default permissions (Viewers and Editors can query) stays when switching to a licensed instance.

With this fix we could technically also add a migration and remove this bit of code. However, I think it's not worth it, as the code cleanup gain doesn't make up for dealing with all the migration pains.

Enterprise PR: https://github.com/grafana/grafana-enterprise/pull/6556

…ing from unlicensed to licensed Grafana (#87119)

set managed data source permissions upon resource creation for unlicensed Grafana, remove them on deletion

(cherry picked from commit 5e060d2)
@IevaVasiljeva IevaVasiljeva merged commit 363e21a into v11.0.x Apr 30, 2024
10 checks passed
@IevaVasiljeva IevaVasiljeva deleted the backport-87119-to-v11.0.x branch April 30, 2024 16:34
@fabrizio-grafana fabrizio-grafana modified the milestones: 11.0.x, 11.0.0 May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants