Skip to content

Commit

Permalink
CORE-18507: Add UnamangedKeyStatus that will serve both key status an…
Browse files Browse the repository at this point in the history
…d key rotation (#1440)

Adds avro schema that serves both key status and key rotation status requests.
  • Loading branch information
anien authored Jan 9, 2024
1 parent c193e29 commit b9d6f5a
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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."
}
]
}

0 comments on commit b9d6f5a

Please sign in to comment.