Skip to content

Commit af19509

Browse files
authored
Do not grant superuser rights to the dbo user anymore (#402)
* Do not grant superuser rights to the dbo user anymore * Add 'createrole' permission to dbo
1 parent c66136e commit af19509

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/v1/postgres_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ func (p *Postgres) ToUnstructuredZalandoPostgresql(z *zalando.Postgresql, c *cor
546546

547547
// Create database owner
548548
z.Spec.Users = make(map[string]zalando.UserFlags)
549-
z.Spec.Users[ownerName] = zalando.UserFlags{"superuser", "createdb"}
549+
z.Spec.Users[ownerName] = zalando.UserFlags{"createdb", "createrole"}
550550

551551
// Create default database
552552
z.Spec.Databases = make(map[string]string)

0 commit comments

Comments
 (0)