Skip to content

Commit 6748be6

Browse files
bhardwajRahulRahul Bhardwajandrewsomething
authored
Include PG Replication User Option (#851)
* Include PG Replication User Option * Add pg_allow_replication to access_control object * Move pg_allow_replication under user settings --------- Co-authored-by: Rahul Bhardwaj <[email protected]> Co-authored-by: Andrew Starr-Bochicchio <[email protected]>
1 parent 4087119 commit 6748be6

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

Diff for: specification/resources/databases/databases_add_user.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ requestBody:
3838
example: true
3939
description: |
4040
For MongoDB clusters, set to `true` to create a read-only user.
41-
This option is not currently supported for other database engines.
41+
This option is not currently supported for other database engines.
42+
4243
examples:
4344
Add New User:
4445
value:
@@ -54,6 +55,12 @@ requestBody:
5455
value:
5556
name: my-readonly
5657
readonly: true
58+
59+
Add New User for Postgres with replication rights:
60+
value:
61+
name: app-02
62+
settings:
63+
pg_allow_replication: true
5764

5865
Add New User with Kafka ACLs:
5966
value:

Diff for: specification/resources/databases/models/user_settings.yml

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
type: object
22

33
properties:
4+
pg_allow_replication:
5+
type: boolean
6+
example: true
7+
description: |
8+
For Postgres clusters, set to `true` for a user with replication rights.
9+
This option is not currently supported for other database engines.
410
acl:
511
type: array
612
items:

Diff for: specification/resources/databases/responses/user.yml

+9
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@ content:
3333
password: wv78n3zpz42xezdk
3434
mysql_settings:
3535
auth_plugin: mysql_native_password
36+
37+
New User for Postgres with replication rights:
38+
value:
39+
user:
40+
name: app-02
41+
role: normal
42+
password: wv78n3zpz42xezdk
43+
settings:
44+
pg_allow_replication: true
3645

3746
Kafka User:
3847
value:

0 commit comments

Comments
 (0)