-
Notifications
You must be signed in to change notification settings - Fork 0
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
Enable Helm chart recommendations, use 3-namespace deployment #117
Conversation
Setting the Helm chart recommendations enabled flag applies various changes to the configuration, as described in [1]: - 2 namespace layout (spire-server & spire-system) - Namespace pod security standards - Priority class name - Prometheus - Strict mode - Security contexts We also use a 3rd namespace for the Helm chart state and CRDs as described in [2]. [1] https://spiffe.io/docs/latest/spire-helm-charts-hardened-about/recommendations/ [2] https://spiffe.io/docs/latest/spire-helm-charts-hardened-about/namespaces/ Fixes: #113 Fixes: #114
Arguably we could avoid customising these values and let Helm handle them.
This is required by Helm recommendations. We provide a default CA subject, and this can be overridden using custom Helm values.
Try to avoid hard coding Helm values where the chart can provide a sensible default or compute a value from other values. For example, some values depend on the namespaces used, such as the server address, spire agent service account allow list, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor suggestion: but we could add a very lightweight integration test to verify the correct resources are in the correct new namespaces (i.e. a quick kubectl
assert that the server is in the spire-server
namespace, the CRs are available in spire-mgmt
etc)
I was thinking that might be a good idea. This is definitely an area that a full fat programming language would be better suited to, but we could do something simple in bash. |
Currently performs a basic check that expected resources exist in the expected namespaces.
CRs are now created in the spire-mgmt namespace.
Added some checks. |
Setting the Helm chart recommendations enabled flag applies various
changes to the configuration, as described in [1]:
We also use a 3rd namespace for the Helm chart state and CRDs as
described in [2].
[1] https://spiffe.io/docs/latest/spire-helm-charts-hardened-about/recommendations/
[2] https://spiffe.io/docs/latest/spire-helm-charts-hardened-about/namespaces/
Fixes: #113
Fixes: #114