Skip to content

pod restart required to detect a new/updated secret with label 'sealedsecrets.bitnami.com/sealed-secrets-key: active' #1819

@lknite

Description

@lknite

Which component:
controller

Is your feature request related to a problem? Please describe.
If I create/update a key/secret for sealed secrets to use, with the appropriate label (see above), sealed secrets should pick up on that new key. Instead, I have to delete the sealed-secrets pod before it will notice the secret.

Imagine the secret is being created via an external-secret so it may not exist when the sealed-secrets pod is started. At some point, the external-secret may be updated, and sealed-secrets will not notice the secret has been updated.

Describe the solution you'd like
sealed secrets could have a controller thread which watches for changes to secrets and handles loading/updating them as appropriate

Describe alternatives you've considered

  • using reloader/skater to delete the sealed-secrets pod to force a reload
  • i used an initContainer to wait for the secret to appear, before starting allowing the pod to load ... this was good but didn't handle the use case where the secret was updated

Additional context
we shouldn't have to rely on a third-party solution

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wantedFeature requests approved by maintainers that are not included in the project roadmap

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions