Skip to content

chore(id): retire legacy issuer defaults - #1480

Merged
DeliciousBuding merged 4 commits into
masterfrom
fix/id-domain-migration
Aug 1, 2026
Merged

chore(id): retire legacy issuer defaults#1480
DeliciousBuding merged 4 commits into
masterfrom
fix/id-domain-migration

Conversation

@DeliciousBuding

@DeliciousBuding DeliciousBuding commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

Replaces active AgentHub defaults, examples, deployment templates, and fixture contracts with the sole TokenDance ID issuer id.tokendancelab.com. The retired id.vectorcontrol.tech hostname is not kept as a redirect or alias. Validation: full hub-server short suite passed; readiness contract passed; focused Desktop, Shared, and Mobile tests passed (28 tests). Evidence level is backend-api plus fixture-unit/readiness; no approved-real login was performed. PowerShell governance gates passed. Base master currently has unrelated coverage/typecheck/mobile-boundary failures; the secret guard also false-positives on issuer URL lines because variable names contain TOKEN and on the tracked .env.hk2.example path; staged added lines were manually verified to contain URLs/placeholders only.

Summary by CodeRabbit

  • Configuration

    • Updated TokenDance ID authentication settings to use the new id.tokendancelab.com issuer across supported applications and deployment environments.
    • Refreshed example configuration values and documentation references.
  • Authentication

    • Updated sign-in authorization and callback references to support the new identity service domain.
  • Tests

    • Updated authentication, deep-linking, readiness, and smoke-test scenarios to validate the new issuer URL.

Copilot AI review requested due to automatic review settings July 30, 2026 13:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@DeliciousBuding, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 22 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 78f75c7c-f8ad-49d4-8570-1104aa5c9c74

📥 Commits

Reviewing files that changed from the base of the PR and between c36da38 and 60d2092.

📒 Files selected for processing (20)
  • .env.example
  • app/desktop/scripts/manual-chat-flow-check.mjs
  • app/desktop/src/__e2e__/teamrun-ui-evidence.spec.ts
  • app/desktop/src/api/hubAuth.test.ts
  • app/mobile-rn/app.config.ts
  • app/mobile-rn/src/integrations/deepLinking.test.ts
  • app/shared/src/testing/e2eDataModeContract.test.ts
  • app/shared/src/testing/e2eDataModeContract.ts
  • app/web/scripts/manual-chat-flow-check.mjs
  • deployments/production/docker-compose.yml
  • hub-server/configs/config.yaml
  • hub-server/deployments/.env.production.example
  • hub-server/deployments/docker-compose.prod.yml
  • hub-server/deployments/docker-compose.us1.yml
  • hub-server/deployments/hk2/.env.example
  • hub-server/deployments/hk2/docker-compose.hk2.yml
  • hub-server/internal/config/config_tokendance.go
  • hub-server/tests/oidc/oidc_smoke_test.go
  • scripts/verify/check-secrets.sh
  • tests/contract/scripts/verify-token-dance-id-login-readiness.ps1
📝 Walkthrough

Walkthrough

The change replaces the TokenDance ID issuer domain across deployment settings, application host handling, authorization fixtures, deep-link tests, OIDC tests, and login-readiness scenarios.

Changes

TokenDance ID issuer domain

