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

ACL policy interpolation #14764

Open
tgross opened this issue Sep 30, 2022 · 2 comments
Open

ACL policy interpolation #14764

tgross opened this issue Sep 30, 2022 · 2 comments

Comments

@tgross
Copy link
Member

tgross commented Sep 30, 2022

If the variables.path label in ACL policies supported templates, we could allow finer-grained control over access to secrets. This will only be especially useful once Nomad has expanded the work on Workload Identity

Example:

namespace "example" {
  variables {

    # full access to user-specific secrets
    path "user/{{ .token.name }}" {
      capabilities = ["write", "read", "destroy", "list"]
    }

    # list-only access for everything else
    path "*" {
      capabilities = ["list"]
    }

  }
}
@mikenomitch
Copy link
Contributor

@tgross
Copy link
Member Author

tgross commented Jan 25, 2023

Also related: #15875

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants