Skip to content

Where is User and UserAuthNMethod set #135

@reboss

Description

@reboss

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions