Skip to content

Commit 3dd7045

Browse files
jkatzJonathan S. Katz
authored andcommitted
Reconcile API server permissions list
Of note is the "Restart" permission which was not added to the validation list, and removing some permissions for calls that are no longer available. Issue: #2203 Issue: #2201
1 parent 01f3db4 commit 3dd7045

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

docs/content/Security/configure-postgres-operator-rbac.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ The following list shows the current complete list of possible pgo permissions t
7474
|Label | allow *pgo label*|
7575
|Load | allow *pgo load*|
7676
|Reload | allow *pgo reload*|
77+
|Restart | allow *pgo restart*|
7778
|Restore | allow *pgo restore*|
7879
|RestoreDump | allow *pgo restore* for pgdumps|
7980
|ShowBackup | allow *pgo show backup*|

internal/apiserver/perms.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ const (
4242
CREATE_CLUSTER_PERM = "CreateCluster"
4343
CREATE_DUMP_PERM = "CreateDump"
4444
CREATE_FAILOVER_PERM = "CreateFailover"
45-
CREATE_INGEST_PERM = "CreateIngest"
4645
CREATE_NAMESPACE_PERM = "CreateNamespace"
4746
CREATE_PGADMIN_PERM = "CreatePgAdmin"
4847
CREATE_PGBOUNCER_PERM = "CreatePgbouncer"
@@ -59,7 +58,6 @@ const (
5958
// DELETE
6059
DELETE_BACKUP_PERM = "DeleteBackup"
6160
DELETE_CLUSTER_PERM = "DeleteCluster"
62-
DELETE_INGEST_PERM = "DeleteIngest"
6361
DELETE_NAMESPACE_PERM = "DeleteNamespace"
6462
DELETE_PGADMIN_PERM = "DeletePgAdmin"
6563
DELETE_PGBOUNCER_PERM = "DeletePgbouncer"
@@ -73,7 +71,6 @@ const (
7371
SHOW_BACKUP_PERM = "ShowBackup"
7472
SHOW_CLUSTER_PERM = "ShowCluster"
7573
SHOW_CONFIG_PERM = "ShowConfig"
76-
SHOW_INGEST_PERM = "ShowIngest"
7774
SHOW_NAMESPACE_PERM = "ShowNamespace"
7875
SHOW_PGADMIN_PERM = "ShowPgAdmin"
7976
SHOW_PGBOUNCER_PERM = "ShowPgBouncer"
@@ -119,6 +116,7 @@ func InitializePerms() {
119116
LABEL_PERM: "yes",
120117
LOAD_PERM: "yes",
121118
RELOAD_PERM: "yes",
119+
RESTART_PERM: "yes",
122120
RESTORE_PERM: "yes",
123121
STATUS_PERM: "yes",
124122
TEST_CLUSTER_PERM: "yes",
@@ -129,7 +127,6 @@ func InitializePerms() {
129127
CREATE_DUMP_PERM: "yes",
130128
CREATE_CLUSTER_PERM: "yes",
131129
CREATE_FAILOVER_PERM: "yes",
132-
CREATE_INGEST_PERM: "yes",
133130
CREATE_NAMESPACE_PERM: "yes",
134131
CREATE_PGADMIN_PERM: "yes",
135132
CREATE_PGBOUNCER_PERM: "yes",
@@ -146,7 +143,6 @@ func InitializePerms() {
146143
// DELETE
147144
DELETE_BACKUP_PERM: "yes",
148145
DELETE_CLUSTER_PERM: "yes",
149-
DELETE_INGEST_PERM: "yes",
150146
DELETE_NAMESPACE_PERM: "yes",
151147
DELETE_PGADMIN_PERM: "yes",
152148
DELETE_PGBOUNCER_PERM: "yes",
@@ -160,7 +156,6 @@ func InitializePerms() {
160156
SHOW_BACKUP_PERM: "yes",
161157
SHOW_CLUSTER_PERM: "yes",
162158
SHOW_CONFIG_PERM: "yes",
163-
SHOW_INGEST_PERM: "yes",
164159
SHOW_NAMESPACE_PERM: "yes",
165160
SHOW_PGADMIN_PERM: "yes",
166161
SHOW_PGBOUNCER_PERM: "yes",

0 commit comments

Comments
 (0)