Skip to content

Fix: Normalize helm repository url with query params properly#1015

Merged
hiddeco merged 1 commit intofluxcd:mainfrom
somtochiama:helm-repo-url
Feb 15, 2023
Merged

Fix: Normalize helm repository url with query params properly#1015
hiddeco merged 1 commit intofluxcd:mainfrom
somtochiama:helm-repo-url

Conversation

@somtochiama
Copy link
Copy Markdown
Member

@somtochiama somtochiama commented Jan 31, 2023

This pr fixes an issue that causes a 403 forbidden error when trying to download a chart using an Azure SAS token.
This happens because the query parameters get encoded and a trailing slash is added at the end of the query.

Fix: #1018

Signed-off-by: Somtochi Onyekwere somtochionyekwere@gmail.com

Comment thread internal/helm/repository/utils.go
Comment thread internal/helm/repository/utils.go Outdated
@darkowlzz darkowlzz added bug Something isn't working area/helm Helm related issues and pull requests labels Feb 1, 2023
Comment thread internal/helm/repository/chart_repository.go Outdated
Comment thread controllers/helmchart_controller.go Outdated
Comment thread internal/helm/repository/utils_test.go
Comment thread internal/helm/chart/dependency_manager.go Outdated
@hiddeco
Copy link
Copy Markdown
Member

hiddeco commented Feb 14, 2023

This has merge conflicts due to merging of #1001. Also think the commits could be squashed together.

Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
Copy link
Copy Markdown
Contributor

@darkowlzz darkowlzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Copy Markdown
Member

@hiddeco hiddeco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me as well, thank you @somtochiama 🙇

@hiddeco hiddeco merged commit 7fe1903 into fluxcd:main Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/helm Helm related issues and pull requests bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HelmRepository URL Query Parameter Mangling

3 participants