Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions engine/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,9 @@ void RunServer(std::optional<std::string> host, std::optional<int> port,
.setClientMaxMemoryBodySize(1024 * 1024); // 1MiB before writing to disk

auto validate_api_key = [config_service](const drogon::HttpRequestPtr& req) {
auto const& api_keys =
config_service->GetApiServerConfiguration()->api_keys;
auto api_keys = config_service->GetApiServerConfiguration()->api_keys;
static const std::unordered_set<std::string> public_endpoints = {
"/healthz", "/processManager/destroy"};
"/openapi.json", "/healthz", "/processManager/destroy"};

// If API key is not set, skip validation
if (api_keys.empty()) {
Expand Down
Loading