docker_auth icon indicating copy to clipboard operation
docker_auth copied to clipboard

LDAP group matching example?

Open jmmills opened this issue 9 years ago • 7 comments

Can someone give me a hint on how I would write the config to source authentication from LDAP, and then specify access control based on group?

Essentially I want members of the developer group to be able to pull images but not push them (so nobody accidentally clobbers a production image).

Also, I was able to get registry v2 negotiating TLS and authentication with a basic auth backend, and it works like a charm. So thanks! (I didn't it using puppet and systemd unit files, if anyone is interested in example snippets of how that's done),

jmmills avatar Jan 22 '16 21:01 jmmills

i assume you want to control access to certain images based on group membership. this is not possible currently and will require code changes - a "LDAP authorizer" will have to be written. currently we only have authenticator.

rojer avatar Feb 13 '16 09:02 rojer

any plan to add support for group based authz? I have been trying the docker authz in our enterprise setting (and it works great, thanks!), and have the exact need

xinzhangcmu avatar Feb 13 '16 12:02 xinzhangcmu

no immediate plans. docker_auth is a side project for us at cesanta, and we don't use LDAP auth. LDAP auth was contributed by @summerQLin - maybe you can ask (or pay) him to do it. i will accept PR if you decide to do it and wish to contribute.

rojer avatar Feb 13 '16 12:02 rojer

+1 Need this same feature as well.

@summerQLin

ozbillwang avatar Aug 02 '16 21:08 ozbillwang

+1 This feature would be great. @summerQLin

Stephan1984 avatar Oct 07 '16 08:10 Stephan1984

This seems kind of similar to https://github.com/cesanta/docker_auth/issues/117, and thus could probably be helped by https://github.com/cesanta/docker_auth/pull/139, right?

tianon avatar Feb 07 '17 00:02 tianon

I think this issue can be closed.

zapp42 avatar Dec 12 '23 08:12 zapp42