From b9d6f5a1a0a92a23652944a188d8d912f493cedb Mon Sep 17 00:00:00 2001 From: Anna Paskova Date: Tue, 9 Jan 2024 10:29:43 +0000 Subject: [PATCH] CORE-18507: Add UnamangedKeyStatus that will serve both key status and key rotation (#1440) Adds avro schema that serves both key status and key rotation status requests. --- .../ops/key.status/UnmanagedKeyStatus.avsc | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/key.status/UnmanagedKeyStatus.avsc diff --git a/data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/key.status/UnmanagedKeyStatus.avsc b/data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/key.status/UnmanagedKeyStatus.avsc new file mode 100644 index 0000000000..1ab2c51a1c --- /dev/null +++ b/data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/key.status/UnmanagedKeyStatus.avsc @@ -0,0 +1,23 @@ +{ + "type": "record", + "name": "UnmanagedKeyStatus", + "namespace": "net.corda.data.crypto.wire.ops.key.status", + "doc": "Defines the key status and key rotation status data.", + "fields": [ + { + "name": "rootKeyAlias", + "type": "string", + "doc": "Alias of an unmanaged key that we are rotating away from." + }, + { + "name": "total", + "type": "int", + "doc": "Total number of keys that needs rotating away from rootKeyAlias." + }, + { + "name": "rotatedKeys", + "type": ["null", "int"], + "doc": "Number of keys for tenantId that has been rotated. Null in case of key status." + } + ] +}