mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
The path for a Variable never begins with a leading `/`, because it's stripped off in the API before it ever gets to the state store. The CLI and UI allow the leading `/` for convenience, but this can be misleading when it comes to writing ACL policies. An ACL policy with a path starting with a leading `/` will never match. Update the ACL policy parser so that we prevent an incorrect variable path in the policy. Fixes: https://github.com/hashicorp/nomad/issues/23730
4 lines
160 B
Plaintext
4 lines
160 B
Plaintext
```release-note:improvement
|
|
acl: Submitting a policy with a leading `/` in a variable path will now return an error to prevent improperly working policies.
|
|
```
|