Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix registry authentication when URL has slash suffix #331

Merged
merged 3 commits into from
Jan 5, 2022

Conversation

jannfis
Copy link
Contributor

@jannfis jannfis commented Jan 5, 2022

Related to #329

Previously, when a registry's API URL was specified with a trailing slash, authentication would fail due to an invalid request being sent to the registry for the /v2 endpoint. This change removes any trailing slash from the URL before using it. Also, handle authentication errors early on.

@jannfis jannfis merged commit 3d0ece3 into argoproj-labs:master Jan 5, 2022
jannfis added a commit that referenced this pull request Jan 7, 2022
* fix: Fix registry authentication when URL has slash suffix

Signed-off-by: jannfis <[email protected]>

* Fix format string

Signed-off-by: jannfis <[email protected]>
sribiere-jellysmack pushed a commit to sribiere-jellysmack/argocd-image-updater that referenced this pull request Aug 13, 2024
…labs#331)

* fix: Fix registry authentication when URL has slash suffix

Signed-off-by: jannfis <[email protected]>

* Fix format string

Signed-off-by: jannfis <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant