Skip to content

Conversation

danmihai1
Copy link
Member

@danmihai1 danmihai1 commented Jul 10, 2025

  1. Remove genpolicy tarfs snapshotter support.
  • AKS Confidential Containers are using the tarfs snapshotter.
  • CoCo upstream doesn't use this snapshotter, so remove this Policy complexity from upstream.
  1. Skip pulling container image layers when guest-pull=true.

The contents of these layers were ignored due to:

  1. Use genpolicy CoCo settings by default.
  • "confidential_emptyDir" becomes "emptyDir" in the settings file.
  • "confidential_configMap" becomes "configMap" in settings.
  • "mount_source_cpath" becomes "cpath".
  • The new "root_path" gets used instead of the old "cpath" to point to the container root path.
  • "confidential_guest" is no longer used. By default it gets replaced by "enable_configmap_secret_storages"=false, because CoCo is using CopyFileRequest instead of the Storage data structures for ConfigMap and/or Secret volume mounts during CreateContainerRequest.
  • The value of "guest_pull" becomes true by default.
  • "image_layer_verification" is no longer used - just CoCo's guest pull is supported.
  • The Request input files from unit tests are changing to reflect the new default settings values described above.
  • tests/integration/kubernetes/tests_common.sh adjusts the settings for platforms that are not set-up for CoCo during CI (i.e., platforms other than SNP, TDX, and CoCo Dev).

@danmihai1 danmihai1 marked this pull request as draft July 10, 2025 21:52
@danmihai1 danmihai1 force-pushed the danmihai1/genpolicy-cleanup branch 2 times, most recently from 921abd4 to 3a28b7e Compare July 11, 2025 01:07
AKS Confidential Containers are using the tarfs snapshotter. CoCo
upstream doesn't use this snapshotter, so remove this Policy complexity
from upstream.

Signed-off-by: Dan Mihai <dmihai@microsoft.com>
Skip pulling container image layers when guest-pull=true. The contents
of these layers were ignored due to:
- kata-containers#11162, and
- tarfs snapshotter support having been removed from genpolicy.

Signed-off-by: Dan Mihai <dmihai@microsoft.com>
- "confidential_emptyDir" becomes "emptyDir" in the settings file.
- "confidential_configMap" becomes "configMap" in settings.
- "mount_source_cpath" becomes "cpath".
- The new "root_path" gets used instead of the old "cpath" to point to
  the container root path..
- "confidential_guest" is no longer used. By default it gets replaced
  by "enable_configmap_secret_storages"=false, because CoCo is using
  CopyFileRequest instead of the Storage data structures for ConfigMap
  and/or Secret volume mounts during CreateContainerRequest.
- The value of "guest_pull" becomes true by default.
- "image_layer_verification" is no longer used - just CoCo's guest pull
  is supported.
- The Request input files from unit tests are changing to reflect the
  new default settings values described above.
- tests/integration/kubernetes/tests_common.sh adjusts the settings for
  platforms that are not set-up for CoCo during CI (i.e., platforms
  other than SNP, TDX, and CoCo Dev).

Signed-off-by: Dan Mihai <dmihai@microsoft.com>
Use a simple debug!() for logging the config_layer string, instead of
transcoding, etc.

Signed-off-by: Dan Mihai <dmihai@microsoft.com>
@danmihai1 danmihai1 force-pushed the danmihai1/genpolicy-cleanup branch from 81bd21d to c11c972 Compare July 28, 2025 19:08
@Redent0r Redent0r merged commit 1aaaef2 into kata-containers:main Jul 28, 2025
500 of 538 checks passed
@danmihai1 danmihai1 deleted the danmihai1/genpolicy-cleanup branch July 28, 2025 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants