-
Notifications
You must be signed in to change notification settings - Fork 59
Add docs for new datakeys endpoint #843
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: vault/1.21.x
Are you sure you want to change the base?
Conversation
Vercel Previews Deployed
|
Broken Link Checker |
This endpoint generates a specified number of new high-entropy keys and encrypts them with the | ||
named key. Optionally return the plaintext of the keys as well. Whether plaintext | ||
is returned depends on the path; as a result, you can use Vault ACL policies to | ||
control whether a user is allowed to retrieve the plaintext value of the keys. This | ||
is useful if you want an untrusted user or operation to generate keys that are | ||
then made available to trusted users. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This endpoint generates a specified number of new high-entropy keys and encrypts them with the | |
named key. Optionally return the plaintext of the keys as well. Whether plaintext | |
is returned depends on the path; as a result, you can use Vault ACL policies to | |
control whether a user is allowed to retrieve the plaintext value of the keys. This | |
is useful if you want an untrusted user or operation to generate keys that are | |
then made available to trusted users. | |
The data keys endpoint generates the specified number of new, high-entropy keys. | |
Vault always returns keys encrypted with the provided named and optionally | |
returns the associated plaintext. | |
You can use Vault ACL policies to control which users can retrieve the plaintext | |
value of the keys. For example, to allow untrusted users or operations to | |
generate keys that are then available to trusted users. |
Style correction: write in active voice, use complete sentences in paragraphs
| :----- | :----------------------------- | | ||
| `POST` | `/transit/datakeys/:type/:name` | | ||
|
||
### Parameters |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Parameters | |
### Path parameters |
- `type` `(string: <required>)` – Specifies the type of keys to generate. If | ||
`plaintext`, the plaintext keys will be returned along with the ciphertexts. If | ||
`wrapped`, only the ciphertext values will be returned. This is specified as | ||
part of the URL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- `type` `(string: <required>)` – Specifies the type of keys to generate. If | |
`plaintext`, the plaintext keys will be returned along with the ciphertexts. If | |
`wrapped`, only the ciphertext values will be returned. This is specified as | |
part of the URL. | |
- `type` `(enum: <required>)` – Specifies the type of keys to generate. | |
- `plaintext` - return the plaintext keys along with the ciphertexts | |
- `wrapped` - only return the ciphertext values. |
|
||
- `name` `(string: <required>)` – Specifies the name of the encryption key to | ||
use to encrypt the datakeys. This is specified as part of the URL. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Request parameters | |
- `name` `(string: <required>)` – Specifies the name of the encryption key to | ||
use to encrypt the datakeys. This is specified as part of the URL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- `name` `(string: <required>)` – Specifies the name of the encryption key to | |
use to encrypt the datakeys. This is specified as part of the URL. | |
- `name` `(string: <required>)` – Specifies the name of the encryption key to | |
use to encrypt the datakeys. |
No description provided.