postgres-operator/pkg
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
..
apis/acid.zalan.do Allow configuration of patroni's replication mode (#869) 2020-04-06 14:27:17 +02:00
apiserver reflect change in github url (#496) 2019-02-25 11:26:55 +01:00
cluster Prevent superuser from being a connection pool user (#906) 2020-04-09 09:21:45 +02:00
controller Prevent superuser from being a connection pool user (#906) 2020-04-09 09:21:45 +02:00
generated Move operator to go 1.14 (#882) 2020-03-30 15:50:17 +02:00
spec Call me pooler, not pool (#883) 2020-04-01 10:34:03 +02:00
util Prevent superuser from being a connection pool user (#906) 2020-04-09 09:21:45 +02:00