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

Where is User and UserAuthNMethod set #135

Open
reboss opened this issue May 3, 2023 · 1 comment
Open

Where is User and UserAuthNMethod set #135

reboss opened this issue May 3, 2023 · 1 comment

Comments

@reboss
Copy link

reboss commented May 3, 2023

Hi there,

I am trying to create an AuthZ/AuthN plugin that checks if a specific user can mount a directory.

When I log the authorization.Requset.User or the authorization.Requset.UserAuthNMethod, I get empty strings. I kind of assumed that these values would be set by the docker cli as the user that is using the docker-cli.

Is there a way for an authorization plugin to know what the user is that is using the docker cli?

Thanks for your help!

@hi-opensource
Copy link

hi,I have the same problem, did you finally solve it?

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

2 participants