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

Support unsealing into multiple namespaces #929

Open
KlavsKlavsen opened this issue Aug 25, 2022 · 3 comments
Open

Support unsealing into multiple namespaces #929

KlavsKlavsen opened this issue Aug 25, 2022 · 3 comments
Labels
backlog Issues/PRs that will be included in the project roadmap enhancement

Comments

@KlavsKlavsen
Copy link
Contributor

KlavsKlavsen commented Aug 25, 2022

Which component:
Controller

Is your feature request related to a problem? Please describe.
We have several containers that needs fetching from a password protected registry - and currently we have to have the SAME secret defined for each namespace we need them in.

We also have other secrets, which we have to duplicate in multiple namespaces

Describe the solution you'd like
If we could put multiple namespace targets on 1 secret - that would make life so much easier :)

@github-actions github-actions bot added the triage Issues/PRs that need to be reviewed label Aug 25, 2022
@alemorcuq alemorcuq added enhancement backlog Issues/PRs that will be included in the project roadmap and removed triage Issues/PRs that need to be reviewed labels Aug 25, 2022
@rowi1de
Copy link

rowi1de commented Nov 18, 2022

You can try this as a workaround https://github.com/emberstack/kubernetes-reflector but it would be a really helpful feature

@ywarezk
Copy link

ywarezk commented Jun 10, 2024

Just to expand on @rowi1de correct answer.
To use kubernetes-reflector to duplicate your secrets across namespaces, you will need to add the following to SealedSecret manifest:

apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
  annotations:
    sealedsecrets.bitnami.com/cluster-wide: 'true'
  creationTimestamp: null
  name: ***
  namespace: default
spec:
  template:
    metadata:
      annotations:
        reflector.v1.k8s.emberstack.com/reflection-allowed: 'true'
        reflector.v1.k8s.emberstack.com/reflection-auto-enabled: 'true'
  encryptedData:
    ***: ***

Notice that we added the spec.template.metadata.annotations to add annotation to the created kind: Secret
This will allow the reflector to duplicate the secret

@willbush
Copy link
Contributor

Found this related tool https://config-syncer.com/ (I haven't tried either yet).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Issues/PRs that will be included in the project roadmap enhancement
Projects
None yet
Development

No branches or pull requests

5 participants