mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-14 12:48:01 +00:00
fix: update config to commands (and queries) (#1342)
* fix: adaot config to commands (and queries) * remove dependency on vv2 in v1 * add queries user to operator * set password for queries on tests * set password for queries on tests * fix config
This commit is contained in:
@@ -34,6 +34,7 @@ type Passwords struct {
|
||||
Adminapi *secret.Secret `yaml:"adminapi"`
|
||||
Notification *secret.Secret `yaml:"notification"`
|
||||
Eventstore *secret.Secret `yaml:"eventstore"`
|
||||
Queries *secret.Secret `yaml:"queries"`
|
||||
}
|
||||
|
||||
type Secrets struct {
|
||||
|
@@ -63,6 +63,13 @@ func getAllUsers(desired *DesiredV0) map[string]string {
|
||||
}
|
||||
users[esUser] = esPassword
|
||||
|
||||
queryUser := "queries"
|
||||
queryPassword := queryUser
|
||||
if passwords != nil && passwords.Queries != nil {
|
||||
queryPassword = passwords.Queries.Value
|
||||
}
|
||||
users[queryUser] = queryPassword
|
||||
|
||||
return users
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user