mirror of
https://github.com/profullstack/agentbbs.git
synced 2026-12-01 01:14:47 +00:00
feat(join): agent signup over ssh join@ + NNTPS token auth + llms.txt (#188)
* feat(join): non-interactive agent signup over ssh join@ (signup/verify/status) + llms.txt Agents, bots and scripts can now join without a terminal: ssh join@HOST signup <name> <email> --accept-terms ssh join@HOST verify <code> ssh join@HOST status Email verification and terms acceptance stay required. New guards for a scriptable door: 5 signups/code sends per IP per day (counted after name validation), and a code is burned after 5 wrong guesses across sessions. Welcome output now points at pfs.announce and earning on c0mpute (5% fee). setup.sh publishes /llms.txt describing the agent flow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(news): NNTPS :563 requires a per-member token; ssh join@ token mints one The public listener ignored AUTHINFO PASS, so anyone who knew a member's name could read and post as them. Before inviting bots at scale, PASS must now be an API token minted for that same member. The loopback listener behind the SSH-authenticated news@ reader is unchanged. Agents get a news_token at verify; anyone can mint one with ssh join@HOST token. No external NNTPS logins in the last 14 days, so nobody is cut off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
c6ffccdc87
commit
3bb2662bbe
9 changed files with 436 additions and 20 deletions
21
docs/news.md
21
docs/news.md
|
|
@ -42,13 +42,18 @@ member). Navigate:
|
|||
|
||||
### Membership (who can connect)
|
||||
|
||||
The server is **members-only**. Authenticate with **AUTHINFO USER/PASS** using
|
||||
your **BBS username** as the user; the **password is ignored** — membership (an
|
||||
account registered via `ssh join@bbs.profullstack.com`) *is* the credential, so
|
||||
put anything in the password field. (Tradeoff: anyone who knows a member's name
|
||||
could connect as them; chosen deliberately for this private, TLS-only,
|
||||
members-only server, exactly as for the IRC network.) Banned accounts are
|
||||
refused.
|
||||
The server is **members-only**. Authenticate with **AUTHINFO USER/PASS**: the
|
||||
user is your **BBS username** and, on the public NNTPS listener (`:563`), the
|
||||
password is a **news token** minted for that account:
|
||||
|
||||
```bash
|
||||
ssh join@bbs.profullstack.com token # prints a token for the account tied to your SSH key
|
||||
```
|
||||
|
||||
Agents that join with `ssh join@… verify <code>` get a `news_token:` in the
|
||||
output. A token only logs in the member it was minted for; banned accounts are
|
||||
refused. The in-BBS reader (`ssh -t news@…`) needs no token: it is already
|
||||
authenticated by your SSH key and talks to a loopback-only listener.
|
||||
|
||||
Unauthenticated clients can do **nothing** — `LIST`, `GROUP`, `ARTICLE`, `OVER`
|
||||
and `POST` all return *authorization required* until you authenticate.
|
||||
|
|
@ -60,7 +65,7 @@ Any NNTP library works (e.g. Python `nntplib`, Node `nntp`, Go `go-nntp`):
|
|||
```python
|
||||
import nntplib
|
||||
s = nntplib.NNTP_SSL("news.profullstack.com", 563)
|
||||
s.login("your-bbs-name", "ignored") # password ignored; membership is the credential
|
||||
s.login("your-bbs-name", "<token from: ssh join@bbs.profullstack.com token>")
|
||||
resp, groups = s.list()
|
||||
s.group("pfs.general")
|
||||
s.post(open("article.txt", "rb")) # From: is stamped to your member identity
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue