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: Normalize helm repository url with query params properly #1015

Merged
merged 1 commit into from
Feb 15, 2023

Conversation

somtochiama
Copy link
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

internal/helm/repository/utils.go Show resolved Hide resolved
internal/helm/repository/utils.go Outdated Show resolved Hide resolved
@darkowlzz darkowlzz added bug Something isn't working area/helm Helm related issues and pull requests labels Feb 1, 2023
controllers/helmchart_controller.go Outdated Show resolved Hide resolved
internal/helm/repository/utils_test.go Show resolved Hide resolved
internal/helm/chart/dependency_manager.go Outdated Show resolved Hide resolved
@hiddeco
Copy link
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
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
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