Skip to content

fix(kurl): do not overwrite encryption key when there is a server error - #5735

Open
emosbaugh wants to merge 2 commits into
mainfrom
emosbaugh/20251222/do-not-overwrite-encryption-key
Open

fix(kurl): do not overwrite encryption key when there is a server error#5735
emosbaugh wants to merge 2 commits into
mainfrom
emosbaugh/20251222/do-not-overwrite-encryption-key

Conversation

@emosbaugh

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Because pipefail is not set I believe the error is being ignored here and the encryption key is overwritten.

https://github.com/replicatedhq/kURL/blob/cfde7ad3e96062188ae53391717defbf6c669f38/scripts/common/kubernetes.sh#L514

For example:

$ asdf | base64 -d
zsh: command not found: asdf
$ echo $?         
0
$ secret_value=$(asdf)
zsh: command not found: asdf
$ echo $?             
127

Which issue(s) this PR fixes:

Does this PR require a test?

Does this PR require a release note?

Fixes an issue that can cause kURL installations to fail with an encryption key mismatch.

Does this PR require documentation?

@emosbaugh emosbaugh added type::bug Something isn't working bug::normal labels Dec 22, 2025
@github-actions

github-actions Bot commented Dec 22, 2025

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug::normal type::bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant