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

Possibility to watch AuthConfigs on a specified namespace #36

Open
guicassolato opened this issue Mar 1, 2022 · 0 comments
Open

Possibility to watch AuthConfigs on a specified namespace #36

guicassolato opened this issue Mar 1, 2022 · 0 comments

Comments

@guicassolato
Copy link
Collaborator

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:

  1. the value of the WATCH_NAMESPACE environment variable injected is set from the namespace of the Authorino CR
    Name: api.WatchNamespace,
  2. the RBAC created (RoleBinding) gives permission for the instance only in the namespace where it is running and no other
    roleBinding = authorinoResources.GetAuthorinoRoleBinding(authorino.Namespace, authorino.Name, roleBindingName, "ClusterRole", clusterRoleName, serviceAccount)

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Status: No status
Development

No branches or pull requests

2 participants