(AI generated. Not reviewed.)
Device Pairing Smoke
Use this after backend pairing changes or before a release candidate.
- Launch the Mac host with remote pairing enabled and a configured TLS SPKI pin.
- On the Mac, sign in as the owner and open the pairing flow.
- Confirm the QR payload shows a fresh code, expiry, and the expected reachable HTTPS host.
- Scan or enter the pairing payload from an iPad/iPhone/visionOS client.
- Confirm pairing succeeds and the client can browse a library route immediately after receiving its device token.
- Reconnect with the same paired device and confirm browsing still works without re-pairing.
- Revoke the paired device on the Mac and confirm the client’s next library request fails with
401. - Confirm non-HTTPS remote pairing, a missing/mismatched SPKI configuration, and non-loopback bootstrap-token use are all rejected fail-closed.
Reference: the automated backend gate for this flow lives in
fichero-server/tests/integration/test_device_pairing_e2e.py.