-
Notifications
You must be signed in to change notification settings - Fork 59
Add api docs for new derivedkeys endpoint #844
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 new keys derived from the named key's HMAC key and | ||
encrypted using the named key. Optionally return the plaintext of the key 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 a key. 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 new keys derived from the named key's HMAC key and | |
encrypted using the named key. Optionally return the plaintext of the key 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 a key. This is useful if you want an untrusted user or operation to generate keys | |
that are then made available to trusted users. | |
The derived keys endpoint generates new keys based on the HMAC key associated | |
with the provided key name. 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: avoid "this" as a pronoun, avoid possessives, use complete sentences in paragraphs
| :----- | :----------------------------- | | ||
| `POST` | `/transit/derivedkeys/: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 key to generate. If | ||
`plaintext`, the plaintext keys will be returned along with the ciphertexts. If | ||
`wrapped`, only the ciphertext value 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 key to generate. If | |
`plaintext`, the plaintext keys will be returned along with the ciphertexts. If | |
`wrapped`, only the ciphertext value 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. |
part of the URL. | ||
|
||
- `name` `(string: <required>)` – Specifies the name of the encryption key to | ||
use to encrypt the keys. 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.
use to encrypt the keys. This is specified as part of the URL. | |
use to encrypt the keys. |
|
||
- `name` `(string: <required>)` – Specifies the name of the encryption key to | ||
use to encrypt the keys. 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 keys. This is specified as part of the URL. | ||
|
||
- `salt` `(string: <required>)` - The salt input to derivation |
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.
- `salt` `(string: <required>)` - The salt input to derivation | |
- `salt` `(string: <required>)` - The salt input used to derive the new keys. |
|
||
- `salt` `(string: <required>)` - The salt input to derivation | ||
|
||
- `key_index_from` `(int: <required>)` - The starting index for keys to return |
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.
What does this mean exactly? Index of what? And does the index start at 0 or 1?
(I think I know what we're trying to say, but it's not really a complete thought, so I don't want to assume)
of the data key. Must be 0 (for latest) or a value greater than or equal to the | ||
min_encryption_version configured on the key. | ||
|
||
- `info` `(string: "")` – The info string input to derivation |
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.
What does this mean?
No description provided.