feat(dashboard): settings page shows GroupToTag and UntaggedSessionVisibility

This commit is contained in:
Joseph Doherty
2026-08-17 07:15:24 -04:00
parent eff17d177c
commit 094f2ffee4
5 changed files with 334 additions and 2 deletions
@@ -62,7 +62,15 @@ public sealed class GatewayConfigurationProvider(IOptions<GatewayOptions> option
RecentFaultLimit: value.Dashboard.RecentFaultLimit,
RecentSessionLimit: value.Dashboard.RecentSessionLimit,
ShowTagValues: value.Dashboard.ShowTagValues,
GroupToRole: value.Dashboard.GroupToRole),
GroupToRole: value.Dashboard.GroupToRole,
// Rebuilt rather than passed through because the value type widens from string[]
// to IReadOnlyList<string>; the comparer is carried over so the projected map
// still matches LDAP group names in whatever case the directory returns them.
GroupToTag: value.Dashboard.GroupToTag.ToDictionary(
pair => pair.Key,
pair => (IReadOnlyList<string>)pair.Value,
StringComparer.OrdinalIgnoreCase),
UntaggedSessionVisibility: value.Dashboard.UntaggedSessionVisibility),
Protocol: new EffectiveProtocolConfiguration(
value.Protocol.WorkerProtocolVersion,
value.Protocol.MaxGrpcMessageBytes));