mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-01 00:17:15 +02:00
* copy rolconfig during password rotation Co-authored-by: idanovinda <idanovinda@gmail.com>
25 lines
843 B
Go
25 lines
843 B
Go
package constants
|
|
|
|
// Roles specific constants
|
|
const (
|
|
PasswordLength = 64
|
|
SuperuserKeyName = "superuser"
|
|
ReplicationUserKeyName = "replication"
|
|
ConnectionPoolerUserKeyName = "pooler"
|
|
EventStreamUserKeyName = "streamer"
|
|
RoleFlagSuperuser = "SUPERUSER"
|
|
RoleFlagInherit = "INHERIT"
|
|
RoleFlagLogin = "LOGIN"
|
|
RoleFlagNoLogin = "NOLOGIN"
|
|
RoleFlagCreateRole = "CREATEROLE"
|
|
RoleFlagCreateDB = "CREATEDB"
|
|
RoleFlagReplication = "REPLICATION"
|
|
RoleFlagByPassRLS = "BYPASSRLS"
|
|
OwnerRoleNameSuffix = "_owner"
|
|
ReaderRoleNameSuffix = "_reader"
|
|
WriterRoleNameSuffix = "_writer"
|
|
UserRoleNameSuffix = "_user"
|
|
DefaultSearchPath = "\"$user\""
|
|
RotationUserDateFormat = "060102"
|
|
)
|