From 97b1ed39eef44ef47d46e2ed123232ec199abff0 Mon Sep 17 00:00:00 2001 From: git-hyagi <45576767+git-hyagi@users.noreply.github.com> Date: Fri, 3 Jan 2025 09:19:32 -0300 Subject: [PATCH] Remove jwk as a required manifest schema parameter fixes: #1874 (cherry picked from commit 2c8eb5fcb078d8559c420fe6d104acf3c1f752d9) --- CHANGES/1874.bugfix | 2 ++ pulp_container/app/json_schemas.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 CHANGES/1874.bugfix diff --git a/CHANGES/1874.bugfix b/CHANGES/1874.bugfix new file mode 100644 index 000000000..a6c6e5713 --- /dev/null +++ b/CHANGES/1874.bugfix @@ -0,0 +1,2 @@ +Fixed an issue in `DOCKER_MANIFEST_V1_SCHEMA` definition where the optional `jwk` header parameter +was defined as required. diff --git a/pulp_container/app/json_schemas.py b/pulp_container/app/json_schemas.py index 76f18e2a5..d299d2ca0 100644 --- a/pulp_container/app/json_schemas.py +++ b/pulp_container/app/json_schemas.py @@ -185,7 +185,7 @@ def get_descriptor_schema( "header": { "type": "object", "properties": {"alg": {"type": "string"}, "jwk": {"type": "object"}}, - "required": ["alg", "jwk"], + "required": ["alg"], }, "signature": {"type": "string"}, },