Skip to content

ProudAuth v0.2.0-alpha.5

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 18 Oct 09:35
· 52 commits to main since this release
91583fa

[0.2.0-alpha.5] - 2026-10-18

Added

  • internal/testutil fault-injection helpers for reliability tests: a TCP
    black hole, silent and stalling SMTP relays, a refused port and a slow HTTP
    server.
  • docs/releases/ records the owner decisions taken at the start of each
    release phase, beginning with
    0.2.0-alpha.5.
  • Reference measurements of the four core token flows on the alpha.5 tree,
    within three percent of the 2026-10-11 results
    (benchmarks.md,
    docs/operations/bench-results/2026-10-18-laptop-alpha5-baselines/).
  • The release workflow can be dry-run from main (workflow_dispatch): it
    builds, pushes by digest to ghcr.io/proudauth/proudauth-staging, attests,
    signs, tags, verifies its outputs with the operator commands from
    installation.md and
    renders the release notes, and publishes nothing (DEP-003, GOV-005).
  • Configuration: directory.sign_in_timeout, directory.max_concurrent_binds,
    security.password.max_concurrent_hashes; Compose variable NETWORK_SUBNET.
  • Metrics: proudauth_key_rotations_refused_total{reason} on the worker,
    busy outcome of proudauth_directory_binds_total.
  • Audit event mfa.upgrade_proof.recorded; mfa.totp.used, mfa.hotp.used
    and mfa.recovery_code.used carry upgrade_proof.

