You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
harden deploy OAuth redirect smoke check to fail fast when WEBAPP_EXPECTED_CLIENT_ID is missing
compare auth-config client id against configured secret with explicit mismatch message
align README env var guidance for redirect/client-id/backend URL semantics
document the stricter deploy smoke behavior in changelog
Track split note
Track A (runtime/test stabilization) was inspected and intentionally skipped in this cycle because the origin/main...chore/root-main-aligned package-level diff was formatting-only (no runtime/contract token changes).
Verification
npm run lint
npm run type:check
npm run test --workspace=packages/backend -- tests/unit/utils/authHealth.test.ts tests/unit/utils/oauthRedirectUri.test.ts
Summary by CodeRabbit
Release Notes
Bug Fixes
Deployment workflow now fails fast with explicit error messages when OAuth authentication configuration is missing or mismatched.
Documentation
Updated environment variable guidance to clarify that OAuth client ID should be configured via deployment secrets.
Chores
Enhanced deployment workflow error detection and reporting for OAuth configuration validation.
Updates the OAuth smoke tests in the deploy workflow to guard the WEBAPP_EXPECTED_CLIENT_ID secret with early validation that errors if missing. Renames local variable from expected_client_id to auth_config_client_id and adjusts validation logic accordingly. Updates README and changelog documentation.
Introduces guarded optional variable configured_expected_client_id from the WEBAPP_EXPECTED_CLIENT_ID secret with early failure check if missing. Renames local variable from expected_client_id to auth_config_client_id extracted from auth-config payload. Updates validation logic to compare auth-config client ID against the configured value and propagates it after validation. Error messages now reference WEBAPP_EXPECTED_CLIENT_ID secret on mismatch.
Documentation Updates CHANGELOG.md, README.md
Adds changelog entry documenting that deploy workflow OAuth smoke tests now fail fast when WEBAPP_EXPECTED_CLIENT_ID is missing and report explicit auth-config client-id mismatches. Updates README environment variable descriptions to clarify that WEBAPP_EXPECTED_CLIENT_ID is recommended via deployment secret and simplifies descriptions for WEBAPP_REDIRECT_URI and WEBAPP_BACKEND_URL.
The title 'fix(deploy): harden oauth smoke secret contract' directly reflects the main changes: hardening OAuth smoke tests to better validate secrets and fail fast when required values are missing.
Docstring Coverage
✅ Passed
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check
✅ Passed
Check skipped - CodeRabbit’s high-level summary is enabled.
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
✨ Finishing Touches
📝 Generate docstrings (stacked PR)
📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
Create PR with unit tests
Post copyable unit tests in a comment
Commit unit tests in branch fix/deploy-secret-smoke-hardening
📝 Coding Plan
Generate coding plan for human review comments
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
WEBAPP_EXPECTED_CLIENT_IDis missingTrack split note
runtime/test stabilization) was inspected and intentionally skipped in this cycle because theorigin/main...chore/root-main-alignedpackage-level diff was formatting-only (no runtime/contract token changes).Verification
npm run lintnpm run type:checknpm run test --workspace=packages/backend -- tests/unit/utils/authHealth.test.ts tests/unit/utils/oauthRedirectUri.test.tsSummary by CodeRabbit
Release Notes
Bug Fixes
Documentation
Chores