Layer / File(s) Summary
Issuer configuration defaults
.env.example, deployments/production/docker-compose.yml, hub-server/configs/config.yaml, hub-server/deployments/*, hub-server/internal/config/config_tokendance.go, app/mobile-rn/app.config.ts
Issuer URL defaults, examples, deployment settings, and the issuer documentation example now use https://id.tokendancelab.com.
Application host handling and fixtures
app/desktop/..., app/mobile-rn/src/integrations/deepLinking.test.ts, app/shared/src/testing/*, app/web/..., hub-server/tests/oidc/oidc_smoke_test.go
Host blocklists, host allowlists, authorization mocks, deep-link fixtures, and OIDC test URLs now use id.tokendancelab.com.
Login readiness scenarios
tests/contract/scripts/verify-token-dance-id-login-readiness.ps1
Blocked, invalid-discovery, secret-like-input, and successful readiness fixtures now use the new issuer domain. The invalid fixture retains its incorrect issuer for mismatch validation.

Estimated code review effort: 2 (Simple) | ~10 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the replacement of legacy TokenDance ID issuer defaults across configuration, deployment, and test fixtures.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/id-domain-migration

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.

❤️ Share

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
tests/contract/scripts/verify-token-dance-id-login-readiness.ps1 (1)

99-99: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Use named parameters for every New-DiscoveryFixture call.

The four calls depend on positional parameter order. Use -Root, -Name, and -Json at each site.

  • tests/contract/scripts/verify-token-dance-id-login-readiness.ps1#L99-L99: name the blocked-discovery fixture arguments.
  • tests/contract/scripts/verify-token-dance-id-login-readiness.ps1#L112-L112: name the invalid-discovery fixture arguments.
  • tests/contract/scripts/verify-token-dance-id-login-readiness.ps1#L125-L125: name the secret-like-input fixture arguments.
  • tests/contract/scripts/verify-token-dance-id-login-readiness.ps1#L138-L138: name the successful-readiness fixture arguments.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@tests/contract/scripts/verify-token-dance-id-login-readiness.ps1` at line 99,
Update every New-DiscoveryFixture call in
tests/contract/scripts/verify-token-dance-id-login-readiness.ps1 to use named
-Root, -Name, and -Json parameters: lines 99-99 for the blocked-discovery
fixture, 112-112 for invalid-discovery, 125-125 for secret-like-input, and
138-138 for successful-readiness. Preserve each call’s existing argument values.

Source: Linters/SAST tools

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@tests/contract/scripts/verify-token-dance-id-login-readiness.ps1`:
- Line 99: Update every New-DiscoveryFixture call in
tests/contract/scripts/verify-token-dance-id-login-readiness.ps1 to use named
-Root, -Name, and -Json parameters: lines 99-99 for the blocked-discovery
fixture, 112-112 for invalid-discovery, 125-125 for secret-like-input, and
138-138 for successful-readiness. Preserve each call’s existing argument values.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: dfc2fe28-62fb-4c71-b24d-dd401036c259

📥 Commits

Reviewing files that changed from the base of the PR and between 2a9d34e and c36da38.

📒 Files selected for processing (21)
  • .env.example
  • app/desktop/scripts/manual-chat-flow-check.mjs
  • app/desktop/src/__e2e__/oidc-login.spec.ts
  • app/desktop/src/__e2e__/teamrun-ui-evidence.spec.ts
  • app/desktop/src/api/hubAuth.test.ts
  • app/mobile-rn/app.config.ts
  • app/mobile-rn/src/integrations/deepLinking.test.ts
  • app/shared/src/testing/e2eDataModeContract.test.ts
  • app/shared/src/testing/e2eDataModeContract.ts
  • app/web/scripts/manual-chat-flow-check.mjs
  • app/web/src/__e2e__/oidc-login.spec.ts
  • deployments/production/docker-compose.yml
  • hub-server/configs/config.yaml
  • hub-server/deployments/.env.production.example
  • hub-server/deployments/docker-compose.prod.yml
  • hub-server/deployments/docker-compose.us1.yml
  • hub-server/deployments/hk2/.env.hk2.example
  • hub-server/deployments/hk2/docker-compose.hk2.yml
  • hub-server/internal/config/config_tokendance.go
  • hub-server/tests/oidc/oidc_smoke_test.go
  • tests/contract/scripts/verify-token-dance-id-login-readiness.ps1

Codex (Delicious233) added 3 commits August 2, 2026 02:07
…list)

check-secrets.sh only allowlists .env.example / .env.production.example
paths; .env.hk2.example tripped the .env-style file rule on validate.
The hk2 directory already distinguishes the file, so the rename keeps
semantics identical.
check-secrets.sh flags any assignment whose variable name contains
"token" (e.g. AGENTHUB_TOKENDANCE_ID_ISSUER_URL) with a non-placeholder
value. Public endpoint URLs are configuration, not credentials — skip
*_URL assignments whose value contains :// (plain or ${VAR:-https://…}
default form). CLIENT_SECRET / *_TOKEN assignments are unaffected.
@DeliciousBuding
DeliciousBuding force-pushed the fix/id-domain-migration branch from 3af6eb2 to 91b8bb4 Compare August 1, 2026 18:07
@DeliciousBuding
DeliciousBuding merged commit 36a24a4 into master Aug 1, 2026
28 checks passed
@DeliciousBuding
DeliciousBuding deleted the fix/id-domain-migration branch August 1, 2026 18:26
DeliciousBuding pushed a commit that referenced this pull request Aug 1, 2026
…wave)

- Hub integration fixtures: merged in #1489
- Edge tests on Linux: merged in #1491 (incl. ACP request-sequence race fix)
- TokenDance ID defaults: merged in #1480 (+ check-secrets.sh *_URL exemption)
- Frontend coverage gate: merged #1490 (web 63.14→66.72) / #1488 (desktop)
- Edge lint debt: merged in #1491 (102→0, zero exclusions, .gitattributes eol)

Remaining: CI policy parser (#1481), Doc SSOT compaction, Desktop typecheck,
shared frontend tests.
DeliciousBuding added a commit that referenced this pull request Aug 1, 2026
…wave) (#1492)

- Hub integration fixtures: merged in #1489
- Edge tests on Linux: merged in #1491 (incl. ACP request-sequence race fix)
- TokenDance ID defaults: merged in #1480 (+ check-secrets.sh *_URL exemption)
- Frontend coverage gate: merged #1490 (web 63.14→66.72) / #1488 (desktop)
- Edge lint debt: merged in #1491 (102→0, zero exclusions, .gitattributes eol)

Remaining: CI policy parser (#1481), Doc SSOT compaction, Desktop typecheck,
shared frontend tests.

Co-authored-by: Codex (Delicious233) <codex@vectorcontrol.tech>
DeliciousBuding added a commit that referenced this pull request Aug 11, 2026
* chore(id): retire legacy issuer defaults

* chore(id): rename hk2 env example to .env.example (secret guard allowlist)

check-secrets.sh only allowlists .env.example / .env.production.example
paths; .env.hk2.example tripped the .env-style file rule on validate.
The hk2 directory already distinguishes the file, so the rename keeps
semantics identical.

* ci(verify): exempt *_URL endpoint assignments from secret-like scan

check-secrets.sh flags any assignment whose variable name contains
"token" (e.g. AGENTHUB_TOKENDANCE_ID_ISSUER_URL) with a non-placeholder
value. Public endpoint URLs are configuration, not credentials — skip
*_URL assignments whose value contains :// (plain or ${VAR:-https://…}
default form). CLIENT_SECRET / *_TOKEN assignments are unaffected.

* docs(id): update hk2 env example copy instructions to renamed file

---------

Co-authored-by: Codex <codex@vectorcontrol.tech>
DeliciousBuding added a commit that referenced this pull request Aug 11, 2026
…wave) (#1492)

- Hub integration fixtures: merged in #1489
- Edge tests on Linux: merged in #1491 (incl. ACP request-sequence race fix)
- TokenDance ID defaults: merged in #1480 (+ check-secrets.sh *_URL exemption)
- Frontend coverage gate: merged #1490 (web 63.14→66.72) / #1488 (desktop)
- Edge lint debt: merged in #1491 (102→0, zero exclusions, .gitattributes eol)

Remaining: CI policy parser (#1481), Doc SSOT compaction, Desktop typecheck,
shared frontend tests.

Co-authored-by: Codex <codex@vectorcontrol.tech>
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