Files
nomad/nomad/stream
Tim Gross ea5f2f6748 acl: remove remaining unused nil ACL object handling (#20456)
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 https://github.com/hashicorp/nomad/pull/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.
2024-04-18 14:34:17 -04:00
..
2024-03-21 11:44:23 -07:00