Limit the source namespace for a Secret or ConfigMap
See original GitHub issueWould it be possible to limit the source Secret or ConfigMap used by the reflector to a namespace? For example, only want the reflector to copy a source Secret to other namespaces ONLY if it comes from a specific namespace.
This would be for security reasons as you wouldn’t want any user with access to a namespace to apply the correct annotations and copy those secrets to other namespaces (spamming other namespaces).
I’m assuming this would have to be enabled in the controller via the values file.
I thought the below would do the trick but it only limits the copying to those namespaces (and not from those namespaces) and it’s applied to Secret directly (and not via Controller):
reflector.v1.k8s.emberstack.com/reflection-allowed-namespaces: "<list>"
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:11 (3 by maintainers)
Top GitHub Comments
Keeping this in mind. Will try to come up with something for filtering.
Any update or thoughts on this @winromulus? Unfortunately, this missing security control is blocking us from using reflector.