postgres-operator/pkg/util
Dmitry Dolgov a1f2bd05b9
Prevent superuser from being a connection pool user (#906)
* Protected and system users can't be a connection pool user

It's not supported, neither it's a best practice. Also fix potential null
pointer access. For protected users it makes sense by intent of protecting this
users (e.g. from being overriden or used as something else than supposed). For
system users the reason is the same as for superuser, it's about replicastion
user and it's under patroni control.

This is implemented on both levels, operator config and postgresql manifest.
For the latter we just use default name in this case, assuming that operator
config is always correct. For the former, since it's a serious
misconfiguration, operator panics.
2020-04-09 09:21:45 +02:00
..
config Prevent superuser from being a connection pool user (#906) 2020-04-09 09:21:45 +02:00
constants Call me pooler, not pool (#883) 2020-04-01 10:34:03 +02:00
filesystems Fix golint warnings 2017-08-01 16:08:56 +02:00
k8sutil Move operator to go 1.14 (#882) 2020-03-30 15:50:17 +02:00
patroni Handle IPv6 k8s pods in Patroni URLs (#671) 2019-09-30 10:14:27 +02:00
retryutil Fix golint failures 2019-01-08 13:04:48 +01:00
ringlog fix comments for ringlogger 2017-09-26 13:12:38 +02:00
teams Move operator to go 1.14 (#882) 2020-03-30 15:50:17 +02:00
users reflect change in github url (#496) 2019-02-25 11:26:55 +01:00
volumes reflect change in github url (#496) 2019-02-25 11:26:55 +01:00
util.go Connection pooler (#799) 2020-03-25 12:57:26 +01:00
util_test.go Enforce minimum cpu and memory limits (#731) 2019-12-12 16:43:55 +01:00