Possibility to watch AuthConfigs on a specified namespace #36
Labels
area/api
area/implementation
kind/enhancement
New feature or request
participation/good first issue
Good for newcomers
size/small
Milestone
Authorino instances can either watch AuthConfigs in the same namespace where the instance is running (
namespaced
deployment mode) or in all namespaces (cluster-wide
deployment mode).Currently it is not possible to deploy an instance of Authorino in namespace X and make it watch for AuthConfigs defined in namespace Y (and no other namespace).
This is because, when the instance is not cluster-wide:
WATCH_NAMESPACE
environment variable injected is set from the namespace of theAuthorino
CRauthorino-operator/controllers/authorino_controller.go
Line 284 in 5ada185
RoleBinding
) gives permission for the instance only in the namespace where it is running and no otherauthorino-operator/controllers/authorino_controller.go
Line 542 in 5ada185
This makes cluster-wide deployment mode the only option for topologies where the Authorino instance is in one namespace and the AuthConfigs of interest in another. Label selectors might be needed to prevent the cluster-wide instance from caching AuthConfigs from other namespaces.
The text was updated successfully, but these errors were encountered: