mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
In the original state, when getting ACL policies by job, the search was performing a prefix-based lookup on the index. This can result in polcies being applied incorrectly when used for workload identities. For example, if a `custom-test` policy is created like so: ``` nomad acl policy apply -namespace=default -job=test-job custom-test ./policy.hcl ``` A job named `test-job` will properly get this ACL policy. However, due to the lookup being prefix-based on the index, a job named `test-job-1` will also get this ACL policy. To prevent this behavior, the lookup behavior on the index is modified so it is a direct match.
127 B
127 B