-
Notifications
You must be signed in to change notification settings - Fork 320
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
Don't give operator permissions to create CRDs if not needed #2226
Comments
I would like to contribute to this issue, can you guide me on how to get started |
@itsCheithanya Thanks! To implement the fix, you'll need to use the Helm if block in the operator ClusterRole. It should be a pretty small change. To test it, first create a local kind cluster:
then create a local tetragonOperator:
skipCRDCreation: true and install Tetragon with using local Helm chart and your values.yaml file:
Then, check the operator ClusterRole using kubectl:
I hope this gives you a starting point. |
Tetragon Operator has an option to skip CRD creation, but even if it's used, the operator ClusterRole still contains permissions to create CRDs. For slightly better security hygiene, these permissions can be included conditionally, only if needed.
The text was updated successfully, but these errors were encountered: