postgres-operator/pkg/util
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
..
config Avoid overwriting critical users. (#172) 2017-12-05 14:27:12 +01:00
constants Kube cluster upgrade 2017-10-19 10:49:42 +02:00
filesystems Fix golint warnings 2017-08-01 16:08:56 +02:00
k8sutil use sync methods while updating the cluster 2017-11-03 12:00:43 +01:00
patroni Retry connecting to pg 2017-10-17 17:03:50 +02:00
retryutil Fix golint warnings 2017-08-01 16:08:56 +02:00
ringlog fix comments for ringlogger 2017-09-26 13:12:38 +02:00
teams Tests for initHumanUsers and initinitRobotUsers. 2017-12-04 10:49:25 +01:00
users Fix the connection leak and user options sync. 2017-11-27 16:46:34 +01:00
volumes Fix golint warnings 2017-08-01 16:08:56 +02:00
util.go Perform manual failover during the scale down 2017-10-16 17:41:23 +02:00
util_test.go Perform manual failover during the scale down 2017-10-16 17:41:23 +02:00