feat: Add remote container registry identity token support #1124
+42
−25
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
The PR adds support of the
identitytoken
token to the Base64 authentication provider. If anauths
node key contains theidentitytoken
node, Testcontainers will use it to authenticate against the private container registry.Why is it important?
According to the Microsoft docs, this is a common way to authenticate against the Azure Container Registry and is necessary in some cases. For example, this is a simple mechanism to authenticate against ACR in a CI environment (apart from the Docker login tasks for Azure DevOps or GitHub).
Related issues
Follow-ups