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

Backport of acl: refactor acl.UpsertTokens to avoid unnecessary RPC calls into release/1.5.x #17202

Conversation

hc-github-team-nomad-core
Copy link
Contributor

Backport

This PR is auto-generated from #17194 to be assessed for backporting due to the inclusion of the label backport/1.5.x.

The below text is copied from the body of the original PR.


New RPC endpoints introduced during OIDC and JWT auth perform unnecessary many RPC calls when they upsert generated ACL tokens, as pointed out by @tgross.

This PR moves the common logic from acl.UpsertTokens method into a helper method that contains common logic, and sidesteps authentication, metrics, etc.

@hc-github-team-nomad-core hc-github-team-nomad-core merged commit 5bf31b9 into release/1.5.x May 16, 2023
@hc-github-team-nomad-core hc-github-team-nomad-core force-pushed the backport/f-acl-login-rpc-refactor/gradually-mint-ferret branch from 2646f76 to dd551dc Compare May 16, 2023 07:32
@hc-github-team-nomad-core hc-github-team-nomad-core deleted the backport/f-acl-login-rpc-refactor/gradually-mint-ferret branch May 16, 2023 07:32
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.

2 participants