Deriving a Key
Last updated
Last updated
Derive a 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.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
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.
Parameter | Description |
---|---|
key_id
string
id of key to be used for derivation
id
string
id of target host
Vault
authorization
string
bearer scoped to an
Application
,
Organization
or
User
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
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