vault-plugin-secrets-artifactory icon indicating copy to clipboard operation
vault-plugin-secrets-artifactory copied to clipboard

Using identity metadata in token roles

Open davidcorrigan714 opened this issue 1 year ago • 7 comments

We're looking to get this setup in the next few weeks, though I've played with in the past. I'm trying to figure out how I might allow users to authenticate to Vault and then get an API token through Vault for their specific account in Artifactory. For example some templated policy like:

path "artifactory/users/{{identity.entity.id}}" {
  capabilities = [ "read" ]
}

That would allow users to use their authenticated identity in Vault to get an API token for JFrog for their account. Is this doable somehow? The way the roles path is structured now it looks like I could only map devs to some shared role and not their exact identity in Artifactory.

davidcorrigan714 avatar Jan 23 '23 22:01 davidcorrigan714