Skip to content

Allow self-hosted relays to opt into wss://#767

Merged
boudra merged 7 commits intomainfrom
fix-relay-tls-opt-in
May 6, 2026
Merged

Allow self-hosted relays to opt into wss://#767
boudra merged 7 commits intomainfrom
fix-relay-tls-opt-in

Conversation

@boudra
Copy link
Copy Markdown
Collaborator

@boudra boudra commented May 5, 2026

Summary

  • Add optional useTls alongside relay endpoints in offers, persisted config, stored host connections, and pairing flows while preserving legacy relay IDs for non-TLS connections.
  • Thread relay TLS through daemon, app, and CLI WebSocket URL creation so self-hosted relays can use wss:// without changing endpoint semantics.
  • Expose PASEO_RELAY_USE_TLS=true, paseo daemon start --relay-use-tls, daemon status scheme display, and self-hosted nginx documentation.

Closes #748
Refs #460

Test plan

  • npm run typecheck
  • npm run lint
  • npm run build:daemon
  • npm run format
  • npx vitest run packages/server/src/shared/connection-offer.test.ts --bail=1
  • npx vitest run packages/server/src/server/persisted-config.test.ts --bail=1
  • npx vitest run packages/app/src/types/host-connection.test.ts --bail=1
  • npm run test --workspace=@getpaseo/app -- src/runtime/host-runtime.test.ts --bail=1
  • npx vitest run packages/server/src/shared/daemon-endpoints.test.ts --bail=1
  • npx vitest run packages/server/src/server/relay-transport.test.ts --bail=1
  • npm run test --workspace=@getpaseo/app -- src/utils/test-daemon-connection.test.ts --bail=1
  • npx vitest run packages/server/src/server/config-relay.test.ts --bail=1
  • npx vitest run packages/cli/src/commands/daemon/local-daemon.supervision.test.ts --bail=1
  • npx vitest run packages/relay/src/live-relay.e2e.test.ts --bail=1 (live relay test is gated and skipped unless RUN_LIVE_RELAY_E2E=1; local TLS cert harness intentionally not added)
  • Manual verification against a real nginx-fronted TLS relay

@boudra boudra force-pushed the fix-relay-tls-opt-in branch 3 times, most recently from 71352f1 to 81d3fac Compare May 6, 2026 08:27
@boudra boudra force-pushed the fix-relay-tls-opt-in branch from 81d3fac to 3575410 Compare May 6, 2026 09:08
@boudra boudra merged commit 2e45650 into main May 6, 2026
16 checks passed
@boudra boudra deleted the fix-relay-tls-opt-in branch May 6, 2026 09:25
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.

Design contradictions: relay trust model vs. wss:// whitelist vs. poor error feedback

1 participant