Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES/+multiple-registries-auth-state.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed authentication state (bearer token and basic auth) leaking between remotes by storing it per downloader instance instead of on the downloader class.
5 changes: 2 additions & 3 deletions pulp_container/app/downloaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,13 @@ class RegistryAuthHttpDownloader(HttpDownloader):
Additionally, use custom headers from DeclarativeArtifact.extra_data['headers']
"""

registry_auth = {"bearer": None, "basic": None}
token_lock = asyncio.Lock()

def __init__(self, *args, **kwargs):
"""
Initialize the downloader.
"""
self.remote = kwargs.pop("remote")
self.registry_auth = {"bearer": None, "basic": None}
self.token_lock = asyncio.Lock()

super().__init__(*args, **kwargs)

Expand Down
Loading