github greenpau/caddy-security v1.7.0

one hour ago

Caddy Security v1.7.0 upgrades go-authcrunch from v1.5.0 to v1.6.0 and brings identity-bound profile, password-management, and encrypted Documents workflows to the optional SQLite identity backend.

  • SQLite profile and password support. SQLite users can read profile information, diagnostics, and supported dashboard data, and change their passwords. Operations validate the current immutable account identity; stale login evidence is rejected after credential or account changes. The backend remains sqlite, regardless of its realm name. AuthCrunch implementation, Caddy integration.
  • Encrypted Documents for SQLite accounts. All sixteen Documents operations are available with the required configuration. Caddy E2E coverage exercises upload/download, sharing and revocation, administrator isolation, account deletion/recreation, restart ownership, and browser Web Crypto. Smoke tests also cover the shipped Profile information, Security Manager account details, and File Vault pages. Caddy qualification.
  • Authenticated capability discovery. GET <portal-mount>/api/capabilities reports backend identity, supported operations, configuration state, permissions, and signing-key availability. Clients can distinguish unavailable features from disabled or forbidden ones. Discovery does not replace each API's authorization checks. Upstream change.
  • Safer administration and storage failures. SQLite administration returns structured public identity fields, capability metadata, and supported credential counts without exposing credential collections. Role additions are atomic and idempotent. Identity locks remain held until callbacks finish, and queued operations cannot enter a quarantined database. Storage errors distinguish storage_unavailable from commit_uncertain. Upstream implementation.
  • Inherited portal hardening. AuthCrunch rejects ambiguous decoded portal paths beginning with // or /\, escapes inferred mount segments once, and scopes legacy signing-failure diagnostics to the individual event. Runtime change, route-contract regressions.
  • Security dependency updates. Upgrade crewjam/saml to v0.6.3 and golang.org/x/net to v0.62.0 through AuthCrunch v1.6.0, including signed-response regression coverage for SAML subject namespaces. Upgrade klauspost/compress to v1.20.2 for GO-2026-6865. CI and release builds use Go 1.26.11. AuthCrunch dependency fixes, Caddy dependency updates.
  • Build and test reliability. Prefer installed Python 3.14 while honoring explicit interpreter overrides, preserve that interpreter through nested commands, normalize Go execution timestamps, and provide browser prerequisites for SQLite Documents CI shards. Improve TLS failure diagnostics, avoid stale connections after reload, bound live browser contexts, and align oversized public-key upload tests with HTTP 413. Caddy changes.

For upgrades, SQLite companions remain opt-in build modules; the standard Caddy release binary does not automatically include them. Existing Profile, Admin, and Documents configuration controls apply, with no new Caddyfile switch for this integration. The existing SQLite account schema, account UUIDs, enrollment tombstones, and encrypted document format are preserved. Stop/start preserves accounts and vault ownership but requires fresh login evidence; already issued stateless access tokens retain their bounded lifetime.

API clients should handle structured SQLite administration fields and treat missing credential counts as unsupported rather than zero. Administrative mutations retain their HTTP-200 failure envelopes, so inspect the response body. Account and Documents writes are separate transactions: reconcile a commit_uncertain result before retrying a mutation. Within this SQLite identity store, API keys, public-key collections, MFA, stored login rules, connected accounts, and downstream OIDC provider realms remain unsupported. Full capability-aware UI integration remains separate work.

The verified SAML namespace correction does not remove the unbounded affected-version range in GO-2026-6909; scanners may still report that advisory. Legacy OpenPGP findings match the module, but the affected deprecated packages are absent from the qualified production binaries. Residual SAML and historical Caddy advisory assessments are retained rather than suppressed. This release does not claim that every scanner finding is resolved.

Release validation and publication passed for the exact v1.7.0 tag, and the CodeQL workflow completed successfully. Pre-release qualification included race-enabled Go unit/E2E tests with Chrome and Consul, SQLite handoff and Documents journeys, all twelve cross-built command targets, and 36 packaged configuration checks. Official OIDC conformance was not part of this qualification. Release workflow, CodeQL workflow.

Release assets include Caddy and caddy-authenticator archives for Linux, macOS, and Windows on amd64 and arm64, plus authcrunch_1.7.0_SHA256SUMS.

The upstream range also adds web-app and React authentication guidance and a Documents test-driver-only CodeQL exception. These are contributor tooling changes, not additional runtime capabilities or a Caddy-wide scanner exception.

Full comparisons: Caddy Security v1.6.2 → v1.7.0, go-authcrunch v1.5.0 → v1.6.0.

Don't miss a new caddy-security release

NewReleases is sending notifications on new releases.