Commit Graph
14 Commits
Author SHA1 Message Date
Claude 12570cb4d7 Add an ACME client: certificates for every TLS server, renewed
[acme] gets certificates from Let's Encrypt, ZeroSSL or any ACME CA and
renews them before they run out, in the manner of acme.sh, built on lego
(MIT). [acme NAME] adds more. HTTP-01 (its own port 80 listener or the
BBS's web server there), TLS-ALPN-01 (any TLS server of the BBS on 443)
and DNS-01 (15 providers built in, exec:PROGRAM, or acme.sh's own dnsapi
scripts through acmesh:dns_xx) are supported; renewal follows renew_days
and the CA's ARI; a hook runs after each new certificate.

internal/certs is where every TLS server now gets its certificate: a
file pair read again when it changes, or the ACME client's (cert_file =
acme or acme:NAME, and by default when a TLS server has no files and
[acme] is set). Gemini keeps its pinned certificate and Yahoo its
login.yahoo.com one unless told.

bbs acme list / renew, bbs check lists them, a Certificates page in the
configurator, the sample config, Configuration Reference and a new
Certificates wiki page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSjWGPJDHVw7cyWKvE
2026-11-09 06:01:07 +00:00
Claude 22b5d482da Merge main into the TS6 hub branch
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUWrohwtnaPDvybZ5h
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-09 02:21:27 +00:00
Claude e90c644808 IRC server linking: the BBS as a TS6 hub on an IRC network
[irclink] and [ircpeer NAME] make the BBS a server on an IRC network,
speaking TS6 (Solanum, charybdis, ircd-ratbox; ircd-hybrid 8 with
protocol = hybrid). It is a hub: it takes any number of links, in and
out, keeps the network's map, routes between them, and tells the others
of a netsplit.

Every BBS user online is a user on the network, whom anyone there can
/msg and /whois; the rooms beginning irc- are its channels. A nick that
is taken when a BBS user comes on, or when a link comes up, is the BBS
user's as Nick|Tag (cut to the network's NICKLEN, numbered if taken);
collisions between other servers' users follow the TS6 rules.

The chat core takes several relays (MRC and the IRC link together),
relays that list members elsewhere and reach people by name; the BBS's
IRC server shows the network's users in NAMES, WHO, WHOIS and ISON and
messages them, and /msg NICK in the chat does too.

Tested against Solanum (main) and ircd-hybrid 8.2.43 (TestLive).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUWrohwtnaPDvybZ5h
2026-11-09 02:03:25 +00:00
Claude 21b6e02594 Kept private chats and one friends list, for every front end
IRC forgets what is said; now every private message is kept, however it
was sent (the BBS's chat, IRC, AIM, ICQ), in a new chats table.  One sent
to a user who is not on is kept for them and given them on their next
login: on IRC as a PRIVMSG with its time (301 tells the sender), on AIM
as an IM once the client is ready, on ICQ as its offline messages
(15/03 0x41), on a terminal at its next prompt.  /history in chat and
BBSServ HISTORY read a conversation back.  /msg in chat takes a user's
name as well as a node's number.

Each user has one friends list (friends: user, friend, group, alias),
the same on every front end: /friends, /friend and /unfriend in chat,
BBSServ FRIENDS on IRC, and the AIM/ICQ buddy list.  A buddy must be a
BBS user (others are refused, 13/0E 0x0A); OSCAR's item ids are kept
apart in oscar_buddies, so the list itself stays protocol-neutral for
other front ends.  A friend added elsewhere comes to a connected AIM
client at once (13/08, in its group or "Friends").

Signed-off-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTAJGnEAiwGZm9ygpG
2026-11-08 12:29:59 +00:00
Claude 7399e0fa36 Point repository references at the D-Modem organisation
The repositories moved from Neo-Desktop to the D-Modem GitHub
organisation: D-Modem-RE is now D-Modem/D-Modem, pico-serial is
D-Modem/hardware, modemmenu (PBX-Modem) is D-Modem/menu, bbs-sec is
D-Modem/bbs and go3270-sec is D-Modem/go3270.  Update links, module
paths, submodule URLs and source-location strings to match.  Copyright
notices still name Neo-Desktop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUwD2JJ5d6fgHmpVTw
2026-10-29 09:02:40 +00:00
Claude 6abf4cf347 Comment and test cleanups
- Comments that named something else now name their own function:
  ircd member, imageboard srcPath and linker, forum when, redirect and
  errNoArea, textui sheetDraw.first; a stray comment in rest.go gone.
- confui: changeLines uses diffLines instead of repeating it.
- nntp: accept_from names are looked up when the configuration loads
  (start and reload), now said in the code and the wiki.
- Tests: tnClient.read grows its buffer for a command split at its end
  (a full buffer read nothing for ever); freeAddr folded into freeTCP;
  zipOf is a helper.
- go3270-sec 6c7224e: its comment fixes and gfxtest tidying.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-18 22:40:48 +00:00
Claude f0c76b0765 IRC help banner formatting and messages to self; image-board JSON errors
- ircd: a service's HELP banner goes through ircfmt.Unescape like its
  other lines, so BBSServ's shows bold, not a literal $b.
- ircd: a PRIVMSG or NOTICE to your own nick with no other node of yours
  comes back, as IRC servers do, instead of vanishing.
- imageboard: the JSON API's error names its status ("forbidden",
  "internal server error"), not always "not found".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-18 22:12:55 +00:00
