Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(warehouse): point OAuth secret deployment at the secrets UI (#78125)

Ben White66cef5b36bf8
diff --git a/.agents/skills/implementing-warehouse-sources/SKILL.md b/.agents/skills/implementing-warehouse-sources/SKILL.md
index 36320feba32b..85de502bfc1e 100644
--- a/.agents/skills/implementing-warehouse-sources/SKILL.md
+++ b/.agents/skills/implementing-warehouse-sources/SKILL.md
@@ -647,7 +647,7 @@ If new:
3. **Register the client + deploy the credentials.** Registering the OAuth client with the provider,
the redirect URIs (US/EU/dev/localhost), the **charts** PR (wiring the env vars into both
`posthog-django-shared-secrets` for the web app and the worker's `secret_env_app_specific` store),
- and writing the values into AWS Secrets Manager via the `PostHog/secrets` CLI — plus which of these
+ and writing the values into AWS Secrets Manager via the `PostHog/secrets` UI or CLI — plus which of these
an agent can vs. must not automate — are all in
[references/oauth-app-deployment.md](references/oauth-app-deployment.md).
diff --git a/.agents/skills/implementing-warehouse-sources/references/oauth-app-deployment.md b/.agents/skills/implementing-warehouse-sources/references/oauth-app-deployment.md
index fa5c853116fe..00db5e15db46 100644
--- a/.agents/skills/implementing-warehouse-sources/references/oauth-app-deployment.md
+++ b/.agents/skills/implementing-warehouse-sources/references/oauth-app-deployment.md
@@ -60,10 +60,17 @@ vars on the web app and the data-warehouse worker — nothing else.
## 4. Secrets — write the values into AWS Secrets Manager (PostHog/secrets)
-`PostHog/secrets` is a **CLI over AWS Secrets Manager — values are never committed to git.** Use the
-bulk `template` command with a **local, uncommitted** YAML file (copy `template-example.yaml`). App-name
-keys are the full `-secrets` store names; the same value repeats across environments for one shared
-client:
+`PostHog/secrets` is a **web UI and CLI over AWS Secrets Manager — values are never committed to git.**
+
+The [secrets UI](https://secrets-ui.hedgehog-kitefin.ts.net/) is the preferred way to write secrets: it
+only needs the PostHog tailnet (Tailscale) — no local install, AWS profile, or SSO login — and it can add
+a key across environments from one place.
+
+**Two things this step needs are not in the UI yet** (planned, but CLI-only today): bulk multi-store /
+multi-env writes, and the Argo force-sync after a write. For two keys × two stores × three environments
+that makes the CLI's `template` command the fewer-steps option here. Use it with a **local,
+uncommitted** YAML file (copy `template-example.yaml`). App-name keys are the full `-secrets` store
+names; the same value repeats across environments for one shared client:
```yaml
secrets:
@@ -100,13 +107,18 @@ Notes:
`terraform/modules/eks/external-secrets.tf` (posthog-cloud-infra).
- ExternalSecrets sync from AWS SM to Kubernetes hourly; the CLI offers an immediate Argo force-sync
after writing (needs the PostHog tailnet), else `kubectl annotate es <name> force-sync=$(date +%s) --overwrite -n posthog`.
+ The UI does not force-sync — after writing there, force it via ArgoCD or wait for the hourly sync.
+- UI/CLI parity gaps that matter beyond this step: force-sync, search-by-value, `blame`/`--who`
+ attribution, and bulk `template` writes are all CLI-only for now. The wiki tracks the current list
+ and what's planned: [Not yet in the UI](https://runbooks.posthog.com/operations/secrets/application#not-yet-in-the-ui).
## What an agent can and cannot do here
- **Can**: the settings code change; the charts PR (both blocks); register the client if the provider
has a registration API and the user supplies a provider API key; scaffold the `secrets` template YAML
with **placeholder** values plus the exact `--dry-run`/apply commands for the human to run.
-- **Should not**: run the `secrets template` apply. It needs interactive `aws sso login`, the
- `secrets-editor` AWS role, and the tailnet for the force-sync — and it handles the **live**
- `client_secret`, which must never flow through agent tool output or land in any file (committed or
- scratch). Hand the filled template + commands to the user for that step.
+- **Should not**: write the secret values, by any route. Both the UI and the `secrets template` apply
+ handle the **live** `client_secret`, which must never flow through agent tool output or land in any
+ file (committed or scratch); the CLI additionally needs interactive `aws sso login`, the
+ `secrets-editor` AWS role, and the tailnet. Hand the filled template + commands (or the UI link) to
+ the user for that step.