Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gitlab auth: Restrict access to users from a certain group (organization?) #334

Open
domma opened this issue Jan 17, 2022 · 0 comments
Open

Comments

@domma
Copy link

domma commented Jan 17, 2022

I need some help setting up authentication via Gitlab. We had been using docker_auth for a while, but are now moving to Gitlab and would like to use it as authentication backend. Using the example files we managed to setup Gitlab authentication in general. But it only requires users to be authenticated via Gitlab. So every user could access our registry, which is of course not the idea.

We managed to restrict access to individual users, but not to "groups". I checked the code (not a Go developer, but able to read most of the code) and the Gitlab implementation looks like it has an "organization" feature. But I don't see how checkGitlabOrganization is ever called!?

Could somebody provide a working example on how to restrict access to a Gitlab group / organization?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant