Skip to content

release: cascade develop -> stage (runtime-env forwarding) - #971

Merged
evereq merged 1 commit into
stagefrom
develop
Jun 17, 2026
Merged

release: cascade develop -> stage (runtime-env forwarding)#971
evereq merged 1 commit into
stagefrom
develop

Conversation

@evereq

@evereq evereq commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Cascade of PR #970 — deploy_k8s.yaml now forwards all repo secrets (minus K8S_/REGISTRY_/DOCKERHUB_/DIGITALOCEAN_/GITHUB_) into the runtime Secret, instead of only AUTH_SECRET/COOKIE_SECRET/COOKIE_SECURE/DATABASE_URL.

…#970)

The previous "Provision runtime-env secret" step only emitted four
hardcoded keys (AUTH_SECRET / COOKIE_SECRET / COOKIE_SECURE /
DATABASE_URL) into the cluster Secret. Every other env the running app
needs — DATA_REPOSITORY, GH_TOKEN, all DATABASE_* Neon vars, POLAR_*,
STRIPE_*, TRIGGER_DEV_*, POSTHOG_*, RESEND_*, EMAIL_*, NEXT_PUBLIC_*,
TENANT_ID, CRON_SECRET, etc. — was silently dropped, even when set as
repo secrets, breaking content rendering and any feature that depends
on them.

This step now iterates toJSON(secrets) and forwards everything except a
small deny-list of workflow/CI-control names (K8S_*, REGISTRY_*,
DOCKERHUB_*, DIGITALOCEAN_*, GITHUB_*, the auto-injected github_token).
NEXT_PUBLIC_APP_URL / COOKIE_DOMAIN are still derived from
K8S_INGRESS_HOST so the cluster always serves its actual public
hostname.

Surfaced during the directory-web-template demo→k8s-works migration:
the pod booted, but the page logged "'DATA_REPOSITORY' is not defined.
Content features will be limited." until we manually patched the
runtime Secret — and the next workflow run would have wiped it again.

Logs the forwarded key names (never values) on each deploy for an
audit trail.

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@vercel

vercel Bot commented Jun 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
directory-web-template-docs Building Building Preview, Comment Jun 17, 2026 4:00pm

@coderabbitai

coderabbitai Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Free

Run ID: 0879a4d0-c112-4f66-ae4a-b979f142a5dd

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Note

🎁 Summarized by CodeRabbit Free

The PR author is not assigned a seat. To perform a comprehensive line-by-line review, please assign a seat to the pull request author through the subscription management page by visiting https://app.coderabbit.ai/login.

Comment @coderabbitai help to get the list of available commands and usage tips.

@evereq
evereq merged commit 7790a33 into stage Jun 17, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant