Skip to content

Commit

Permalink
Add auditor role/user for extended pgaudit (#481)
Browse files Browse the repository at this point in the history
  • Loading branch information
eberlep authored Oct 18, 2023
1 parent 9683d25 commit 3bfebed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/v1/postgres_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,8 @@ func (p *Postgres) ToUnstructuredZalandoPostgresql(z *zalando.Postgresql, c *cor
// Create database owner
z.Spec.Users = make(map[string]zalando.UserFlags)
z.Spec.Users[ownerName] = zalando.UserFlags{"createdb", "createrole"}
// Add auditor user
z.Spec.Users["auditor"] = zalando.UserFlags{"nologin"}

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

0 comments on commit 3bfebed

Please sign in to comment.