go-plugins-helpers icon indicating copy to clipboard operation
go-plugins-helpers copied to clipboard

Where is User and UserAuthNMethod set

Open reboss opened this issue 1 year ago • 1 comments

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!

reboss avatar May 03 '23 01:05 reboss

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

hi-opensource avatar Jan 22 '24 06:01 hi-opensource