Skip to content

Commit

Permalink
CORE-19368 Managed key rotation (#1455)
Browse files Browse the repository at this point in the history
- Made the unmanaged key rotation fields optional (nullable)
- Removed "old generation" because you always and only rotate from the latest generation
- Added keyUuid which is the input for managed key rotation
  • Loading branch information
simon-johnson-r3 authored Jan 23, 2024
1 parent ea9f1e4 commit 9b26630
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,23 @@
},
{
"name": "oldParentKeyAlias",
"type": "string",
"doc": "The key alias whose protected content will be re-wrapped with a new key."
"type": ["null", "string"],
"doc": "Mandatory for unmanaged key rotation only, always null for managed key rotation. The key alias whose protected content will be re-wrapped with a new key."
},
{
"name": "newParentKeyAlias",
"type": "string",
"doc": "The new wrapping key which oldParentKeyAlias' content will be re-wrapped with."
"type": ["null", "string"],
"doc": "Mandatory for unmanaged key rotation only, always null for managed key rotation. The new wrapping key which oldParentKeyAlias' content will be re-wrapped with."
},
{
"name": "targetKeyAlias",
"type": "string",
"doc": "Specifies the wrapped key to rotate."
"type": ["null", "string"],
"doc": "Mandatory for unmanaged key rotation only, always null for managed key rotation. Specifies the wrapped key to rotate."
},
{
"name": "keyUuid",
"type": ["null", "string"],
"doc": "Mandatory for managed key rotation only, always null for unmanaged key rotation. Specifies the managed wrapping key id to rotate."
},
{
"name": "keyType",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,17 @@
{
"name": "oldParentKeyAlias",
"type": ["null", "string"],
"doc": "The key alias that should no longer be used, and all its protected content re-wrapped with a new key."
"doc": "Mandatory for unmanaged key rotation only, always null for managed key rotation. The key alias that should no longer be used, and all its protected content re-wrapped with a new key."
},
{
"name": "newParentKeyAlias",
"type": ["null", "string"],
"doc": "The unmanaged key alias that should be used for material currently wrapped with old key. Only specified when rotating unmanaged keys."
},
{
"name": "oldGeneration",
"type": ["null", "int"],
"doc": "Specifies the old generation number we should move away from. If absent, rotate all matching keys."
"doc": "Mandatory for unmanaged key rotation only, always null for managed key rotation. The unmanaged key alias that should be used for material currently wrapped with old key."
},
{
"name": "tenantId",
"type": ["null", "string"],
"doc": "Only specified when targeting managed keys. Specifies the specific tenant that owns the old and new key."
"doc": "Mandatory for managed key rotation only, always null for unmanaged key rotation. Specifies the specific tenant for which managed wrapping keys will be rotated."
}
]
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cordaProductVersion = 5.2.0
# NOTE: update this each time this module contains a breaking change
## NOTE: currently this is a top level revision, so all API versions will line up, but this could be moved to
## a per module property in which case module versions can change independently.
cordaApiRevision = 29
cordaApiRevision = 30

# Main
kotlin.stdlib.default.dependency = false
Expand Down

0 comments on commit 9b26630

Please sign in to comment.