Changed

  • Database-backed tests clone a template database that is migrated once per
    migration set (its name carries a digest of migrations/*.sql), instead of
    replaying every migration for each test. PROUDAUTH_TEST_NO_TEMPLATE=1
    restores direct migration (QA-001).
  • CI runs tests/e2e as four parallel shards (scripts/e2e-shard.sh, job
    e2e) and pipes every go test run through internal/tools/testreport,
    which fails the job when a test skips outside tests/skip-allowlist.txt,
    when a package fails to build, or when no test ran. Under CI, or with
    PROUDAUTH_TEST_REQUIRE_DB=1, a missing PROUDAUTH_TEST_DATABASE_URL
    fails database tests instead of skipping them. The image check now also
    waits for every e2e shard.
  • The release image is pushed by digest and receives its version tags only
    after its provenance, SBOM attestations and signature exist, so a tag never
    names an unsigned image; every release verifies its own checksums,
    attestations, signature and tag before it is published. The source SBOM
    lists the Go module graph only, no longer the GitHub Actions and the SBOM
    evidence files found in the tree.
  • A release whose CHANGELOG section has no ### Known limitations heading is
    refused by the release workflow (GOV-005).
  • GHCR is the only registry the project publishes to; the Docker Hub mirror
    is not updated and is no longer documented.

Security

  • Phishing-resistant administrator profile: an account that holds TOTP, HOTP,
    recovery codes or a passkey never used with user verification must prove
    that factor in the sign-in before a passkey can be registered. The proof is
    an upgrade proof: it unlocks enroll_webauthn, is audited as
    mfa.upgrade_proof.recorded, and never satisfies MFA. totp/enroll and
    totp/activate are refused under the profile, so the password alone can no
    longer register a passkey or replace the account's TOTP and recovery codes
    (MFA-006, SEC-012). Sign-in factor and enrollment steps are accepted only
    while their action is in next_actions; otherwise 409 unexpected_step
    (AUT-002, AUT-004). security.mfa_floor.admin_phishing_resistant and the
    realm's mfa.admin_phishing_resistant fail closed: realm policies that
    leave passkeys disabled are refused (422), a production server does not
    start with the floor when it provides no passkeys, and identity-cli doctor
    warns about realms already in that state (MFA-005). Affected: every
    earlier 0.2.0 prerelease; regression tests TestPasskeys,
    TestPhishingResistantUpgradeFromUnverifiedPasskey,
    TestFactorPolicyLeavesNoDeadEnd.
  • Organization role grants made outside the role routes need an MFA session
    (MFA-003, TEN-008, TEN-013) unless the realm waives it with
    mfa.org_admin_mfa_optional: adding a member with any role besides
    member; creating or reassigning an invitation, or a batch, that offers such
    a role or any project role; adding a member to a group that grants roles
    directly or through its ancestors; moving a group under such a parent; and
    setting a dynamic rule on such a group. A password-only organization
    administrator could grant the admin role this way; single-factor sessions
    now get 403 mfa_required. Affected: every earlier 0.2.0 prerelease;
    regression test TestOrgAuthorityGrantsNeedMFA.
  • Relationship (ReBAC) decisions and list-objects apply the same tenant
    eligibility as RBAC (AZ-007, AZ-010, AZ-021): nothing matches when the
    organization is not active, a membership stops counting once expires_at
    passes (before the expiry sweep), a rule-derived group membership counts
    only while its dynamic group is fresh and without rule error, and a service
    principal only while active and allowed in the organization. Affected:
    every earlier 0.2.0 prerelease; regression test
    TestRelationshipTenantEligibility.
  • An organization-scoped connection's just-in-time accounts get their
    upstream email verified only inside the organization's verified domains;
    elsewhere the address stays unverified behind verify_email, or is dropped
    when another account has verified it. Organization administrators can
    enable jit_provisioning only with a non-empty config.allowed_email_domains
    made of the organization's verified domains (422 otherwise). The google
    adapter believes email_verified only for gmail.com and googlemail.com
    addresses or when the hd claim equals the address's domain (REG-009,
    TEN-007, TEN-010, TEN-011, FED-002, FED-004). After upgrading, run the query
    in incidents.md to review accounts created
    by earlier alphas. Affected: every earlier 0.2.0 prerelease; regression
    tests TestOrganizationJITEmailVerification,
    TestOrganizationJITConnectionDomains, TestGoogleAdapterEmailAuthority.
  • The egress policy refuses zoned IPv6 literals (fc00::%0, fe80::1%eth0)
    under the public-only rule and compares every blocked range without the
    zone: netip prefixes never contain a zoned address, so such a literal
    passed every blocked range and counted as global unicast, which let an
    administrator-supplied webhook, hook, federation or provisioning URL name a
    private or loopback destination (SEC-007; found by FuzzAllowed in CI).
    Zoned addresses stay reachable only with allow_private_network or an
    explicit allowed CIDR. Affected: every earlier 0.2.0 prerelease; regression
    test TestAllowedRefusesZonedAddresses.
  • deploy/prod trusts the stack's own Docker network as the reverse proxy by
    default (NETWORK_SUBNET, 172.30.0.0/24), so client addresses behind the
    required HTTPS proxy reach the per-address sign-in budgets and the audit
    records instead of every user sharing the gateway's address; the install
    guide gains a reverse-proxy section. In production, X-Forwarded-For from
    a peer outside server.trusted_proxies logs a warning once a minute, and
    identity-cli doctor warns when the list is empty (ABU-001, SEC-001,
    DEP-002). Affected: deploy/prod of every earlier 0.2.0 prerelease;
    regression test TestUntrustedForwardedForWarnsOnceAMinute.

Fixed

  • Scheduled signing-key rotation keeps each realm's algorithm, taken from its
    active key; it reverted every realm to keys.signing_algorithm, which broke
    resources pinned to ES256, PS256 or EdDSA and fapi2 clients after
    keys.rotation_interval. KeyManager.Rotate runs the rotation guards for
    every caller and refuses with 409 an algorithm that pinned business
    resources reject (resources) or that leaves fapi2 clients with a
    non-FAPI 2.0 algorithm (clients); a refused scheduled rotation is logged,
    counted and skipped while the other realms rotate. POST /signing-key-rotations without algorithm keeps the realm's algorithm,
    and a resource created without signing_algorithm pins it (TOK-005,
    TOK-012, ADV-001).
  • SMTP delivery and the relay check run each session under a 30 s connection
    deadline, or the task's deadline if sooner, and close the connection when
    the worker task's context ends, so a relay or organization mail server that
    accepts connections and never answers cannot freeze the worker (TEN-022,
    MSG-012). Non-ASCII Subject and sender names are sent as RFC 2047 encoded
    words and non-ASCII body parts as quoted-printable (MSG-006).
  • Password sign-in no longer lets a slow or unreachable LDAP/AD directory hold
    every database transaction slot (NFR-002, DB-014): directory.sign_in_timeout
    (8 s) bounds one attempt's directory work across every endpoint and JIT
    connector, directory.max_concurrent_binds (half the transaction slots)
    fails fast with 503 unavailable and Retry-After, and password steps
    that may ask a directory are not retried after a deadlock, so a bind is
    never repeated. security.password.max_concurrent_hashes can bound Argon2id
    work the same way and is off by default. The two-phase password step that
    moves this work out of the transaction follows in 0.2.0-alpha.8.
  • Factor-policy narrowing is applied before the MFA requirement: a TOTP the
    realm no longer allows does not force MFA, a passkey does not count while
    passkeys are disabled, mfa.allowed_factors lists without an enrollable
    second factor are refused, and a policy stored earlier in that state reports
    mfa_enrollment_unavailable instead of an empty next_actions (MFA-003,
    MFA-005).

Known limitations

  • Not independently reviewed or certified (SEC-018, QA-005); no OpenID
    Foundation conformance suite has been run.
  • The Go and Node SDKs keep a retired or compromised signing key trusted until
    the verifying process restarts; after an emergency rotation, restart
    resource servers. SDK 0.3.0 adds key refresh and rejection.
  • Administrators of different organizations inside one realm are not yet
    separated from each other everywhere: an organization's mail server, egress
    allowances, membership expiry and the approval rule on every grant path are
    tightened in 0.2.0-alpha.7 and alpha.8. Until then, treat organization
    administrator as a trusted role.
  • Per-network abuse budgets key on the full IPv6 address and the token
    endpoint has one budget per client (0.2.0-alpha.6 changes both); the worker
    runs its tasks in one sequential loop (0.2.0-alpha.7 isolates them).

Docker image

docker pull ghcr.io/proudauth/proudauth:0.2.0-alpha.5

Digest: ghcr.io/proudauth/proudauth@sha256:196f994c2ed9c652b2a90df5977b57f0f35316ef5f825288e9c753f6655a712f · Install: Docker quickstart