commit | a71ce8470fbca4f05b804ce4cde194fb4d111e7f | [log] [tgz] |
---|---|---|
author | Abderrahim Kitouni <abderrahim.kitouni@codethink.co.uk> | Tue Oct 24 10:53:07 2023 +0100 |
committer | Abderrahim Kitouni <abderrahim.kitouni@codethink.co.uk> | Thu Oct 26 10:20:04 2023 +0100 |
tree | b07fd87973b15069d7c5fcbe7586bbbb7c15c708 | |
parent | 26420120bc4ff761e9ce503ea6ee816249116627 [diff] |
docker: fix authentication when using .netrc From the requests documentation > The netrc file overrides raw HTTP authentication headers set with headers=. Which means that when the .netrc file contains the credentials for a docker registry, it will override the bearer token authentication that the plugin is setting using a raw "Authorization" header. Instead, we create a new BearerAuth class and pass it to requests to use for authenticating to the registry.