feat(test): Allow extension of test pod to allow matching local policy#182
feat(test): Allow extension of test pod to allow matching local policy#182rhamzeh merged 3 commits intoopenfga:mainfrom grimly:test-pod-extension
Conversation
|
@grimly It could lead to unexpected security and deployment issues if we allow such broad configuration. Could you share the specific problem or challenge that led to this PR, so we can better understand the intent behind it? |
|
Hello, It is specifically security concerns that made me open this PR. As it is without this PR merged, the test pod run as root while it doesn't need to. It also lack resource allocation. My company enforces quota and limit ranges without default values and uses a validating webhook to enforce running as non-root. My goal was to provide configuration and not to apply limitations from my own experience to the rest of the community. |
|
Right now, testContainerSpec seems too broad in scope, allowing arbitrary configurations for the test container. |
Provides the ability to extends the definition of the connection test pod.
Description
The helm chart uses a pod to test its correct deployment.
There is no ability to extend the definition of this pod and therefore to make the pod match any policy in place.
Such policy preventing the test pod deployment might be (not exhaustive):
Here is a working example of a configuration matching the resource quota constraint :
References
This feature is documented by the value schemas.
Review Checklist
main