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
key_id
string
id of key to be used for derivation
id
string
id of target host
Vault
Headers
authorization
string
bearer scoped to an
Application
,
Organization
or
User
Request Body
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
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