From e9a2ba8afca9f76de0cd9fc12313f9b2a95fc783 Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Tue, 7 Oct 2025 15:15:34 +0200 Subject: [PATCH] fix(settings): env var precedence Fix the ordering of the env vars for the 'set_default_assignments' setting. The service specific variable ('SETTINGS_SETUP_DEFAULT_ASSIGNMENTS') should take precedence over other variable ('IDM_CREATE_DEMO_USERS' in this case). --- services/settings/pkg/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/settings/pkg/config/config.go b/services/settings/pkg/config/config.go index 9b2ee57a1..151348160 100644 --- a/services/settings/pkg/config/config.go +++ b/services/settings/pkg/config/config.go @@ -33,7 +33,7 @@ type Config struct { TokenManager *TokenManager `yaml:"token_manager"` - SetupDefaultAssignments bool `yaml:"set_default_assignments" env:"SETTINGS_SETUP_DEFAULT_ASSIGNMENTS;IDM_CREATE_DEMO_USERS" desc:"The default role assignments the demo users should be setup." introductionVersion:"1.0.0"` + SetupDefaultAssignments bool `yaml:"set_default_assignments" env:"IDM_CREATE_DEMO_USERS;SETTINGS_SETUP_DEFAULT_ASSIGNMENTS" desc:"The default role assignments the demo users should be setup." introductionVersion:"1.0.0"` ServiceAccountIDs []string `yaml:"service_account_ids" env:"SETTINGS_SERVICE_ACCOUNT_IDS;OC_SERVICE_ACCOUNT_ID" desc:"The list of all service account IDs. These will be assigned the hidden 'service-account' role. Note: When using 'OC_SERVICE_ACCOUNT_ID' this will contain only one value while 'SETTINGS_SERVICE_ACCOUNT_IDS' can have multiple. See the 'auth-service' service description for more details about service accounts." introductionVersion:"1.0.0"`