You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Backport of Improve databases documentation into stable-website (#13481)
* backport of commit 1aeddca
* backport of commit eb572c0
* backport of commit 72f9a6a
Co-authored-by: Jonathan Ballet <jballet@edgelab.ch>
Co-authored-by: Jonathan Ballet <jon@multani.info>
Copy file name to clipboardExpand all lines: website/content/api-docs/secret/databases/index.mdx
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ list of additional parameters.
41
41
during initial configuration. Defaults to true.
42
42
43
43
-`allowed_roles``(list: [])` - List of the roles allowed to use this connection.
44
-
Defaults to empty (no roles), if contains a "\*" any role can use this connection.
44
+
Defaults to empty (no roles), if contains a `*` any role can use this connection.
45
45
46
46
-`root_rotation_statements``(list: [])` - Specifies the database statements to be
47
47
executed to rotate the root user's credentials. See the plugin's API page for more
@@ -273,12 +273,12 @@ This endpoint creates or updates a role definition.
273
273
for this role.
274
274
275
275
-`default_ttl``(string/int: 0)` - Specifies the TTL for the leases
276
-
associated with this role. Accepts time suffixed strings ("1h") or an integer
276
+
associated with this role. Accepts time suffixed strings (`1h`) or an integer
277
277
number of seconds. Defaults to system/engine default TTL time.
278
278
279
279
-`max_ttl``(string/int: 0)` - Specifies the maximum TTL for the leases
280
-
associated with this role. Accepts time suffixed strings ("1h") or an integer
281
-
number of seconds. Defaults to system/mount default TTL time; this value is allowed to be less than the mount max TTL (or, if not set, the system max TTL), but it is not allowed to be longer. See also [The TTL General Case](/docs/concepts/tokens#the-general-case).
280
+
associated with this role. Accepts time suffixed strings (`1h`) or an integer
281
+
number of seconds. Defaults to `sys/mounts`'s default TTL time; this value is allowed to be less than the mount max TTL (or, if not set, the system max TTL), but it is not allowed to be longer. See also [The TTL General Case](/docs/concepts/tokens#the-general-case).
282
282
283
283
-`creation_statements``(list: <required>)` – Specifies the database
284
284
statements executed to create and configure a user. See the plugin's API page
@@ -490,7 +490,7 @@ this in order to know the password.
490
490
{
491
491
"db_name": "mysql",
492
492
"username": "static-database-user",
493
-
"rotation_statements": ["ALTER USER "{{name}}" WITH PASSWORD '{{password}}';"],
493
+
"rotation_statements": ["ALTER USER \"{{name}}\" WITH PASSWORD '{{password}}';"],
494
494
"rotation_period": "1h"
495
495
}
496
496
```
@@ -533,9 +533,9 @@ $ curl \
533
533
"data": {
534
534
"db_name": "mysql",
535
535
"username":"static-user",
536
-
"rotation_statements": ["ALTER USER "{{name}}" WITH PASSWORD '{{password}}';"],
537
-
"rotation_period":"1h",
538
-
},
536
+
"rotation_statements": ["ALTER USER \"{{name}}\" WITH PASSWORD '{{password}}';"],
0 commit comments