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

support for group level access token

Open M0roSan opened this issue 3 years ago • 6 comments

14.7 added support for group level access token https://about.gitlab.com/releases/2022/01/22/gitlab-14-7-released/#group-access-tokens

we want to support this in this plugin.

depending on https://github.com/xanzy/go-gitlab/issues/1347

M0roSan avatar Jan 27 '22 18:01 M0roSan

I'm making this as minor version update (feature addition) for this change. I'm adding a new parameter token_type in BaseTokenStorage with project or group and it'll change API call based on type field even though id field is unique amongst project and groups (confirmed with GitLab support).

there's no other significant changes. To note, group type will work with instance level (and/or group level) token which can create group access token

M0roSan avatar Mar 19 '22 04:03 M0roSan

hello grettings colleagues, can I do something to help here? I really wanna use this feature

EvertonSA avatar Mar 01 '23 11:03 EvertonSA

@M0roSan anything i can do to help mate?

EvertonSA avatar Mar 06 '23 13:03 EvertonSA

@EvertonSA I currently don't have time to refine or don't have access to any gitlab instances with right license. You are more than welcome to test the existing MRs and add if needed

M0roSan avatar Mar 08 '23 18:03 M0roSan

hi @M0roSan I have tested and I confirm it works. There might be many errors handling to be implemented but unfortunately, I don't have golang experience to help on this feature.

Also, we will find a different approach to our problem at the moment. Thanks a lot for this feature, it helped us to brainstorm possible solutions to our problem.

EvertonSA avatar Mar 10 '23 11:03 EvertonSA

You can try this one https://github.com/ilijamt/vault-plugin-secrets-gitlab it supports all 3 access tokens. Personal, Project and Group tokens.

ilijamt avatar Aug 30 '23 13:08 ilijamt