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.

@guicassolato guicassolato added this to the v0.10.x milestone Nov 14, 2023
@guicassolato guicassolato removed this from the v0.10.x milestone Nov 22, 2023
@alexsnaps alexsnaps added this to the v0.11.x milestone Dec 18, 2023
@guicassolato guicassolato modified the milestones: v0.11.x, v0.12.x Feb 22, 2024
@guicassolato guicassolato modified the milestones: v0.12.x, v0.13.0 Sep 25, 2024
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