Skip to content

Allow docker-client to use its own authentication (docker login), if present, otherwise use configured registry auth #61

@peterhaaf

Description

@peterhaaf

Hi,

i need to have both options: for auth.docker.io
a.) a paid team key
b. ) the option for pull secrets in K8s to give users the possibility to access their private repos.

Out of the Box, this did not work. So i changed

Add the authentication info, if the map matched the target domain.

    proxy_set_header Authorization $finalAuth;

to
if ( $http_authorization = "" ) {
set $myfinalAuth $finalAuth;
}
if ( $http_authorization != "" ) {
set $myfinalAuth $http_authorization;
}

    proxy_set_header Authorization $myfinalAuth;

Hope this helps others as well

Peter

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions