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

cli: fix incorrect file path for master secret during upgrades when using workspace flag #2249

Merged
merged 1 commit into from
Aug 16, 2023

Conversation

daniel-weisse
Copy link
Member

Context

PathPrefixer.PrefixPath should only be used to prefix printable paths (paths that are not used to access files).
constellation upgrade apply used the PathPrefixer to add a workspace prefix when loading the master secret when upgrading a cluster's helm charts.
This causes errors when using the --workspace/-C flag during constellation upgrade apply.

Proposed change(s)

  • Remove usage of PathPrefixer when accessing the master secret
  • Rename PathPrefixer's PrefixPath method to PrefixPrintablePath and add additional warnings to further highlight this function should only be used to generate printable paths.

Signed-off-by: Daniel Weiße <[email protected]>
@daniel-weisse daniel-weisse added the bug fix Fixing a bug label Aug 16, 2023
@daniel-weisse daniel-weisse added this to the v2.11.0 milestone Aug 16, 2023
@netlify
Copy link

netlify bot commented Aug 16, 2023

Deploy Preview for constellation-docs canceled.

Name Link
🔨 Latest commit 68778d2
🔍 Latest deploy log https://app.netlify.com/sites/constellation-docs/deploys/64dcc9a4b43f590008981bbd

@daniel-weisse daniel-weisse added the backport This PR is a backport to a previous release label Aug 16, 2023
@daniel-weisse daniel-weisse requested review from elchead and removed request for derpsteb August 16, 2023 13:07
@katexochen katexochen added needs backport This PR needs to be backported to a previous release and removed backport This PR is a backport to a previous release labels Aug 16, 2023
@daniel-weisse daniel-weisse merged commit c2bb884 into main Aug 16, 2023
4 checks passed
@daniel-weisse daniel-weisse deleted the fix/cli/path-prefixing branch August 16, 2023 13:38
elchead pushed a commit that referenced this pull request Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix Fixing a bug needs backport This PR needs to be backported to a previous release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants