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

Permissions: Support service account in user_id field #1051

Merged
merged 2 commits into from
Sep 25, 2023

Conversation

julienduchesne
Copy link
Member

Closes #994
This seems like an undocumented feature that's known to users. You can set a service account ID in the user_id field of permissions resources

In this PR:

  • Make this behavior work with the new ID format (<org>:<id>)
  • Document that the field supports an SA
  • Add tests to make sure we don't regress it again

@github-actions
Copy link

In order to lower resource usage and have a faster runtime, PRs will not run Cloud tests automatically. To do so, a Grafana Labs employee must promote the Drone build.

For maintainers, it's better to run only the Cloud tests you need, rather than all of them. You can do so by setting the following parameter when promoting:

TESTARGS='-run=<testname>'

@julienduchesne julienduchesne marked this pull request as ready for review September 25, 2023 02:20
@julienduchesne julienduchesne requested a review from a team as a code owner September 25, 2023 02:20
@julienduchesne julienduchesne force-pushed the julienduchesne/permissions-service-accounts branch from 1e09622 to f71e18a Compare September 25, 2023 12:00
Closes #994
This seems like an undocumented feature that's known to users.
You can set a service account ID in the `user_id` field of permissions resources

In this PR:
 - Make this behavior work with the new ID format (`<org>:<id>`)
 - Document that the field supports an SA
 - Add tests to make sure we don't regress it again
@julienduchesne julienduchesne force-pushed the julienduchesne/permissions-service-accounts branch from f71e18a to 0a0faab Compare September 25, 2023 19:59
@julienduchesne julienduchesne merged commit 76c2e8f into master Sep 25, 2023
3 checks passed
@julienduchesne julienduchesne deleted the julienduchesne/permissions-service-accounts branch September 25, 2023 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Type mismatch between permissions and service account ID
2 participants