Deriving a Key
Derive a Key
Derive a Key
.
Derive Key
POST
https://vault.provide.services/api/v1/vaults/:id/keys/:key_id/derive
Derives a specified key; derivation of keys is currently restricted to
Chacha20
spec keys.
Path Parameters
Name | Type | Description |
---|---|---|
key_id | string | id of key to be used for derivation |
id | string | id of target host
|
Headers
Name | Type | Description |
---|---|---|
authorization | string | bearer scoped to an
,
or
|
Request Body
Name | Type | Description |
---|---|---|
context | string | machine-readable string describing the key derivation context |
description | string | brief description for key to be derived |
name | string | name for key to be derived |
nonce | string | random 32-bit integer or incrementing counter which must only be used once to avoid exposing the underlying secret; if not provided, a random 32-bit integer is used |
Response JSON:
Returns 400 Bad Request
if the attempted key derivation is based on a key which does not support derivation. Derivation of keys is currently retricted to Chacha20
spec keys.
Request Parameters
Parameter | Description |
---|---|
nonce | random 32-bit integer or incrementing counter which must only be used once to avoid exposing the underlying secret; if not provided, a random 32-bit integer is used |
context | machine-readable string describing the key derivation context |
name | name for the derived key |
description | human-readable description of the derived key |
Last updated