About
Resources
Blog
Docs
Source
Status
Social
Discord
IRC
Bluesky
X/Twitter
Contact
team@tangled.org
security@tangled.org
Legal
Terms of Service
Privacy Policy
Sign in
Join now
rerouted
rerouteholdings.llc
/
Star
Starred
Star
0
Something went wrong. Try again.
Fork
0
Eye filled
Watch
Watching
Watch
Reference server for Tieroute protocol.
Star
Starred
Star
0
Something went wrong. Try again.
Fork
0
Eye filled
Watch
Watching
Watch
Overview
Overview
Issues
Issues
Pulls
Pulls
Pipelines
Pipelines
rerouted
/
internal
/
api
95 files
at
main
nocarrier.fail
·
Keep hub receipt times from going back
·
20h ago
c9811a6d
account_test.go
rerouted: the reference Tieroute homeserver
1w ago
account.go
Serve wire version 2 beside version 1: the server document lists both API bases and both server keys, and a version 2 API under /.well-known/tieroute/v2/ (REROUTED_API_PATH_V2) registers, signs in, and keeps chains, contacts, key packages with their kp-bindings, delivery, inbox, and stream (tieroute.v2) for version 2 identities, with composite signatures checked against the chain, and federates through version 2 S2S. Groups and their hub answer 501 there for now
1w ago
api_test.go
Serve wire version 2 beside version 1: the server document lists both API bases and both server keys, and a version 2 API under /.well-known/tieroute/v2/ (REROUTED_API_PATH_V2) registers, signs in, and keeps chains, contacts, key packages with their kp-bindings, delivery, inbox, and stream (tieroute.v2) for version 2 identities, with composite signatures checked against the chain, and federates through version 2 S2S. Groups and their hub answer 501 there for now
1w ago
api.go
Rotate server keys before they expire
20h ago
backups_test.go
rerouted: the reference Tieroute homeserver
1w ago
backups.go
Reload settings on SIGHUP, and add log settings
3d ago
bench_test.go
Benchmark chain lookups while group deliveries are being written
1w ago
chaincache_test.go
Remember chains that validated, by a hash of their exact entries, so a send doesn't re-verify each recipient's whole chain several times
1w ago
chaincache.go
Remember chains that validated, by a hash of their exact entries, so a send doesn't re-verify each recipient's whole chain several times
1w ago
clock_test.go
rerouted: the reference Tieroute homeserver
1w ago
clock.go
rerouted: the reference Tieroute homeserver
1w ago
community_chain.go
Honor revoked and over-long server keys
20h ago
community_fresh_test.go
Check community signers on a freshly fetched chain
20h ago
community_groups.go
Keep hub receipt times from going back
20h ago
community_icon_test.go
Community icons (SPEC §16.2.3, spec/api/community.md): create and set-name take an optional icon, a closed community-icon of mime (image/png, image/jpeg, or image/webp), a 32-byte hash, and a size of 1 to 262144, and a set-name without one removes it, as the whole state. POST icon/upload, for administrate, takes the bytes with their type as Content-Type and answers their SHA-256: 413 too-large over 256 KiB, 400 bad-request for another type or bytes that don't start like it. GET icon/{hash}, with no session, serves the icon the current state names, and 404 not-found otherwise. GET preview gains icon. Icons live in a new cm_icons table, created like the other community tables (no schema bump), and maintenance drops those uploaded over 24 hours ago that the state doesn't name
6d ago
community_icon.go
Community icons (SPEC §16.2.3, spec/api/community.md): create and set-name take an optional icon, a closed community-icon of mime (image/png, image/jpeg, or image/webp), a 32-byte hash, and a size of 1 to 262144, and a set-name without one removes it, as the whole state. POST icon/upload, for administrate, takes the bytes with their type as Content-Type and answers their SHA-256: 413 too-large over 256 KiB, 400 bad-request for another type or bytes that don't start like it. GET icon/{hash}, with no session, serves the icon the current state names, and 404 not-found otherwise. GET preview gains icon. Icons live in a new cm_icons table, created like the other community tables (no schema bump), and maintenance drops those uploaded over 24 hours ago that the state doesn't name
6d ago
community_join_test.go
Community servers (SPEC §16, spec/api/community.md): REROUTED_COMMUNITIES names the server names this process serves, each with one community, its own server document and composite key, told apart by Host. Every endpoint: sign-in with chains fetched from members' homeservers, create with the operator's creation code or a move-in, the chain with sequenced appends, code joins whose join proof and code-signed commit-request are checked before the hub sequences the external commit, approval joins, key packages, the hub for the members group and restricted channels' groups, send with slow mode, timeouts and write roles enforced and per-channel sequence numbers, the inbox and stream, history segments, files under the community's quota, members' chains, kicks, bans, deletes, reports, and voice signaling over the stream to the SFU, with voice/move
1w ago
community_join.go
Re-creating a community's groups (SPEC §16.5, spec/api/community.md, proposed): POST groups/create with replaces registers a group that takes over from the members group or a restricted channel's group, for the owner or a member with administrate. From then on the old group takes no commits, sends, Welcomes, or registrations (409 replaced, naming the new group), and GET groups/{group}/info answers the same; its commits and trees stay readable. The join preview and code joins move to the new members group, and channels' sequence numbers go on. GET members lists the membership, for the owner and administrators. A commit racing the swap is refused in the same transaction
5d ago
community_misc.go
Check community signers on a freshly fetched chain
20h ago
community_mod_test.go
GET groups/{group}/info never serves an earlier epoch's GroupInfo (SPEC §16.6, spec/api/community.md, proposed): a commit to a restricted channel's group may carry no GroupInfo, and the hub kept the previous epoch's next to the new epoch number, a pair a code joiner's checks refuse. Such a commit now clears the stored GroupInfo and tree, and the endpoint answers 404 not-found until a commit brings one. The members group always carries one, so code joins are unaffected. TestCommunityRestrictedGroups
5d ago
community_recreate_test.go
Re-creating a community's groups (SPEC §16.5, spec/api/community.md, proposed): POST groups/create with replaces registers a group that takes over from the members group or a restricted channel's group, for the owner or a member with administrate. From then on the old group takes no commits, sends, Welcomes, or registrations (409 replaced, naming the new group), and GET groups/{group}/info answers the same; its commits and trees stay readable. The join preview and code joins move to the new members group, and channels' sequence numbers go on. GET members lists the membership, for the owner and administrators. A commit racing the swap is refused in the same transaction
5d ago
community_send.go
Re-creating a community's groups (SPEC §16.5, spec/api/community.md, proposed): POST groups/create with replaces registers a group that takes over from the members group or a restricted channel's group, for the owner or a member with administrate. From then on the old group takes no commits, sends, Welcomes, or registrations (409 replaced, naming the new group), and GET groups/{group}/info answers the same; its commits and trees stay readable. The join preview and code joins move to the new members group, and channels' sequence numbers go on. GET members lists the membership, for the owner and administrators. A commit racing the swap is refused in the same transaction
5d ago
community_test.go
Add POST groups/undo for refused community commits
20h ago
community_undo_test.go
Add POST groups/undo for refused community commits
20h ago
community_voice_test.go
voice-state as a stream opens (spec/api/community.md, proposed): after the stored items, the community server sends each voice channel with people in it whose group the device is registered for, so a device that connects after people joined sees them. It went out only on a change, so someone who opened the app later saw an occupied channel as empty. voice-state frames are built and queued in order (voiceRooms.sent), so a stream never gets an older one after a newer
6d ago
community_voice.go
voice-state as a stream opens (spec/api/community.md, proposed): after the stored items, the community server sends each voice channel with people in it whose group the device is registered for, so a device that connects after people joined sees them. It went out only on a change, so someone who opened the app later saw an occupied channel as empty. voice-state frames are built and queued in order (voiceRooms.sent), so a stream never gets an older one after a newer
6d ago
community.go
Add POST groups/undo for refused community commits
20h ago
contacts_manage.go
Serve wire version 2 beside version 1: the server document lists both API bases and both server keys, and a version 2 API under /.well-known/tieroute/v2/ (REROUTED_API_PATH_V2) registers, signs in, and keeps chains, contacts, key packages with their kp-bindings, delivery, inbox, and stream (tieroute.v2) for version 2 identities, with composite signatures checked against the chain, and federates through version 2 S2S. Groups and their hub answer 501 there for now
1w ago
contacts_test.go
Count a contact's group claims against the claim limit
20h ago
contacts.go
Count a contact's group claims against the claim limit
20h ago
delivery_test.go
Store each delivery whole or not at all, and keep send results in the database
1w ago
delivery.go
Keep hub receipt times from going back
20h ago
devices_test.go
rerouted: the reference Tieroute homeserver
1w ago
devices.go
Let the recovery code undo a device-signed migrate
20h ago
federation_test.go
rerouted: the reference Tieroute homeserver
1w ago
federation.go
Add Prometheus metrics with aggregate counts only
3d ago
firehose_test.go
rerouted: the reference Tieroute homeserver
1w ago
firehose.go
rerouted: the reference Tieroute homeserver
1w ago
flow_test.go
rerouted: the reference Tieroute homeserver
1w ago
fork_test.go
rerouted: the reference Tieroute homeserver
1w ago
groups_test.go
Keep hub receipt times from going back
20h ago
groups_v2_test.go
Rotate server keys before they expire
20h ago
handles_test.go
Handle changes on both wire versions (SPEC 5.3): a set-handle to a name under the handle domain takes it, if it's free and not reserved (409 handle-taken otherwise, nothing stored), so the new handle resolves; the name it replaces, or the one a move away leaves, is held for the identity for 30 days, resolving as no longer valid, and then freed by maintenance. rerouted keep-handle keeps a name reserved instead. A recovery-signed entry is never refused over a name
1w ago
handles.go
Handle changes on both wire versions (SPEC 5.3): a set-handle to a name under the handle domain takes it, if it's free and not reserved (409 handle-taken otherwise, nothing stored), so the new handle resolves; the name it replaces, or the one a move away leaves, is held for the identity for 30 days, resolving as no longer valid, and then freed by maintenance. rerouted keep-handle keeps a name reserved instead. A recovery-signed entry is never refused over a name
1w ago
invites.go
Stop ignoring storage errors in the API
1w ago
link.go
GET link/proofs (SPEC §7.2, spec/api/client-stage3.md, proposed): every link proof waiting for the caller's own identity, parked keys included, so a device that showed an approval code finds the new device's proof without knowing its key. Session required; only the identity's own proofs, kept as long as before. TestV2Chain
6d ago
maintenance.go
Rotate server keys before they expire
20h ago
media_test.go
rerouted: the reference Tieroute homeserver
1w ago
media.go
Reload settings on SIGHUP, and add log settings
3d ago
migrate_test.go
Let the recovery code undo a device-signed migrate
20h ago
migrate.go
Let the recovery code undo a device-signed migrate
20h ago
move_atomic_test.go
rerouted: the reference Tieroute homeserver
1w ago
move_concurrent_test.go
rerouted: the reference Tieroute homeserver
1w ago
move_prefix_test.go
rerouted: the reference Tieroute homeserver
1w ago
move_reservation_store_test.go
rerouted: the reference Tieroute homeserver
1w ago
move_reservation_test.go
Rotate server keys before they expire
20h ago
move_retry_test.go
rerouted: the reference Tieroute homeserver
1w ago
move_return_test.go
rerouted: the reference Tieroute homeserver
1w ago
move_test.go
rerouted: the reference Tieroute homeserver
1w ago
move_unavailable_test.go
rerouted: the reference Tieroute homeserver
1w ago
origin_test.go
rerouted: the reference Tieroute homeserver
1w ago
outbox_test.go
Give each destination its own outbox worker, and send a queued request right away, so a slow or unreachable server holds up only its own deliveries
1w ago
pagination_test.go
Validate list limits on GET inbox and GET contacts
1w ago
presence.go
Serve wire version 2 beside version 1: the server document lists both API bases and both server keys, and a version 2 API under /.well-known/tieroute/v2/ (REROUTED_API_PATH_V2) registers, signs in, and keeps chains, contacts, key packages with their kp-bindings, delivery, inbox, and stream (tieroute.v2) for version 2 identities, with composite signatures checked against the chain, and federates through version 2 S2S. Groups and their hub answer 501 there for now
1w ago
profiles_test.go
rerouted: the reference Tieroute homeserver
1w ago
profiles.go
Serve wire version 2 beside version 1: the server document lists both API bases and both server keys, and a version 2 API under /.well-known/tieroute/v2/ (REROUTED_API_PATH_V2) registers, signs in, and keeps chains, contacts, key packages with their kp-bindings, delivery, inbox, and stream (tieroute.v2) for version 2 identities, with composite signatures checked against the chain, and federates through version 2 S2S. Groups and their hub answer 501 there for now
1w ago
push_test.go
Push chain alarms to the identity's devices
20h ago
push.go
Push chain alarms to the identity's devices
20h ago
recovery_forget_test.go
rerouted: the reference Tieroute homeserver
1w ago
recovery_hazards_test.go
rerouted: the reference Tieroute homeserver
1w ago
recovery_wraps_errors_test.go
rerouted: the reference Tieroute homeserver
1w ago
recovery_wraps_race_test.go
rerouted: the reference Tieroute homeserver
1w ago
recovery_wraps_test.go
rerouted: the reference Tieroute homeserver
1w ago
reports_test.go
Check a forwarded report's reason length
2d ago
reports.go
Check a forwarded report's reason length
2d ago
serverkeys_test.go
Rotate server keys before they expire
20h ago
servers_test.go
Relay other servers' documents as served
2d ago
session.go
Let the recovery code undo a device-signed migrate
20h ago
sessions_test.go
Stop ignoring storage errors in the API
1w ago
stats.go
Send push notifications to the Reroute iPhone app
2d ago
stream_test.go
rerouted: the reference Tieroute homeserver
1w ago
stream.go
Send push notifications to the Reroute iPhone app
2d ago
testclock_off.go
rerouted: the reference Tieroute homeserver
1w ago
testclock.go
rerouted: the reference Tieroute homeserver
1w ago
tombstone_lookup_test.go
An old home answers its own users with a mover's current chain, from the new home, instead of the tombstone that stops at the move; fresh=1 asks the new home, and requests without a session still use only what's here. A group member on the old home judged the group against months-old history and paused it
1w ago
turn_test.go
rerouted: the reference Tieroute homeserver
1w ago
turn.go
Reload settings on SIGHUP, and add log settings
3d ago
unmigrate_test.go
Let the recovery code undo a device-signed migrate
20h ago
v2_parity_test.go
The wire version 2 API at parity with version 1, tested: account data and recovery wraps decided against a version 2 chain (a rotation staged, appended recovery-signed, and promoted, with composite commitments), backups, profiles signed with composite device keys and their pictures, files and profiles across servers through version 2 media/fetch and profile/fetch, presence between version 2 contacts on two servers, call relay credentials, a move across three servers whose contact's server learns it from identity/push, with deliveries both ways from the new home, and a recovery-signed move back that clears the earlier stay but its recovery wrap. Every S2S endpoint is routed on version 2. The README says version 2 has every endpoint
1w ago
v2_test.go
Rotate server keys before they expire
20h ago
vouch_test.go
The spec's wire version 2 vouch.json and basis.json, copied into testdata/vectors/v2, with vouch.json's cases run through the version 2 acceptance path (SPEC §6.5)
1w ago
vouch.go
Let the recovery code undo a device-signed migrate
20h ago
welcome_test.go
Test that Welcomes never pass by the groups allowlist
20h ago
wellknown.go
Rotate server keys before they expire
20h ago
wireversion.go
Groups and their hub in wire version 2 (SPEC §11.5, §11.6, §11.11): groups/create, groups/epoch-key, GET groups/{group}/commits, and S2S commit, commit/fetch, group/epoch-key, and group/register on the version 2 API, with composite epoch keys. A commit-request or epoch-key carries its composite key in k, next and reg are composite keys whose Ed25519 component is a valid public key, and receipts are signed with the composite server key. Commits, Welcomes, and messages go through version 2 send, inbox, stream, and deliver under the groups allowlist, and version 2 send refuses an MLS PublicMessage (SPEC §10.1)
1w ago