- include namespace in secret name only when namespace is provided
- use username.namespace as key to pgUsers only when namespace is
  provided
- avoid conflict in the role creation in db by checking namespace
  alongwith the username
This commit is contained in:
Rafia Sabih
2021-05-20 19:25:43 +02:00
parent af719c07fe
commit 43154baf39
5 changed files with 20 additions and 12 deletions
+3 -3
View File
@@ -46,9 +46,9 @@ const (
// PgUser contains information about a single user.
type PgUser struct {
Origin RoleOrigin `yaml:"-"`
Name string `yaml:"-"`
Namespace string `yaml:"."`
Origin RoleOrigin `yaml:"-"`
Name string `yaml:"-"`
Namespace string
Password string `yaml:"-"`
Flags []string `yaml:"user_flags"`
MemberOf []string `yaml:"inrole"`