Skip to content

Conversation

@copybara-service
Copy link

Add option to enable/disable unknown fields in OCI config

Currently in OCI config it is possible to add any extra json data, which will be ignored by runsc.
I found it is a bit confusing when was learning OCI implementation of gvisor (adding wrong/non existent fields does not produce any error or warning), therefore decided to add flag allow-unknown-fields, which is true by default (does not modify current behavior).
In case of being false, gvisor produces error like this:

reading spec: error unmarshaling spec from file "config.json": json: unknown field "oooooo"

FUTURE_COPYBARA_INTEGRATE_REVIEW=#12052 from ioterw:allow_unknown_fields 0662917

@copybara-service copybara-service bot added the exported Issue was exported automatically label Aug 21, 2025
@copybara-service copybara-service bot merged commit b60a9bd into master Aug 21, 2025
@copybara-service copybara-service bot deleted the test/cl797846468 branch August 21, 2025 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exported Issue was exported automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants