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

Able to namespace deployment #991

Open
5 of 14 tasks
kassah opened this issue Feb 29, 2024 · 1 comment
Open
5 of 14 tasks

Able to namespace deployment #991

kassah opened this issue Feb 29, 2024 · 1 comment

Comments

@kassah
Copy link

kassah commented Feb 29, 2024

Command

  • check-image-updates
  • delete
  • deploy
  • diff
  • helm-pull
  • helm-update
  • list-images
  • list-targets
  • poke-images
  • prune
  • render
  • seal
  • validate
  • version

Who are you?

William Lightning, Systems Architect at Fuel Medical Group

What do you want to do?

I want to have per namespace deployments with everything about the deployment siloed to the namespace. I want each namespace to be like a shared tenant, with no access to another tenant (even to see that they exist).

Why do you need that?

I want to be able to have least privilege for the application which in short means that there is an RBAC enforced boundary.

@kassah
Copy link
Author

kassah commented Feb 29, 2024

Optimally this would involve a flag in the command indicating the namespace. If that flag mismatched the deployment overrideNamespace it would refuse to continue. Result store would also be within the namespace. Any delete, validate, prune, etc would contain it's actions to within the namespace (should not be touch the namespace itself, other than to be able to read it).

The idea is it could fit entirely within the default namespaced cluster role binding of edit created with a command like:

kubectl -n ${NAMESPACE} create rolebinding deploy-access --serviceaccount=${NAMESPACE}:deploy-user --clusterrole=edit

This could also be added to the KluctlDeployment which can already be tied to a service account, this would just ensure that it could operate entirely within the namespace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant