Secrets
Last updated
Last updated
Secrets are string values which are encrypted in a Vault
for future retrieval by authorized users. Currently, the maximum allowed length of a stored secret is 4096 bytes.
List secrets in a Vault
.
GET
https://vault.provide.services/api/v1/vaults/:id/secrets
Returns a list of secrets hosted in a specified
Vault
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Response JSON:
Store a secret in a Vault
.
POST
https://vault.provide.services/api/v1/vaults/:id/secrets
Stores a secret in a specified
Vault
Response JSON:
Retrieve a secret from a Vault
.
GET
https://vault.provide.services/api/v1/vaults/:id/secrets/:secret_id
Retrieves a specific secret from a specified
Vault
Response JSON:
Permanently delete a secret from a Vault
.
DELETE
https://vault.provide.services/api/v1/vaults/:id/secrets/:secret_id
Permanently deletes a specified secret
Parameter | Description |
---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
id
string
id of target
Vault
authorization
string
bearer scoped to an
Application
,
Organization
or
User
name
the name of the secret
type
the type of secret; this is arbitrary
description
an optional description to attach to the secret
value
the secret value to be encrypted (4096-byte maximum)
id
string
id of
Vault
to store secret
authorization
string
bearer scoped to an
Application
,
Organization
or
User
description
string
brief descriptor for secret to be stored
name
string
name for secret to be stored
type
string
type of secret to be stored; this is arbitrary
value
string
the secret value to be encrypted (4096-byte maximum)
id
string
id of
Vault
storing secret
secret_id
string
id of secret to be retrieved
authorization
string
bearer scoped to an
Application
,
Organization
or
User
id
string
id of
Vault
storing secret
secret_id
string
id of secret to be deleted
authorization
string
bearer scoped to an
Application
,
Organization
or
User