postgres-operator/pkg/cluster
Oleksii Kliukin 1fb8cf7ea0
Avoid overwriting critical users. (#172)
* Avoid overwriting critical users.

Disallow defining new users either in the cluster manifest, teams
API or infrastructure roles with the names mentioned in the new
protected_role_names parameter (list of comma-separated names)

Additionally, forbid defining a user with the name matching either
super_username or replication_username, so that we don't overwrite
system roles required for correct working of the operator itself.

Also, clear PostgreSQL roles on each sync first in order to avoid using
the old definitions that are no longer present in the current manifest,
infrastructure roles secret or the teams API.
2017-12-05 14:27:12 +01:00
..
cluster.go Avoid overwriting critical users. (#172) 2017-12-05 14:27:12 +01:00
cluster_test.go Avoid overwriting critical users. (#172) 2017-12-05 14:27:12 +01:00
exec.go return idle status when worker has nothing to do 2017-10-11 15:42:20 +02:00
filesystems.go Make use of kubernetes client-go v4 2017-07-25 15:25:17 +02:00
k8sres.go Tweak our reaction to the cluster upgrade process. 2017-11-30 14:11:49 +01:00
pg.go Fix the connection leak and user options sync. 2017-11-27 16:46:34 +01:00
pod.go Tweak our reaction to the cluster upgrade process. 2017-11-30 14:11:49 +01:00
resources.go use sync methods while updating the cluster 2017-11-03 12:00:43 +01:00
sync.go Allow global configuration options for API roles. 2017-11-22 10:43:35 +01:00
types.go add comments on roles 2017-09-11 17:44:32 +02:00
util.go Avoid overwriting critical users. (#172) 2017-12-05 14:27:12 +01:00
volumes.go use sync methods while updating the cluster 2017-11-03 12:00:43 +01:00