Skip to content

kubeseal: apply --namespace when unsealing secrets without one - #2017

Open
david0 wants to merge 1 commit into
bitnami:mainfrom
david0:unseal-namespace
Open

kubeseal: apply --namespace when unsealing secrets without one#2017
david0 wants to merge 1 commit into
bitnami:mainfrom
david0:unseal-namespace

Conversation

@david0

@david0 david0 commented Aug 5, 2026

Copy link
Copy Markdown

Description of the change

With --recovery-unseal, a sealed secret file that doesn't declare a namespace can now be decrypted by supplying --namespace. The flag value is used to rebuild the encryption label, so users no longer have to edit the file to add a namespace before recovering it.

Benefits

This is helpful because the output of helm template does not include a namespace by default, so being able to pass --namespace avoids having to edit the rendered manifests before recovery.

Possible drawbacks

It could be that the user specifies a wrong namespace or forgets to use this parameter altogether, but thats not worse than before.

Applicable issues

Additional information

With --recovery-unseal, a sealed secret file that doesn't declare a
namespace can now be decrypted by supplying --namespace. The flag value
is used to rebuild the encryption label, so users no longer have to edit
the file to add a namespace before recovering it.

This is helpful because the output of `helm template` does not include a
namespace by default, so being able to pass --namespace avoids having to
edit the rendered manifests before recovery.

Signed-off-by: David Otto <ottodavid@gmx.net>
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