Skip to content

Support new staging account migration#1847

Merged
kborisov-ottofeller merged 6 commits intomainfrom
CORPLAT-689-separate-developer-portal-account-api
Mar 30, 2026
Merged

Support new staging account migration#1847
kborisov-ottofeller merged 6 commits intomainfrom
CORPLAT-689-separate-developer-portal-account-api

Conversation

@kborisov-ottofeller
Copy link
Copy Markdown
Contributor

@kborisov-ottofeller kborisov-ottofeller commented Mar 25, 2026

PR Type

  • Regular Task
  • Bug Fix
  • QA Tests

Description

App-side changes for the devportal account migration (CORPLAT-689). The new staging runs in a separate AWS account but still depends on KMS keys and DNS that haven't moved yet. The corresponding infrastructure changes are here:PR 497

Changes

  • KMS cross-account resolution (kms.ts, kms-eth.ts) — new resolveKeyId() turns bare key IDs into full ARNs when KMS_LEGACY_ACCOUNT_ID is set, so the app in the new account can still use keys in the old one. Newly created keys are stored as ARNs from the start. No-op when the env var isn't set.

  • Staging host check bypass (utils.ts) — skip hostname validation when NEXT_PUBLIC_APP_ENV=staging since we don't have the final custom domains yet. Prod is untouched. Tracked with a TODO for removal after DNS cutover.

  • Test bucket name (hasura/*.spec.ts) — stop hardcoding ASSETS_S3_BUCKET_NAME so the same tests work against both old and new staging buckets.

Checklist

  • I have self-reviewed this PR.
  • I have left comments in the code for clarity.
  • I have added necessary unit tests.
  • I have updated the documentation as needed.

Add resolveKeyId() helper that resolves bare key IDs to full ARNs
using KMS_LEGACY_ACCOUNT_ID env var. New keys store ARN instead of
bare key ID. Backwards compatible — no-op when env var is unset.
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e5b7d9922a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@kborisov-ottofeller kborisov-ottofeller merged commit 536e829 into main Mar 30, 2026
15 checks passed
@kborisov-ottofeller kborisov-ottofeller deleted the CORPLAT-689-separate-developer-portal-account-api branch March 30, 2026 13:01
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.

2 participants