New hub Sessions entry that opens the c0mpute network (free-tier AI chat on
open models) inside the member's pod, never on the BBS host:
- pods/Containerfile installs the c0mpute client stack (c0mpute binary, pinned
bun, signed c0mpute-tui) via the official installer with --no-start and no
peers, under /opt/c0mpute, linked onto PATH. unzip added (bun ships as a
zip; without it the installer silently skipped the TUI). The build now fails
if the TUI or bun is missing, and drops the installer's build-time config so
no node identity ships in the image.
- pods/agentbbs-c0mpute signs the member in to their own c0mpute account on
first use (device code; free account = free tier), then runs `c0mpute chat`,
or `c0mpute tui` for operators. The key persists in /home/dev.
- Gated like the pod Shell: members only, verified email, pods available.
Tested: slim image with the same layer on ubuntu:26.04 builds; as uid 1000 with
an empty home the launcher shows the c0mpute.com/cli/approve device code, and
`c0mpute tui` renders (Chat/Jobs/Node/Network/Settings/Fleet).
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Crawlers browsing repo files (.env.example, package.json, .gitignore under /<owner>/<repo>/src/commit/<sha>/) tripped the web sensitive-file rule, and threatcrushd auto-banned 63 crawler IPs from git within minutes of watching the shared log. git.<root> now logs to git-access.log (kept for forensics); every other site stays on access.log. Already live on the box.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The homepage-symlink breach left no record of which files were fetched,
because no site logged requests. Every site now imports one shared,
rolled JSON log at /var/log/caddy/access.log, which threatcrushd's
log-watcher tails for scanners, brute force and path probing.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
SQLite creates agentbbs.db and its -wal/-shm files 0644, so any account on
the host could read members' emails, DMs and login IPs; Caddy did, through
a planted homepage symlink. Open now chmods all three to 0600.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Members own public_html from a root shell in their pod, so they could
plant symlinks to host paths, and Caddy's file_server followed them:
two accounts used this to download agentbbs.db and list /var/lib/caddy
(TLS keys). setup.sh now bind-mounts $DATA_DIR/users with nosymfollow
(persisted in fstab) and restarts Caddy when the mount is new, because
Caddy's private mount namespace does not see mounts added after start.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A member was bound to the single key they first signed in with, so a new
machine got the finger card and could not reach the hub (or renew a plan).
Extra keys live in user_keys; EnsureUser, UserByFingerprint and the finger
check accept them. Operators add one with: agentbbs add-key NAME <pubkey|fp>.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
bbs.profullstack.com answered 404 for both. setup.sh now writes them next to the
landing page on every deploy: robots names https://${DOMAIN}/sitemap.xml, and the
sitemap lists the landing page plus each member homepage (/~name/) that has an
index.html, with its mtime as lastmod.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Member pods egress through pasta as the host. A pod could reach every
0.0.0.0 listener on the BBS host (ufw does not filter local delivery;
pasta maps the host at 169.254.1.2) and could open SSH to other fleet
servers from the BBS IP. On 2026-11-19 an attacker with a pod did both.
- deploy/podguard.sh: nftables table matched by socket cgroup (the
service user's slice), so the agentbbs daemon is unaffected. Pods may
only use the host's public ports + DNS; servers listed in
/etc/agentbbs/podguard.env are dropped. Loaded after user@<uid> and
every 5 minutes (nft binds the cgroup id at load time).
- pods.Manager.Remove + reapBannedPods: a banned member's pod is removed
at start and every 2 minutes (it previously kept running for days).
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The hub auto-created an account from the raw SSH login name for any new
key, skipping SanitizeUsername. Names containing '/', '..', spaces or
shell metacharacters were accepted, and the per-user directory
users/<name> could resolve outside users/.
store.EnsureUser now refuses to insert a name that fails
ValidUsername (^[a-z0-9][a-z0-9-]{1,31}$), covering every creation path;
the hub prints a clear error. The root IRC password helper applies the
same rule to its argv.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Actions off, webhooks/migrations external-only, server-side git hooks off.
Applied live on dev.chovy.com 2026-11-20 (backup app.bak-002.ini).
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Every BBS signup gets a Forgejo account, so Forgejo users are untrusted.
On 2026-11-16 a new member pushed a workflow that would dump the runner
env, /etc/forgejo and /var/lib/forgejo and PUT it back to their repo. No
runner was registered so it never ran, but Actions was on and queued it.
app.ini is written only on first install, so enforce the keys each run.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* chore(deps): bump the go-modules group with 4 updates
Bumps the go-modules group with 4 updates: [github.com/emersion/go-imap/v2](https://github.com/emersion/go-imap), [github.com/livekit/protocol](https://github.com/livekit/protocol), [github.com/livekit/server-sdk-go/v2](https://github.com/livekit/server-sdk-go) and [golang.org/x/crypto](https://github.com/golang/crypto).
Updates `github.com/emersion/go-imap/v2` from 2.0.0-beta.8 to 2.0.0-beta.9
- [Release notes](https://github.com/emersion/go-imap/releases)
- [Commits](https://github.com/emersion/go-imap/compare/v2.0.0-beta.8...v2.0.0-beta.9)
Updates `github.com/livekit/protocol` from 1.53.2 to 1.54.1
- [Release notes](https://github.com/livekit/protocol/releases)
- [Changelog](https://github.com/livekit/protocol/blob/main/CHANGELOG.md)
- [Commits](https://github.com/livekit/protocol/compare/v1.53.2...v1.54.1)
Updates `github.com/livekit/server-sdk-go/v2` from 2.19.0 to 2.20.0
- [Commits](https://github.com/livekit/server-sdk-go/compare/v2.19.0...v2.20.0)
Updates `golang.org/x/crypto` from 0.58.0 to 0.59.0
- [Commits](https://github.com/golang/crypto/compare/v0.58.0...v0.59.0)
---
updated-dependencies:
- dependency-name: github.com/emersion/go-imap/v2
dependency-version: 2.0.0-beta.9
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: go-modules
- dependency-name: github.com/livekit/protocol
dependency-version: 1.54.1
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-modules
- dependency-name: github.com/livekit/server-sdk-go/v2
dependency-version: 2.20.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-modules
- dependency-name: golang.org/x/crypto
dependency-version: 0.59.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: go-modules
...
Signed-off-by: dependabot[bot] <support@github.com>
* fix(deps): mirror livekit's pion/webrtc + ice replaces for server-sdk-go v2.20.0
server-sdk-go v2.20.0 builds against livekit/webrtc-pion (dtls/v4) via a
replace directive, and Go does not apply a dependency's replaces to the
consumer, so the build failed with dtls/v3 vs dtls/v4 type mismatches.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Anthony Ettinger <anthony@profullstack.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Adds the @profullstack/webmcp embed so an AI agent in the visitor's browser (WebMCP) can use this site's tools.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The 10-27 incident showed what an unrestricted root deploy key is worth to an
attacker. The CI key is now installed on the box as
restrict,command="/usr/local/sbin/agentbbs-ci-deploy", so it gets no shell,
scp, sftp, pty or forwarding.
- deploy/ci-deploy.sh (installed by setup.sh): verbs `arch`, `upload
agentbbs|ascii-live` (ELF on stdin, size-capped, root-only staging dir) and
`deploy main|master` (app secrets as NAME=<base64> on stdin, allowlisted).
It does what the old inline heredoc did: sync to origin, pause the
self-update timer, install binaries, exec setup.sh SKIP_BUILD=1.
- deploy.yml: uses those verbs instead of scp + `sudo bash -s`.
- self-update.sh: reset to origin before exec'ing setup.sh, so a setup.sh
change takes effect on the first timer run instead of the second.
Co-authored-by: Anthony Ettinger <anthony@profullstack.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Adds /manifest.webmanifest (standalone, black theme) and 192/512 PNG icons
(plus maskable + SVG) to the site root, links them from the landing page head,
and serves the manifest as application/manifest+json. Lets pwamart.com list
AgentBBS.
Co-authored-by: Anthony Ettinger <anthony@profullstack.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* chore(deps): upgrade all Go modules; go 1.26.8 -> 1.26.10 (13 stdlib vulns)
go get -u ./... && go mod tidy. Go directive to 1.26.10 clears 13 reachable
stdlib advisories (net/http, crypto/tls, crypto/x509, html/template).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* ci: setup-go from go.mod so CI builds with the pinned 1.26.10
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Anthony: "add a pwamart.com badge to all our sites". The baked @profullstack/footer copy goes to 0.2.6: the pwamart badge (pwamart.com/for.svg?site=<homepage>, linking pwamart.com/for?site=) beside the built.indie badge, same 200x44 size, same row. No ad units.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
join@ now creates a CoinPay checkout session (POST /checkout/sessions) instead
of a single-chain ETH payment: the buyer picks any coin the business accepts or
PayPal. The session URL and a half-block QR code of it are shown in the
terminal, and the session is polled (GET /checkout/sessions/:id) until paid,
Enter, disconnect or expiry. property=bbs.profullstack.com, account_id=handle,
customer_email=the verified email (asked for if none is stored), metadata
carries pubkey fingerprint, user id and the HMAC ref. Legacy payment ids still
verify.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Homepage renders no ad unit. Remaining units are a single text_link
line per page with quiet spacing, never against the footer.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The baked footer is what built.indie's backlink check reads; embed.js only
updates it in the browser.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The pfs-footer webring row is being rolled out fleet-wide on purpose (and the
ring verifier reads it), so it comes back after the one-line site footer; the
baked pit.world global footer stays last.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The front page is a static file setup.sh writes at deploy, so the footer is
fetched at deploy time (3s timeout, nothing on failure) and baked in last.
Own footer is one line: name, ssh join, copyright, code. Drops the
@profullstack/footer ring block and embed.js, and moves the CrawlProof
text_link ad from above the footer to the top of the content.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Plain-HTML unit for slot 8a261afe-e212-4ab9-8c60-35607016bd33 above the
footer, with ad.js. Collapsed until data-cp-filled. No CSP on this page.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Matches @profullstack/footer 0.2.2, which removed them; the baked copy is what
crawlers and no-JS readers see before embed.js swaps in @latest.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
dl.cloudsmith.io/public/caddy/stable now answers 402 Payment Required, so
apt-get update in step 1 fails and every deploy (and the 15-minute
agentbbs-update timer) aborts before doing anything.
- Step 1 removes /etc/apt/sources.list.d/caddy-stable.list and its keyring
before apt-get update.
- Step 9 installs the pinned GitHub release (CADDY_VERSION=2.11.7, SHA-512
verified) to /usr/bin/caddy with the caddy user and upstream's unit,
only when caddy is missing. Ubuntu's own package is 2.6.2, too old.
- An existing install (the dpkg 2.11.7 on bbs.profullstack.com, unit in
/usr/lib/systemd/system) is left untouched, so the Caddyfile and unit
keep working as before.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
https://bbs.profullstack.com/ is Caddy's file_server, so a 200 there says
nothing about the BBS. /api/health is now answered by agentbbs itself on
its loopback HTTP listener (Caddy proxies it, like /verify) after a
`select 1` on the SQLite store with a 3s cap: 200 {"status":"ok","db":"ok"}
or 503 {"status":"error","db":"down"}, Cache-Control: no-store.
Adds Store.Ping. For status.profullstack.com.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
news.bbs.profullstack.com never got a certificate. Its site block is
covered by the *.bbs.profullstack.com wildcard site, whose policy is
on_demand only, so Caddy never obtained the name in the background: no
attempt was ever logged, a TLS handshake got an internal error, and
NNTPS on :563 kept the self-signed bootstrap cert, which expired on
2026-09-12.
Opt the news site into on_demand. It is issued on the first handshake
through the ask endpoint, which approves AGENTBBS_NEWS_HOST since #141.
Verified live: https://news.bbs.profullstack.com answers 200 with a
Let's Encrypt cert, agentbbs-news-certs succeeds, and :563 verifies
(expires 2027-01-04).
Co-authored-by: riotcoder <riotcoder@profullstack.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
news.bbs.profullstack.com has its own Caddy site block so Caddy can get
it a Let's Encrypt cert for NNTPS on :563. But it also falls under the
*.bbs.profullstack.com on-demand-TLS block, so Caddy asks agentbbs before
issuing, and the ask handler only approved members and mapped custom
domains. "news" is neither, so it got a 404 and never got a cert. The
news-certs timer then failed forever, and :563 kept serving the
self-signed bootstrap cert, which expired on 2026-09-12.
The handler now also approves the BBS's own service hosts. For now that
is only AGENTBBS_NEWS_HOST. Arbitrary names still 404, so this is still
not an open cert relay.
Co-authored-by: riotcoder <riotcoder@profullstack.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
On the new bbs box (Ubuntu 26.04, OpenSSL 3.5.5) agentbbs-mailu-certs
failed on every run with a bare exit 1. `openssl s_client -quiet` prints
no certificate there, so `openssl x509` read nothing, the probe pipeline
failed under pipefail, and the `on_wire=$(served_not_after)` assignment
ended the script under set -e before it logged anything.
Drop -quiet, and make the probe best-effort with `|| true` so a failed
read-back can never be what fails the run. Without this fix, Caddy's next
renewal of mail.profullstack.com would never reach Mailu, the same way
join@ codes broke on 2026-09-13.
Tested on the box: exits 0, "already current (expires Nov 12 2026)".
Co-authored-by: riotcoder <riotcoder@profullstack.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The landing page setup.sh writes now ends its footer with the Profullstack
OpenWebring links (from=https://${DOMAIN}/), and setup.sh also writes
/.well-known/openwebring.json into the site root.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The redeploy restarts agentbbs, and the smoke test could run before it had
re-bound :22 (0.3 s after on the #136 deploy). One probe made most deploys go
red while the BBS answered moments later. Probe up to 12 times, 10 s apart,
and fail only if :22 never answers. Still a keyscan only, so no account is
ever registered.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
setup.sh downloaded straight to /usr/local/bin/forgejo while forgejo.service
was running, which fails with ETXTBSY ("Text file busy"). Every deploy logged
"forgejo download failed" and prod stayed on 11.0.1 although the pin is
11.0.15. Download to forgejo.new, check its --version, and rename it over the
old binary; the existing `systemctl restart forgejo` then starts the new one.
A failed or wrong download now keeps the installed binary instead of warning
that the backend will be unavailable.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* feat(deploy): git.chovy.com, a public Forgejo forge on chovy's build host
deploy/git-chovy/install.sh brings up the AgentGit recipe (setup.sh section
9d) on dev.chovy.com: the Forgejo 11.0.15 binary under systemd, SQLite,
loopback HTTP, built-in SSH on :2222, registration off, anonymous read of
public repos on. It is idempotent and has been run live.
Differences forced by that host: it adds one exact-name vhost to the
existing nginx (which serves chovy's customer apps) instead of a Caddy
block, validating with nginx -t and restoring on failure; certbot http-01
into chovy's /var/www/acme webroot; 127.0.0.1:3010 since :3000 is taken;
MemoryMax=2G so the forge cannot starve builds; chovy's mark as the logo.
Also sets BUILTIN_SSH_SERVER_USER = git. Without it Forgejo's built-in SSH
server only accepts the RUN_USER name and refuses git@ ("Invalid SSH
username git"), although SSH_USER = git advertises git@ clone URLs.
setup.sh's AgentGit app.ini has the same gap; not changed here.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* fix(deploy): probe the Forgejo listener with ss, not a plain-HTTP curl
ThreatCrush flags any curl to an http:// URL (CWE-319). The probe was
loopback-only, but ss answers the same question without an HTTP request.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The bbs.profullstack.com site root is the one index.html setup.sh writes;
the tag goes in its head with the project id. Member homepages (/~name,
<name>.bbs...) are the members' own and are left alone. No CSP is sent, so
nothing else changes.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>