mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-07-14 22:06:46 +00:00
`allow_interactive_exec` requires a sandbox-name annotation, however this is only added for pods by genpolicy. Other pod-generating resources have unpredictable sandbox names. This patch instead uses a regex for the sandbox name in genpolicy, based on the specified metadata and following Kubernetes' naming logic. The generated regex is then used in the policy to correctly match the sandbox name. Fixes: #11823 Signed-off-by: Charlotte Hartmann Paludo <git@charlotteharludo.com> Co-authored-by: Paul Meyer <katexochen0@gmail.com> Co-authored-by: Markus Rudy <mr@edgeless.systems>