Skip to content

Commit 64aeb45

Browse files
maybe allowedsids
1 parent 09df44e commit 64aeb45

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-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 ? fields.AllowedSIDs : Config.AllowedSIDs,
1453+
fields.AllowedSIDs.Defined() ? *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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class TMon {
6060
bool PreTag = false;
6161
TActorId ActorId;
6262
bool UseAuth = true;
63-
TVector<TString> AllowedSIDs;
63+
TMaybe<TVector<TString>> AllowedSIDs;
6464
bool SortPages = true;
6565
TString MonServiceName = "utils";
6666
};

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+
.AllowedSIDs = {},
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+
.AllowedSIDs = {},
102104
});
103105
mon->RegisterActorPage({
104106
.Title = "Viewer",

0 commit comments

Comments
 (0)