Skip to content

feat(module): tell the identity module about sign-ins TNT makes itself - #118

Merged
m1ngsama merged 2 commits into
mainfrom
feat/identity-notifications
Oct 15, 2026
Merged

m1ngsama merged 2 commits into
mainfrom
feat/identity-notifications

Conversation

@m1ngsama

Copy link
Copy Markdown
Owner

Needs your call:

  • The stderr line for a full module queue now reads dropped N notifications instead of dropped N presence events, since the new records share that queue (src/module_runtime.c).

Recognition by a bound SSH key, binding a key and :logout happen inside TNT, so m1ngsama ID's activity log could not record them. Refs #117.

  • The identity:write module now receives identity.recognized when a session signs in by its bound key, identity.key_bound when :login binds a new key (with previous_handle when it moves from another handle), and identity.signed_out on :logout (with forgot_key and the fingerprint). Exec sessions recognised by key send nothing.
  • Version 1.8.0. make test passes, with 35 identity checks.

The identity:write module now receives three notifications, so it can
report every identity change to m1ngsama ID (#117):

- identity.recognized when a bound SSH key signs an interactive session in
  at connect. Exec requests recognised by key send nothing.
- identity.key_bound when identity.verified binds a key that was not bound
  to that handle, with previous_handle when the key moved.
- identity.signed_out on :logout, with forgot_key and the fingerprint when
  a key was unbound.

Like presence records they open no response window and are dropped when
the module's queue is full; the drop count on standard error now reads
"dropped N notifications".
@m1ngsama
m1ngsama merged commit 972f3e6 into main Oct 15, 2026
4 checks passed
@m1ngsama
m1ngsama deleted the feat/identity-notifications 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.

1 participant