Guest invites refuse any email already on a Cloudron account; group changes add/remove a single group instead of replacing the set, so stewards/managers survive lapses.
No-tier BACKERs count only if joined before the Membership tier existed (LEGACY_NO_TIER_BEFORE=2026-09-06).
Tinfoil proxy pinned by SHA-256, versioned filename, checksum verified on every boot; helper refuses to start on mismatch.
Backup credentials moved to root-only /etc/agent-backup.env; removed from the agent's .env. Object lock/append-only is not configured.
/admin/librechat/keys refuses public clients (403 Internal network only); log line drops the client-supplied UA; digest threshold corrected to ~1,440/day and now watches for REFUSED lines.
Key revoke/rotate delete in LiteLLM first and surface failures.
Previous external MXID is kicked/revoked from member_invite_rooms() on change; changes limited to one per 7 days. Attaching an external MXID now requires a one-time code sent by Matrix DM; the admin panel shows when the current MXID was last changed.
All email builders escape interpolated values; guest name capped. Newsletter opt-in intentionally unchanged (opt-out preferred).
external key-feed request with a valid sync token -> 403; internal sandbox sync -> 122 seeded.
gateway 20261119-fc519fb healthy; proxy hash matches; old unversioned binary gone.
Residual
The backup timer's root-trust gap is tracked in #62; it needs operator root commands.
Object lock is unavailable on the backup bucket; versioning is enabled as the recoverable-delete measure.
A delta-only key feed was considered but not implemented; the feed now requires the sync token, a timestamped HMAC, and an internal-network client.
Woodpecker status is advisory, not a merge gate; runner isolation remains the open infrastructure item.
Tracking issue for the security patches deployed on 2026-11-19 from a member's private review. No live systems were probed by the reporter.
**Deployed / verified**
- Forged Open Collective deletion events re-check membership before deactivating; forged paid orders stay held (`unverified_order_held`).
- Per-IP rate buckets (`--forwarded-allow-ips`); 32 rapid `/broker/keys` calls -> 30x401, 2x429.
- Guest invites refuse any email already on a Cloudron account; group changes add/remove a single group instead of replacing the set, so stewards/managers survive lapses.
- No-tier BACKERs count only if joined before the Membership tier existed (`LEGACY_NO_TIER_BEFORE=2026-09-06`).
- Tinfoil proxy pinned by SHA-256, versioned filename, checksum verified on every boot; helper refuses to start on mismatch.
- Backup credentials moved to root-only `/etc/agent-backup.env`; removed from the agent's `.env`. Object lock/append-only is **not** configured.
- `/admin/librechat/keys` refuses public clients (`403 Internal network only`); log line drops the client-supplied UA; digest threshold corrected to ~1,440/day and now watches for REFUSED lines.
- Key revoke/rotate delete in LiteLLM first and surface failures.
- Previous external MXID is kicked/revoked from `member_invite_rooms()` on change; changes limited to one per 7 days. Attaching an external MXID now requires a one-time code sent by Matrix DM; the admin panel shows when the current MXID was last changed.
- All email builders escape interpolated values; guest name capped. Newsletter opt-in intentionally unchanged (opt-out preferred).
**Verified live**
- portal `20261119-3a2d608`, panel `20261119-9642995`, chat `20261119-02b9c1a` healthy.
- external key-feed request with a valid sync token -> 403; internal sandbox sync -> 122 seeded.
- gateway `20261119-fc519fb` healthy; proxy hash matches; old unversioned binary gone.
**Residual**
- The backup timer's root-trust gap is tracked in #62; it needs operator root commands.
- Object lock is unavailable on the backup bucket; versioning is enabled as the recoverable-delete measure.
- A delta-only key feed was considered but not implemented; the feed now requires the sync token, a timestamped HMAC, and an internal-network client.
- Woodpecker status is advisory, not a merge gate; runner isolation remains the open infrastructure item.
Admin panel now shows the date an external MXID was last changed (matrix_mxid_changed_at from the portal overview); portal 20261119-3a2d608, panel 20261119-9642995.
log-guard symlink race closed: dated log files created with O_EXCL and never following links; symlinks deleted; chown limited to regular files. Chat 20261119-02b9c1a, healthy, log-guard verified in-container.
Still open: proof-of-control for external MXIDs, append-only backup credentials, passwordless sudo, delta-only key feed, Woodpecker shared-root/status forging, copilot workflow pinning.
Security patches deployed:
- Admin panel now shows the date an external MXID was last changed (`matrix_mxid_changed_at` from the portal overview); portal `20261119-3a2d608`, panel `20261119-9642995`.
- log-guard symlink race closed: dated log files created with `O_EXCL` and never following links; symlinks deleted; chown limited to regular files. Chat `20261119-02b9c1a`, healthy, log-guard verified in-container.
Still open: proof-of-control for external MXIDs, append-only backup credentials, passwordless sudo, delta-only key feed, Woodpecker shared-root/status forging, copilot workflow pinning.
inference-bot
changed title from Security report batch 2 (2026-11-19): portal, guest groups, MXID, gateway, backups to Security patches: portal, guest groups, MXID, gateway, backups (2026-11-19)2026-11-19 23:52:44 +00:00
GitHub actions pinned by commit SHA instead of floating v4 tags.
npm ci --ignore-scripts so install cannot run repository lifecycle scripts.
Publishing uses ./node_modules/.bin/vsce from the lockfile, not npx (which can fetch a different registry version at publish time).
Copilot extension publishing hardened (`code/inference-coop-copilot`, `615ea4c`):
- GitHub actions pinned by commit SHA instead of floating `v4` tags.
- `npm ci --ignore-scripts` so install cannot run repository lifecycle scripts.
- Publishing uses `./node_modules/.bin/vsce` from the lockfile, not `npx` (which can fetch a different registry version at publish time).
Saving an external MXID sends a 6-digit code by Matrix DM to that account; nothing is stored or invited until the code is entered on the dashboard.
Codes expire in 10 minutes; resend is throttled; clearing an MXID stays immediate so a compromised account can be revoked at once.
Verification queues the invite pass in the background (Synapse invites to a large room can exceed a request timeout); the nightly sync remains the backstop.
Dashboard gained the code-entry step and the portal gained /broker/matrix-mxid/verify.
Live-tested with a temporary Matrix account: wrong code rejected, correct code saved the MXID, invite pass queued. Portal 20261119-504200e, dashboard 20261119-ad0756c, both healthy.
External MXIDs now require proof of control:
- Saving an external MXID sends a 6-digit code by Matrix DM to that account; nothing is stored or invited until the code is entered on the dashboard.
- Codes expire in 10 minutes; resend is throttled; clearing an MXID stays immediate so a compromised account can be revoked at once.
- Verification queues the invite pass in the background (Synapse invites to a large room can exceed a request timeout); the nightly sync remains the backstop.
- Dashboard gained the code-entry step and the portal gained `/broker/matrix-mxid/verify`.
Live-tested with a temporary Matrix account: wrong code rejected, correct code saved the MXID, invite pass queued. Portal `20261119-504200e`, dashboard `20261119-ad0756c`, both healthy.
Backup bucket hardening: versioning is now enabled on the Swiss Backup S3 bucket. Deleting a restic object creates a delete marker, so previous bytes are recoverable. Object lock is unavailable on this bucket, and the provider rejected noncurrent-version lifecycle rules, so old versions accumulate and the quota needs watching. Documented in ops-docs/maintenance/backups.md.
Backup bucket hardening: versioning is now enabled on the Swiss Backup S3 bucket. Deleting a restic object creates a delete marker, so previous bytes are recoverable. Object lock is unavailable on this bucket, and the provider rejected noncurrent-version lifecycle rules, so old versions accumulate and the quota needs watching. Documented in `ops-docs/maintenance/backups.md`.
Key feed now requires a timestamped HMAC in addition to the sync token and internal-network check. The sandbox signs timestamp\n/admin/librechat/keys\n with KEY_FEED_HMAC_SECRET; the portal rejects missing, stale (>60s) or wrong signatures. Token-only requests now return 401.
Rollout verified: the sandbox seeded 122 members with the signed request; portal 20261119-637a8ae and chat 20261119-c8b1b70 healthy; /app/data/sync-keys.js matches the repo. Secret is in the portal env and the sandbox /app/data/env; docs updated.
Key feed now requires a timestamped HMAC in addition to the sync token and internal-network check. The sandbox signs `timestamp\n/admin/librechat/keys\n` with `KEY_FEED_HMAC_SECRET`; the portal rejects missing, stale (>60s) or wrong signatures. Token-only requests now return 401.
Rollout verified: the sandbox seeded 122 members with the signed request; portal `20261119-637a8ae` and chat `20261119-c8b1b70` healthy; `/app/data/sync-keys.js` matches the repo. Secret is in the portal env and the sandbox `/app/data/env`; docs updated.
Passwordless sudo removed. /etc/sudoers.d/90-inferencebot-restricted now allows ubuntu only to start/stop/restart docs-deploy-poll.service, start/restart agent-backup.service and agent-backup.timer, and read docs-deploy-poll journal lines. Arbitrary sudo requires interactive authentication; package installs and user management now need the operator.
The nightly backup unit points at root-owned /usr/local/sbin/agent-backup. Residual gap: that script still calls restic from agent-owned /usr/local/bin/restic and sources /home/ubuntu/.hermes/.env, so the timer remains a root-trust path until root chowns restic, removes the agent PATH and .env sourcing, and drops the Hermes-python diagnostic. Documented in ops-docs/maintenance/host-access.md; root remediation is required.
Passwordless sudo removed. `/etc/sudoers.d/90-inferencebot-restricted` now allows `ubuntu` only to start/stop/restart `docs-deploy-poll.service`, start/restart `agent-backup.service` and `agent-backup.timer`, and read `docs-deploy-poll` journal lines. Arbitrary sudo requires interactive authentication; package installs and user management now need the operator.
The nightly backup unit points at root-owned `/usr/local/sbin/agent-backup`. Residual gap: that script still calls `restic` from agent-owned `/usr/local/bin/restic` and sources `/home/ubuntu/.hermes/.env`, so the timer remains a root-trust path until root chowns restic, removes the agent PATH and .env sourcing, and drops the Hermes-python diagnostic. Documented in `ops-docs/maintenance/host-access.md`; root remediation is required.
Added a compensating control for the residual root-trust gap: a daily no-agent cron (82130f968506, check_root_trust.py) that stays silent when healthy and alerts if broad sudo reappears, the root backup script starts trusting agent-owned files again, or /usr/local/bin/restic is not root-owned.
The root fix itself still requires operator root access; the watchdog detects regression but does not remove the gap.
Added a compensating control for the residual root-trust gap: a daily no-agent cron (`82130f968506`, `check_root_trust.py`) that stays silent when healthy and alerts if broad sudo reappears, the root backup script starts trusting agent-owned files again, or `/usr/local/bin/restic` is not root-owned.
The root fix itself still requires operator root access; the watchdog detects regression but does not remove the gap.
All code-side patches in this batch are deployed and verified. Closing with the root remediation split out to #62; object lock is unavailable on the current bucket, and Woodpecker runner isolation remains an infrastructure item.
All code-side patches in this batch are deployed and verified. Closing with the root remediation split out to #62; object lock is unavailable on the current bucket, and Woodpecker runner isolation remains an infrastructure item.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Tracking issue for the security patches deployed on 2026-11-19 from a member's private review. No live systems were probed by the reporter.
Deployed / verified
unverified_order_held).--forwarded-allow-ips); 32 rapid/broker/keyscalls -> 30x401, 2x429.LEGACY_NO_TIER_BEFORE=2026-09-06)./etc/agent-backup.env; removed from the agent's.env. Object lock/append-only is not configured./admin/librechat/keysrefuses public clients (403 Internal network only); log line drops the client-supplied UA; digest threshold corrected to ~1,440/day and now watches for REFUSED lines.member_invite_rooms()on change; changes limited to one per 7 days. Attaching an external MXID now requires a one-time code sent by Matrix DM; the admin panel shows when the current MXID was last changed.Verified live
20261119-3a2d608, panel20261119-9642995, chat20261119-02b9c1ahealthy.20261119-fc519fbhealthy; proxy hash matches; old unversioned binary gone.Residual
Security patches deployed:
matrix_mxid_changed_atfrom the portal overview); portal20261119-3a2d608, panel20261119-9642995.O_EXCLand never following links; symlinks deleted; chown limited to regular files. Chat20261119-02b9c1a, healthy, log-guard verified in-container.Still open: proof-of-control for external MXIDs, append-only backup credentials, passwordless sudo, delta-only key feed, Woodpecker shared-root/status forging, copilot workflow pinning.
Security report batch 2 (2026-11-19): portal, guest groups, MXID, gateway, backupsto Security patches: portal, guest groups, MXID, gateway, backups (2026-11-19)Copilot extension publishing hardened (
code/inference-coop-copilot,615ea4c):v4tags.npm ci --ignore-scriptsso install cannot run repository lifecycle scripts../node_modules/.bin/vscefrom the lockfile, notnpx(which can fetch a different registry version at publish time).External MXIDs now require proof of control:
/broker/matrix-mxid/verify.Live-tested with a temporary Matrix account: wrong code rejected, correct code saved the MXID, invite pass queued. Portal
20261119-504200e, dashboard20261119-ad0756c, both healthy.Backup bucket hardening: versioning is now enabled on the Swiss Backup S3 bucket. Deleting a restic object creates a delete marker, so previous bytes are recoverable. Object lock is unavailable on this bucket, and the provider rejected noncurrent-version lifecycle rules, so old versions accumulate and the quota needs watching. Documented in
ops-docs/maintenance/backups.md.Key feed now requires a timestamped HMAC in addition to the sync token and internal-network check. The sandbox signs
timestamp\n/admin/librechat/keys\nwithKEY_FEED_HMAC_SECRET; the portal rejects missing, stale (>60s) or wrong signatures. Token-only requests now return 401.Rollout verified: the sandbox seeded 122 members with the signed request; portal
20261119-637a8aeand chat20261119-c8b1b70healthy;/app/data/sync-keys.jsmatches the repo. Secret is in the portal env and the sandbox/app/data/env; docs updated.Passwordless sudo removed.
/etc/sudoers.d/90-inferencebot-restrictednow allowsubuntuonly to start/stop/restartdocs-deploy-poll.service, start/restartagent-backup.serviceandagent-backup.timer, and readdocs-deploy-polljournal lines. Arbitrary sudo requires interactive authentication; package installs and user management now need the operator.The nightly backup unit points at root-owned
/usr/local/sbin/agent-backup. Residual gap: that script still callsresticfrom agent-owned/usr/local/bin/resticand sources/home/ubuntu/.hermes/.env, so the timer remains a root-trust path until root chowns restic, removes the agent PATH and .env sourcing, and drops the Hermes-python diagnostic. Documented inops-docs/maintenance/host-access.md; root remediation is required.Added a compensating control for the residual root-trust gap: a daily no-agent cron (
82130f968506,check_root_trust.py) that stays silent when healthy and alerts if broad sudo reappears, the root backup script starts trusting agent-owned files again, or/usr/local/bin/resticis not root-owned.The root fix itself still requires operator root access; the watchdog detects regression but does not remove the gap.
All code-side patches in this batch are deployed and verified. Closing with the root remediation split out to #62; object lock is unavailable on the current bucket, and Woodpecker runner isolation remains an infrastructure item.