Skip to content

Commit 576e59b

Browse files
usefallbackSIDS
1 parent 513cd83 commit 576e59b

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

ydb/core/mon/mon.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1450,7 +1450,7 @@ NMonitoring::IMonPage* TMon::RegisterActorPage(TRegisterActorPageFields fields)
14501450
fields.PreTag,
14511451
fields.ActorSystem,
14521452
fields.ActorId,
1453-
fields.AllowedSIDs.Defined() ? *fields.AllowedSIDs : Config.AllowedSIDs,
1453+
(fields.AllowedSIDs || !fields.UseFallbackSIDs) ? fields.AllowedSIDs : Config.AllowedSIDs,
14541454
fields.UseAuth ? Config.Authorizer : TRequestAuthorizer(),
14551455
fields.MonServiceName);
14561456
if (fields.Index) {

ydb/core/mon/mon.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ class TMon {
6060
bool PreTag = false;
6161
TActorId ActorId;
6262
bool UseAuth = true;
63-
TMaybe<TVector<TString>> AllowedSIDs;
63+
TVector<TString> AllowedSIDs;
64+
bool UseFallbackSIDs = true;
6465
bool SortPages = true;
6566
TString MonServiceName = "utils";
6667
};

ydb/core/viewer/viewer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@ class TViewer : public TActorBootstrapped<TViewer>, public IViewer {
9393
.ActorSystem = ctx.ActorSystem(),
9494
.ActorId = ctx.SelfID,
9595
.UseAuth = true,
96-
.AllowedSIDs = TVector<TString>{},
96+
.UseFallbackSIDs = false,
9797
});
9898
mon->RegisterActorPage({
9999
.RelPath = "viewer/json/whoami", // temporary handling of old paths
100100
.ActorSystem = ctx.ActorSystem(),
101101
.ActorId = ctx.SelfID,
102102
.UseAuth = true,
103-
.AllowedSIDs = TVector<TString>{},
103+
.UseFallbackSIDs = false,
104104
});
105105
mon->RegisterActorPage({
106106
.Title = "Viewer",

0 commit comments

Comments
 (0)