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: remove remaining unused nil ACL object handling into release/1.7.x #20457

Merged

Conversation

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

Backport

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

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


As of #18754 which shipped in Nomad 1.7, we no longer need to nil-check the object returned by ResolveACL if there's no error return, because in the case where ACLs are disabled we return a special "ACLs disabled" ACL object. Checking nil is not a bug but should be discouraged because it opens us up to future bugs that would bypass ACLs.

We fixed a bunch of these cases in #20150 but I didn't update the semgrep rule, which meant we missed a few more. Update the semgrep rule and fix the remaining cases.


Overview of commits

@vercel vercel bot temporarily deployed to Preview – nomad April 18, 2024 18:39 Inactive
@vercel vercel bot temporarily deployed to Preview – nomad-storybook-and-ui April 18, 2024 18:43 Inactive
@tgross tgross merged commit 17d43e2 into release/1.7.x Apr 18, 2024
18 of 20 checks passed
@tgross tgross deleted the backport/no-nil-acls-check/fairly-prepared-raven branch April 18, 2024 18:49
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