fix(pageserver): make posthog config parsing more robust (#12356)

## Problem

In our infra config, we have to split server_api_key and other fields in
two files: the former one in the sops file, and the latter one in the
normal config. It creates the situation that we might misconfigure some
regions that it only has part of the fields available, causing
storcon/pageserver refuse to start.

## Summary of changes

Allow PostHog config to have part of the fields available. Parse it
later.

Signed-off-by: Alex Chi Z <chi@neon.tech>
This commit is contained in:
Alex Chi Z.
2025-06-26 11:49:08 -04:00
committed by GitHub
parent 605fb04f89
commit 33c0d5e2f4
7 changed files with 95 additions and 30 deletions

1
Cargo.lock generated
View File

@@ -4408,6 +4408,7 @@ dependencies = [
"postgres_backend",
"postgres_ffi_types",
"postgres_versioninfo",
"posthog_client_lite",
"rand 0.8.5",
"remote_storage",
"reqwest",