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>
provisionGit returned early when the Forgejo account already existed, so
EnsureKey only ever ran during first provisioning. A member who deleted their
key on git.profullstack.com never got it back: every later BBS login hit the
`if !created { return }` and skipped key registration entirely. The comment on
the web verify path ("key is added on next BBS login") was describing behaviour
that could not happen.
Key registration now runs on every provisionGit call that carries a session
key. EnsureKey was already idempotent — it GETs the account's keys and compares
key material ignoring the comment — so re-running it is free when nothing
changed, and it re-adds a removed key, picks up a rotated one, and backfills
members who joined before AgentGit captured keys. The welcome email stays gated
on `created`, since the one-time password is only meaningful for a new account.
Two things that would have made this unreliable in the new every-login path:
- The key title was the constant "agentbbs". Forgejo rejects a duplicate title
with 422, so a member who rotated their BBS key would have had the new one
silently dropped. The title now carries a short fingerprint, so distinct keys
coexist and the same key stays stable across logins.
- EnsureKey mapped *every* 422 to "already exists" and returned nil. That hid
genuine rejections forever, which matters far more now the call is on the hot
path. Only "has been used" bodies are swallowed; a rejected key surfaces with
Forgejo's own reason so it lands in the logs.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Registration has been dead since 2026-09-13. `ssh join@bbs.profullstack.com`
creates the account, then fails at the confirmation step with "couldn't email
the code" and disconnects, so nobody can finish signing up.
Cause: Caddy owns ACME for mail.profullstack.com and renewed on 2026-08-14
(valid to Nov 12), but Mailu went on serving the certificate it loaded at
container start (Jun 15 -> Sep 13). When that lapsed, the STARTTLS handshake
from internal/mail started failing verification and every transactional send
died with it -- confirmation codes, signup notifications, credential mail.
Reproduced against production; 25/465/993 all still present the expired cert
while :443 serves the renewed one.
Three things let a single stale certificate take registration down:
- setup.sh installed the refresher and enabled its *timer*, but never ran it.
`systemctl enable --now <timer>` starts the timer, not the service, so a
redeploy left a stale cert in place (and did nothing at all if the timer was
never scheduled). The news and IRC sections already run theirs at provision
time; the Mailu section now does too, which is what repairs the live host.
- refresh-certs.sh only compared files, so a copy whose reload silently failed
left a fresh cert on disk and an expiring one on the wire -- invisible. It now
reads back what the relay actually serves, forces a reload when that disagrees
with /certs, refuses to copy a source cert that is itself expired, and no
longer swallows the `docker compose restart` failure. It restarts `front`
alone, the only container that mounts ./certs.
- internal/mail verified the relay's certificate even on loopback, where there
is nothing to intercept. It now skips verification for a loopback relay (the
reasoning docs/mail.md already applies to the plaintext Dovecot hand-off) and
gains AGENTBBS_SMTP_SERVERNAME, mirroring AGENTBBS_MAIL_SMTP_SERVERNAME, so
the documented 127.0.0.1:25 config can verify against the mail host instead of
an IP literal. A non-loopback relay is still verified. Errors are wrapped with
the address and the failing stage so the next failure is one journal line to
diagnose rather than nine days of silence.
Tests cover the envelope, the unreachable-relay message, and both halves of the
TLS decision: a loopback relay with an expired cert delivers, a non-loopback one
with the same cert is refused.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Dependabot's go-modules bump (#123) fails to build: livekit/protocol
1.51.0 changed TransferSIPParticipant to return
*TransferSIPParticipantResponse, but server-sdk-go v2.18.1 still
returns *emptypb.Empty from its wrapper, so the module no longer
compiles. No tagged server-sdk-go release carries the fix yet, so pin
the SDK to a main pseudo-version (1da58cd, 2026-09-04) which was built
against the new signature and requires go >= 1.26.3.
- github.com/livekit/protocol v1.50.4 -> v1.51.1-0.20260903060125-0cf5ba018b8e
- github.com/livekit/server-sdk-go/v2 v2.18.1 -> v2.18.2-0.20260904062056-1da58cd7b795
- github.com/pion/webrtc/v4 v4.2.18 -> v4.2.19
- go directive 1.26 -> 1.26.3
Supersedes #123.
Claude-Session: https://claude.ai/code/session_01Y9ZqGBKouuFipzsRn6cUfa
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Installs threatcrush-scan@1.1.0 from the sh1pt Actions Store.
Scans pull requests for hardcoded credentials, injection, SSRF, unsafe
deserialisation and dependency tampering; uploads SARIF to the Security
tab.
Report-only — it will not fail a pull request. Set the pack's failOn
input to critical,high once the existing findings are triaged.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
vu1nz reviews a diff by calling Claude, which needs ANTHROPIC_API_KEY
supplied through the ENV_FILE secret. That key is not present on this
repository, so the scanner has never reviewed a pull request. On pack
1.0.0 and 1.0.1 that failure was silent: the job reported "0 finding(s),
no high/critical issues" on a diff nothing had read, which is worse than
no scanner at all.
threatcrush-scan covers the same ground deterministically - credentials,
injection, SSRF, unsafe deserialisation, XXE, dependency tampering - with
no API key and no per-pull-request cost.
Reinstallable from the sh1pt Actions Store if the key is ever provisioned.
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
handleJoin called setWebmailPassword unconditionally, so every visit to
join@ minted a fresh Roundcube password -- including for members who
registered and verified long ago.
join@ is the address people remember, so returning members type it out
of habit. Doing so silently invalidated their webmail login: the
replacement password scrolled past once in the join output, the old one
was already dead, and nothing in the session said a credential had
changed. The failure surfaces later, as "my password stopped working",
with no way to connect it back to having typed join@ -- and it reads
like a compromised account, which is an alarming thing to hand someone
over a no-op visit.
Mint the password only while actually onboarding: a new key registering,
or an account that completes email verification in this session. A
returning member is told the password is unchanged and pointed at
passwd@, which already sets one password across git, mail and chat and
is key-gated, so it doubles as the forgot-password path.
Also replace the bare webmail URL line shown when no password is minted
with the full url/login block, so the address and where to get
credentials are always visible, and distinguish "unchanged" (returning)
from "not set yet" (onboarding, but Mailu was unreachable).
Verified by inspection only: this box has no Go toolchain (repo needs
1.26), so the build is left to CI.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Dependabot PRs run with a read-only GITHUB_TOKEN, and GitHub was returning
503 (the HTML "Unicorn" page) for the comment write; the step's catch only
handled 403 and re-threw everything else, failing the whole scan even though
the security scan itself passed.
- skip the comment step for github.actor == 'dependabot[bot]'
- continue-on-error: true
- warn-and-continue on any status instead of only 403
Mirrors sh1pt pack vu1nz-scan@1.0.1.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The provision step aborted at "admin sshd is NOT listening on 2202"
because it decided ssh was socket-activated purely from `systemctl cat
ssh.socket` succeeding — but that unit file exists on every modern box,
including DigitalOcean images where the real listener is the standalone
ssh.service. It then restarted only ssh.socket, so nothing ended up
bound on the admin port and the safety check killed the deploy.
- Detect socket vs. standalone mode via `is-active`/`is-enabled`, not
mere unit-file existence.
- In socket mode, stop the standalone ssh.service first so it can't
fight the socket for the port.
- Fall back to the other restart path if the first doesn't bind.
- Dump listener + unit diagnostics before aborting.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>