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

expires_at is required by gitlab ~16.3

Open 3coma3 opened this issue 1 year ago • 1 comments

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?

3coma3 avatar Sep 01 '23 12:09 3coma3

Will this affect vault's admin token to gitlab or does it rotate it's own token?

TJM avatar Oct 13 '23 15:10 TJM