Skip to content

Commit 77be02a

Browse files
Merge 576e59b into 57ff94b
2 parents 57ff94b + 576e59b commit 77be02a

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
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 ? 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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ class TMon {
6161
TActorId ActorId;
6262
bool UseAuth = true;
6363
TVector<TString> AllowedSIDs;
64+
bool UseFallbackSIDs = true;
6465
bool SortPages = true;
6566
TString MonServiceName = "utils";
6667
};

ydb/core/viewer/viewer.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,15 @@ class TViewer : public TActorBootstrapped<TViewer>, public IViewer {
9292
.RelPath = "viewer/whoami",
9393
.ActorSystem = ctx.ActorSystem(),
9494
.ActorId = ctx.SelfID,
95-
.UseAuth = false,
95+
.UseAuth = true,
96+
.UseFallbackSIDs = false,
9697
});
9798
mon->RegisterActorPage({
9899
.RelPath = "viewer/json/whoami", // temporary handling of old paths
99100
.ActorSystem = ctx.ActorSystem(),
100101
.ActorId = ctx.SelfID,
101-
.UseAuth = false,
102+
.UseAuth = true,
103+
.UseFallbackSIDs = false,
102104
});
103105
mon->RegisterActorPage({
104106
.Title = "Viewer",

0 commit comments

Comments
 (0)