Hi all,
vault auth enable jwt
Policy
path “secret/data/db” {
capabilities = [“read”]
}
Role gitlab-runner
{
“role_type”: “jwt”,
“policies”: [“dbserver”],
“token_explicit_max_ttl”: 60,
“user_claim”: “user_email”,
“bound_claims”: {
“project_id”: “2”
}
}
vault write auth/jwt/config
jwks_url=“https://gitlab.example.com/-/jwks”
bound_issuer=“gitlab.example.com”
Pipeline
export VAULT_TOKEN=“$(vault write -field=token auth/jwt/login role=gitlab-runner jwt=$CI_JOB_JWT)”
It keeps failing, Error making API request, Code: 400. Errors invalid issuer.