Skip to content

5846 add admin console deployment and cloudgov runtime configuration - #6223

Open
raftmsohani wants to merge 5 commits into
developfrom
5846-7-add-admin-console-deployment-and-cloudgov-runtime-configuration
Open

raftmsohani wants to merge 5 commits into
developfrom
5846-7-add-admin-console-deployment-and-cloudgov-runtime-configuration

Conversation

@raftmsohani

@raftmsohani raftmsohani commented Nov 13, 2026 •

Copy link
Copy Markdown

Summary of Changes

Adds independent Cloud.gov deployment for the standalone tdp-admin console, allowing admin releases and rollbacks without deploying the user-facing frontend or backend.

  • Adds a Cloud Foundry manifest and Node 22/Yarn 4.6.0 buildpack configuration, with bounded build concurrency and a backend-independent /api/health endpoint.
  • Adds source packaging and deployment scripts for initial and rolling deployments, including configuration checks, private backend networking, same-origin /admin-auth routing, and post-deployment health checks.
  • Adds server-only runtime auth URLs and public-origin handling so login redirects and backend requests use the target environment's configuration.
  • Adds the Deploy admin-raft PR label trigger and a separate CircleCI workflow with secret scanning, admin checks, revision verification, and serialized deployments. Adds deployment regression tests, production smoke checks, and setup/rollback documentation.

Pull request closes #5846.

How to Test

Confirm all checks pass without skipped tests. The production smoke test starts its own mock backend and verifies runtime URLs, login redirects, health checks, and anonymous access protection. The deployment tests use mocked Cloud Foundry commands and do not deploy an app.

Configuration follow-up before deployment: scripts/deploy-admin.sh still checks KEYCLOAK_TDP_ADMIN_CLIENT_SECRET, while the merged Django configuration reads KC_TDP_ADMIN_CLIENT_SECRET. Align the script, tests, and deployment documentation before testing an environment that uses the renamed variable without a bound tdp_admin_client_secret credential.

  1. Configure the Raft dev environment using the admin deployment prerequisites: admin hostname/DNS/TLS, Django's admin origin and proxy token, and the Keycloak admin client and callback URLs. Confirm the existing CircleCI dev credentials and GitHub CircleCI trigger token are configured.
  2. Add the Deploy admin-raft label to this PR. Verify CircleCI runs secrets-check, test-admin, and deploy-admin-application for the requested PR commit. Confirm the standalone workflow deploys tdp-admin-test in hhs-acf-ofa / tanf-dev without running the full application deployment. Remove and reapply the label to request another deployment.
  3. Open https://tdp-admin-test.app.cloud.gov/api/health and /api/backend-health; both should return HTTP 200 with ok: true. Open /admin-auth/auth_check in a private browser session and confirm authenticated: false.
  4. Open https://tdp-admin-test.app.cloud.gov/login, sign in with an authorized admin test account, and verify /dashboard and /users load. Confirm login returns to the public admin hostname. Log out, then verify anonymous requests cannot access admin data.
  5. Repeat the deployment to exercise the rolling update path. Verify the admin route remains available and health checks pass. In the test environment, follow the rollback instructions with a known-good admin revision and repeat the health/login checks.
  6. Attach screenshots or a demo GIF showing the successful CircleCI workflow, health responses, admin login, dashboard/users pages, and logout behavior. Use test data and exclude secrets.

Demo GIF(s) and screenshots for testing procedure: attach after deployment validation.

Deliverables

More details on how deliverables herein are assessed included here.

Deliverable 1: Accepted Features

Checklist of ACs:

  • [insert ACs here]
  • lfrohlich and/or adpennington confirmed that ACs are met.

Deliverable 2: Tested Code

  • Are all areas of code introduced in this PR meaningfully tested?
    • If this PR introduces backend code changes, are they meaningfully tested?
    • If this PR introduces frontend code changes, are they meaningfully tested?
  • Are code coverage minimums met?
    • Frontend coverage: [insert coverage %] (see CodeCov Report comment in PR)
    • Backend coverage: [insert coverage %] (see CodeCov Report comment in PR)

Deliverable 3: Properly Styled Code

  • Are backend code style checks passing on CircleCI?
  • Are frontend code style checks passing on CircleCI?
  • Are code maintainability principles being followed?

Deliverable 4: Accessible

  • Does this PR complete the epic?
  • Are links included to any other gov-approved PRs associated with epic?
  • Does PR include documentation for Raft's a11y review?
  • Did automated and manual testing with iamjolly and ttran-hub using Accessibility Insights reveal any errors introduced in this PR?

Deliverable 5: Deployed

  • Was the code successfully deployed via automated CircleCI process to development on Cloud.gov?

Deliverable 6: Documented

  • Does this PR provide background for why coding decisions were made?
  • If this PR introduces backend code, is that code easy to understand and sufficiently documented, both inline and overall?
  • If this PR introduces frontend code, is that code easy to understand and sufficiently documented, both inline and overall?
  • If this PR introduces dependencies, are their licenses documented?
  • Can reviewer explain and take ownership of these elements presented in this code review?

Deliverable 7: Secure

  • Does the OWASP Scan pass on CircleCI?
  • Do manual code review and manual testing detect any new security issues?
  • If new issues detected, is investigation and/or remediation plan documented?

Deliverable 8: User Research

Research product(s) clearly articulate(s):

  • the purpose of the research
  • methods used to conduct the research
  • who participated in the research
  • what was tested and how
  • impact of research on TDP
  • (if applicable) final design mockups produced for TDP development

@raftmsohani raftmsohani self-assigned this Nov 13, 2026
@raftmsohani raftmsohani linked an issue Nov 13, 2026 that may be closed by this pull request
13 tasks
@codecov

codecov Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.94%. Comparing base (8831f70) to head (e19d954).
⚠️ Report is 2 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #6223   +/-   ##
========================================
  Coverage    94.94%   94.94%           
========================================
  Files          643      644    +1     
  Lines        34861    34902   +41     
  Branches       641      641           
========================================
+ Hits         33098    33139   +41     
  Misses        1649     1649           
  Partials       114      114           
Flag Coverage Δ
dev-backend 95.21% <ø> (+<0.01%) ⬆️
dev-frontend 92.14% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 125fe96...e19d954. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@raftmsohani raftmsohani added the Deploy admin-raft Trigger the CircleCI admin deployment to Raft dev label Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Deploy admin-raft Trigger the CircleCI admin deployment to Raft dev

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7. Add Admin Console Deployment and Cloud.gov Runtime Configuration

1 participant