Merge pull request #7863 from Icinga/bugfix/disallow-receiving-ticket-salt-via-api

Disallow fetching the ticket salt via REST API
This commit is contained in:
Alexander Aleksandrovič Klimov 2023-01-25 16:39:30 +01:00 committed by GitHub
commit bb99106926
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -99,6 +99,9 @@ bool VariableQueryHandler::HandleRequest(
ArrayData results;
for (const Dictionary::Ptr& var : objs) {
if (var->Get("name") == "TicketSalt")
continue;
results.emplace_back(new Dictionary({
{ "name", var->Get("name") },
{ "type", var->Get("type") },