Skip to content

feat(gateway): report TNT identity events to m1ngsama ID - #119

Merged
m1ngsama merged 1 commit into
mainfrom
feat/gateway-events
Oct 15, 2026
Merged

m1ngsama merged 1 commit into
mainfrom
feat/gateway-events

Conversation

@m1ngsama

Copy link
Copy Markdown
Owner

TNT 1.8 tells the gateway about terminal sign-ins and key changes; this sends them to m1ngsama ID's activity log. Closes #117.

  • :login reports tnt.signed_in; identity.recognized, identity.key_bound and identity.signed_out become tnt.key_recognized, tnt.key_bound and tnt.signed_out with their fingerprint details.
  • The gateway looks up each handle's sub once and posts batches to POST /internal/events as tnt with TNT_GATEWAY_EVENTS_SECRET. Without the secret it reports nothing.
  • Pending events are kept in $TNT_STATE_DIR/gateway-events.json and retried every 30 seconds, so a restart or an outage loses none. Events for a handle m1ngsama ID does not know are dropped and logged.

Checked locally with TNT 1.8 and a local id Worker: :login twice, key binding, recognition and :logout appear in that order on /me/activity.

@m1ngsama
m1ngsama merged commit dadd82a into main Oct 15, 2026
@m1ngsama
m1ngsama deleted the feat/gateway-events branch October 15, 2026 09:23
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.

TNT identity actions are missing from m1ngsama ID's account activity

1 participant