Vault Token

Hey Mates,

i try to get secrets from vault in my pipeline. We use a self hosted free edition of Gitlab and i was wondering, if maybe this is the problem.

I try the following:

export VAULT_TOKEN="$(vault write -field=token auth/jwt/login role=${VAULT_ROLE} jwt=$CI_JOB_JWT)"

And get the following error:

Error writing data to auth/jwt/login: Error making API request.
URL: PUT URL/v1/auth/jwt/login
Code: 400. Errors:
* missing token

Does someone have a solution and can help me, this would make my day :slight_smile:
Cheers
Tobeje

Hi,

you can try the official integration instead of some woodoo - here: Using external secrets in CI | GitLab

Hey balonik,
Unfortunately this is a premium feature, the configuration seems to be for all tiers, but the “Use Vault secrets in a CI job” only for premium. Or maybe I’m missing something…