Skip to content

Default to strict decoding of OCI runtime spec#1491

Merged
elezar merged 2 commits intoNVIDIA:mainfrom
elezar:strict-oci-spec
Nov 24, 2025
Merged

Default to strict decoding of OCI runtime spec#1491
elezar merged 2 commits intoNVIDIA:mainfrom
elezar:strict-oci-spec

Conversation

@elezar
Copy link
Member

@elezar elezar commented Nov 20, 2025

This change defaults to strict decoding of the OCI
runtime spec to avoid dropping unknown fields when making
OCI runtime modifications.

We also add an allow-unknown-oci-spec-fields feature flag
that can be used to opt-out of this behaviour.

@elezar elezar added this to the v1.19.0 milestone Nov 20, 2025
Instead of loading the full OCI spec when extracting the container root
from the container state, this change ensures that only the Root is
unmarshalled.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This change defaults to strict decoding of the OCI
runtime spec to avoid dropping unknown fields when making
OCI runtime modifications.

We also add an allow-unknown-oci-spec-fields feature flag
that can be used to opt-out of this behaviour.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
Copy link
Collaborator

@ArangoGutierrez ArangoGutierrez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Collaborator

@ArangoGutierrez ArangoGutierrez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@elezar elezar merged commit 61d2b03 into NVIDIA:main Nov 24, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants