open-nomad/acl
Luiz Aoqui 74c5578432
api: refactor ACL check for namespace wildcard (#13606)
Improve how the all namespaces wildcard (`*`) is handled when checking
ACL permissions. When using the wildcard namespace the `AllowNsOp` would
return false since it looks for a namespace called `*` to match.

This commit changes this behavior to return `true` when the queried
namespace is `*` and the token allows the operation in _any_ namespace.

Actual permission must be checked per object. The helper function
`AllowNsOpFunc` returns a function that can be used to make this
verification.
2022-07-06 15:22:30 -04:00
..
acl.go api: refactor ACL check for namespace wildcard (#13606) 2022-07-06 15:22:30 -04:00
acl_test.go api: refactor ACL check for namespace wildcard (#13606) 2022-07-06 15:22:30 -04:00
policy.go api: prevent excessice CPU load on job parse 2022-02-09 19:51:47 -05:00
policy_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00