go-plugins-helpers
go-plugins-helpers copied to clipboard
Where is User and UserAuthNMethod set
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,I have the same problem, did you finally solve it?