mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 19:47:54 +00:00
secrets/db: documents credential types and snowflake key pair auth (#15892)
This commit is contained in:
@@ -315,6 +315,8 @@ This endpoint creates or updates a role definition.
|
||||
functionality. See the plugin's API page for more information on support and
|
||||
formatting for this parameter.
|
||||
|
||||
@include 'db-secrets-credential-types.mdx'
|
||||
|
||||
### Sample Payload
|
||||
|
||||
```json
|
||||
@@ -369,6 +371,7 @@ $ curl \
|
||||
"CREATE ROLE \"{{name}}\" WITH LOGIN PASSWORD '{{password}}' VALID UNTIL '{{expiration}}';",
|
||||
"GRANT SELECT ON ALL TABLES IN SCHEMA public TO \"{{name}}\";"
|
||||
],
|
||||
"credential_type": "password",
|
||||
"db_name": "mysql",
|
||||
"default_ttl": 3600,
|
||||
"max_ttl": 86400,
|
||||
@@ -501,6 +504,8 @@ this in order to know the password.
|
||||
plugin type will support this functionality. See the plugin's API page for
|
||||
more information on support and formatting for this parameter.
|
||||
|
||||
@include 'db-secrets-credential-types.mdx'
|
||||
|
||||
### Sample Payload
|
||||
|
||||
```json
|
||||
@@ -550,6 +555,7 @@ $ curl \
|
||||
```json
|
||||
{
|
||||
"data": {
|
||||
"credential_type": "password",
|
||||
"db_name": "mysql",
|
||||
"username": "static-user",
|
||||
"rotation_statements": [
|
||||
|
||||
@@ -90,9 +90,13 @@ list the plugin does not support that statement type.
|
||||
statements executed to create and configure a user. Must be a
|
||||
semicolon-separated string, a base64-encoded semicolon-separated string, a
|
||||
serialized JSON string array, or a base64-encoded serialized JSON string
|
||||
array. The `{{name}}`, `{{password}}` and `{{expiration}}` values will be
|
||||
substituted. The generated password will be a random alphanumeric 20 character
|
||||
string.
|
||||
array. The `{{name}}` and `{{expiration}}` values will be substituted.
|
||||
|
||||
The following values will be substituted depending on the
|
||||
[credential_type](/api-docs/secret/databases#credential_type) of the role:
|
||||
|
||||
- `{{password}}` is substituted for the `password` credential type
|
||||
- `{{public_key}}` is substituted for the `rsa_private_key` credential type
|
||||
|
||||
- `revocation_statements` `(list: [])` – Specifies the database statements to
|
||||
be executed to revoke a user. Must be a semicolon-separated string, a
|
||||
@@ -118,5 +122,10 @@ list the plugin does not support that statement type.
|
||||
executed to rotate the password for a given username. Must be a
|
||||
semicolon-separated string, a base64-encoded semicolon-separated string, a
|
||||
serialized JSON string array, or a base64-encoded serialized JSON string
|
||||
array. The `{{name}}` and `{{password}}` values will be substituted. The
|
||||
generated password will be a random alphanumeric 20 character string.
|
||||
array. The `{{name}}` value will be substituted.
|
||||
|
||||
The following values will be substituted depending on the
|
||||
[credential_type](/api-docs/secret/databases#credential_type) of the role:
|
||||
|
||||
- `{{password}}` is substituted for the `password` credential type
|
||||
- `{{public_key}}` is substituted for the `rsa_private_key` credential type
|
||||
|
||||
Reference in New Issue
Block a user