Public Docker Hub OCI registry now needs access token and username inputting into the External Feed in Octopus #8982
Labels
kind/bug
This issue represents a verified problem we are committed to solving
Severity
Not blocking customers but they now need to create a free DockerHub account and generate a PAT to be able to pull helm charts from Public Docker Repo
Version
2024.2.9391 / 2024.3.10989
Latest Version
I could reproduce the problem in the latest build
What happened?
Previously, customers could authenticate anonymously to the
Public Docker Hub Repo
using anOCI Registry Feed
in Octopus (not require a Username/Password in the External Feed setup in Octopus) as per our documentation on OCI Registry Feeds.However, now when you try and pull a helm chart you see this error on the create release page:
Failed to get authentication header, this feed may not support search. Unable to retrieve authentication token required to perform operation
We required the ability to download the manifest file for us to be able to validate the container correctly and this no longer works unauthenticated.
Please see workaround below to get you up and running again.
Reproduction
OCI Registry Feed
in Octopus and use our documentation here to set it up for a Public Docker Hub repository. Ensure you save the feed (you won't be able to save and test).Deploy a Helm Chart
Step.octopusdeploy/octopusdeploy-helm
).Error and Stacktrace
More Information
Initial customer ticket (internal) - https://octopus.zendesk.com/agent/tickets/200053
R and D (internal) - https://octopusdeploy.slack.com/archives/CNHBHV2BX/p1724256060753389
Workaround
For this to work now, you need to create a free Docker Hub account.
From there you need to create a Personal Access Token (PAT) by following Docker's Official Documentation on Create and Manage Access Tokens.
The token itself needs to have
Public Repo Read Only
access permissions (you can give it any description you want):Once that is created save the PAT for future use and copy that into your Octopus OCI Registry external feed for DockerHub Public Repositories alongside your Username from your DockerHub Profile:
Save the feed and you should now be able to pull Public DockerHub images.
Please also note that when you do input the Username and PAT you wont be able to search for packages in the feed test or search for the package in the step itself due to this GitHub issue so you will need to type the package in the step manually and save the step, after that the release creation will pickup the versions from those packages.
For example if using our Octopus Helm Chart you need to type
octopusdeploy/octopusdeploy-helm
in the step:The text was updated successfully, but these errors were encountered: