Skip to content

v1.2.0

Choose a tag to compare

@github-actions github-actions released this 23 Aug 09:59
· 30 commits to main since this release

Security

  • RBAC is now an allow-list: internal/admin/routes.go declares every
    protected route's access level explicitly (ViewerOK), and requireRole
    resolves against that table instead of pattern-matching a hand-maintained
    deny-list. A route added without deciding who may reach it now defaults
    to admin-only instead of silently becoming viewer-readable. As part of
    this, /files/{taskID} and /files/{taskID}/download (arbitrary file
    read out of a container - including anything bind-mounted from
    /run/secrets) moved from viewer-readable to admin-only.
  • Session cookies are hashed at rest (SHA-256, same treatment as API
    tokens) instead of the plaintext bearer value being the SQLite/MongoDB
    primary key - a copied database file or backup no longer hands out live
    sessions.
  • Session, CSRF, and SSO-state cookies now set Secure whenever the
    request arrived over HTTPS (direct TLS or a reverse proxy's
    X-Forwarded-Proto).
  • The agent's cluster-secret check is constant-time (previously a plain
    != comparison, timing-leakable).
  • Local-login lockout is now keyed by (username, client IP) instead of
    username alone - a username-only key let an unauthenticated attacker
    lock a known account (e.g. the bootstrap admin) out from under its real
    owner with a handful of bad requests, from anywhere.
  • An unknown username on /login now burns a dummy bcrypt comparison
    before responding, closing a timing side-channel that let it be
    distinguished from a known username with a wrong password.
  • Added IP-based rate limiting: a tight limiter on POST /login
    (backstops the per-account lockout against spraying many usernames from
    one address) and a loose global limiter across the rest of the app -
    there was none at all before.
  • /ws/exec sessions are capped at 50 concurrent (maxConcurrentExecSessions)
    to bound the resource cost of abandoned or malicious interactive shells.
  • The admin↔agent websocket proxy now sends periodic pings and enforces a
    read deadline on both legs, so an idle session or a dead peer is
    detected instead of leaving relay goroutines blocked forever.
  • Content-Disposition headers for file/log/backup downloads are now built
    with mime.FormatMediaType (new internal/httpx.SetAttachment) instead
    of hand-spliced string concatenation, which let a filename containing a
    " break out of the quoted parameter.
  • Added swarmdash rotate-cluster-secret: registry passwords, GitOps auth
    tokens, and the SSO client secret are encrypted at rest with a key
    derived from the cluster secret, which previously had no rotation path -
    changing SWARMDASH_CLUSTER_SECRET and redeploying made all three
    permanently undecryptable. See the Hardening doc.
  • Added a Settings -> General toggle to disable the dashboard's
    update-available check entirely, including the CSP's connect-src
    exception for api.github.com - previously that request always fired
    with no way to opt out short of blocking it at the network layer.

Added

  • CI's new swarm-engine-compat job runs the same swarm-init +
    agent/admin-startup smoke test against pinned real Docker Engine
    versions (currently the last 28.x and the latest 29.x), so a real engine
    upgrade breaking Swarm - which Docker 29 did for a number of existing
    clusters - has a chance of getting caught before it ships.