Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
genpolicy-msft: remove settings patch for env
The genpolicy-settings.json allow overriding the permissible set of environment variables, and come with a generic list of env vars suitable for the AKS environment. We want to have a dev setting that allows debugging (e.g. pod network settings like iptables), but that is otherwise as close to the upstream as possible. Environment variable allowlists are generated by genpolicy, and should thus not need blanket exemptions. As a consequence of removing the env var exemptions from the dev settings, our coordinator will become compatible with the vanilla upstream settings. A notable special case is the PATH environment variable. Although nowhere specified explicitly, it appears to be customary that OCI runtime clients (i.e., CRI implementations) add a PATH to the environment when there is none in the image [1]. This is currently missing from the genpolicy tool, and the reason why we can't deploy the coordinator with the upstream policy: the PATH added by the runtime is rejected by the agent. However we can work around this by just including a dummy PATH env var. [1]: https://github.com/opencontainers/runtime-tools/blob/408c51e/generate/generate.go#L78
- Loading branch information