fluxcd / helm-operator

Successor: https://github.com/fluxcd/helm-controller — The Flux Helm Operator, once upon a time a solution for declarative Helming.
https://docs.fluxcd.io/projects/helm-operator/
Apache License 2.0
649 stars 262 forks source link

Tighten pod security policy and allow custom role rules #579

Closed langecode closed 2 years ago

langecode commented 3 years ago

Thank you very much for a great product. I know the current Helm Operator version is in maintenance mode and it may not make sense to do this change. However, as we have done it I thought we should give you the opportunity to include it upstream should you so decide.

The PR tightens the pod security policy for Helm Operator a bit and also adds security context to the pod specifications to make sure the most correct pod security policy is chosen (see Policy Order). Furthermore the PR will make the set of rules configured for the namespace or cluster wide role configurable making it possible to tighten the permissions applied to Flux. The default is complete access as it is in the current chart version.

Note the cluster wide objects has been prefixed with the namespace as Helm v3 works with release names as "namespaced" hence if Flux were to be deployed into multiple namespaces using the same release name there could be a clash in the naming of non-namespaced objects.

hiddeco commented 3 years ago

Thank you (still) for submitting this pull request! :1st_place_medal:

As you already mention yourself, we are in maintenance mode. Due to this, and the difficulties that at times come with PSPs, I find it too risky to merge this.

I'll keep the PR open so people that are looking for a solution like this can easily find it and copy the adjustments you made.

langecode commented 3 years ago

Yeah, I perfectly understand. The current version of the chart will run on a cluster having PSP enforced and given the maintenance state and that the psp is never going to go out of beta it makes sense.

kingdonb commented 2 years ago

Thanks for contributing here! We are not going to make any changes like this here, Flux v1 and Helm Operator are in maintenance mode

Closing, stale.