Skip to content

fix(onboarding): explain Relay setup failures without side effects - #223

Merged
abruption merged 3 commits into
mainfrom
fix/210-relay-guidance
Sep 27, 2026
Merged

abruption merged 3 commits into
mainfrom
fix/210-relay-guidance

Conversation

@abruption

Copy link
Copy Markdown
Owner

Summary

Add manager-aware Relay dependency/runtime guidance without installing anything. Add fixed, evidence-backed login/enrollment/pairing/policy/native/unreachable hints while preserving existing connection reasons and uncertain-send semantics. Document the minimal hosted flow in four languages.

Closes #210

Type

  • fix

Checklist

  • python3 cc_peer.py list works locally (live-session inspection not performed)
  • python3 cc_peer.py list --host <a real host> works over SSH (out of scope)
  • --dry-run resolves a target without posting anything (covered by existing mocked contracts; no live target)
  • Commits follow Conventional Commits
  • Docs updated if behavior changed
  • No secrets, tokens, or session keys in the diff (synthetic sentinels only)

Verified against

macOS arm64; Python 3.14.7, websockets 17.1; Node 22.14.0 for Control. Linux/Windows matrix results are left to PR CI, not claimed from this machine.

Full Python suite: 545 tests, 12 skipped. Focused setup/transport tests: 24. Documentation: 10 tests; generated standalone check. Fixtures cover pipx/uv/venv/standalone ambiguity, old Python, missing extra/login, explicit device-not-found and unknown failures.

Notes

No automatic dependency installation, login, account/device mutation or retry. Generic 403/404 or no_authenticated_route never proves the receiver is stopped. Skills/plugins are not the Relay runtime. Local/SSH remains dependency-light.

Prepared in an isolated worktree from main 03d4bd4. No merge, release, production deployment, real send or ACK test is included. CI status is independent of the local checks above.

@abruption abruption added this to the v1.0.2 milestone Sep 27, 2026
@gitguardian

gitguardian Bot commented Sep 27, 2026

Copy link
Copy Markdown

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secret in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
37659088 Triggered Authentication Tuple b418635 tests/relay/test_onboarding_guidance.py View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

@abruption

Copy link
Copy Markdown
Owner Author

Investigated GitGuardian incident 37659088 against PR head b4186351b9d663dbe6ab236d56edd2b19a5eeb58.

This is a false positive in a diagnostic-mapping test, not an authentication credential:

  • The flagged line 27 pairs the public error code login_expired with the UI category login. The loop explicitly unpacks reason, category and checks with_guidance(); these are not username/password values.
  • The corresponding mapping is defined in guidance.py. No credential is created or used by this case.
  • The nearby SECRET literal is a synthetic unknown-error sentinel. The HTTP fixture patches urllib.request.build_opener and uses relay.example.test; it does not authenticate to a real service.

Suggested disposition: mark this specific incident as false positive after maintainer review. No credential revocation or history rewrite is warranted for these literals. This comment does not dismiss the dashboard incident or disable/bypass secret scanning.

@abruption
abruption merged commit d33ca9b into main Sep 27, 2026
24 checks passed
@abruption
abruption deleted the fix/210-relay-guidance branch September 27, 2026 05:21
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.

fix(onboarding): provide actionable Relay dependency and connection diagnostics

1 participant