From c447d6375f1f33c14a4f1d7e68f94dfdb1636939 Mon Sep 17 00:00:00 2001 From: Archana Kakani Date: Mon, 14 Jul 2025 04:30:21 -0500 Subject: [PATCH] spdm: Add SPDM TCP responder schema This schema will be utilized to add SPDM Tcp Responders to the user system. More information on SPDM Tcp Responder can be found at [1]. Tested: - Confirmed a system utilizing new schema worked as expected [1]: https://github.com/openbmc/docs/blob/master/designs/redfish-spdm-attestation.md Signed-off-by: Archana Kakani --- meson.build | 1 + schemas/global.json | 3 +++ schemas/spdm_responder.json | 22 ++++++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 schemas/spdm_responder.json diff --git a/meson.build b/meson.build index 0d549e9a..385ea426 100644 --- a/meson.build +++ b/meson.build @@ -105,6 +105,7 @@ schemas = [ 'leak_detector.json', 'firmware.json', 'supported_configuration.json', + 'spdm_responder.json', ] foreach s : schemas diff --git a/schemas/global.json b/schemas/global.json index 5ac74a8a..80a00fdc 100644 --- a/schemas/global.json +++ b/schemas/global.json @@ -31,6 +31,9 @@ { "$ref": "satellite_controller.json#/$defs/SatelliteController" }, + { + "$ref": "spdm.json#/definitions/Responder" + }, { "$ref": "stepwise.json#/$defs/Stepwise" }, diff --git a/schemas/spdm_responder.json b/schemas/spdm_responder.json new file mode 100644 index 00000000..7cb3e0b3 --- /dev/null +++ b/schemas/spdm_responder.json @@ -0,0 +1,22 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "definitions": { + "Responder": { + "title": "SPDM TCP responder configuration", + "description": "The configuration used to add remote SPDM responder to the system", + "type": "object", + "properties": { + "Hostname": { + "description": "Hostname or IP of SPDM TCP responder", + "type": "string" + }, + "Port": { + "description": "Network port SPDM TCP responder is listening on per DSP0287_1.0.0", + "type": "number" + } + }, + "required": ["Hostname", "Port"] + } + } +} +