Claude 8cac5066f6 Doc comments on every function
Every function and method, tests included, has a doc comment: what it
is or does, what it returns and anything a caller needs to know.  Only
comments are added; gofmt split a few aligned blocks of one-line
functions once each had its own comment.  The generated protobuf code
is left as protoc writes it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-18 21:26:18 +00:00
Claude e9fc5ed156 Run as a user of its own: ports bound as root, then root given up
[general] user (and group): started as root, bbs serve reads the
configuration, binds every socket it listens on (the listeners, TCP and
unix; the HTTP API and metrics, FTP, NNTP, IRC, finger, gopher, binkp),
gives up root (setgroups to the user's groups, setgid, setuid) and
executes itself again, the same process (its PID, for systemd and
reload), the sockets handed down; each server's listen takes the one for
its address (internal/sockets).  Nothing is written as root: database,
logs, host keys, backups and a unix socket without socket_group are the
user's.

Other commands as root give root up first, so the database stays the
user's (but check and config; backup restore puts things back as root
and gives them, but the configuration, to the user).  System
configuration has Run as user and group.

TestRunAs (as root) serves a port under 1024 and a unix socket as
nobody, the same process through a reload.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-14 21:28:57 +00:00
Claude 34c8757d0d Live settings: snapshot reads through Conf, Reconfigure hooks
The BBS, image boards and forum read their settings through an atomic
snapshot (Conf, conf, opts), so a new configuration can be swapped in
while callers are on. Menus and [strings] swap the same way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-14 18:36:52 +00:00
Claude 1e1a1ac049 MRC: Multi Relay Chat, its rooms as the BBS's chat rooms
internal/mrc joins the BBS to MRC as its own connector: one connection
to the MRC server ([mrc]: address, TLS) carries all its users.  The
chat rooms beginning mrc- are MRC's (mrc-lobby is its lobby), so
callers on terminals, 3270s, the web and IRC (#mrc-lobby) chat with
other BBSes there under their names.

The protocol is as Synchronet's mrc-connector.js and mrc-session.js
speak it: the SYSTEM~PLATFORM handshake, INFO, IMALIVE and
CAPABILITIES; IMALIVE to the server's PING; each user's IAMHERE every
minute, NEWROOM:old:new, arrival and leaving notices, LOGOFF; lines as
<name> text and actions; Mystic's pipe colors taken out of what comes.
!COMMAND in a room goes to the MRC server, its answer to the asker
alone; private messages likewise.  A dropped line is retried, those
here put back.  [mrc] require limits who may go in.

The chat hub gains a Relay: told of joins, leaves and lines in the
rooms it carries, giving them what comes (RelayEvent, RelayTo).  On
IRC, MRC's users show as nick_Site!mrc@site, and room notices go to
the channel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-12 20:17:54 +00:00
Claude 34d2bae4d3 Permanent chat rooms, held open by BBSServ
The sysop makes a room permanent (BBSServ ROOM ADD #room [topic], or
bbs room add): kept open when empty and across restarts (chat_rooms),
with a topic.  Coming in shows the topic; setting it (BBSServ ROOM
TOPIC, TOPIC in the channel, /topic in the BBS's chat; the sysop only)
tells those in the room.  ROOM DEL lets a room go with its last caller.

On IRC, BBSServ sits in each permanent channel as an operator (NAMES,
WHO, WHOIS's channels), LIST shows the rooms with their topics even
when empty, JOIN and TOPIC give 332; ROOMS lists them for anyone.  On
the BBS, /rooms marks them with their topics.  Numerics' last
parameters are now always trailing, as clients expect of lists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-12 19:47:43 +00:00
Claude ad2d9b8414 BBSServ: an IRC services bot for a user's own account
/msg BBSServ (or /BS) INFO shows the account: level, location, alias,
signature, settings, unread mail, keys, tokens, the new scan.  SET
changes the profile's fields (location, about, alias, signature) and
the terminal and menu settings, with the BBS's own checks; PASSWD the
password; SCAN the areas of the new scan; KEYS lists, adds (with the
password) and deletes SSH keys; TOKENS lists and revokes API tokens.

Its framework (command table, parameters, HELP, CTCP) is adapted from
ergo's services, under its MIT license.  The bot's nick is [irc]
service (default BBSServ); it answers WHOIS and ISON.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-12 19:33:19 +00:00
Claude 7142bf88ad IRC server: the chat rooms as channels, built on parts of ergo
internal/ircd serves IRC ([irc]: plain and TLS listeners, limits at
once and per address, the deny list and bans).  Users log in with
their BBS names and passwords, by SASL PLAIN or PASS name:password,
throttled and hack-logged like any login; their nicks are their names.
Each connection is a node (via irc): in who's online, reached by node
messages, thrown off by the sysop.

#ROOM is the chat room ROOM: IRC clients talk with callers on
terminals, the web and the API.  PRIVMSG to a nick is a node message;
/me is an emote; pages, mail and notices come as NOTICEs, and a sysop
answers a page by joining #sysop-N.  NAMES, WHO, WHOIS, LIST, ISON,
USERHOST, MOTD, LUSERS; IRCv3 sasl, server-time (history replayed on
join with its times), echo-message, multi-prefix, userhost-in-names.

The protocol's parts are ergo's: messages read and written by its
irc-go library (ircmsg, ircreader, ircfmt), the numerics and the
ISUPPORT list taken from its source under the MIT license
(internal/ircd/LICENSE.ergo).  A node may now be in several rooms at
once (JoinAlso, SayIn, Part) for IRC's channels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-12 19:23:23 +00:00