vault-plugin-secrets-gitlab
vault-plugin-secrets-gitlab copied to clipboard
expires_at is required by gitlab ~16.3
Hi, I'm testing this plugin which would be very useful for an instance-scoped external CI pipeline. But when I tried the examples in the README this error appears:
vault write gitlab/token id=1 name=ci-token scopes=api,write_repository
Error writing data to gitlab/token: Error making API request.
URL: PUT https://<vault host>/v1/gitlab/token
Code: 400. Errors:
* Failed to create a token - POST https://<gitlab host>/api/v4/projects/1/access_tokens: 400 {error: expires_at is missing}
Apparently Gitlab is changing the policy wrt expires_at
, and now it's being required.
https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/issues/4133
Could you please include this in the requests?
Will this affect vault's admin token to gitlab or does it rotate it's own token?