fix(setup): decode role mappings (#7760)

This commit is contained in:
Elio Bischof
2024-04-14 11:55:54 +02:00
committed by GitHub
parent 9865425a0c
commit 5b34aabbdd
3 changed files with 48 additions and 1 deletions

View File

@@ -69,6 +69,7 @@ func MustNewConfig(v *viper.Viper) *Config {
hook.EnumHookFunc(authz.MemberTypeString),
actions.HTTPConfigDecodeHook,
hooks.MapTypeStringDecode[string, *authz.SystemAPIUser],
hooks.SliceTypeStringDecode[authz.RoleMapping],
)),
)
logging.OnError(err).Fatal("unable to read default config")