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

Provide support/documentation for running step isser as a namespace local issuer and not cluster issuer #37

Open
gerethd opened this issue Oct 13, 2022 · 5 comments
Assignees

Comments

@gerethd
Copy link

gerethd commented Oct 13, 2022

Running as a cluster issuer is not desirable and not allow us to isolate permissions on a namespace basis. There is a big security concern giving one issuer access to all of out namespaces for certificate requests, config maps, leases etc.

As an additional nicety, would like to see an option to not use helm for deploying resources. It's very black box unless we go inspect your repo.

@maraino
Copy link
Collaborator

maraino commented Oct 14, 2022

I can think of a couple of things to limit the exposure:

  • Changing/Deleting ClusterRoles/ClusterRoleBinding related to this project. The helm charts might be a good guide to this, see here.
  • Another possibility would be to remove the CRD for the StepClusterIssuer, so you can only use StepIssuer resources that are namespace-specific.

I haven't tested any of those options.

@gerethd
Copy link
Author

gerethd commented Oct 14, 2022

Unfortunately i deployed this as a namespace local issuer but the deployment container just complains about not being able to list resources at the cluster scope, specifically the manage container in the step issuer deployment

@maraino
Copy link
Collaborator

maraino commented Oct 14, 2022

I suppose it would be simple to add a flag that does not start the StepClusterIssuerReconciler, and then with the helm chart, it should be easy to remove the cluster issuer roles, role bindings, and perhaps the CRDs.

@gerethd
Copy link
Author

gerethd commented Oct 15, 2022

my need for this is no longer existent but I still see this as a valid use case, especially if this were used in an on prem enterprise context.

Not sure if you're waiting on me for anything but I think that would work.

@maraino
Copy link
Collaborator

maraino commented Oct 20, 2022

I'll probably add the feature, but I haven't started to work on it yet.

@maraino maraino self-assigned this Oct 20, 2022
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

2 participants