jfrog / vault-plugin-secrets-artifactory

HashiCorp Vault Secrets Plugin for Artifactory
https://jfrog.com
Apache License 2.0
39 stars 20 forks source link

[Question] Using bearer token for login #179

Closed Pro closed 4 months ago

Pro commented 4 months ago

I was able to successfully configure the vault plugin and get an access token for a Gitlab CI pipeline.

How can I use this token in combination with "conan user" command to log in to a conan remote or also for a docker login command?

The token is a scoped access token, similar to:

vault write artifactory/roles/gitlab \
    scope="applied-permissions/groups:vault-ci " \
    default_ttl=3600 max_ttl=10800

It is unclear to me if I can use the token instead of a password, and which username I have to use during conan login.

Is it possible to use the vault plugin for temporary user & password access to conan (and other package managers such as Docker)?