Skip to content

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, this project adheres to Semantic Versioning, commits follow Conventional Commits, and this changelog is generated by Structured Changelog.

Unreleased

v0.45.0 - 2026-12-01

Highlights

  • Billing says when a subscription is set to end or change, keeps the customer portal, and checks that the payment provider's account is set up

Upgrade Guide

  • Run the schema migration: sf_subscriptions gains five columns
  • A deployment that takes payments subscribes its webhook endpoint to subscription_schedule.*, gives a restricted key read access to subscription schedules, and runs billing sync and billing check

Added

  • subscription.next and interval, taxAdded and app in the billing API
  • billing check, billing listen, systemauthsvc.CheckBilling and BillingWebhookURL
  • billing.portal and billing.app in the configuration
  • billing_interval and next_* on subscriptions, and marketplace.Subscription's matching fields

Changed

  • billing sync keeps a customer portal configuration of the app's own, which portal sessions use

Fixed

  • A canceled subscription was shown as renewing, since no cancellation was recorded
  • The guide's permissions for a restricted key left out read access to subscriptions

Dependencies

  • 1 dependency update

Documentation

  • What is set to happen, the portal, and checking an account

Tests

  • What is next in storage and in the billing API, the portal's and application's addresses, and the new commands

v0.44.0 - 2026-11-30

Highlights

  • Plans are sold through Stripe Managed Payments by default, or in the account's own name with billing.seller: self

Upgrade Guide

  • A deployment with a Stripe key sets billing.tax_code, and activates Managed Payments and runs billing sync, or sets billing.seller: self to keep selling in its own name; it refuses to start with neither. Free mode is unaffected. No migration
  • A host that calls billing.NewStripe sets StripeConfig.Seller to SellerSelf, or TaxCode; a spec with a marketplace needs SellerSelf

Added

  • billing.seller and billing.tax_code in the SystemAuth configuration, and Seller and TaxCode in billing.StripeConfig

Dependencies

  • 1 dependency update

Documentation

  • Who sells, in the billing guide

Tests

  • The seller and tax code in the configuration and the Stripe client

v0.43.0 - 2026-11-30

Highlights

  • SQLite is modernc.org/sqlite, pure Go, instead of go-sqlite3: nothing needs cgo, and driver: sqlite works in a binary built without it. PostgreSQL is unaffected

Upgrade Guide

  • No migration. A host that opens SQLite itself through this module's driver uses the name sqlite instead of sqlite3. A SQLite DSN with an option that is not known is refused

Changed

  • A SQLite database's foreign keys are on unless its DSN turns them off; go-sqlite3's _fk, _busy_timeout, _journal_mode, _synchronous and _txlock options, and their long forms, still work

Removed

  • github.com/mattn/go-sqlite3

Fixed

  • driver: sqlite failed at startup in a binary built with CGO_ENABLED=0

Tests

  • Foreign keys on every connection, options, refused options and how times are stored; tests open SQLite through internal/sqlitetest

v0.42.0 - 2026-11-30

Highlights

  • Server-side product analytics for applications: registered events only, people and organizations as keyed hashes, and off unless an application sets it up (ADR-026)

Upgrade Guide

  • No migration and no change in behavior. Choose an application's TELEMETRY_ID_KEY before its first event, since it cannot be rotated

Added

  • Package analytics: Client, Events with StandardEvents and MergeEvents, the Sender port, DistinctID and OrganizationRef, and a bounded queue that never blocks the caller
  • Package analytics/posthog: a sender that uses only the standard library, without person profiles or location, and FromEnv

Documentation

  • ADR-026, on product analytics and when a vendor sender may be part of SystemForge, and the product analytics guide

Tests

  • Hashing, the registry, removed properties, the queue, timeouts, and the PostHog request

v0.41.0 - 2026-11-30

Highlights

  • The same code as v0.40.1, and retracted: use v0.42.0, which has product analytics

v0.40.1 - 2026-11-29

Highlights

  • A halt of sign-in mail that cannot be recorded stays in force until it is

Upgrade Guide

  • No migration after v0.40.0. With mail.sign_in_budget, set per_client well below the budget and keep per_day below half the provider's daily quota

Fixed

  • When the database refused a sign-in mail halt, the instance resumed after 30 seconds with its budget reset and alerted again; it now stays halted and retries recording it
  • Requests that ran out together while a halt could not be recorded each sent an alert

Documentation

  • per_day is not a strict cap over 24 hours, and the default per_client lets one client address spend a budget of 20 an hour

Tests

  • An unrecorded halt past the cache's life, its recording and clearing, and one alert under concurrent requests

v0.40.0 - 2026-11-28

Highlights

  • A budget for the whole deployment's sign-in mail: when it runs out, sign-in mail halts until an operator clears it, and the operator is alerted by mail and a Slack or Discord webhook (ADR-025)

Upgrade Guide

  • Run the schema migration for the new sf_mail_halts table. Nothing changes without mail.sign_in_budget; when setting it, choose numbers above the real peak and below the mail provider's quota, and keep alert.webhook_url in the environment

Added

  • mail.sign_in_budget (per_hour, per_day, alert.email, alert.webhook_url) counts email sign-in codes and sign-in verification links across the deployment; using it up halts sign-in mail: the chooser and discovery leave out email, the email pages answer 503, and social sign-ins that need a mailed verification are refused
  • One alert per halt, by mail outside the budget and to a Slack or Discord incoming webhook through omnichat's notify, naming the window, budget, time and clear command but no address or code
  • Security events systemauth.mail.halted and systemauth.mail.resumed, mapped to OCSF Application Lifecycle Disable (High) and Enable
  • MailHaltStore with EntMailHaltStore (table sf_mail_halts, one standing halt per scope) and MemoryMailHaltStore; WithMailHaltStore and WithMailHaltHandler
  • systemauth mail halt status and systemauth mail halt clear --by <name>, and package identity/systemauth/mailcmd for a host CLI to mount them

Dependencies

  • 1 dependency update

Documentation

  • ADR-025, the sign-in mail budget in the email sign-in, verified email, Resend and launch guides, and the new events in the security and OCSF event references

Tests

  • Budget exhaustion, a single alert, hidden email, clearing and reset, suppressed sends, the daily window, a failing halt store, configuration validation, the halt stores under concurrency, the OCSF mapping and the halt commands

v0.39.1 - 2026-11-27

Highlights

  • Marketplace license access is limited to the organization that holds the license, and removing a member releases their seats

Upgrade Guide

  • No new migration. A deployment that writes seats to SpiceDB must pass organization.WithSeatSyncer; direct callers of AssignSeat must handle ErrNotOrganizationMember; seats of previously removed members need unassigning

Security

  • CheckPrincipal returned true for any principal when any organization held a valid unlimited license for the listing; it now requires belonging to the licensed organization (3326e96)
  • Removing a member left their license seats, and the access they granted, in place (7b8c448)
  • A seat assigned while its holder was being removed could survive the removal, and UnassignSeat could leave the seat's SpiceDB relationship (f26ddaf)

Added

  • organization.WithSeatSyncer and organization.SeatSyncer remove a removed member's seats from the authorization graph (7b8c448)

Changed

  • CheckPrincipal and AssignSeat require an active principal and organization with an owner, admin or member membership, or ownership of a non-human principal; collaborators are excluded (f26ddaf)
  • AssignSeat returns ErrNotOrganizationMember, and UnassignSeat keeps the seat when the graph refuses the removal (f26ddaf)

Documentation

  • Who a license covers, what releases a seat and which services need the SpiceDB syncer; the marketplace guide's license types and seat methods now match the code (8a9db7a)
  • Who belongs to a licensed organization (5e2d1e7)

Tests

  • Membership, standing, seat release and graph refusal, and PostgreSQL interleavings of assignment, removal and unassignment (f26ddaf)

v0.39.0 - 2026-11-26

Highlights

  • SystemAuth started without migrations refuses to start when the database schema is behind, naming what is missing, instead of failing on the first request that needs it
  • An application builds its sign-in buttons from the deployment: SystemAuth publishes its methods in discovery and the relying-party BFF serves GET /bff/auth/methods
  • identity/displayname decides what to show for a person with no name, so an email address is not shown as one

Upgrade Guide

  • There is no new migration since v0.38.0; a deployment that starts without migrations must have run them, or the service refuses to start: verify with systemauth migrate --check
  • Accept a missing name claim, and show stored names through displayname.Show, since names that are already addresses are not rewritten
  • Upgrade SystemAuth before the applications that read /bff/auth/methods; a client built with NewClientWithMetadata sets BFFConfig.SignInMethods

Added

  • systemauthsvc.CheckSchema, CheckMigrations and ErrSchemaBehind compare the database's tables and columns with the identity schema on PostgreSQL and SQLite; Options.SkipSchemaCheck opts out (c6663f1)
  • systemauth migrate --check verifies the schema without changing it and exits non-zero naming what is missing (16557ae)
  • The discovery extension sf_sign_in_methods_supported, relyingparty.Client.SignInMethods, BFFConfig.SignInMethods, BFF.SignInMethods, the SignInMethod type and the route GET <BasePath>/auth/methods (bbad19d)
  • The package identity/displayname: Safe, Or, Show, LooksLikeAddress and the neutral Default, "Member" (01d8ee2)

Changed

  • systemauthsvc.New refuses to start with ErrSchemaBehind when it does not migrate and the schema lacks a table or column (c6663f1)
  • The relying-party stores, oauthclient, the SCIM store and SystemAuth's directories never name a person by the email address, and a new account whose profile name is an address is asked for a name (01d8ee2)
  • The OIDC name claim is left out when the stored name is an address, so a relying party must accept a missing name (02c7c4c)

Fixed

  • A sign-in recorded by either relying-party store, and a SCIM update, could replace a good name with an address; each keeps the stored name unless the new one is a name (e879906)
  • A federation update with no name, or an address, overwrote the stored name (02c7c4c)

Documentation

  • The schema check in the deployment and embedding pages, with the INIT-SYSTEMFORGE-020 roadmap (aeffbb6)
  • The methods endpoint, the shared display name in ADR-024 and the INIT-SYSTEMFORGE-021 roadmap (ca48b6c)
  • The migration route for hosts coming from before v0.37.0, and that an email attached to a managed principal is a sign-in key (87f73cd)

Tests

  • The schema check on SQLite and PostgreSQL: unmigrated, migrated, a single missing column, the opt-out and repair (b1dc3f9)
  • The sign-in methods from SystemAuth's discovery document to the BFF: order, paths, override, unknown methods and an older SystemAuth (e09c872)

v0.38.0 - 2026-11-25

Highlights

  • A person's name is no longer made from their email address: SystemAuth asks a new account for its name, and optionally a workspace name, before creating it, so every application receives a real name claim and none needs a name prompt of its own for new accounts
  • The display name, the personal organization's name and its slug are never derived from the address: the name given or the provider handle, the workspace name given, and a handle or generated slug

Upgrade Guide

  • From v0.37.0 there is no migration: the sign_up_name token purpose is a plain value of an existing column, and nothing needs enabling; from an earlier version run the schema migration first (systemauth migrate or systemauthsvc.Migrate, which works on PostgreSQL and SQLite and creates sf_verification_tokens with its attempts column; migrations/0013_verification_token_attempts.sql is PostgreSQL-only and only for a database that already has that table and every earlier migration), because v0.38.0 parks every sign-up that needs a name in the verification token store, with or without mail
  • A host with its own name prompt for email accounts can drop it for new accounts and keep a guard that never shows or prints a name that is an email address, since accounts created earlier keep the names they have; build sign-in buttons from SignInMethods() instead of listing providers by hand

Added

  • The sign-up name step at /signup/name: a proven login with no name is parked in the verification token store (purpose sign_up_name), bound to the browser by __Host-sf_signup_name for 15 minutes, and asked for a name (up to 100 characters, printable, no @) and an optional workspace name (up to 80). Nothing is created until the form is answered, answering uses the parked sign-up once, and the form checks the origin and a token derived from the cookie. It follows the invite gate and the age question, never asks an existing account, and works without a mail section (21d182f)
  • SocialLoginConfig.SignInMethods and Server.SignInMethods list the methods a deployment offers in the order its sign-in page lists them, so a host builds its sign-in buttons from the deployment (1b836dd)
  • ExternalLogin.OrganizationName, the name the person gave their personal workspace (e442074)

Changed

  • The display name is the name given or the provider handle, never the email address, with the neutral "Member" for a directory used without the name step; the personal organization is named with the workspace name given, else the name, else the handle, and slugged with the handle or a generated slug, so a new Google account no longer gets its address's local part (e442074)

Fixed

  • The sign-up wrappers around account creation hid the directory's optional interfaces, so a deployment with an invite gate or an age check offered every provider on the sign-in methods page instead of listing the linked ones; they are read from the directory itself (21d182f)

Documentation

  • ADR-024 and the INIT-SYSTEMFORGE-019 roadmap, the name step in the email sign-in and social login pages, and the cookie, rate limit and organization slug guides (25764c8)

Tests

  • The name step: no account before the name, validation of names, a refused answer keeping what was typed, single use under concurrent answers, the form's origin and token checks, the order after the age question, social sign-in with and without a name, and a relying party receiving the name given (4d52d31)

v0.37.0 - 2026-11-25

Highlights

  • SystemAuth signs people in with a one-time code mailed to them, with no upstream provider account, so an application can launch without waiting for a GitHub or Google app review; every federated application gets it with no code of its own
  • Codes go through the same omnimail mail section as verification links, so the provider is configuration; sending through Resend's SMTP service needs no new code

Breaking

  • systemauth.VerificationTokenStore gains RecordAttempt and ConsumeToken: a host with its own store must implement them (storetest.VerificationTokenStore covers both) (5506deb)

Upgrade Guide

  • Run systemauth migrate (or start with --migrate), which works on PostgreSQL and SQLite and is the route for a database from before sf_verification_tokens existed; or, on a PostgreSQL database that already has that table and every earlier migration, apply migrations/0013_verification_token_attempts.sql, which adds sf_verification_tokens.attempts
  • A host with its own VerificationTokenStore or PrincipalEmailChanger implements the new methods and the unlinking; the conformance suite checks the store
  • To enable email sign-in, configure mail and set social_login.email: {}; set tokens.hmac_secret, which production requires; production refuses the log mail provider. Deploy this release before listing email in an application's oauthProviders

Added

  • social_login.email section: code_length (6 to 10), code_lifetime (5m to 30m) and max_attempts (3 to 10), validated, requiring mail; an empty section enables it with the defaults, and the configuration schema lists it (ddbb280)
  • Email one-time code sign-in at /login/email, /login/email/code and /login/email/code/resend: the code is stored as a keyed hash bound to the browser and the address, each entry is counted atomically before it is compared, a correct code is used once, a replaced code cannot be used, a suppressed send leaves a code no entry can match, and asking for a code looks up no account. A proven address resolves through ResolveExternalLogin as provider email, so the sign-up gate, age question, invite codes, linking by verified email, consent and the session apply (20ab4a9)
  • idp_hint=email skips the sign-in page when email sign-in is configured, the sign-in page lists Email, and the relying-party BFF serves /bff/auth/email (10f08d2)
  • Security events systemauth.email_code.sent and systemauth.email_code.exhausted, mapped to OCSF Authentication events, with sign-in refusal reasons code_mismatch, code_unusable and stale_email_identity; no event holds a code or an address. Code entries are limited per client address with DefaultEmailCodeSubmitLimit (20 a minute) (d6c47e3)
  • VerificationTokenStore.RecordAttempt counts an attempt against the newest usable token atomically and hands back its own count, and ConsumeToken uses one row by ID, refusing a row a newer one replaced; the sign_in_code purpose, sf_verification_tokens.attempts and migrations/0013_verification_token_attempts.sql; time-ordered token IDs keep tokens issued at the same instant in issue order (d597bc9)

Changed

  • PrincipalEmailChanger.ChangeEmail unlinks the principal's email sign-in identity in the same transaction, in the Ent and in-memory directories, so control of the old mailbox no longer reaches the account; identities of other providers stay (f2d6a3c)

Dependencies

  • 1 dependency update

Documentation

  • ADR-023, the INIT-SYSTEMFORGE-018 roadmap, and the guides: Sign In with an Email Code, Sending Mail with Resend, the how-to guide, and updates to the social login, verified email, cookie, rate limit, sign-up age and invite guides (b409de7)

Tests

  • Email sign-in through a real SystemAuth and a real relying-party BFF with a browser that follows redirects and keeps cookies, and handler tests for entries racing resends, the attempt limit, replaced codes, address changes, suppressed sends and events (d627875)

v0.36.0 - 2026-11-21

Highlights

  • SystemAuth's PostgreSQL pool size is configurable with database.max_open_conns, so it can match the database role's connection limit

Added

  • database.max_open_conns caps SystemAuth's PostgreSQL pool; zero or unset keeps 20, idle connections stay at five or the pool size when smaller, and a negative value is a configuration error. DatabaseConfig.OpenConns and DefaultMaxOpenConns give the effective size (5b5183e)

Documentation

  • Deployment guide: sizing the database pool to the role's CONNECTION LIMIT (e01861b)

v0.35.0 - 2026-11-18

Highlights

  • The sign-up age question can link to the deployment's page explaining why it asks, with SignupAgePage.ReasonURL

Added

  • SignupAgePage.ReasonURL and ReasonLabel: the age question and the refusal link to a page explaining why the deployment asks; the label defaults to "Why we ask", and without a URL no link is shown (544e46a)

Documentation

  • The minimum sign-up age guide shows how to link the question to why it is asked (84a3d19)

Tests

  • TestSignupAgePageReasonLink: the link appears with a ReasonURL and not without one (487c5ab)

v0.34.0 - 2026-11-12

Highlights

  • A sign-out can land where the person signed in: social_login.managed_signed_out_url sends a session signed in with a managed principal's login token, such as a child's on a shared device, back to the app's sign-in page while other sign-outs keep signed_out_url
  • Entitlements can follow billing's free mode with marketplace.WithoutPayments, resolving v0.33.0's known issue

Upgrade Guide

  • A host that builds marketplace.EntitlementSource over the platform subscription passes marketplace.WithoutPayments() when Service.TakesPayments() is false; without the option the behavior is unchanged
  • To send children back to the app's sign-in page on a shared device, set social_login.managed_signed_out_url to an allowed URL; leaving it unset keeps every sign-out as before

Added

  • social_login.managed_signed_out_url: where a sign-out lands for a session signed in with a managed principal's login token, in place of signed_out_url and whatever return_to the app sent; it must pass the redirect allowlist (7b1b0af)
  • marketplace.WithoutPayments() makes EntitlementSource grant a subscription only an operator's plan, as in billing's free mode, and Service.TakesPayments() reports whether billing takes payments (a billing section with a Stripe key) (099074b)

Fixed

  • Entitlements can follow free mode: with marketplace.WithoutPayments a paid plan stored from an earlier configuration grants nothing, matching OrganizationPlan (099074b)
  • The free-mode startup log says an operator's plan still applies (4b2a419)

Documentation

  • The social login and relying-party guides describe managed_signed_out_url (921ecaf)
  • The billing guide describes marketplace.WithoutPayments in free mode (5b0eaa7)

Tests

  • A login token's session lands on managed_signed_out_url, other sessions keep signed_out_url or their return_to, a sign-out without a session is not treated as managed, and an unlisted URL is refused at startup (3dee36d)
  • TestEntitlementsWithoutPayments, and TestBillingFreeMode and TestBillingWithStripe check TakesPayments (099074b)

v0.33.0 - 2026-11-12

Highlights

  • A deployment sells its plans with configuration alone: SystemAuth wires billing from a billing section and the host's pricing spec, and organizations choose and pay for a plan in the organization console, with a free mode when there is no Stripe key
  • An operator puts an organization on any plan of the spec, including internal plans, and billing events never change it

Upgrade Guide

  • Run the schema migration (systemauth migrate, or Schema.Create; the systemauth binary migrates at startup by default) to add the operator's plan columns to sf_subscriptions, which every query of subscriptions reads, with or without billing; no SQL migration is needed
  • To sell plans, pass the pricing spec as Options.Pricing, add a billing section, add billingcmd.Command to the host's CLI, set the Stripe key's secret and run billing sync, then add the webhook endpoint and set its signing secret

Added

  • The billing section of the SystemAuth configuration: the Stripe secret key and webhook signing secrets as secret references, with free mode when there is no key (361b6bd)
  • systemauthsvc builds billing from the section and Options.Pricing: the webhook at /billing/webhook, locks across instances on PostgreSQL, Options.OnPlanChange and Service.OrganizationPlan (ae96a9b)
  • The console's billing API under /console/api/v1/organizations/{org}/billing: the plan, the subscription and the pricing view for members, and checkout and the customer portal for owners and admins (billing.NewConsole) (9fb25b9)
  • billing.OrganizationPlaceholder in redirect URLs, filled with the organization the caller was authorized for, and names under localhost treated as loopback hosts in test mode (c42d16e)
  • systemauthsvc.SyncPrices and billingcmd.Command with billing sync [--dry-run], which create or update Stripe's products and prices from the pricing spec without starting the service (4064bbd)
  • An operator's plan on the platform subscription (operator_plan, operator_note, operator_set_at), honored by Subscription.GrantedPlan, OrganizationPlan, the entitlements and GetPlanTier (0fe2d3b)
  • Billing events keep an operator's plan, plan checkout is refused with 409 while it is set, and the console's billing status reports setByOperator (33b8af9)
  • billing plan list|show|set|clear in billingcmd, naming an organization by slug, ID or owner's email (e49eecd)

Fixed

  • In free mode every organization is on the pricing spec's default plan, even one with a stored paid subscription (4063784)
  • Billing accepts a storage client the host passes in instead of requiring database in the configuration (067c849)
  • An operator's note is limited to 200 characters rather than 200 bytes (9262096)

Dependencies

  • 6 dependency updates

Documentation

  • ADR-021, billing in the organization console (487154a)
  • ADR-022, plans set by the operator (a8ef73d)
  • Plans for support requests and feedback (INIT-SYSTEMFORGE-016), with ADR-019 updated so hosts supply help desks and bot challenges and the mail desk is optional (3adb6f6)
  • A guide to selling plans from the console, and billing in the console guide, the deployment guide and the README

Tests

  • Test tokens in identity/relyingparty get random IDs, so two made in a row are not refused as a replay on Windows (5589920)

Known Issues

  • marketplace.EntitlementSource still grants a stored paid plan in free mode, unlike OrganizationPlan
  • The billing page of @plexusone/console ships in a later systemforge-web release; until then the console serves only the billing API

v0.32.1 - 2026-11-06

Added

  • systemauth.Server.Principal returns a human principal's profile from social login's directory (dd0381d)
  • console.Options.Profile supplies the signed-in person's name, email and avatar to the console's session (4571bca)
  • The connections API returns each connection's health.details, what its last successful check found the credential reaches, such as the Search Console properties an account can read (846ed7b)

Fixed

  • The organization console's profile menu showed no name or picture; its session now carries them, filled by systemauthsvc from SystemAuth's directory (4571bca)

Dependencies

  • 1 dependency update

Documentation

  • The console guide describes the person's profile in the session

Tests

  • The console's session with and without a profile, and Server.Principal with and without social login (e54e806)

v0.32.0 - 2026-11-05

Highlights

  • A manager replaces a managed principal's login tokens in one call: every live token is revoked and one issued, atomically, so a lost card is retired and reprinted in one step
  • The sign-in methods page shows the account's linked methods, offers only the others, and links back to the application through a validated return_to

Security

  • Issuing and replacing a login token check the issuer's authority under the managed principal's row lock, in the transaction that issues, so a manager removed at the same moment can no longer be issued a token (0d8d277)

Added

  • managedprincipal.Service.ReplaceLoginTokens revokes every live login token and issues one in one transaction; a failure while issuing revokes nothing (289b658)
  • POST /{principalID}/login-tokens/replace answers 201 with the new token and the number revoked; mpclient.Client.ReplaceLoginTokens calls it (289b658)
  • Audit event managed_principal.login_tokens_replaced, with the number of tokens revoked (289b658)
  • The sign-in methods page shows the account's email and its linked providers, with a Link button only for the others (19553ad)
  • /account/sign-in-methods?return_to=... shows a back link to an allowed return_to, kept through signing in, linking and the callback and validated again at each step (19553ad)
  • Optional LinkedProviderLister directory interface, implemented by the Ent and memory directories (19553ad)

Documentation

  • Replacing a card in the managed principals guide and the architecture's route list (6a73560)
  • Linked methods and return_to on the sign-in methods page in the social login guide (c6be3bb)

Tests

  • Replacing login tokens: every live token revoked and one issued, a failed issue keeps the old token, refusals revoke nothing, single-use and expiry honored, and the route and client (f263e91)
  • Sign-in methods page: linked providers listed and not offered, valid and invalid return_to, and return_to kept through the link and the signed-out redirect (53b650d)
  • A manager removed between the client check and the transaction is refused for issuing and replacing; two concurrent replaces on PostgreSQL leave one live token; a failed replace had revoked the old token before rolling back (8630cb2)

v0.31.0 - 2026-11-04

Highlights

  • Only owners manage admins: granting the admin role, changing, deactivating or removing another admin, changing their application roles, and sending, resending or revoking admin invitations need the owner-only permission
  • Return addresses with dot segments are refused, so a client that rebuilds an allowed path cannot be sent to another host
  • Organization logo and website URLs and application logos must be absolute https URLs on write; avatars that are not https are not stored

Breaking

  • An admin can no longer grant the admin role, or change, deactivate or remove another admin or change their application roles: these answer 403 unless the caller is an owner. An admin may still step down or leave (afc8fcc)
  • Inviting an admin, and resending or revoking an owner or admin invitation, needs the owner-only permission; a pending admin invitation an admin sent can no longer be accepted (invite.ErrInviterNotAuthorized) (8aa1694)
  • Organization create and update refuse a logo_url or website_url they supply that is not an absolute https URL with organization.ErrInvalidURL (400); an empty value clears it (8a7acdf)
  • principal.Service.CreateApplication and UpdateApplication refuse a logo URL that is not an absolute https URL with principal.ErrInvalidURL (8a7acdf)
  • return_to values with . or .. path segments, plain or percent-encoded, or whose path decodes to //, are refused by sign-in's redirect policy (ErrRedirectNotAllowed), Server.ValidateReturnTo and the relying-party BFF (400) (e470751)
  • organization.Service gains RemoveMemberIfRole; implementations of the interface outside SystemForge must add it (bda0700)

Upgrade Guide

  • Have an owner revoke any pending admin invitation an admin sent and create a new one: it can no longer be accepted, resending keeps its original inviter, and a pending invitation blocks a new one for the same email
  • Grant the owner role to everyone who should manage admins; keep at least two owners per organization, since a platform administrator is otherwise the only one who can change the admins of an organization whose only owner is unavailable
  • Existing stored URLs are not changed and are still served. Find organizations whose logo_url or website_url is not https, applications whose logo is not, and people whose avatar_url is not, and replace or clear them. A write is refused only when it supplies a URL that is not https
  • Clients that send return_to values with dot segments must send the canonical path instead

Security

  • change_role let any admin promote members to admin, demote, deactivate or remove other admins, change their application roles and invite admins, so one admin account could replace the rest; these now need an owner (afc8fcc)
  • An admin could resend or revoke an owner's pending owner or admin invitation; managing an invitation now needs the authority to send it, and accepting an admin invitation needs an inviter who is still an owner (8aa1694)
  • Demoting an owner revokes its pending admin invitations as well as its owner invitations (afc8fcc)
  • The return-to policies checked the raw value for a leading //, so /.//host/x passed; a client that resolved it and rebuilt the URL from its path was sent to another host (e470751)
  • Organization logo and website URLs, application logos and avatars were stored unchecked, so a javascript:, data: or http: value reached every browser that showed them. Avatars and personal-organization logos from identity providers that are not https are dropped, so sign-in does not fail (8a7acdf)
  • The member endpoints read the target's role, decided the permission the change needed, and wrote without checking the role again, so an owner's promotion landing in between let an admin demote or remove the new admin; the write now applies only while the authorized role holds (bda0700)
  • An https URL with no host name, such as https://:443/x, passed the URL check (7899b8d)

Added

  • organization.RoleManagedByOwners reports whether only an owner may grant a role or act on someone holding it (owner and admin) (afc8fcc)
  • organization.ErrInvalidURL and principal.ErrInvalidURL for URLs that are not absolute https URLs (8a7acdf)
  • UpdateMemberInput.IfRole, Service.RemoveMemberIfRole and organization.ErrMembershipChanged (409): a member change applies only while the member still has the role it was authorized against (bda0700)

Fixed

  • An avatar that is not https is cleared instead of stored as an empty string (7899b8d)

Documentation

  • The organizations design and invites guide describe owner-only management of admins (5de5a1a)

Tests

  • Owner-only management of admins, their application roles and admin invitations, including what admins may still do (64cc6aa)
  • Dot-segment return addresses in both redirect policies, and https checks for organization, application and avatar URLs (e470751)
  • Role-conditional member writes, cleared avatars and URLs without a host name (5fc2f7e)

v0.30.5 - 2026-11-02

Highlights

  • A signed-in person can link another provider's sign-in to their account at /account/sign-in-methods, so either reaches the same account

Security

  • Linking needs a session for the account that started it and an allowed origin, never moves an identity from another account, never creates an account and never changes its email (18333eb)

Added

  • /account/sign-in-methods and POST /account/sign-in-methods/{provider}: link a provider's sign-in to the signed-in account (SignInMethodsPath) (18333eb)
  • The security event systemauth.sign_in_method.linked, for a completed link and a link the callback refuses, as OCSF User Management, Update (18333eb)

Documentation

  • The social login guide describes linking sign-in methods; the OCSF guide lists the new event (2159827)

Tests

  • Linking, relinking, signing in with a linked identity, and refusals for another account's identity, a missing session and a cross-origin start (1dc9898)

v0.30.4 - 2026-11-02

Highlights

  • social_login.signed_out_url lands every sign-out on the product's own page, such as its marketing site
  • SystemAuth's waitlist page links back to signed_out_url as "Back to" the product's name, so it is no longer a dead end

Added

  • social_login.signed_out_url: where every sign-out lands, whatever return_to the app sent; it must pass the redirect allowlist (bba72ce)
  • social_login.signed_out_name: the display name of the site at signed_out_url, shown on the waitlist page's link back to it; default: the URL's host (7552f80)

Documentation

  • The social login and relying-party guides describe signed_out_url (1285b92)
  • The social login and deployment guides describe signed_out_name and the waitlist page's link back (d6c6ff5)

Tests

  • A sign-out lands on signed_out_url, an open return_to is still refused, and an unlisted URL is refused at startup (e0e83eb)
  • The waitlist page links back to signed_out_url by its name before and after joining, names its host by default, and shows no link without one (1257a93)

v0.30.3 - 2026-11-02

Highlights

  • SystemAuth's sign-in, sign-out, consent, sign-up and email pages are styled: a centered card in light and dark, with the sign-in options as buttons

Added

  • /assets/systemauth.css (PageStylePath): the pages' stylesheet, embedded and served from the issuer's origin, linked by every page with its content hash (7564e10)

Changed

  • The sign-in page lists its options in a nav, as buttons (7564e10)

Documentation

  • The deployment guide's security headers section describes the stylesheet (160ff73)

Tests

  • The stylesheet is served and cached by version, every page links it, and the no-inline-code check allows only that same-origin link (1185a05)

v0.30.2 - 2026-11-02

Highlights

  • With one sign-in provider, the sign-in page waits for a click instead of redirecting, so signing out is no longer undone by the provider's own session

Security

  • GET /login no longer redirects straight to a single provider: after signing out, the provider's session and remembered authorization signed the person straight back in (ed99aca)

Added

  • social_login.auto_select_single_provider restores the redirect to a single provider (ed99aca)

Documentation

  • The social login guide describes the sign-in page and auto_select_single_provider (9ad9e0f)

Tests

  • The sign-in page with one provider, and auto_select_single_provider (348bbdf)

v0.30.1 - 2026-11-02

Highlights

  • Signing out of an app also ends the SystemAuth login session, so the next sign-in asks who the person is instead of resuming it

Security

  • POST /bff/auth/logout asked for JSON returns SystemAuth's sign-out page and where to return, so the client ends the SystemAuth login session as well as the app's; before, a person who signed out was signed straight back in by the still-open login session (5b14124)

Added

  • BFFConfig.SignOutURL: SystemAuth's sign-out page, the issuer's /logout by default, or - to leave it out; and the SignOutResponse and SystemAuthSignOut types (5b14124)

Documentation

  • The relying-party guide describes ending the SystemAuth login session after POST /bff/auth/logout, and its same-site requirement (51b70be)

Tests

  • The logout response with and without JSON, a set and a refused SignOutURL, and an absolute DefaultReturnTo (6a24341)

v0.30.0 - 2026-10-29

Highlights

  • contract/audit/ocsfaudit writes SystemForge's security events as OCSF 1.10 events, one JSON object per line, to an io.Writer the host names, for a security data lake or SIEM that ingests OCSF
  • audit.NewMultiEmitter hands every security event to several emitters, such as the log emitter and the OCSF emitter

Security

  • OCSF events identify people only by principal ID and client address: names, email addresses, session tokens, tokens, token and code prefixes, codes and free-text reasons are left out of every field (a revoked managed-principal session is named by its record UUID), and event details reach the output only through a per-event-type allowlist of codes, UUIDs, booleans, integers and times (f8f5d44)
  • The client sends the User-Agent, so it can carry an email address or a token; both the log emitter and the OCSF emitter now record it only through audit.SanitizeUserAgent, which removes control characters and then leaves out a value that looks like it holds an email address or a credential (a heuristic for the common shapes) (8eaa650)
  • Token and authorization code replay events are High severity with is_alert, a platform-admin grant is High, and a production waiver at startup is Medium (f8f5d44)

Added

  • ocsfaudit.New(w, Options): an audit.Emitter that maps each event to an OCSF class (Authentication, User Management, Group Management, Entity Management, Application Lifecycle, or Base Event for an unknown type), entities OCSF has no type for as type_id Other with the type named,, with product, vendor and deployment metadata (metadata.reporter.name), the organization in metadata.tenant_uid and the request ID in metadata.correlation_uid (f8f5d44)
  • Emit never blocks, logs or fails the request: it queues each line in a bounded buffer written by one goroutine, and drops and counts events when the buffer is full (Dropped) or cannot encode them (EncodeFailures); a reporter goroutine logs the counts once a minute and on Close, write failures and short writes are counted (WriteFailures) and logged at most once a minute, a line torn by a failed write is the only one lost, and Close drains, flushes and syncs (423324d)
  • audit.MultiEmitter and audit.NewMultiEmitter (76693ba)
  • Dependency github.com/grokify/ocsf-schema-go v0.2.0 (d9c1761)
  • audit.SanitizeUserAgent: removes control characters and invalid UTF-8, then leaves out a User-Agent that looks like it holds an email address or a credential, and cuts any other to 512 bytes (8eaa650)

Changed

  • audit.LogEmitter leaves out a User-Agent that holds an email address or a credential-like value (8eaa650)

Documentation

  • docs/security/ocsf-events.md: wiring with an append-mode file, the event mapping, fields, privacy rules and buffering (66895d1)
  • The README and the documentation home feature security events and OCSF output (bbece5f)
  • The OCSF page states the schema version 1.10.0-dev, recommends rotating by renaming over copytruncate, and describes delivery, session IDs and the User-Agent exactly (cabf495)
  • The README's privacy claim covers the OCSF emitter and says what the log emitter records; rotation by renaming waits for the reopen and uses delaycompress with compression (23c5e87)

Tests

  • The OCSF output of every security event type, with success and failure variants, validates against the schema embedded in ocsf-schema-go (7b8d38e)
  • The tests proving no token or secret reaches a log or event also run the OCSF emitter, and email verification and change events carry no address (b0e01a3)
  • Every event, Base Event included, validates through ValidateEvent with no skipped issues; torn lines, short writes, Emit with a stuck logger, periodic drop reports, unsyncable files and User-Agent sanitizing are tested (423324d)
  • A torn line stays marked through a failed Write that wrote nothing, and control characters cannot hide an email address from the User-Agent check (0300d41)

v0.29.0 - 2026-10-29

Highlights

  • SystemAuth asks for consent by the client's party: clients get party (first_party, second_party or third_party) and an optional logo_url, only first-party clients skip the consent screen, and social_login.skip_consent no longer auto-consents every client
  • The authorization endpoint honours the OIDC prompt parameter, so a first-party application can sign a user in silently, and the login chooser names the requesting client and shows its logo
  • Verified email: with a new mail section, SystemAuth verifies an unverified provider email at sign-in, lets a signed-in person change their email at /account/email, and carries email_verified_at in ID tokens and UserInfo
  • Configuration secrets resolve through an omnivault vault named in secrets.vault, with the environment as the default, and no cloud SDK in the library packages
  • systemauth org member add|remove|list, organization slug resolution for relying parties, and read-only application vocabularies in the product contract API

Breaking

  • Run migrations/0012_oauth_app_party.sql on an existing database without startup migration; it adds sf_oauth_apps.party and fills it from first_party. Without the column, reading or writing an OAuth application fails (7004ac7)
  • social_login.skip_consent and WithSkipConsent no longer grant consent; users of a second- or third-party client, including any client registered at runtime without a party, are asked for consent (6f0803a)
  • DefaultSessionProvider records no consent and now reports none; a deployment using it with second- or third-party clients needs a SessionProvider that records consent (6f0803a)
  • rate_limit.redis_url is now expanded like the other secret fields, so a literal $ in it is expanded (4a4470a)

Upgrade Guide

  • Run systemauth migrate (or start with --migrate), or apply migrations/0012_oauth_app_party.sql; the schema migration also creates sf_verification_tokens
  • Set party: first_party or second_party on runtime-registered clients the operator or a customer owns; otherwise their users are now asked for consent. Clients in the configuration file are rewritten as first_party at startup unless they set party
  • Remove social_login.skip_consent and WithSkipConsent; they are ignored, and SystemAuth logs a warning at startup when skip_consent is set
  • To verify unverified provider emails, add a mail section; ses needs a sender (systemauthsvc.Options.MailSender or systemauth.WithMailSender; the systemauth binary builds it from mail.ses), and production refuses log. Without mail, sign-ins with an unverified provider email are refused as before
  • To read secret references from a vault other than the environment, set secrets.vault to an omnivault URI, register cloud schemes with omnivault.RegisterProvider in your binary, or pass a resolver to LoadConfigWithResolver
  • Escape any literal $ in rate_limit.redis_url

Security

  • social_login.skip_consent granted consent for every client to users signed in through social login, and DefaultSessionProvider's WithSkipConsent did the same, so once a client the operator does not own was registered its users were never asked; the authorization endpoint now decides by the client's party, and a second- or third-party client needs the user's recorded consent to every requested scope (6f0803a)
  • A client from a custom Storage that does not report its party is treated as third-party, and a client registered at runtime without a party is third_party (5ad47a0)
  • Email verification links are single-use, purpose-scoped and stored as SHA-256 hashes; a verify_email link completes only in the browser that started the sign-in and an email_change link only from a session of the principal that asked, each behind an origin-checked CSRF form, so a forwarded or scanned link cannot complete it (54303df)
  • Verification mail is limited per recipient address and per client address on the shared rate limit storage, and requests answer the same whether or not a message was sent or the address belongs to an account (17fee3f)
  • Production mode refuses mail.provider: log, with no waiver, because it writes verification links to the server log (17fee3f)
  • The client logo on the login chooser must be an https URL, is rendered by html/template, and only that page allows images from its origin in the content security policy (aa33316)

Added

  • Client party (first_party, second_party, third_party) and logo_url on Client, static clients, OAuthClient and Ent storage (sf_oauth_apps.party, sf_oauth_apps.logo_url); unknown parties are refused by Config.Validate, NewClientFromConfig, RegisterClient and both storages (5ad47a0)
  • sf_oauth_apps.party in the identity schema and migrations/0012_oauth_app_party.sql (7004ac7)
  • OIDC prompt at the authorization endpoint: none answers login_required or consent_required instead of showing a page, login re-authenticates, consent always shows the consent page, select_account is accepted with no effect, and none with another value or an unknown value is invalid_request (fdbd39e)
  • The login chooser names the requesting client and shows its logo_url (aa33316)
  • VerificationTokenStore with memory and Ent implementations (sf_verification_tokens) and the storetest.VerificationTokenStore conformance suite (3df8231)
  • Ent schema VerificationToken (sf_verification_tokens) (e870e8a)
  • SystemAuth configuration mail (provider ses, smtp or log, from, reply_to, product_name, support_url, token_lifetime from 5m to 24h with a default of 30m, per_address default 5 an hour, per_client default 20 an hour, smtp.*, ses.region, ses.configuration_set); systemauth.WithMailSender and systemauthsvc.Options.MailSender; the systemauth binary builds the Amazon SES sender (17fee3f)
  • A verify-email step at social sign-in for an unverified provider email, with a rate-limited resend; a confirmed address counts as proven (ExternalLogin.EmailProven) (54303df)
  • Email change at /account/email with a notice to the current address; PrincipalEmailChanger, implemented by the Ent and memory directories (67aa733)
  • Security events systemauth.email_verification.sent, systemauth.email.verified, systemauth.email_change.requested, systemauth.email_change.cancelled and systemauth.email.changed, and the sign-in refusal reason verification_invalid (54303df)
  • email_verified_at claim (a NumericDate, with the email scope) in ID tokens, UserInfo and discovery's claims_supported; HumanPrincipal.EmailVerifiedAt, and relyingparty.IDTokenClaims.EmailVerifiedAt, UserInfo.EmailVerifiedAt (*jwt.NumericDate, accepting integer and floating-point values) and VerifiedIdentity.EmailVerifiedAt (396032e)
  • secrets package: Resolver, New and Env; SystemAuth configuration secrets.vault; systemauth.LoadConfigWithResolver, ParseConfigWithResolver, DecodeConfigWithResolver and DecodeConfigFileWithResolver; systemauthsvc.LoadConfigWithResolver and LoadConfigBytesWithResolver (4a4470a)
  • systemauth org member add, remove and list (identity/organization/membercmd) for managing members and application roles without the HTTP API (66a30b1)
  • GET /oauth/userinfo/memberships/resolve?slug=, the optional MembershipResolver interface implemented by EntOrgsSource, relyingparty.Client.ResolveOrganization and relyingparty.ErrOrganizationNotResolved (2b666ca)
  • GET {base}/policy/vocabularies in the product contract API and contract.WithVocabularies (08a28f4)
  • Dependencies github.com/plexusone/omnimail v0.1.0 and github.com/plexusone/omni-aws v0.11.0 (17fee3f)

Changed

  • Clients declared in the configuration file default to first_party and are rewritten from it at startup; clients registered at runtime default to third_party (5ad47a0)
  • With mail configured, a social sign-in whose provider email is not verified is held for verification instead of refused (54303df)
  • rate_limit.redis_url is expanded like the other secret fields; every secret field is resolved through the secrets resolver (4a4470a)
  • The example configuration and the CLI help no longer mention skip_consent (9496517)

Deprecated

  • social_login.skip_consent: ignored, with a warning at startup (6f0803a)
  • DefaultSessionProvider option WithSkipConsent: a no-op (6f0803a)
  • sf_oauth_apps.first_party: use party; it is kept equal to party == first_party (7004ac7)

Documentation

  • Verified email guide: configuration, messages, abuse controls, the sign-in step, email change and what relying parties receive (396032e)
  • Sending Mail with Amazon SES: domain identity, Easy DKIM, SPF through a custom MAIL FROM domain, DMARC, a configuration set, leaving the sandbox and a least-privilege policy (396032e)
  • Client parties, consent, prompt, the client name and logo, and the sf_oauth_apps.party upgrade (9496517)
  • Secrets and secrets.vault in Deploying SystemAuth (4a4470a)
  • Organization slug resolution for relying parties, application vocabularies, entitlements in the orgs claim and systemauth org member
  • v0.29.0 release notes

Tests

  • Product entitlements in the orgs claim across the ID token, JWT access tokens, UserInfo and the memberships endpoint (2c6605a)
  • A managed principal created through appauth Transport against a packaged SystemAuth, and refused without DPoP proofs (bbf8362)
  • Configuration clients stored before parties existed stay first-party after an upgrade (2b5d5b9)
  • The legacy-name gate blocks Core-era names, the cf_ prefix and upstream GitHub and Google OAuth wiring outside identity/oauthclient, and skips .claude (49f8029)
  • Verification token store conformance, verify-email and email-change flows, mail limits and the prompt values

v0.28.0 - 2026-10-29

Highlights

  • Layered rate limits are on by default in SystemAuth: a limit per client address on every route, route policies for the token, login, sign-up and BFF sign-in paths, limits on failed client authentication, the JWT-bearer grant and social login, and a signed-in limit, all on one shared storage and answered with IETF RateLimit-Policy and RateLimit headers
  • One client-address rule (session/clientaddr), configured with trusted proxy networks and the header they write, used by SystemAuth, the BFF, appauth, rate limits and security events
  • Structured security events through contract/audit, logs without stack traces or secrets, and no internal error text in about 60 API responses
  • Static API key authentication is removed from relying parties; a threat model documents the trust boundaries and their mitigations

Breaking

  • appauth.Options.APIKeys, relyingparty.BearerConfig.APIKeys, relyingparty.APIKeyValidator, relyingparty.AuthMethodAPIKey and relyingparty.AuthenticatedPrincipal.APIKeyID are removed; a non-JWT Bearer value is answered 401 with invalid_token, and X-API-Key is ignored (bc9558e)
  • Rate limits are on by default in SystemAuth; set rate_limit.disabled: true to turn off the default layer and route policies when the host applies its own (handler limits stay on) (50704e6)
  • Organization API status codes: the personal-organization conflict is 409 on every path, a storage error while reading a member is 500 instead of 404, and an unexpected error on create or remove is 500 instead of 400 (511701e)
  • Error responses of the organization, marketplace, contract, invite, connections, managed-principal, identity sync and sign-up APIs and the bearer and DPoP middlewares carry fixed messages instead of the underlying error text (511701e)
  • contract.ToContractError no longer copies a non-contract error's text into its message (13364ef)
  • ratelimit.Limiter.Middleware answers 429 instead of 503 when a MemoryStorage is full (395e6ee)
  • bff.CookieConfig.Validate rejects SameSite=None (107bf57)
  • EmbeddedOAuthProvider.Revoke returns an error wrapping ErrInvalidToken for an unknown, expired or already revoked token (3c9390d)

Upgrade Guide

  • Behind a reverse proxy, set client_address (for example trusted_proxies: ["127.0.0.1/32", "::1/128"] with header: X-Forwarded-For); otherwise every visitor has the proxy's address and the per-address limits apply to all of them together
  • With several SystemAuth instances, set rate_limit.redis_url; with one, set rate_limit.single_instance: true
  • A relying party that calls /oauth/token from one server address should add that network to rate_limit.exempt_networks, or raise the token route's limits under rate_limit.routes
  • Move API key callers to identity/publicclient sign-in (command-line tools) or service accounts (automation), and remove APIKeys from appauth.Options and relyingparty.BearerConfig
  • Wire an audit emitter (systemauthsvc.Options.AuditEmitter, or systemauth.WithAuditEmitter, organization.WithAuditEmitter, principal.WithAuditEmitter and serviceaccount.Config.Audit) and ship the events off the host
  • Expect 429 responses with Retry-After and RateLimit headers, and check clients that rely on the old organization status codes or on error text in responses

Security

  • SystemAuth had no limit on most routes, so credential endpoints could be guessed at and any route flooded; layered rate limits now apply by default: 300 requests a minute per client address on every route, route policies for /oauth/token (per address and per OAuth client), /login*, /signup* and /bff/auth/*, and exemptions for health checks, static assets and the billing webhook (50704e6)
  • Handler limits cover failed client authentication at the token endpoint (per address and client, then per address), tokens issued per service account by the JWT-bearer grant, and social login start and callback; the login-token, waitlist, sign-up code and managed-principal code limits move onto the shared storage (50704e6)
  • On a storage outage the default layer and the signed-in limit let requests through and log the failure, while the route policies and credential handler limits refuse with 503; a full MemoryStorage is always a 429, so a flood of new addresses cannot switch limits off (395e6ee)
  • Client addresses were found in several ways, some of which believed forwarding headers from any peer; session/clientaddr believes X-Forwarded-For (read from the right) or a single-value header only from trusted proxy networks and falls back to the direct peer (2687031)
  • Token, authorize and access-token log records carried the error value, which slog's text handler formats with its stack trace; they now carry the RFC 6749 error code, description, hint and status, adding the cause by message only at debug level or for server errors (f82ee42)
  • Tests run sign-in, the authorization code flow with PKCE, refresh, code and refresh-token replay, client credentials, JWT bearer, revocation, logout and BFF sign-in and sign-out at debug level and fail if any token, code, verifier, secret, DPoP proof, assertion, key or session cookie appears in a log record or security event (72be528)
  • SystemAuth, organizations, platform administration and service accounts record security events through an audit.Emitter, each with the request ID and the visitor's address, and never a token, code or secret (b764542)
  • Security events recorded the direct peer as the client address, so behind a reverse proxy every event named the proxy; they now use the client-address rule (c21a796)
  • About 60 API responses across organization, marketplace, contract, invite, connections, session/middleware, managed principals, SystemAuth identity sync and the sign-up API copied internal error text, such as database errors, into the response body; known errors now map to fixed messages and anything else is logged and answered with a generic 500 (511701e)
  • bff.CookieConfig accepted SameSite=None, which lets the browser send the session cookie on cross-site subrequests that the origin check relies on it withholding; Validate and NewHandler now refuse it (107bf57)
  • EmbeddedOAuthProvider.Revoke passed the raw token where storage expects a request ID, so it reported success without revoking anything; it now revokes the access and refresh tokens of the token's family (3c9390d)
  • The multiapp server and the publicclient loopback callback server set no ReadHeaderTimeout, so a client could hold a connection open by sending headers slowly; every server systemforge builds now sets it (b390161)
  • Static API keys were a second, weaker way into a relying party: long-lived bearer secrets outside the short-lived, revocable access tokens; they are removed (bc9558e)

Added

  • session/clientaddr: Resolver, Config (TrustedProxies, Header), New, MustNew, LoopbackProxy, Peer, PeerAddr, PeerIP and ParseNetworks (2687031)
  • SystemAuth configuration client_address.trusted_proxies and client_address.header, and systemauth.WithClientAddressResolver; scimtoken.WithClientAddress, bff.ClientIPConfig.Resolver, appauth.Options.ClientAddress and Authenticator.ClientAddress (2687031)
  • ratelimit.Policy, PolicyConfig, NewPolicy, Route, RouteLimit, DefaultRoutes, MergeRoutes, the route names (RouteToken, RouteLogin, RouteSignup, RouteBFFAuth, RouteHealth, RouteStatic, RoutePaymentWebhook), KeyAddress, KeyClient and AddressKey (395e6ee)
  • ratelimit.NewSignedInLimiter, SignedInKey, Check, Exhausted, Record, WriteHeaders, WriteTooManyRequests, RetryAfterSeconds, WithName, WithSkip, and Peek on MemoryStorage and RedisStorage (395e6ee)
  • SystemAuth configuration rate_limit.disabled, redis_url, single_instance, default, signed_in, exempt_networks and routes (name, paths, methods, per_address, per_client, exempt, fail_open) (50704e6)
  • systemauth.WithRateLimitStorage, Server.RateLimitStorage, Server.RateLimitPolicy, Server.SignedInRateLimit and Server.ClientAddress; systemauthsvc.Options.RateLimitStorage; appauth.Options.SignedInRateLimit (50704e6)
  • audit.Context.RequestID, audit.RequestID, audit.NopEmitter, audit.NewLogEmitter and requestprincipal.AuditActor (8f4422e)
  • systemauth.WithAuditEmitter: sign-ins and their refusals, sign-outs, refused token requests, refresh-token reuse, authorization-code replay, token and token-family revocations, and the signing key in use at startup (b764542)
  • organization.WithAuditEmitter, principal.WithAuditEmitter and serviceaccount.Config.Audit: membership, ownership, platform administration and service account changes (0c33a0b)
  • systemauthsvc.Options.AuditEmitter reaches SystemAuth and the organization and principal services, and each production check waived at startup is recorded as a systemauth.production.waiver event; the systemauth command writes its security events to its log (a82d77e)
  • Sentinel errors organization.ErrOwnerRequired, ErrAlreadyMember, ErrNewOwnerNotMember and ErrInvalidOwnerRole (511701e)
  • Sentinel errors marketplace.ErrInvalidListing and ErrListingNotDeletable (1d36333)
  • Sentinel errors invite.ErrInviteNotFound, ErrPendingInviteExists, ErrAlreadyMember, ErrAppRolesNotConfigured and ErrCollaboratorAppRoles (f5df37b)

Changed

  • Responses carry the IETF RateLimit-Policy and RateLimit headers beside X-RateLimit-*, and Retry-After is rounded up to at least one second (395e6ee)
  • systemauthsvc warns in production when rate limit counters are per instance and no single instance is declared (50704e6)
  • The bearer and DPoP middlewares answer the matching sentinel's text, or authentication failed, instead of the full error chain (f2ce11d)

Deprecated

  • ratelimit.ForwardedClientIP and ratelimit.ForwardedIPKey; use a clientaddr.Resolver with ratelimit.AddressKey (2687031)
  • systemauth.WithLoginTokenClientIP; configure client_address or use WithClientAddressResolver (2687031)
  • bff.CloudflareClientIPConfig and the ClientIPConfig fields TrustCloudflare, TrustProxy, TrustedProxies and CloudflareIPRanges; set ClientIPConfig.Resolver (2687031)

Removed

  • appauth.Options.APIKeys, relyingparty.BearerConfig.APIKeys, relyingparty.APIKeyValidator, relyingparty.AuthMethodAPIKey and relyingparty.AuthenticatedPrincipal.APIKeyID (bc9558e)

Fixed

  • Security events behind a reverse proxy recorded the proxy's address instead of the visitor's (c21a796)
  • EmbeddedOAuthProvider.Revoke reported success without revoking the token (3c9390d)

Documentation

  • Threat model: scope and assumptions, assets, actors, trust boundaries, threats and mitigations per boundary, and residual risks (5cee54e)
  • Security events: how to record them, their common fields and each event type (0af03b0)
  • Client addresses and rate limiting guide, with the client_address and rate_limit settings in Deploying SystemAuth and the production checklist (b202382)
  • Upgrade section for the removal of static API keys in the application authentication guide (1c4e6db)
  • Rate limiting described as shipped in the threat model (3bde6b3)
  • v0.28.0 release notes

Tests

  • Client addresses: spoofed headers, proxy chains, IPv6 and ports (59e4812)
  • Rate limits: each layer, headers, storage outages and exemptions (33fa3c0)
  • Logs and security events carry no tokens or secrets, and each security event is recorded (72be528)
  • No internal error text in the responses of each API changed

v0.27.0 - 2026-10-28

Highlights

  • Production hardening for SystemAuth: authorization codes and refresh tokens are used once under concurrency, social sign-in links to an existing account by email only when the provider is authoritative for the address, production startup fails closed on the token HMAC secret, bearer-token clients and a per-instance DPoP replay cache, and every response carries security headers
  • Payments move onto payforge in the new billing package: a verified, idempotent webhook handler, plans, sales, refunds, disputes and sellers applied to the database and the authorization graph, and checkout and customer-portal handlers with configured redirects; marketplace/stripe is removed
  • A security policy (SECURITY.md) and a production checklist for operators

Breaking

  • marketplace/stripe, marketplace.CheckoutService and its request and session types, EntService.WithCheckout, Service.Checkout, the marketplace API's POST /checkout and WithPurchaseAuthorizer are removed; use billing.Checkout and its endpoints, passing the PurchaseAuthorizer as CheckoutConfig.Purchases (d5e6d5b)
  • Outside development mode SystemAuth refuses to start without tokens.hmac_secret, or without dpop.replay_cache_redis_url, Options.DPoPReplayCache or dpop.single_instance, or with a statically configured client that sets allow_bearer_tokens, unless the check is waived in production.allow (74f8f52)
  • Outside development mode the token endpoint refuses the client_credentials grant from a client authenticating with a shared secret, and every request from an allow_bearer_tokens client, with unauthorized_client, unless waived (852ae8f)
  • A social sign-in links to an existing account by email only when the provider is authoritative for the address; otherwise an email that belongs to an account is refused with ErrEmailConflict, and GitHub sign-in uses the primary email only (f5ba501)
  • SystemAuth pages send Referrer-Policy: same-origin instead of no-referrer (d49cd53)
  • marketplace.Subscription.IsActive is true for a past-due subscription (03abe3b)

Upgrade Guide

  • Set tokens.hmac_secret (at least 32 bytes, stable across deploys, for example ${SYSTEMAUTH_TOKEN_HMAC_SECRET}); people sign in once more after the first deploy with it
  • Set dpop.single_instance: true when one instance serves SystemAuth, or dpop.replay_cache_redis_url when several do; set appauth.Options.SingleInstance for an application served by one instance
  • Move client_credentials clients to service accounts, or list client_secret_client_credentials in production.allow; likewise bearer_token_clients for allow_bearer_tokens clients
  • Migrate from marketplace/stripe to billing following the billing guide, and run the schema migration for the sf_billing_* tables
  • A person who signed up with one provider and now uses another whose email is not authoritative for the address signs in the original way
  • A reverse proxy must not overwrite Referrer-Policy: same-origin keeps the Origin header on same-origin form posts

Security

  • An authorization code could be exchanged, and a refresh token rotated, twice by concurrent requests, because Fosite reads before it writes and the storage did not run the two in one transaction; invalidating a code now matches only an unused code and rotation retires the presented refresh token only while it is active, so the losing request gets no tokens (d94d342)
  • The memory store returned no request for a used authorization code, so a replayed code answered server_error and left the tokens it had issued active; it now returns the request and the tokens are revoked (d94d342)
  • A new GitHub or Google identity was linked to any existing account with the same verified email, so whoever kept a stale verification of an address (such as a former work address) could sign in to the account of its current owner; an identity now links by email only when the provider is authoritative for the address (Google for gmail.com and googlemail.com, and for a Workspace account's own hd domain), and GitHub sign-in uses the primary email only (f5ba501)
  • SystemAuth started in production without a token HMAC secret, with statically configured allow_bearer_tokens clients, and with a per-instance DPoP replay cache; these now fail closed unless waived in production.allow or, for the replay cache, dpop.single_instance is set, and the token endpoint refuses client_credentials with a shared secret and allow_bearer_tokens clients with unauthorized_client (74f8f52)
  • SystemAuth pages set no security headers; every response now carries a content security policy with frame-ancestors 'none', X-Frame-Options, X-Content-Type-Options, Referrer-Policy: same-origin and, on an https issuer, HSTS (d49cd53)
  • The marketplace/stripe payment path had no webhook handler, failed on Stripe API-version mismatches, never retried a failed authorization sync, had no replay or ordering protection, redirected to request-supplied success_url and cancel_url (an open redirect), returned raw errors to clients, and would retry another application's events forever; billing on payforge replaces it (d5e6d5b)

Added

  • billing: Store, payforge's store on the Ent client for processed event IDs (sf_billing_events) and the customer-to-organization mapping (sf_billing_customers) (4f4b6a5)
  • billing/pglock: payforge's Locker as a PostgreSQL transaction-scoped advisory lock held on its own connection, shared by every instance (4f4b6a5)
  • billing.NewWebhookHandler: verifies with payforge's reader under its body limit, applies the event under the organization's lock, answers fixed words, and acknowledges duplicate, ignored, other-mode and foreign events (47e2546)
  • billing.NewSink: payforge's entitlement, sale, seller and dispute sinks and the webhook's checkout completer, applying plans, licenses from recorded orders (sf_billing_orders), refunds (sf_billing_refunds), disputes (sf_billing_disputes) and seller accounts (sf_billing_sellers) in one transaction and re-writing the authorization graph on every apply (5fc3fbc)
  • billing.NewSellerGate, marketplace.PublishGate, marketplace.ErrSellerNotReady and EntListingService.WithPublishGate: a paid listing is published only when its seller can take charges (5fc3fbc)
  • billing.NewCheckout: plan checkout, one-time listing checkout and the customer portal for the caller's organization, with configured https redirects on allowed hosts and fixed JSON errors; billing.NewStripe builds payforge's Stripe client and webhook reader for production (67e08b6)
  • appauth.Options.SingleInstance; New warns when DPoP proofs use a per-instance replay cache on a public URL (3b1b26d)
  • production.allow (ephemeral_hmac_secret, client_secret_client_credentials, bearer_token_clients), dpop.single_instance, and systemauth.WithProductionPolicy with ProductionPolicy (852ae8f)
  • oauthclient.User.HostedDomain, read from Google's hd claim, and systemauth.AuthoritativeEmail with ExternalLogin.EmailAuthoritative (f5ba501)
  • Ent tables sf_billing_events, sf_billing_customers, sf_billing_orders, sf_billing_refunds, sf_billing_disputes and sf_billing_sellers, created by the schema migration (4f4b6a5)
  • relyingparty.BFFConfig.LoginErrorPath and appauth.Options.LoginErrorPath: a browser whose sign-in fails at the BFF's login or callback routes is redirected to the app's sign-in page with ?error=<CODE> instead of shown a JSON error; requests that ask for JSON still get JSON (69ce7a4)
  • relyingparty.BFF.SignOut ends a browser session (deletes it, revokes its SystemAuth refresh token, clears the cookie) without writing a response, for handlers that serve their own sign-out; /bff/auth/logout calls it after its cross-origin check (fb08960)

Changed

  • Discovery stops listing client_credentials when the production policy refuses it (852ae8f)

Removed

  • marketplace/stripe, marketplace.CheckoutService, EntService.WithCheckout, Service.Checkout, POST /checkout and WithPurchaseAuthorizer (d5e6d5b)

Fixed

  • A past-due subscription keeps its plan while the provider retries the payment, so the organization's entitlements no longer drop the paid tier during retries (03abe3b)
  • Cookie-authenticated writes required a JSON body even with an allowed Origin, so signed-in browsers could not upload files with multipart/form-data or send bodyless writes; with an allowed Origin any body is now accepted, and without one the JSON body and an allowed Referer are still required (f59dd02)
  • billing.NewCheckout accepted loopback redirect URLs with any Stripe key; they now pass only with a test-mode key, and a provider that reports no mode counts as live (b906d66)

Dependencies

  • 3 dependency updates

Documentation

  • Security policy (SECURITY.md): reporting through GitHub private vulnerability reporting, response targets, supported versions and disclosure (ad689bc)
  • Production checklist for operators (f439c79)
  • Production checks, waivers and dpop.single_instance in Deploying SystemAuth and the DPoP pages (0314b62)
  • Security headers in Deploying SystemAuth (0631cb0)
  • The production checklist names each check's key and waiver (32b5d63)
  • Billing guide, with the upgrade from marketplace/stripe (d5e6d5b)
  • Production hardening and billing roadmap (8cd6533)
  • v0.27.0 release notes

Tests

  • Production checks, waivers and the replay cache warning (67feabf)
  • Security headers on every SystemAuth page (9a508ff)
  • SCIM-provisioned users link only on authoritative sign-ins: a Workspace sign-in links, a GitHub sign-in with the same verified address is refused (ee8a640)

v0.26.0 - 2026-10-28

Highlights

  • identity/appauth assembles the relying party for an application in a few lines, with the same defaults everywhere: a required DPoP key, labelled configuration errors, memberships filtered to the application's roles, one request-authentication chain, and calls to SystemAuth for the signed-in person
  • Service accounts: automation that belongs to an organization, holds application roles there, and calls APIs with short-lived DPoP-bound tokens it gets by signing an assertion with a private key (the RFC 7523 JWT-bearer grant), managed with the service-account command and used from Go with identity/serviceclient
  • Refresh tokens survive a SystemAuth restart and work on every instance with tokens.hmac_secret, which rotates with tokens.hmac_verification_secret

Added

  • identity/appauth: Config with Validate and labels a host can relabel, ConfigFromEnv, ParseDPoPKey, ReadDPoPKeyFile and DPoPKeyCommand (d4f1f61)
  • appauth.New: the relying-party client from metadata or discovery, the /bff/* handler, an application membership filter, Middleware and Authenticate returning a requestprincipal.RequestPrincipal, extra authenticators, SessionToken and Transport for calls to SystemAuth, and RFC 9728 resource metadata (abd85d8)
  • pgstore.PrincipalStore on a new sf_rp_principals table created by EnsureSchema, with SetActive and Delete; NewStores returns it (6708140)
  • storetest.PrincipalStore, a conformance suite for principal stores (e79798a)
  • identity/serviceaccount: service accounts in an organization with a service_account membership, keys generated as P-256 or supplied as ES256, RS256 or EdDSA, application roles, and disable, enable, delete and key revocation recorded as access changes; revoking a usable key ends the account's current tokens (3f236a1)
  • The JWT-bearer grant behind oauth.jwt_bearer (enabled, maximum assertion lifetime, token lifetime): self-issued assertions verified against a service account's keys, a DPoP proof required, replayed jti refused, tokens with the account as subject, the orgs and principal_type claims and no refresh token, under the reserved client systemauth-jwt-bearer (78fc8ac)
  • identity/serviceclient: signs assertions, requests DPoP-bound tokens with nonce retries, renews them before expiry, and adds proofs to API requests (425235d)
  • relyingparty.BearerConfig.ServicePrincipals and VerifiedIdentity.Service: an application creates a service account's local principal on its first request, and refuses a service-account token whose local principal is not of type service; appauth.Options.ServiceAccounts turns it on and accepts relyingparty.ServiceAccountClientID (6a466d9)
  • serviceaccountcmd, the service-account command (create, list, show, disable, enable, delete, key add|list|revoke, role grant|remove) that systemauth registers and a host mounts (6168a12)
  • principal.Service.CreateServiceInTx creates a service principal inside a caller's transaction (aca6b61)
  • MemoryPrincipalStore.SetActive (6a466d9)
  • tokens.hmac_secret and tokens.hmac_verification_secret (TokenConfig.HMACSecret, HMACVerificationSecret, MinHMACSecretLength): the secret signing authorization codes, refresh tokens and opaque access tokens, at least 32 bytes and expanded from the environment, and a second secret accepted but not signed with during a rotation (54f81f9)

Changed

  • approle accepts service_account memberships, so service accounts hold application roles (7e1535f)
  • Token introspection includes the orgs, orgs_truncated and principal_type values the access token was issued with, for every principal (7b154a2)

Deprecated

  • appauth.Options.APIKeys: command-line tools sign in with identity/publicclient, and automation uses service accounts (ADR-016)

Fixed

  • relyingparty.RequestAuthenticator answers a cookie-authenticated cross-origin write with 403 CSRF_REJECTED and no challenge, instead of a 401 that tells the client to sign in again (662ffaa)
  • Refresh tokens and authorization codes no longer stop working at every SystemAuth restart and on other instances when tokens.hmac_secret is set; without it SystemAuth warns that they will (54f81f9)

Documentation

  • Authenticating an Application guide, including moving an existing principals table into sf_rp_principals (86cfadf)
  • Service Accounts walkthrough, and ADR-016 records the service account's JWT-bearer grant (4aa14ce)
  • The relying-party setup example sets the DPoP key; the session/bff and session pages point to identity/appauth (86cfadf)
  • Specs for application authentication and service accounts (8fe4bc5)
  • The API keys page shows a truncated sample key, and the API key, marketplace and Ent store examples use the sf prefix (60e437f)
  • The token HMAC secret and its rotation in Deploying SystemAuth and Rotating Keys and Secrets (ea624df)
  • v0.26.0 release notes

Tests

  • appauth against an embedded SystemAuth requiring DPoP nonces: browser sign-in, cross-origin writes, a restart with the same key and stores, command-line tokens, another client's tokens, a bound token refused as Bearer, and calls to SystemAuth with Transport (51647ea)
  • The JWT-bearer grant end to end with P-256 and RSA keys: issuance, introspection, DPoP binding, and refusals for replay, expiry, overlong lifetime, missing jti, wrong audience, missing proof, revoked keys and disabled accounts (9df9951)
  • From command to application: an account created, granted a role and given a key calls an appauth API through serviceclient, loses the role's organization after the role is removed, gets no token once disabled, and is deleted with its issued tokens in place (633812d)
  • Codes and refresh tokens across a restart with and without tokens.hmac_secret, and a secret rotation through pre-staging, promotion, rollback and retirement (8f67e3d)

v0.25.0 - 2026-10-27

Highlights

  • relyingparty.Client.Transport lets relying parties call SystemAuth's APIs, such as the managed-principal API with mpclient, with their people's DPoP-bound session tokens, which SystemAuth refuses as Bearer

Security

  • relyingparty.Client.Transport reads a JWT's cnf binding only after its signature verifies against SystemAuth's keys and its issuer matches, so it makes no DPoP proof for a token SystemAuth did not issue; a forged token is refused with ErrInvalidToken

Added

  • relyingparty.Client.Transport: an http.RoundTripper that presents the token the caller set in Authorization with the DPoP scheme and a new proof when it is bound to the client's key (or opaque), as Bearer when unbound, refuses a JWT bound to another key with ErrForeignDPoPToken (SystemAuth refuses an opaque one), and retries once with SystemAuth's nonce when the request body can be sent again (5538912)

Changed

  • The relying party's calls to userinfo, memberships and access changes go through Transport; a JWT access token is sent only once its signature verifies against SystemAuth's keys (5538912)

Documentation

  • mpclient, Managed Principals, Relying Party and Calling APIs with DPoP: sending DPoP-bound session tokens to SystemAuth's APIs (8940e2b)
  • v0.25.0 release notes

Tests

  • Cover the transport for each kind of token, another key's token, and nonce retries with and without a resendable body; against SystemAuth, mpclient's bound token is refused as Bearer and works through the transport, with and without nonces (d5c5e4f)

v0.24.0 - 2026-10-27

Highlights

  • identity/publicclient lets command-line tools and other public clients sign people in to SystemAuth and call SystemForge-powered APIs with DPoP-bound tokens, for tools a deployment ships to its users and tools others write against it alike. Nothing is registered per person or machine: a key is generated at login and the tokens are bound to it

Added

  • publicclient.Login: the authorization code flow with PKCE on a loopback redirect (RFC 8252, any port), a new P-256 DPoP key, ID token verification, and the key and tokens saved to a Store (c669c68)
  • Session.Transport and Session.HTTPClient: Authorization: DPoP with a proof bound to the access token (RFC 9449) on every request, refresh a minute before expiry, and one retry for use_dpop_nonce or invalid_token; the request body is closed on every path (c669c68)
  • publicclient.Open and Session.Logout: reuse a stored session, and revoke the refresh token and delete the credentials (c669c68)
  • publicclient.Store and FileStore: one owner-only file, refused when others can read it, written atomically and flushed with its directory so a crash cannot bring back a redeemed refresh token (31ffdf7)
  • publicclient.Locker, implemented by FileStore with flock or LockFileEx: processes sharing the credentials refresh and log out under the lock, and adopt tokens another process refreshed instead of redeeming the old refresh token, which SystemAuth would answer by revoking the login; the system releases the lock when its holder exits (6eaa391)

Dependencies

  • 1 dependency update

Documentation

  • Calling APIs with DPoP: command-line tools and other public clients, registration, storage and several processes (1e82ecb)
  • Calling APIs with DPoP: durable saves and the operating-system lock (9c2e039)
  • ADR-019 (proposed): the support UI, the requester's list of their own requests, and support tools built for agents first (e0d1bf7)
  • ADR-019: agents send a reply only after a person approves it (ddce341)
  • ADR-019: a support conversation keeps its reply address while it continues (cad9289)
  • v0.24.0 release notes

Tests

  • Against an embedded SystemAuth that requires DPoP nonces and an API behind relyingparty.BearerMiddleware: login, calls with proofs, Bearer refused, refresh with rotation, processes sharing credentials, logout, refused logins, the file store, unlock failures and closed request bodies (c84d638)

v0.23.0 - 2026-10-27

Highlights

  • aauthrs accepts auth tokens only from their rightful issuer: in four-party only the Audience Access Server, in three-party only a trusted Person Server issuing for itself, so a Person Server trusted for person tokens can no longer grant itself scopes that bypass the Access Server
  • aauthrs refuses a request signed for another server, so an agent's signed request cannot be replayed to a resource it was not meant for
  • Updates aauth-go to v0.3.0

Breaking

  • aauthrs: an Access Server's auth tokens are accepted only when it is named in Config.Audience; listing it in TrustedIssuers no longer admits them, and a trusted issuer's auth token with dwk aauth-access.json is refused in three-party (051e23b)

Upgrade Guide

  • A resource that accepts auth tokens from an Access Server sets aauthrs.Config.Audience to it; when the Person Server and Access Server share one origin, name it in both TrustedIssuers and Audience
  • An application that also depends on aauth-go directly reviews its v0.3.0 migration guide: agent identifiers must be in their provider's domain, and servers built on its personserver and accessserver stores gain new methods

Security

  • aauthrs enforces who may issue an auth token, which aauth-go leaves to the caller; before, any issuer in TrustedIssuers was accepted with either dwk (051e23b)
  • aauthrs defaults Signature.Authority to the host of Resource, so a verified signature is bound to this resource; agent tokens carry no audience, so a request signed for another server could otherwise be replayed in agent-token mode (4adc9f4)

Added

  • aauthrs.Config.IsRevoked, asked about every token once it and the request signature verify: a revoked token is a 401 revoked_jwt, unavailable revocation state a 500, as in aauth-go's ResourceGuard (e9ac963)

Dependencies

  • 1 dependency update

Documentation

  • The AI Agents (AAuth) guide covers Audience, the signature authority, IsRevoked, and choosing three- or four-party (36d4c69)
  • v0.23.0 release notes

Tests

  • Cover the auth-token issuer rules in three- and four-party, a request signed for another server, and the revocation hook (3ae1567)

v0.22.0 - 2026-10-25

Highlights

  • Invite-gated sign-up grows a deployment on purpose: operators create invite codes with use limits, expiry and cohort labels, members invite people from an allowance, every account records which invite admitted it, and an HTTP API serves admin and member pages

Added

  • signupgate.CodeStore: invite codes stored as hashes and shown once, reserved with one conditional update so a code admits at most its use limit, redemptions for attribution, and member allowances with single-use member codes (8ffe82f)
  • systemauth.WithSignupCodes: the /signup?code= page and invite_code on provider sign-in carry a code to the sign-up gate; SignupGateAborter lets a gate give back a reservation when account creation fails (89d2b55)
  • signupgate/signupapi: operator routes for email invites, codes, the waitlist, allowances and joined accounts, and member routes for a person's own codes, with audit events (1551e8a)
  • systemauthsvc options SignupCodes, SignupPage, MemberInvites and SignupAPI, and Service.SignupCodes and Service.SignupAPI (93915ad)
  • Commands code, allowance, waitlist invite and admin (principal/admincmd) for operators, including granting the first platform administrator (e75977e)
  • Migration 0011 records who created a sign-up invite and when a waitlist entry was invited (f7ee741)

Documentation

  • Invite-Gated Sign-Up guide (bb60e66)

v0.21.0 - 2026-10-25

Highlights

  • Tokens are DPoP-bound by default: SystemAuth and the identity/oauth provider verify DPoP proofs (RFC 9449) at the token endpoint and bind access and refresh tokens to the proof's key, the relying-party, session and multi-app middleware accept a bound token only with a proof by its key, and the BFF presents tokens with proofs by the session's key; unbound bearer tokens remain only as an explicit per-client opt-out (allow_bearer_tokens)
  • Keys and secrets rotate N / N-1: JWT signing keys carry key IDs and pre-staged verification keys, and client secrets, BFF session sealing keys and SCIM tokens keep the current and previous value valid, so a rotation can be rolled back without signing anyone out
  • Built-in per-tenant SCIM tokens: the scimtoken store issues, rotates and revokes hashed tokens bound to one organization, and the packaged SystemAuth service serves SCIM 2.0 and token management with them
  • Revocations reach the ReBAC graph first: removing access deletes the relationships under advisory graph locks before the database change commits and fails when the graph refuses, a reconciler repairs the graph from the identity tables, and the packaged service runs in mode rebac
  • Each multi-app application connects with its own database login, verified at startup to be confined to its schema, reads the shared identity tables read-only, and is migrated by a separate step that keeps the owner login out of app servers

Breaking

  • systemauth: token requests without a DPoP proof are refused unless the client sets allow_bearer_tokens; tokens are DPoP-bound and must be presented with the DPoP scheme and a proof. Existing databases need migrations/0010_oauth_app_allow_bearer_tokens.sql. EmbeddedOAuthProvider.UserInfo refuses DPoP-bound tokens, and AuthorizeIntrospectionCaller also accepts the DPoP scheme
  • systemauth: a token subject must be a principal ID; tokens for other subjects are refused, and custom Storage implementations must implement PrincipalActive
  • systemauth: a client secret older than the two newest active secrets no longer authenticates
  • systemauth: WithAccessChanges takes an AccessChangeScope; without one /access-changes answers 501
  • systemauth: EntStorage.UpdateHuman with Active false fails, and the principal stays active, when the graph refuses to remove its relationships, and it records a deactivation access change
  • oauth: clients without allow_bearer_tokens must send DPoP proofs and present tokens with the DPoP scheme; NewProvider requires Config.PrivateKey or AllowEphemeralKey; API.Middleware panics without WithAcceptedClientIDs or WithAnyClient; Provider.Session returns *systemauth.Session
  • token: IssueInput.DPoPJKT and RefreshInput.DPoPJKT are replaced by DPoP *dpopproof.Proof, and bound tokens have TokenType DPoP
  • relyingparty: BearerMiddleware and RequestAuthenticator panic when Tokens is set without BearerConfig.DPoP or AllowBearerTokens, and always refuse a DPoP-bound token sent as Bearer; relying-party instances sharing sessions must share Config.DPoPKey
  • session/middleware: HTTPAuth, HTTPAuthForAudience, HTTPAuthOptional, ChiAuth and ChiAuthOptional take a DPoPConfig, return an error and refuse unbound tokens unless DPoPConfig.AllowBearer is set; the bearer-only middleware is renamed HTTPAuthBearer and its variants
  • session/middleware: APIKeyMiddleware panics without OwnerCheck, and RequireAPIKey, RequireAPIKeyWithScopes and OptionalAPIKey take an APIKeyOwnerCheck
  • session/jwt: NewService fails with ErrMissingIssuer without Config.Issuer and with ErrWeakSecret for an HMAC secret shorter than the hash output
  • multiapp: AuthMiddleware returns (middleware, error), needs MiddlewareConfig.JWTService and DPoP.ReplayCache, and refuses unbound tokens unless DPoP.AllowBearer is set
  • multiapp: every app needs its own database login in Config.AppDatabases; Config.DatabaseURL is removed, MigrationDatabaseURL is refused without AllowInProcessMigrations or AllowSharedDatabaseLogin, RegisterApp fails when the app schema is missing, and an AppAwareDB serves one schema unless opened with AllowSharedLogin or AsMigrationLogin
  • multiapp: RoleProvisioning with nil SharedReadTables, and multiappdb without --shared-table, grant SELECT on the default shared identity tables; restricted tables are refused
  • bff: the default session cookie is __Host-sf_session (sf_session when insecure), NewHandler refuses invalid __Host- and __Secure- cookie configs, and CookieConfig.Domain is removed
  • bff: NewOmniStorageStore with the redis backend requires SiteID and a Sealer (or InsecurePlaintext), NewOmniStorageStoreWithKVS returns an error and requires both, and the default key prefix is session:<SiteID>:
  • bff: NewEntStore requires a Sealer or EncryptionKey (ErrSealerRequired) and writes sealed fields in a format earlier versions cannot open
  • oauthclient: the state cookie is __Host-sf_oauth_client_state; SetStateCookie returns an error, NewStateManagerInsecure takes a *slog.Logger, a StateManager is Secure unless AllowInsecure is set, and SameSite Strict or None is refused
  • organization, approle, resourcegrant, managedprincipal, principal: a revocation whose graph removal fails returns the error and leaves the database unchanged, also in SyncModeEventual; approle.RemoveForMember removes nothing on a graph error, and resourcegrant.GrantInTx may write to the graph before commit when lowering a grant
  • principal: Deactivate fails, and the principal stays active, when the graph refuses to remove its relationships; Update with Active false records a deactivation access change
  • organization: demoting a member to collaborator deletes their application roles in the organization, and admins can add members directly only when APIConfig.DirectAdd allows it
  • authz/mode: in mode rebac the reconciler removes the relationships of deactivated principals and collaborators' application-role relationships
  • scim/store: DeleteUser answers 409 for a user who actively manages other accounts; platform CreateGroup refuses an externalId that is not a valid, available slug, and DeleteGroup soft-deletes and refuses personal organizations
  • contract: RecordAuditEvent, GetAuditStreamConfig and IsAuditStreamEnabled are methods of *contract.API (AuditStreamConfig for the second)
  • systemauth: the connections setting allow_private_egress is removed; use egress_allow_prefixes and allow_http_egress (506c9ed)
  • bff: a redis backend whose RedisURL names a non-loopback server without rediss://, a password or certificate verification fails with an error wrapping omnistorage-core's ErrInsecureConnection unless AllowInsecureRedis is set (ca5266c)
  • keys: an existing connections keyring refuses to open after the upgrade until it is accepted once with systemauth keys accept-rollback --confirm, since keyforge v0.2.0 authenticates the keyring's rollback state; a keyring moved to a new host without that state needs the same (89719ae)

Upgrade Guide

  • Build with Go 1.26.10 or later
  • systemauth: run migrations/0010_oauth_app_allow_bearer_tokens.sql on an existing database; clients must send DPoP proofs, or set allow_bearer_tokens on clients that cannot yet. Several instances share dpop.replay_cache_redis_url; behind a proxy that strips a prefix set dpop.resource_base_url
  • relyingparty: set Config.DPoPKey (shared by instances that share sessions) and BearerConfig.DPoP with a replay cache, or AllowBearerTokens for legacy clients
  • session/middleware: pass a DPoPConfig to HTTPAuth and handle its error, or switch to HTTPAuthBearer to keep accepting only bearer tokens; give APIKeyMiddleware an OwnerCheck
  • session/jwt: set Config.Issuer and an HMAC secret of at least 32, 48 or 64 bytes for HS256, HS384 or HS512
  • multiapp: handle the error from AuthMiddleware and set MiddlewareConfig.JWTService and DPoP.ReplayCache, or DPoP.AllowBearer
  • multiapp: provision a login per app with RoleProvisioning or multiappdb, set AppDatabases and MigrationRole, and run multiapp.Migrate with the owner login as a separate step; for local development set AllowSharedDatabaseLogin or AllowInProcessMigrations
  • bff: give the omnistorage store a SiteID and a Sealer, give the Ent store a Sealer or keep EncryptionKey, and drop CookieConfig.Domain; users sign in again when the cookie name, prefix or sealing changes
  • oauth: configure Config.PrivateKey and choose WithAcceptedClientIDs or WithAnyClient
  • systemauth: pass an AccessChangeScope to WithAccessChanges (AllOrganizations for one application), and make custom session providers return principal IDs
  • organization: allow governed principals through APIConfig.DirectAdd; reassign application roles after promoting a collaborator
  • scim/store: set Config.Syncer to the deployment's syncer
  • multiapp: to keep an app login without the shared identity tables, set SharedReadTables to NoSharedReadTables or pass --no-shared-tables, then apply the provisioning again
  • oauthclient: handle the error from SetStateCookie and pass a logger to NewStateManagerInsecure; flows in progress during the upgrade fail once
  • contract: call the audit stream functions as methods of *contract.API
  • With connections enabled, stop SystemAuth, run systemauth keys accept-rollback --confirm once with the server's configuration, then start it
  • Replace allow_private_egress: true with egress_allow_prefixes listing the ranges local fakes use, for example [127.0.0.0/8], and allow_http_egress: true
  • Point the BFF omnistorage store at rediss:// with a password, or set AllowInsecureRedis for a development Redis on a local network

Security

  • The Go directive was 1.26.6, which misses standard-library security fixes in net/http and HTTP/2, crypto/tls, crypto/x509, html/template, net/textproto and os that are reachable from this module; it is now 1.26.10, so dependent applications build with the fixes
  • SystemAuth issued only bearer tokens, which work for whoever holds a copy, and nothing on the resource side verified the DPoP proofs the BFF sent, so a stolen DPoP-bound token worked as an ordinary bearer token; tokens are now bound to a proven key and every SystemForge resource middleware refuses a bound token presented as Bearer
  • identity/token bound tokens to whatever DPoP thumbprint its caller passed, so a caller that skipped proof verification could bind tokens to a key nobody had proved to hold; it now binds only to a dpopproof.Proof that a Checker verified
  • SystemAuth treated a token subject that was not a UUID or named no principal as active, so the tokens of a hard-deleted principal kept working; such subjects are now inactive and their token family is revoked
  • The embedded auth provider created a session for the oidc method without checking any token, so a caller passing a request-supplied method could sign in as any active user by email; it now verifies only passwords and returns ErrUnsupportedAuthMethod for other methods
  • Password authentication had no attempt limit and returned faster for unknown accounts, allowing unbounded guessing and account enumeration by timing; failures now lock an identifier (ErrAccountLocked) whether or not the account exists, and unknown accounts spend one Argon2id verification
  • A login session created for a managed principal could authorize any client, including ones that never allowed managed principals; /oauth/authorize and the token endpoint now refuse them for such clients
  • POST /login-token did not check where the form came from, so any site could sign a visitor into an account it controlled; the exchange now requires an allowed Origin or Referer
  • Signup created accounts without proof of the address and SignupOrGetExisting handed an existing unverified account to a verified login, letting someone pre-register another person's address; it now returns ErrAccountEmailUnverified
  • UpdateHuman kept the verified flag when callers such as federation sync changed a human's email, so an unproven address linked social logins and was published as email_verified=true; a changed email is now unverified
  • The invite API listed and answered invitations for the caller's email without checking that it was verified, so a principal claiming someone's address could see their invitations across organizations
  • Accepting an invitation did not check that the inviter could still invite, so a removed admin could rejoin through invitations sent to addresses it controlled; acceptance now requires the inviter's current authority, and removing or demoting a member revokes its pending invitations
  • Invite status writes were unconditional, so an accept racing a revoke or decline still created the membership, and revoking an accepted invite left the membership; every transition is now conditional on the invite being pending
  • Under RBAC a deleted organization stayed usable: its slug resolved, its members kept their roles and could add members and accept invitations; deleted organizations now resolve to nothing, give no roles and refuse membership writes (ErrOrganizationDeleted)
  • Any organization admin could add any principal, including another tenant's managed principals, as an active member without consent, and the answers revealed which principal IDs exist; direct adds now need APIConfig.DirectAdd or platform administration and refusals are indistinguishable
  • API key middleware built the principal from a valid key alone, so an organization-scoped key kept working after its owner was removed or deactivated; an owner check now runs on every request
  • identity/oauth API.Middleware accepted any token its storage held, regardless of the issuing client or whether the client or principal was still active; it now requires an accepted, active client and an active principal
  • CreateDelegation let any principal with can_delegate take over any agent, including another organization's or one already delegated; it now returns ErrAlreadyDelegated and ErrCrossOrganization
  • GET /access-changes returned every organization's changes to any client with access_changes:read, and back-channel deliveries went to every client; the feed is now scoped to each client's organizations
  • The contract audit stream state was process-wide, so a token allowed to configure one hosted application's audit stream could repoint or disable another's; the state now belongs to each contract.API
  • The embedded SpiceDB server listened on a local TCP port guarded by a key derived from the startup time, which another local process could guess to write relationships; it now uses an in-memory listener and a random 32-byte key
  • CanAll returned true for an empty action list in the rbac and SpiceDB providers, so a route registered with no actions allowed every authenticated caller; it now denies, and RequireAllActions and RequireAnyAction panic without actions
  • authzguardsql's DefaultResourceBuilder gave every entity and field the same ID-less resource, so a role granted guardsql_field.read could read every field and SpiceDB checks always failed; each entity and field now has a concrete resource ID and organization
  • Targeted feature flags were on for every caller that passed no evaluation context; a flag with targets or a partial rollout is now off without a subject
  • The observability middleware recorded full request URLs and raw paths, sending OAuth codes, API keys in query strings and invite tokens to the tracing backend; spans and metrics now carry the matched route pattern
  • productgraph took the event user from the X-User-ID request header and sent raw request paths, so callers could attribute events to other users; the user comes from the session and paths are recorded as route patterns
  • Marketplace seat assignment read and wrote used_seats outside a transaction, so concurrent assignments overran the seat limit; seats are now reserved with a conditional increment in a transaction
  • Stripe webhooks were verified with an empty key when no signing secret was configured, so a forged checkout event granted a license; verification now fails closed with ErrWebhookSecretRequired
  • Stripe subscription updates were ignored, so unpaid, paused or canceled subscriptions and portal seat reductions left licenses unchanged; licenses now follow the subscription status and quantity
  • The Redis sliding-window rate limiter could count two requests in the same millisecond as one, letting a parallel burst exceed the limit; each entry now has a unique random member
  • The BFF proxy forwarded dot segments, so /api/../../other reached the upstream outside its base path with the session's token; such paths are refused with 400
  • The BFF proxy ignored HeadersToForward and passed client identity headers such as X-User-Id and X-App-ID to upstreams; the list is now enforced and identity, routing and forwarding headers are stripped
  • BFF logout answered success when the session store failed, leaving the session and refresh token valid; it now answers 500 and keeps the cookie so the client can retry
  • BFF sessions were extended by every refresh and never expired from inactivity; sessions now have an idle timeout and a maximum lifetime
  • BFF per-endpoint rate limits shared one bucket per client and never matched under a mount prefix; each endpoint limit now has its own bucket and matches relative to the mount point
  • The BFF session cookie was named sf_session and could be shared across subdomains, letting a sibling subdomain set or overwrite it; it is now __Host-sf_session and always host-only
  • BFF proxy routes skipped the origin check for GET, HEAD and OPTIONS, so a cross-site top-level GET reached the upstream as the user; proxied safe methods are now origin-checked
  • The omnistorage BFF store dropped the site ID on update, logging users out at their first refresh and pushing operators to run without site isolation, and its default key prefix shared the per-user session index between applications; the site ID is kept, required for Redis, and scopes the default prefix
  • The omnistorage BFF store wrote access tokens, refresh tokens and DPoP private keys to Redis in plaintext; they are now sealed with a SessionSealer
  • The Ent BFF store encrypted session fields under one key with no associated data, so ciphertext could be moved between rows or columns and the key could not be rotated; fields are now sealed with key IDs and bound to the session and column
  • The session JWT service accepted HMAC secrets of any length and checked the issuer only when configured; it now requires an issuer and secrets at least as long as the hash output
  • multiapp's Ent hook set search_path at session level, so a pooled connection kept another application's schema, and schema names reached SQL unvalidated; the hook now uses SET LOCAL in a transaction and every schema path validates names
  • The rls migrator and policy SQL interpolated table, column, policy and role names unquoted; they are now quoted as identifiers
  • SCIM filters the store could not evaluate were dropped, so an unsupported filter matched every user and an identity provider could be handed the wrong account; such filters now fail with invalidFilter
  • SCIM PATCH stored a new password in plaintext and PUT never hashed it and echoed it back; both now hash, and no response carries a password or hash
  • SCIM group writes bypassed the organization service, accepting invalid or cooling-off slugs, renaming personal organizations and hard-deleting organizations without graph cleanup; they now go through the organization service
  • SCIM returned database and internal error text to clients; unexpected errors are logged and answered with a generic 500
  • SCIM bulk payload limits were advertised but not applied and every operation could run a bcrypt hash; the payload limit is enforced and password operations per request are capped
  • Deactivating a principal, demoting a member to collaborator, deleting a SCIM user and deactivating a human through SystemAuth storage left the principal's relationships in the authorization graph, so under mode rebac the access remained; each now removes them before committing
  • Revocations committed the database change before removing the relationship from the graph, so a failed graph write left access granted with no retry, and a late grant write could undo a concurrent revocation; revocations now remove graph access first and grants re-read the rows under graph locks
  • A file vault pointed at the keys directory kept the root key beside the keyring, so one backup held everything needed to decrypt connection credentials; root keys in or under the keys directory are refused
  • The OAuth client state cookie could be written without Secure or with an unsafe SameSite mode; it is now __Host-sf_oauth_client_state, Secure, HttpOnly and SameSite=Lax by default
  • The token endpoints parsed the request form before installing their 1 MB body limit; the limit now applies before parsing
  • The BFF omnistorage session store's Redis connection is refused for a server that is not on loopback unless it uses TLS with certificate verification and a password, so session IDs and sealed sessions no longer cross the network in clear text by default (ca5266c)
  • Connections' development egress setting lets provider requests reach only the address ranges listed, instead of every non-public address; link-local and cloud metadata addresses are refused even when listed (506c9ed)
  • The BFF session sealer and the relying-party store's row keyring sized their output from the plaintext length without an upper bound; both now refuse plaintext over 64 MiB (eb05028)

Added

  • systemauth: DPoP proof checks at the token endpoint, DPoP-bound access and refresh tokens (cnf.jkt, token_type DPoP), dpop_jkt code binding, optional server nonces (dpop.require_nonce), a Redis replay cache (dpop.replay_cache_redis_url) and dpop.resource_base_url for routes behind a proxy
  • systemauth: per-client allow_bearer_tokens, the legacy exception that keeps unbound bearer tokens, stored in sf_oauth_apps.allow_bearer_tokens
  • systemauth: keys.verification_keys publishes previous and pre-staged signing keys in the JWKS for verification only, and a token's kid selects its key
  • systemauth: EntStorage.RotateClientSecret and RevokeClientSecret, keeping the current and previous secret and revoking older ones; ClientSecretHasher verifies bcrypt and Argon2id hashes
  • systemauth: WithLockout and WithProviderLockout for password lockout, WithEntAuthzSyncer and WithEntLogger for EntStorage, and AccessChangeScope with AllOrganizations
  • oauth: DPoP-bound tokens, Config.KeyID and Config.VerificationKeys for N / N-1 signing key rotation, Config.JWTAccessTokens for RFC 9068 JWT access tokens, WithResourceBaseURL, WithAcceptedClientIDs, WithAnyClient and Config.AllowEphemeralKey
  • identity/dpopproof: a DPoP proof checker with replay and stateless nonce checks whose Proof exists only after verification
  • relyingparty: BearerConfig.DPoP verifies proofs for DPoP-bound access tokens and BearerConfig.AllowBearerTokens opts in to unbound ones; Client proves possession of Config.DPoPKey in token requests
  • session/middleware: DPoP-requiring HTTPAuth family with DPoPConfig, NewDPoPAuth, DPoPAuth.OptionalMiddleware, NewMemoryReplayCache and NewRedisReplayCache; the bearer-only middleware remains as HTTPAuthBearer and its variants
  • session/middleware: APIKeyMiddlewareConfig.OwnerCheck and ErrAPIKeyOwnerNotAllowed
  • session/jwt: Config.KeyID and Config.VerificationKeys for signing key rotation, ErrMissingIssuer and ErrWeakSecret
  • bff: SessionSealer with KeyringSealer and NewKeysSealer for the omnistorage and Ent stores, EntStoreDefaultKeyID, ErrSealerRequired and ErrSiteIDRequired
  • bff: IdleTimeout and MaxLifetime (defaults 24 hours and 7 days) with Session.LifetimeExceeded, Session.TokenType, RateLimitConfig.BasePath, OriginValidator.SafeMethodMiddleware, CookieConfig.Validate, InsecureCookieName, HandlerConfig.Logger and ErrInvalidProxyPath
  • scim/scimtoken: per-tenant SCIM tokens (sf_scim_tokens) with issue, N / N-1 rotate, revoke, list and authenticate, a CredentialFunc, and an HTTP API under /api/v1/organizations/{slug}/scim-tokens
  • systemauthsvc: Options.SCIM serves SCIM 2.0 at /scim/v2 with stored tenant tokens, Service.SCIMTokens, Options.AuthzSyncMode, Service.Authz, AuthzReconciler, and Options.AuditStore for key lifecycle and connection events
  • scim: InternalError, BatchMembershipStore, Config.BulkMaxPasswordOperations and filter.MaxDepth; scim/store Config.Organizations and Config.Syncer
  • identity/graphlock: transaction-scoped PostgreSQL advisory locks per organization and principal, and Grant for writing granted access under them
  • identity/graphstate: the single statement of which graph relationships the identity tables call for
  • authz/mode: the graph reconciler (Result.Reconciler, Reconcile, RunReconciler, Stats) with schedule settings in authz.ModeConfig, and Result.SyncMode
  • spicedb: Client.ReadRelationships reads by page as one snapshot and DeleteRelationshipsExact deletes a set in one request; authz VocabularyRegistry.HasOrgFacet
  • multiapp: Config.AppDatabases, MigrationDatabaseURL, MigrationRole, AllowInProcessMigrations and AllowSharedDatabaseLogin; RoleProvisioning, ApplyRoleProvisioning, OwnerRoleSQL, DefaultSharedReadTables, NoSharedReadTables, RestrictedSharedTables, CheckDatabaseIsolation, VerifyDatabaseIsolation and EntConnHook.SetSchemaInTx
  • cmd/multiappdb: print, apply and verify per-app database login provisioning, reading connection strings and passwords from named environment variables
  • invite: WithAuthorizer, ErrNotPending and ErrInviterNotAuthorized; organization APIConfig.DirectAdd and ErrOrganizationDeleted; delegation ErrAlreadyDelegated and ErrCrossOrganization
  • oauthclient: StateManager.AllowInsecure and ErrInvalidStateCookieConfig; startup warnings when cookies are not Secure in the BFF handler, relying-party BFF and social login
  • keys: CheckRootKeyLocation
  • marketplace/stripe: ErrWebhookSecretRequired
  • systemauth keys accept-rollback --confirm and systemauthsvc.AcceptKeyRollback, which open the connections keyring once accepting a restored or moved copy, or one from before its rollback state was authenticated (2927336)
  • Connections settings egress_allow_prefixes (CIDR ranges provider requests may reach in development) and allow_http_egress, with a startup warning when either is set (506c9ed)
  • bff.OmniStorageConfig.AllowInsecureRedis for a development Redis without TLS or a password, with a warning when set (ca5266c)
  • bff.MaxSealPlaintext and bff.ErrPlaintextTooLarge, and pgstore.ErrValueTooLarge, for data too large to seal (eb05028)

Changed

  • The organization and principal services log a failed graph write with the constant message "failed to sync granted access to authz" and the kind of change in a change attribute (cc190c2)

Deprecated

  • bff: StoreConfig.EncryptionKey, which no store read; configure a Sealer
  • multiapp: EntConnHook.SetSchemaFromContext; use SetSchemaInTx
  • rls: SystemForgeTables; RLS on the identity tables breaks their cross-organization queries
  • productgraph: HeaderUserID; set the user from the authenticated session with WithUserID

Removed

  • multiapp: Config.DatabaseURL; use MigrationDatabaseURL and AppDatabases
  • bff: CookieConfig.Domain; the session cookie is always host-only
  • contract: the package functions RecordAuditEvent, GetAuditStreamConfig and IsAuditStreamEnabled; use the methods on *contract.API

Fixed

  • oauth: confidential clients authenticate with their stored bcrypt or Argon2id secret hashes, so client_secret_basic, client_secret_post and client credentials work
  • oauth: discovery lists only the code response type and the JWKS publishes the provider's key
  • systemauth: a token request for a DPoP-bound code with a missing or mismatched proof is refused before Fosite runs, so the code stays usable with every storage
  • systemauth: EntStorage.CreateClient returns the cleanup error when it cannot remove a half-created client
  • bff: tokens are presented with the scheme they were issued for, and refreshes prove possession of the session's existing key
  • bff: NewHandler applies cookie defaults field by field instead of replacing a config without a name, which dropped fields such as AllowInsecure
  • signup: an account created through an invite has its email marked verified
  • organization: generated slugs skip those in their cooling-off period, and rollback failures are reported instead of discarded
  • observability: a disabled instance creates noop metrics instead of panicking
  • session/middleware: API key usage recording failures are logged
  • marketplace: a license suspended by setting ValidUntil to the current time stayed valid at that same instant, which a coarse clock such as Windows' could observe; ValidUntil is now the first instant the license is no longer valid, in License.IsValid and CheckPrincipal (d5b716b)

Dependencies

  • 9 dependency updates

Documentation

  • DPoP enforcement page: where proofs are checked, the bearer-token exception, the SCIM tenant token exception and the base URL each component builds a proof's htu from
  • Browser cookies page: every cookie's production and development names, attributes, development switches and refused configurations
  • Key rotation guidance for JWT signing keys, BFF session sealing keys, client secrets and SCIM tokens through a pre-stage step that survives rollback
  • Revoke-first graph sync, the reconciler and the packaged service in mode rebac in the authorization mode guide and designs
  • Multi-app database isolation: per-app logins, out-of-band migrations, the startup isolation check and provisioning with multiappdb
  • Built-in SCIM tenant token store, sign-up age scope, and the rls isolation model
  • Key management guide describes accepting a restored or moved keyring in SystemAuth (b55d034)
  • ADRs for customer-authorized, time-limited support access and for organization admins seeing their support request index (40d5008)

Tests

  • The syncer recorder records every call and can fail removals alone, to check that a refused removal aborts a revocation
  • The managed-principal concurrency test builds its service with direct manager adds
  • The multi-app PostgreSQL fixture gives the logins it provisions a password, so the tests pass against a server that checks passwords (611ee57)
  • The redirect policy test covers more bypass forms: a triple slash, a leading space, https: without slashes and a NUL byte (03e245b)

Infrastructure

  • Scan for known vulnerabilities with govulncheck on pushes to main and weekly

v0.20.0 - 2026-10-23

Highlights

  • Access tokens are bound to the application they were issued for: relying parties, the session JWT service, and multi-app routing each refuse tokens minted for another application that shares the signing key
  • SCIM credentials are bound to one organization: a customer's identity provider provisions only its own members and cannot change the identity of users who also belong elsewhere

Breaking

  • session/jwt: Config.Audience is required; NewService returns ErrMissingAudience without it. Client-kind audiences (bff, api, custom) are added in front of the application audience instead of replacing it, and ValidateAccessTokenWithAudience with an empty audience checks Config.Audience instead of skipping the check
  • relyingparty: VerifyAccessToken accepts only tokens issued to Config.ClientID unless AcceptedClientIDs or AccessTokenAudience is set; client-credentials tokens from other clients must be listed
  • multiapp: without AppAudiences, tokens on app routes must carry the app's AppID as an audience
  • authz: RequireResourceAction no longer sets a resource's organization from the caller's token; extractor errors answer 400 for a missing or malformed ID, 403 for ErrResourceNotFound, and 500 otherwise
  • scim/store: the Ent store refuses requests without a provisioning scope. For a tenant, active is the membership's state, creating a user who exists elsewhere links them as a member, deleting a shared user removes only the membership, and groups cannot be created, renamed or deleted
  • connections: creator rights need an Options.Authorizer that implements authz.OrgAuthorizer (the rbac and SpiceDB providers do); with another authorizer, creators are decided by role and grants alone
  • bff: a custom HandlerConfig.SessionIDGenerator must produce IDs that ValidSessionID accepts (URL-safe characters, at most 256)
  • scim/store: SCIM refuses to deprovision an organization owner, restores memberships with the default role, and for a platform credential active deactivates the account through the principal service

Upgrade Guide

  • session/jwt: set Config.Audience to a value naming the application. Access tokens issued before the upgrade are refused and clients refresh; refresh tokens issued without the audience require signing in again
  • relyingparty: list in AcceptedClientIDs every client, including the application's own ClientID, whose tokens the API must accept, such as service clients using client credentials; or set AccessTokenAudience for an API that many clients call with an audience
  • multiapp: mint tokens with jwt.TokenOptions{Audience: []string{appID}}, or set AppAudiences to the audiences your tokens already carry
  • authzguardsql: handle ErrNoAuthorizedEntities from PolicyBuilder.Build by refusing the query (for example with 403)
  • authz: replace WithResourceID with WithResourceLookup on routes whose access depends on the organization role, passing a lookup that returns the resource's owning organization
  • scim: authenticate with CredentialMiddleware and bind each SCIM credential to its organization (Scope{OrganizationID: ...}); give Scope{Platform: true} only to platform operator credentials
  • scim/store: pass the application's organization service (with its authz syncer) as Config.Memberships and its principal service as Config.Principals, so SCIM changes sync the authorization graph

Security

  • Relying-party bearer authentication accepted a SystemAuth access token issued to any other OAuth client, and an ID token, as an access token for the application, taking the organization memberships in its claims; VerifyAccessToken now requires a client_id claim from an accepted client and refuses typed non-access JWTs
  • The session JWT service's default validation (ValidateAccessToken, HTTPAuth, HTTPAuthOptional) accepted tokens for any audience, so applications sharing a signing key accepted each other's access and refresh tokens; tokens must now carry the service's Config.Audience
  • multiapp AuthMiddleware accepted a token minted for one app on every other app unless AppAudiences was set; a token on an app route must now be addressed to that app's ID by default
  • authzguardsql PolicyBuilder.Build turned a principal authorized for no entity into a GuardSQL policy with empty allowlists, which GuardSQL reads as unrestricted, so the least-privileged principals could query every entity and field; it now returns ErrNoAuthorizedEntities
  • authz RequireResourceAction checked a resource named in the request against the caller's role in the organization from their token, so a member of one organization passed resource checks for another organization's resources; the resource's organization now comes only from the extractor
  • The SCIM store had no tenant scoping, so any SCIM credential could read, change, delete and regroup every user and organization on the platform; each request is now bound to the credential's organization, and requests without a scope are refused
  • SCIM could rewrite the login email of a user who also belonged to other organizations, enabling account takeover; a tenant now changes email, name and photo only for users it provisioned that belong to no other organization, and manages only the membership of others
  • Deactivating an organization membership left the member's organization role, application roles and resource grants in the SpiceDB graph, so under the ReBAC authorizer a deactivated admin kept every permission; deactivation now removes them from the graph and reactivation writes them back
  • bff RegisterHumaRoutes registered stub handlers for logout, session and refresh; on a router shared with Huma, as documented, they took precedence over the mounted BFF handler, so logout answered success without ending the session and the stubs skipped the Origin check and rate limiter. It now only documents the routes
  • A connection's creator kept view, use, manage and share rights on it after leaving or being removed from the organization, and could grant themselves back in; creator rights now require current membership of the owning organization
  • BFF logout passed the client's cookie value to the session store's Delete even when no session matched; with the omnistorage kvs store, the value user:<id> deleted a user's session index, so "log out everywhere" and revoke-on-password-change missed that user's sessions. Logout now deletes only a session the store returns, and malformed cookie values are treated as no session
  • aauthrs accepted an agent token from any agent provider for any agent identifier, so a provider controlled by anyone could claim another domain's agents (for example aauth:[email protected]); an agent token is now accepted only when the agent's domain is its issuer's host
  • SCIM wrote memberships directly, so suspending, removing or deleting a user skipped the authorization-graph sync, the access-change record that revokes existing tokens, and cleanup of application roles and resource grants; SCIM now changes memberships through the organization service and deactivates accounts through the principal service
  • SCIM could suspend, remove or delete an organization's owner, letting an identity provider lock a customer out of its own organization; it now refuses with 403
  • Re-adding a suspended member through SCIM restored their previous role, possibly owner or admin; a restored membership now gets the default role

Added

  • relyingparty: Config.AcceptedClientIDs lists the OAuth clients whose access tokens an application accepts
  • systemauth: JWT access tokens carry the JOSE typ header at+jwt (RFC 9068)
  • multiapp: MiddlewareConfig.AllowCrossAppTokens accepts tokens for every app when that is intended
  • session/jwt: Claims.HasAnyAudience and ErrMissingAudience
  • authzguardsql: ErrNoAuthorizedEntities
  • authz: WithResourceLookup and ResourceOrgLookup load a resource's owning organization for RequireResourceAction, and ErrResourceNotFound
  • scim: Scope, WithScope, WithTenant, WithPlatformScope, ScopeFromContext, and API.CredentialMiddleware with Credential to bind SCIM requests to an organization or the platform
  • bff: ValidSessionID and MaxSessionIDLength
  • aauthrs: Config.TrustedAgentIssuers restricts which agent providers' tokens a resource accepts
  • scim/store: Config.Memberships and Config.Principals take the application's organization and principal services

Deprecated

  • scim: API.Middleware, which binds no provisioning scope; use CredentialMiddleware

Documentation

  • SCIM provisioning guide

v0.19.0 - 2026-10-22

Highlights

  • SystemAuth asks a minimum sign-up age before a first upstream login creates an account, refusing anyone younger while keeping nothing about them

Upgrade Guide

  • To ask a minimum age at sign-up, set social_login.signup_minimum_age; 0, the default, asks nothing, and accounts created before it are not asked

Added

  • social_login.signup_minimum_age: SystemAuth asks a person's birth month and year on /signup/age before a first upstream login creates their account, refuses anyone younger while keeping nothing about them, and asks after the invite gate so an invite is used only once the age is confirmed; hosts set the wording with Options.SignupAgePage (34ae846)

Documentation

  • Minimum sign-up age in the deployment and social login guides (b8f07f8)
  • Minimum Sign-Up Age guide: what a person sees, configuration, how the answer is decided, invite-only sign-up and limits
  • v0.19.0 release notes

Tests

  • Minimum sign-up age: the birth-month boundary, refusal, single use, cross-origin answers and the invite gate (3fde13c)

v0.18.0 - 2026-10-20

Highlights

  • SystemAuth serves the organization console under /console, where organizations manage their connections to external services, signed in with the SystemAuth login session
  • The connections API records the rotation mode chosen when connecting, from the provider manifest's guidance

Upgrade Guide

  • To enable the organization console, set console.web_dir to a build of @plexusone/console; social login must be configured
  • To offer the console from an application's chrome, list it in the app catalog with the ID console

Added

  • console package: the connections API under /console/api with a login-session authenticator, session routes, return-address checks, and built pages served with a sign-in redirect; state-changing requests must be same-origin and every response carries a restrictive content security policy (e901768)
  • console.web_dir in the SystemAuth configuration; a console without social login is refused (fbf6773)
  • systemauthsvc mounts the organization console when configured, listing organizations from the orgs claim and including connections when they are enabled (5e7f85e)
  • Console session routes under /console/bff in the format @plexusone/host reads: GET session, sign-in redirects and POST auth/logout; each organization grants the console application the person's organization role (25fc039)
  • The console's session lists each organization's product roles and carries the app catalog, so the console's product switcher links back to the products (4e2609a)
  • systemauth.Server.ValidateReturnTo accepts a return address only where the sign-in redirect policy allows (57307ca)
  • systemauth.Server.EndLoginSession signs a person out as POST /logout does, for handlers that check the request's origin themselves (4c74b57)
  • Connect requests accept an optional rotation mode from the auth method's manifest, kept in the connection's metadata under rotation; an unlisted mode is refused (15f4b5d)

Dependencies

  • 2 dependency updates

Documentation

  • ADR-018: the organization console on the SystemAuth host (bc54dc6)
  • Organization console guide: configuration, pages, session routes, API and linking from the app catalog (a8fefa5)
  • Connections guide covers setup steps, rotation modes and credential expiry
  • v0.18.0 release notes

Tests

  • Cover the organization console, return-address checks, the session format, sign-in and sign-out, and product roles and the catalog in the session (59a6a62)
  • Cover recording the rotation mode (194db85)
  • Cover ending a login session from another handler

v0.17.0 - 2026-10-18

Highlights

  • Relying-party applications manage managed principals through SystemAuth: a /managed-principals API served by systemauthsvc, called with the manager's access token, and the mpclient Go client
  • Nobody becomes a manager without agreeing: managers other than the creator join by invitation or claim
  • The contract's identity, policy and audit operations refuse requests until the application is federated

Upgrade Guide

  • Standalone applications that serve the contract API: set Config.AllowUnauthenticatedStandalone in development and tests, or federate the application; identity, policy and audit operations otherwise answer 403
  • Code calling managedprincipal.Service.Create with managers other than the actor, or AddManager: invite those managers or issue a claim, or build the service with WithDirectManagerAdds for administrator tooling
  • Managers in roles registered with WithRoles can no longer issue login tokens; issue them as a guardian or educator
  • To let a relying party manage managed principals, enable managed_principals for the deployment and its client and add systemforge:managed_principals to the client's scopes

Added

  • SystemAuth built by systemauthsvc serves the managed-principal API at /managed-principals when managed principals are enabled, for relying parties calling with a manager's access token granted systemforge:managed_principals; Options.AuditEmitter, ManagedPrincipalRates and ManagedPrincipalOptions, and Service.ManagedPrincipals() (a76d041)
  • managedprincipal.NewHandler relying-party mode (WithRequestClient): the client is the access token's, creation names only the caller, unknown and unmanaged principals answer 403; WithCodeRateLimit for code routes; GET / (Service.ListManagedBy) and POST /{id}/login-tokens (af30b5b)
  • managedprincipal/mpclient, a typed client for the managed-principal API with errors wrapped in *APIError (eaca813)
  • systemauth.Server.BearerAccess and BearerAuthenticator: bearer access that carries the token's client, scopes and grant, adapted to requestprincipal (c0c4e8d)

Changed

  • BREAKING: The contract's identity, policy and audit operations answer 403 until the application is federated; Config.AllowUnauthenticatedStandalone restores the open behavior for development and tests (9883be5)
  • BREAKING: managedprincipal.Service.Create accepts only the actor as manager and AddManager is refused with ErrConsentRequired, so managers join by invitation or claim; WithDirectManagerAdds keeps direct adds for administrator tooling (53a2655)
  • Issuing a login token requires manage_credentials (bf1c347)
  • The managed-principal handler answers 403 for an unknown or unmanaged principal, as for one the caller does not manage (0124078)

Documentation

  • Managed principals guide covers the API on SystemAuth, its configuration and scope, and the client
  • INIT-SYSTEMFORGE-012 specification for managed principals in relying-party applications (a18e9f1)
  • v0.17.0 release notes; relying-party, embedding and README updates for the managed-principal API

Tests

  • The connections test checks the error RunJobs returns when its context ends (078231b)

v0.16.0 - 2026-10-14

Highlights

  • Connections can be reconnected in place, track what depends on them with bindings, and be shared with a principal through per-connection role grants
  • The connection library is renamed from connectionforge to connectforge; imports, tables (connectforge_*) and the key purpose (connectforge.credential) change, which is breaking for deployments that enabled connections in v0.15.0

Upgrade Guide

  • Update imports from connectionforge to connectforge
  • Deployments that enabled connections in v0.15.0 must re-create connections or rename the tables and re-seal credentials; migrate does not copy rows or re-seal
  • Run systemauth migrate to create the connectforge_* tables

Added

  • POST .../connections/{id}/reconnect, GET, PUT and DELETE .../connections/{id}/bindings, and GET, PUT and DELETE .../connections/{id}/grants/{principal} (5a4bf33)
  • systemauthsvc registers the systemforge_connection resource type so connection grants are role grants read by the role-based provider (8f501c3)

Changed

  • BREAKING: Depend on connectforge instead of connectionforge; tables are now connectforge_* and credentials are sealed under the connectforge.credential purpose (7eb410b)

Dependencies

  • 1 dependency update

Documentation

  • Connections guide covers reconnecting, bindings and grants; ADR-017 updated for the rename and the grant vocabulary (0a5c80b)

Tests

  • Cover reconnect, bindings and grants over the API (26d6b64)

v0.15.0 - 2026-10-13

Highlights

  • Key management: keys wires keyforge as the platform's one key library, with envelope encryption, rotation without re-encrypting, the root key read through omnivault, and key events sent to the audit trail (ADR-013)
  • Connections to external services: connections composes connectionforge so organizations connect accounts at services such as a CDN or analytics product, with credentials sealed under managed keys and applications receiving an authenticated HTTP client, never the secret (ADR-017)
  • A connections API at /api/v1/organizations/{org}/connections, enabled by the new connections configuration section and protected by systemforge:connections:read and :write scopes
  • Invite-only sign-up: a gate on social login that admits only verified emails holding an invite, a consent-recording waitlist for everyone else, and systemauth invite and systemauth waitlist commands
  • App catalog: a host publishes the applications it runs, and the browser session lists it so each shell can show the products a person holds a role in, for a product switcher
  • Embedded SystemAuth emits the orgs claim with per-application roles, limited to the deployment's default entitlements
  • Fixed rls.Helper.SetTenant and SetUser, which failed on every PostgreSQL connection because SET LOCAL does not accept bind parameters
  • No breaking changes; run systemauth migrate for the new tables

Upgrade Guide

  • Run systemauth migrate (or systemauthsvc.Service.Migrate) to create sf_signup_invites and sf_signup_waitlist. Existing tables are unchanged and no SQL migration file is needed
  • To enable connections, add the connections section, create the root key (openssl rand -base64 32) and store it in the vault, and back up keys_dir with the database. systemauth migrate then creates the connectionforge_* tables and enables row-level security on PostgreSQL

Added

  • keys package: Open, Seal and Open over keyforge's single-host setup, with VaultSource reading the root key from an omnivault vault, and an audit sink that records lifecycle events without key material (1f3095e)
  • connections package: connectionforge's SQL store on the platform database with row-level security keyed on owner_id, credentials sealed by keys, deployment secrets read from omnivault, authorization through authz, and audit events to the platform trail (5975b1e)
  • connections.RolePermissions grants organization owners and admins view, use and manage on connections, and members view (dfcd4ed)
  • connections.Handler: the organization-scoped connections HTTP API (providers, list, connect, get, rename, test, disconnect) that never returns a credential and reports a refused view as not found (dfcd4ed)
  • connections.MigrateSchema creates the connection tables and enables row-level security without opening the keys, so systemauth migrate needs no root key (dfcd4ed)
  • systemauth.Server.BearerPrincipal and WriteBearerError authenticate API requests by bearer access token and scope with RFC 6750 responses (ccc1d03)
  • connections section of the SystemAuth configuration (keys_dir, vault, root_key, allow_private_egress), the systemauthsvc.Options.Providers registry, Service.Connections and Service.RunJobs (7b51e06)
  • systemauth serve runs the key lifecycle jobs while serving (dfb3597)
  • systemauth invite add|list|revoke and the --invite-only and --signup-denied-url flags, with SignupInvite (sf_signup_invites), the signupgate store and gate, and systemauth.SignupGate on social login (3471a81)
  • For host binaries: systemauthsvc.Options.InviteOnly, SignupDeniedURL and WaitlistPage, Service.SignupInvites and Service.SignupWaitlist, and the signupgate/signupcmd package with the invite and waitlist command groups to mount in a host's own CLI (dc2af08)
  • Sign-up waitlist: /signup/waitlist records an address with the consent text shown and its version, with SignupWaitlistEntry (sf_signup_waitlist), signupgate.Waitlist and systemauth waitlist list [--csv] and remove (72ac85b)
  • appcatalog package: App and an ordered, validated Catalog, with Static and Remote sources, the last cached and kept through an outage (538133c)
  • systemauth.WithAppCatalog serves the catalog at /.well-known/sf-apps; relyingparty.BFFConfig.Apps adds the catalog to /bff/session as apps, which a shell filters by the membership's applications; systemauthsvc.Options.Apps publishes a host's catalog and warns about entries with no registered vocabulary (31cc7a9)
  • systemauthsvc.Options.Vocabularies and DefaultEntitlements install an Ent-backed orgs claim source with application roles from approle (cffe439)

Fixed

  • rls.Helper.SetTenant and SetUser use set_config(name, value, true), which has the transaction scope of SET LOCAL and takes the value as a parameter; the previous SET LOCAL ... = $1 was a PostgreSQL syntax error (6149cc1)

Dependencies

  • 2 dependency updates

Documentation

  • Guides for connections to external services and for key management, and sections for them in the deployment guide and README (ee8b6d7)
  • Deployment guide sections for invite-only sign-up with the waitlist, and for the app catalog (2190863)
  • ADR-017 on external connections, ADR-016 on no static API keys and ADR-015 on identifier policy, slug namespaces and portability (cac014f)
  • ADR-013 makes keyforge the platform's key library, with the key subsystem, rotation policy, hybrid encryption, FIPS 140-3 and post-quantum positions, rotation and recovery drills, and the crypto specification; ADR-011 and ADR-012 add purge, provisional accounts, dormancy and offload (5460d4f)

Tests

  • rls is checked against a real PostgreSQL server, and the connections store is checked as an ordinary database role, which row-level security applies to (77b8d12)
  • The connections API is exercised end to end against a fake provider, including that no response carries a token (b9bb2db)

v0.14.0 - 2026-10-11

Highlights

  • Managed principals: humans without an email, such as young learners, created and controlled by guardian and educator managers, who sign them in with QR-friendly login tokens; opt-in per deployment and per client (ADR-005)
  • Principal is the sole identity root: the legacy User model and its dependent tables are removed, so password login, social login, federation sync, and SCIM all resolve a person to the same principal (ADR-004)
  • Resource servers can authenticate AI agents with AAuth through a protocol-neutral request principal and authenticator chain shared with bearer, API-key, and BFF-session credentials
  • Fixed a panic on every ascending SCIM list sort, including the default order
  • Security: the marketplace, organization, and invite APIs act for the authenticated caller and check organization permissions, instead of trusting IDs in the request; invite tokens are stored hashed
  • The simple and SpiceDB authorization providers grant the same organization and manager permissions, held to the base schema by a parity test and a shared conformance suite
  • Organizations without a plan: a first social login creates the person's personal organization, slugs are reserved, renamed with a cooling-off period and aliases, a personal organization converts to a team, and what an organization may use comes from its marketplace subscriptions and licenses (ADR-006)
  • Application roles per member, entitled through the marketplace, carried in the orgs claim and on invites, with relying parties reading memberships from claims by default (ADR-007)
  • Real-time invalidation of access: access tokens default to 10 minutes and are capped at 15, every access-reducing change is recorded, and relying parties refuse tokens issued before it, with polling, replay and back-channel delivery (ADR-010)
  • Resource-scoped collaborators: the collaborator organization role, resource grants with a standard viewer, contributor and maintainer ladder in both authorization modes, and invites that target one resource (ADR-008)
  • The authorization mode is configuration: the authz key selects rbac or rebac, and authz/mode.New builds the provider, syncer and grant store (ADR-008)
  • Management is derived from manager relationships; a manager can release a principal, a self-managed human can be invited to be managed or decline, and managing operations are authorized and served over HTTP (ADR-009)
  • Editor and viewer are no longer organization roles, and the organization plan column is removed; run migrations 0004 to 0009 on existing PostgreSQL databases

Breaking

  • Removed Ent schemas and packages user, membership, oauthaccount, refreshtoken, apikey, serviceaccount, and serviceaccountkeypair, with the Organization memberships, api_keys, and service_accounts edges and OAuthToken.service_account_id (05d78ae)
  • systemauth.Storage user methods are replaced by CreateHuman, GetHuman, GetHumanByEmail, GetHumanByExternalIdentity, LinkExternalIdentity, UpdateHuman, and DeleteHuman on one HumanPrincipal type; systemauth.User, LoginPrincipal, ErrUserNotFound, and ErrUserExists are removed in favor of HumanPrincipal, ErrPrincipalNotFound, and ErrPrincipalExists (d054dc7)
  • OAuthApp.owner references Principal; statically configured clients are owned by a service principal at the fixed system ID instead of a synthetic user (12f2494)
  • OAuth tokens and authorization codes drop user_id and the user edge in favor of the subject column; OAuthConsent.user_id becomes principal_id (16f7f9f)
  • SCIM users are human principals and group membership uses PrincipalMembership; users provisioned before this release are not visible through SCIM (6a12bae)
  • An existing PostgreSQL development database must run migrations/0002_drop_legacy_user_tables.sql before starting this version; fresh databases need no migration (97282d7)
  • The default BFF session cookie is sf_session instead of the Core-era cf_session; browsers holding the old cookie sign in again. Applications that set CookieConfig.Name are unaffected (94868b5)
  • organization.Service ListMembers and ListMemberships exclude inactive memberships unless IncludeInactive is passed, and take variadic ListOption arguments (3f80884)
  • mixin.UserBase and mixin.MembershipBase are removed (8c95e08)
  • Human.email is optional: a human without one is a managed principal with the identifier human:. HumanPrincipal.Email, principal.Human.Email, and contract identity types treat it as optional; existing creation paths still require an email (e89af69)
  • Marketplace checkout buys as the authenticated caller for an organization the caller may buy for, and answers 501 until marketplace.WithPurchaseAuthorizer or WithAuthorizer is configured; purchaser_id is optional, deprecated, and must equal the caller (7cf758e)
  • Marketplace listing and license operations answer 501 until marketplace.WithAuthorizer is configured and require an authenticated caller; only published listings are readable anonymously; owner_id and assigned_by are optional, deprecated, and must equal the caller (bbac538)
  • Organization API endpoints require an authenticated caller and, except creating an organization and checking a slug, answer 501 until APIConfig.Authorizer is set (08bd206)
  • Invite API endpoints require an authenticated caller and organization endpoints answer 501 until APIConfig.Authorizer is set; accepting and declining require the invite to be addressed to the caller's email; inviter_principal_id, principal_id, and the email query are optional, deprecated, and must match the caller (236c0e9)
  • Invite tokens are stored hashed and invite.Invite no longer has a Token field; the token is only in InviteResult.InviteURL. Existing PostgreSQL databases run migrations/0003_hash_invite_tokens.sql when deploying (7ccc80e)
  • spicedb.BaseSchema is now authz.BaseSpiceDBSchema: members hold contribute rather than edit on an organization, and editors are recognized (8762bc6)
  • authz.RelationshipSyncer gains AddPrincipalManager and RemovePrincipalManager; credential.Service gains IssueLoginToken and VerifyLoginToken; managedprincipal.Gate implementers also provide LoginTokenPolicy (8acce83)
  • identity/token reports typed errors (ErrInvalidAccessToken, ErrInvalidRefreshToken, ErrRefreshTokenReused, ErrDPoPMismatch, ErrScopeNotGranted) (2a3c8cd)
  • marketplace.LicenseService gains GetByStripeSubscriptionID; Stripe webhook endpoints should also subscribe to checkout.session.async_payment_succeeded (fa2a57d)
  • delegation errors are typed and an agent without a delegation is denied; signup's SignupOrGetExisting requires SignupInput.EmailVerified to return an existing account, and SignupWithInvite requires the invited email (284806d)
  • systemauth.WithUserIDHeader is removed; use WithTrustedUserIDHeader with a RequestGate (TrustedProxyNetworks or TrustAllRequests), social login, or your own SessionProvider. DefaultSessionProvider authenticates nobody by default (645c151)
  • identity/oauth's authorization endpoint refuses requests until WithUserAuthenticator or WithTrustedUserIDHeader is set, and third-party clients are refused until WithConsent is set (ef7ea3d)
  • session/ratelimit: IPKey and the Limiter default no longer read X-Forwarded-For or X-Real-IP (use ForwardedIPKey or ForwardedClientIP behind proxies), the middleware answers 503 on storage errors unless WithFailOpen is given, and MemoryStorage returns ErrTooManyKeys when full (3019061)
  • session/bff: TrustProxy and TrustCloudflare do nothing without TrustedProxies or CloudflareIPRanges; session/middleware no longer reads forwarding headers for API key usage addresses unless an IPExtractor is given (a253f24)
  • scim: a provider without WithAuthorizationHook answers 403 to every request; DefaultAuthorizationHook is deprecated for AllowAllAuthorizationHook (0e3dd33)
  • systemauth: NewFederationEndpoints registers the sync and lookup routes only with WithFederationAuthenticator; introspection callers need a confidential client or the introspect scope (d57bf0f)
  • session/jwt and contract: tokens without exp are refused, and jwt refuses another issuer when Config.Issuer is set; relyingparty.BearerMiddleware requires an allowed Origin and JSON body for cookie-authenticated POST, PUT, and DELETE (7061c67)
  • credential.ValidateClientSecret returns ErrInvalidClientCredentials for every rejection; multiapp.AppAwareDB.ForSchema returns an error (30bd958)
  • identity/apikey: Get, Revoke, and Delete take the owning principal and report other keys as not found; a service with no AllowedScopes grants no scopes unless AllowAnyScope is set; RevokeInOrganization added for organization administrators (0a3cf11)
  • rls: Helper.SetTenant and SetUser return ErrNotInTransaction for sql.DB and sql.Conn; Middleware.SetRLSContext no longer touches the database and Middleware.WithTx scopes a transaction (ba68c75)
  • The organization plan column and organization.Plan constants are removed from the schema, service inputs, list filter, API and SCIM group provisioning; organization responses carry an entitlements list instead. Existing PostgreSQL databases run migrations/0004_drop_organization_plan.sql (5172a12)
  • editor and viewer are no longer organization roles: the roles are owner, admin, member and collaborator, every membership path refuses any other value, and the base schema gains the collaborator relation and list permission. migrations/0008_drop_editor_viewer_roles.sql maps stored editor to member and viewer to collaborator, including pending invites (18b3a32)
  • Every path that creates or changes a membership validates the role against owner, admin, member and collaborator and answers ErrInvalidRole otherwise (24edc0b)
  • The marketplace SpiceDB fragment no longer redefines principal and organization; it attaches to the base organization through a marketplace_org facet carrying use, billing and purchase. Compose it with MergeSchema, which places the base schema first (3774596)
  • Entitlement checks fail closed: an approle service with no entitlement source entitles no organization to any application. Configure marketplace.EntitlementSource through marketplace.ApproleOptions, or use approle.EntitleAll in development and tests (2d11968)
  • Relying parties read memberships from SystemAuth claims by default (ClaimsMemberships); LocalMemberships is no longer picked up implicitly from the principal store and is for development and tests only (5cd6dd9)
  • The default access token lifetime drops from 15 to 10 minutes, and a configured lifetime above 15 minutes is refused at load; per-client lifetimes are capped at 15 minutes (d20202b)

Upgrade Guide

  • Run the migrations against an existing PostgreSQL database, in order: 0004_drop_organization_plan, 0005_subscriptions_per_listing, 0006_invite_app_roles, 0007_oauth_app_backchannel_logout_uri, 0008_drop_editor_viewer_roles and 0009_invite_resource_target. Each is idempotent. Fresh databases need none of them. Then run systemauth migrate for the new tables sf_app_roles, sf_slug_reservations, sf_access_changes, sf_resource_grants and sf_manager_invites
  • Replace uses of the organization plan with entitlements: remove Plan from organization inputs and filters, and read entitlements from organization responses. Supply APIConfig.Entitlements with marketplace.EntitlementSource; carry a paid tier over as a subscription or license
  • Replace editor and viewer in your own role tables, vocabularies and invites with member and collaborator (or resource roles); stored memberships are mapped by migration 0008, which records an access change for each active membership it changes
  • Configure entitlements for application roles: build the approle service with marketplace.ApproleOptions(marketplace.EntitlementSource(...)), and declare applications free to everyone with marketplace.WithDefaultEntitlements. Without them no organization is entitled to anything, and marketplace.WarnIfNoEntitlements logs a startup warning
  • Relying parties that depended on LocalMemberships must pass it explicitly. The default reads the orgs claim; use ClaimsOrRemoteMemberships to fall back to /oauth/userinfo/memberships when the claim is truncated or absent
  • Pass a revocation cache to BearerMiddleware and NewBFF to refuse tokens issued before an access change; feed it with accesschange.ToSink in one process, the poller across replicas, or back-channel delivery across deployments. Review any configured access_token_lifetime against the 15 minute cap
  • Build the authorization provider from configuration with authz/mode.New(ctx, cfg.Authz, mode.Deps{...}) and pass its Syncer to the identity services. The authz key defaults to rbac. The authz/simple and authz/spicedb forwarding packages remain deprecated and will be removed in the next major release; import authz/rbac and authz/rebac/spicedb
  • When switching to rebac, write existing memberships, application roles and resource grants into the graph through the syncer before serving requests, and write the composed schema (embedded instances always receive it; remote ones only with write_schema)

Security

  • Marketplace checkout took the purchaser from the request body, so anyone could start a purchase in another principal's name for any organization (7cf758e)
  • Marketplace listing, license, and seat endpoints acted on any IDs a request named; they now check the caller's permissions on the owning organization (bbac538)
  • The organization API listed every organization and let any caller read, change, or delete organizations, change members, and transfer ownership; it now authorizes each operation (08bd206)
  • Invite management needed no permission, and anyone holding an invite link could accept it as any principal; invites are now managed with invite_member and accepted only by the addressee (236c0e9)
  • Invite tokens were stored in plain text, so a leaked table or backup could accept invites; they are stored as SHA-256 hashes (7ccc80e)
  • SpiceDB principal and organization cleanup ignored failures and missed editor and manager relations, leaving access behind while reporting success (22f7b28)
  • Refresh-token rotation was not atomic and its revocation error was discarded, so a refresh token could be used more than once; refreshing near expiry also reset a session to seven days, extending it indefinitely. Rotation is now atomic, a family keeps its first expiry, and reusing a rotated refresh token revokes the family (2a3c8cd)
  • Stripe checkout granted licenses for sessions completed with an unpaid delayed payment, a malformed seat count produced an unlimited seat-based license, and cancelled subscriptions kept their licenses (fa2a57d)
  • Deactivating a principal left its access tokens valid and let its refresh tokens keep issuing new ones for up to the family's absolute lifetime; SystemAuth and identity/token now refuse an inactive principal's tokens wherever they are used or refreshed, and revoke the family (ebe913d)
  • Revoking an agent's delegation gave it unrestricted access, constraints that did not overlap allowed everything, and delegation expiry and action limits were never stored; delegation now fails closed and enforces every constraint (284806d)
  • UpdateHuman granted or revoked platform administration without syncing it, so a revoked administrator stayed one in SpiceDB (5e002b3)
  • SignupWithInvite let anyone holding an invite link join under any email, and SignupOrGetExisting returned an existing account for an unverified email (e6d07df)
  • SystemAuth's default session provider and identity/oauth's authorization endpoint took the user from an X-User-ID request header, so anyone who could reach the endpoint could obtain an authorization code, and tokens, for any user; header identity is now an explicit, gated opt-in and the default authenticates nobody (645c151)
  • identity/oauth granted every requested scope to every client without consent; non-first-party clients now need a consent check (ef7ea3d)
  • SCIM listing and search never asked the authorization hook, so any caller with a token could dump every user and group, and the provider's default hook allowed everything; listings are authorized and the default denies (0e3dd33)
  • The federation identity sync endpoint trusted any well-formed request and acted on its body, letting an unauthenticated caller link to and then deactivate or rewrite any account by email; it and the lookup endpoint now require a FederationAuthenticator and are not registered without one (d57bf0f)
  • Rate limits keyed on client-supplied X-Forwarded-For and X-Real-IP, so a client could evade a limit by rotating the header or poison a victim's; they key on the direct peer, and forwarded headers are believed only from configured trusted proxies, here and in the BFF client IP handling and the API key middleware (3019061)
  • The in-memory rate-limit store grew without bound from attacker-chosen keys, the middleware failed open on storage errors, and the login token endpoint keyed on raw client_id values; the store is bounded, the middleware fails closed, and only registered clients get a bucket (3019061)
  • Token introspection accepted any valid access token or any client's Basic credentials, public clients included, as the caller's credential; it now requires a confidential client or a token with the introspect scope (5e6dba0)
  • The default storage accepted every client-assertion JWT ID as new, so a captured private_key_jwt assertion could be replayed until it expired (2ae4f56)
  • BFF cookies lost Secure and HttpOnly when a CookieConfig omitted them; both are now unconditional unless AllowInsecure is set for development (d1d897c)
  • Cookie-authenticated writes through relyingparty.BearerMiddleware skipped the same-origin check, allowing cross-site requests (ebf1095)
  • JWT validation accepted tokens with no expiry and ignored the issuer; the contract middleware did the same and skipped the audience check without an app ID (7061c67)
  • Client secret validation revealed whether a client ID existed by error message and timing, and lockout counted differently spelled identifiers separately, restarting the count (30bd958)
  • multiapp's SchemaDB left a schema's search_path on pooled connections, which could carry one application's schema to unrelated code, and ForSchema interpolated unvalidated names into SQL (012e2db)
  • The BFF proxy forwarded the browser's session cookie upstream when a ProxyConfig was built by hand; Cookie, Authorization, and DPoP headers are now always stripped (3c54fc2)
  • multiapp trusted the X-App-ID header, so with a shared signing key a token for one app authenticated requests for another; MiddlewareConfig.AppAudiences binds tokens to the routed app (73e0d19)
  • API keys could be read, revoked, or deleted by ID alone, requested any scope including the wildcard when no allow-list was set, and ignored MaxKeysPerUser (0a3cf11)
  • Lockout let a burst of parallel guesses exceed MaxAttempts; Lockout.Begin reserves the attempt before the credential is verified (43c3818)
  • Concurrent BFF refreshes spent one refresh token several times, which token reuse detection treats as theft; refresh is now serialized per session (a77d8df)

Added

  • identity/requestprincipal: a protocol-neutral RequestPrincipal, an Authenticator interface, and middleware that tries authenticators in order and challenges with every protocol when none recognizes the request (780ef1a)
  • relyingparty.NewRequestAuthenticator adapts bearer authentication (SystemAuth access tokens, API keys, BFF sessions) to the request authenticator chain (d86c3f0)
  • identity/requestprincipal/aauthrs authenticates AI agents at resource servers with AAuth: message-signature and token verification, an issuer allowlist checked before key discovery, per-route scopes, and AAuth-Requirement challenges (afd69bb)
  • migrations/0002 creates the system service principal, reassigns OAuth apps owned by legacy users, and drops the legacy tables and columns on existing PostgreSQL databases (97282d7)
  • A repository-wide test fails on references to the retired legacy identity model in code or current documentation (2b45328)
  • identity/clientassertion records used client-assertion JWT IDs in sf_client_assertion_jtis for replay protection (bd8af95)
  • store.Config.TrustProvisionedEmail, off by default, marks emails written through SCIM as verified so social login can link to provisioned users (ce3ea97)
  • identity/pgschema applies PostgreSQL-only schema objects; the migrate step adds a unique index on lower(email) in sf_humans (03c314a)
  • The members endpoint accepts includeInactive to list deactivated memberships (3f80884)
  • identity/managedprincipal creates managed principals with their managers in one transaction, maintains manager relationships with a last-manager guard, and audits every action (7f4fda8)
  • ManagerRelationship (sf_manager_relationships) and ManagerClaim (sf_manager_claims) Ent schemas (93a7ecf)
  • Deployment managed_principals settings and the per-client managed_principals flag, both off by default, checked through Server.ManagedPrincipalsAllowed (12373d7)
  • login_token credentials: issued by a manager, hashed, verified in constant time, single-use option, with lifetimes from the request, the client's login_token_ttl, or the deployment default (30 days) under a ceiling (400 days); single-use tokens last 20 minutes (1f1c11b)
  • POST /login-token exchanges a login token for a SystemAuth login session, with identical responses for every failure and per-address and per-client rate limits (WithLoginTokenRateLimit) (f839fd4)
  • ID token and userinfo claim managed: true for managed principals, and relying parties read it into VerifiedIdentity.Managed (f839fd4)
  • Managers list and revoke a managed principal's login tokens, login sessions, and token families, individually or all at once, through managedprincipal.Service or NewHandler (4acc46a)
  • Guardian claims: a manager issues a single-use code that makes a human with an email a guardian; AttachVerifiedEmail turns a managed principal into an ordinary human (faf4bc3)
  • Base schema relations guardian and educator on principal with manage_account, manage_credentials, view_profile, and manage_managers; authz.ManagerRolePermissions and simple.WithManagerRoleGetter (8acce83)
  • authz.OrgRolePermissions and the PermOrg* actions name the base organization permissions both providers evaluate (fdfe9eb)
  • providertest.RunOrgPermissionTests and RunManagerRelationTests hold providers to the base schema's grants (e4279a8)
  • marketplace.PurchaserChecker and stripe.WithPurchaserChecker refuse checkout to managed principals (3abd5fb)
  • marketplace.WithAuthorizer, WithPurchaseAuthorizer, OrgRolePurchaseAuthorizer, and WithCallerResolver configure how the marketplace API authorizes callers (7cf758e)
  • organization.MembershipRoleGetter backs the simple provider with active memberships; APIConfig.Authorizer and Caller configure the organization and invite APIs (08bd206)
  • requestprincipal.PrincipalUUID resolves the caller's SystemForge principal ID (57c531b)
  • spicedb.Client.DeleteRelationships deletes relationships by filter (22f7b28)
  • migrations/0003 converts stored invite tokens to hashes (7ccc80e)
  • CI runs the PostgreSQL tests against a database service and the SpiceDB provider tests with the integration tag; SF_TEST_PG_REQUIRED makes a missing database fail rather than skip (a5af409)
  • systemauth.PrincipalStatus lets storage report whether a token's principal is active; Ent and memory storage implement it (ebe913d)
  • Agents store allowed actions, allowed scopes, and a delegation expiry (404b72c)
  • systemauth.RequestGate, TrustAllRequests, and TrustedProxyNetworks; oauth.WithUserAuthenticator, WithTrustedUserIDHeader, WithLoginURL, and WithConsent (ef7ea3d)
  • jwt.ValidateAccessTokenForAudience and middleware.HTTPAuthForAudience; ratelimit.PeerIP, ForwardedClientIP, ForwardedIPKey, WithMaxKeys, WithFailOpen; systemauth.WithLoginTokenClientIP, FederationAuthenticator, SharedSecretAuthenticator, and AuthorizeIntrospectionCaller; scim.DenyAllAuthorizationHook (3019061)
  • session/jwt: TokenOptions.Audience addresses one token to its own audience (9b46bda)
  • multiapp: MiddlewareConfig.AppAudiences binds tokens to the app a request is routed to (73e0d19)
  • identity/security: Lockout.Begin and Attempt reserve a login attempt before verification (43c3818)
  • A first GitHub or Google login creates the person's personal organization and owner membership in the same transaction as the principal, and an existing principal without one gets it on its next login; the slug is the GitHub username or the email local part, with a numeric suffix on collision (ADR-006). signup.SlugForLogin, signup.CreatePersonalOrgInTx and signup.EnsurePersonalOrgInTx expose the derivation and the in-transaction creation (1d6f996)
  • Reserved slugs: organization.ReservedSlugs lists names no organization may take, WithReservedSlugs adds product names, and signup avoids them; a managed principal's slug is a manager-entered value or a generated adjective-noun-NN, never its email (signup.SlugForManaged) (6c456ab)
  • Personal organization rules: a personal organization has one member, its owner, and refuses members, invitations, SCIM membership and ownership transfer with ErrPersonalOrganization unless the role is collaborator (8988ccf)
  • Slug rename with a cooling-off period (default 7 days, WithSlugCoolingOff), reservations in sf_slug_reservations, and aliases through ResolveSlug so old links keep working (f8c679a)
  • organization.ConvertToTeam turns a personal organization into a team in one transaction and creates a new personal organization under the handle (1569de1)
  • Entitlements derived from the marketplace: organization responses carry an entitlements list built from active subscriptions, valid licenses and default entitlements, and subscriptions may be per listing (migration 0005) (c43fedf)
  • Entitled applications: a listing may name an application, and marketplace.ApproleOptions maps subscriptions, licenses and marketplace.WithDefaultEntitlements to applications with seat limits from seat-based licenses (2d11968)
  • Application roles: the AppRole schema (sf_app_roles) and the approle service to assign, change and remove a role per principal, organization and application, with endpoints under /organizations/{slug}/members/{principal_id}/app-roles (9e8d94a)
  • Application roles reach the authorization graph through the optional authz.AppRoleSyncer (b530c81)
  • The orgs claim in ID tokens, access tokens and userinfo, and a paginated GET /oauth/userinfo/memberships (6b52b99)
  • relyingparty membership sources: ClaimsMemberships, RemoteMemberships, ClaimsOrRemoteMemberships and ProvisioningMemberships (5cd6dd9)
  • Invitations carry application roles to grant on acceptance, validated against entitlements and seats (migration 0006) (1b178fd)
  • sf_access_changes and the accesschange package record every access-reducing change in the transaction that makes it and announce it to a sink (2c3082e)
  • Access changes are recorded for member removal and deactivation, organization and application role changes, ownership transfer, principal deactivation and session or token revocation (f92470f)
  • relyingparty.RevocationCache, and BearerMiddleware and the BFF refuse tokens issued before an access change, after a clock-skew margin (975b3a5)
  • Access-change poller, replay after a restart, suspect-start mode and the GET /access-changes endpoint with the access_changes:read scope (4c0d2ce)
  • Back-channel delivery of access changes as OpenID Connect Back-Channel Logout tokens to clients that register backchannel_logout_uri (migration 0007), and relyingparty.BackchannelHandler to receive them (986a1cf)
  • Access-change reasons form an open, validated registry (529a999)
  • The resource-role ladder (viewer, contributor, maintainer) and the ResourceGranter contract (d95eaca)
  • Resource grants stored in sf_resource_grants and mirrored to the graph; the role-based provider consults and manages them (8187a9a)
  • The relationship-based provider writes grants as relationships and lists resources by lookup, and vocabulary fragments validate collaborator-able definitions (68a498e)
  • Resource-targeted invites: an invite can name a resource type, id and role, and accepting it creates the collaborator membership and the grant together (migration 0009) (8b399cc)
  • The authz configuration key with rbac and rebac modes, ModeConfig and SpiceDBConfig (537714b)
  • authz/mode.New builds the configured provider, relationship syncer and grant store from a ModeConfig, with Close (dac2d76)
  • Management is derived from active manager relationships rather than from the absence of an email; a managed identity may carry an email (eea12c3)
  • Release a principal from management, invite a self-managed human to be managed, and decline a manager invitation (6471f2b)
  • A manager invitation can be declined by the invitee (f5bef03)
  • Authorized managed-principal operations, deletion with erasure and an HTTP API for managing operations (1b65fa3)

Changed

  • authz providers are named for their mode: role-based authz/rbac (formerly authz/simple) and relationship-based authz/rebac/spicedb (formerly authz/spicedb), so another engine can sit beside SpiceDB under the same mode (f1f3c0a)
  • Federation sync records the federation identity as an ExternalIdentity; creating an identity for an existing email links it so later updates and deletes resolve to the same principal (d054dc7)
  • Human email uniqueness is enforced case-insensitively on create and update in SystemAuth and SCIM, matching the case-insensitive lookups (d054dc7)
  • SCIM userName is not case-exact (RFC 7643): lookups, uniqueness, and eq and co filters ignore case (6a12bae)
  • SCIM memberships honor the active flag, and deleting a user who belongs to a group removes the memberships instead of failing (6a12bae)
  • Creating an organization through the API makes the caller its owner, and every organization with an owner gives it an owner membership (faedc5a)
  • Listing organizations returns the caller's organizations, or all of them for platform administrators (08bd206)
  • SCIM no longer lists, reads, changes, deletes, or groups managed principals (18431bb)
  • Signup requires a bare email address (a76a721)
  • Unused stale Argon2id secret checkers are removed from the identity packages (b85abc4)

Deprecated

  • authz/simple and authz/spicedb forward to authz/rbac and authz/rebac/spicedb as deprecated packages for one release; importers should move to the new paths (f1f3c0a)
  • mixin.HumanMixin, mixin.OAuthAccountMixin, and mixin.RefreshTokenMixin: applications should authenticate through SystemAuth and link local records by sf_principal_id (80dcf1b)
  • spicedb.BaseSchema: use authz.BaseSpiceDBSchema (8762bc6)
  • identity/security: Lockout.CheckAndRecord in favor of Begin (43c3818)
  • rls: EntHook.SetContextFromContext, ContextInjector, ConnWithRLS, NewConnWithRLS, and GetConnWithRLS, which cannot take effect outside a transaction (ba68c75)
  • The authz/simple and authz/spicedb forwarding packages will be removed in the next major release; use authz/rbac and authz/rebac/spicedb (dac2d76)

Fixed

  • SCIM user and group listing panicked on every ascending sort, including the default order (7f0e320)
  • The identity/oauth Fosite storage dropped any subject that was not a UUID; tokens and authorization codes now record the subject (16f7f9f)
  • CreateClient reported every constraint failure, such as a nonexistent owner, as ErrClientExists; it now does so only for a duplicate client ID (57ece18)
  • Federation sync no longer discards lookup errors, and a delete reports synced only for an identity that was never linked (d054dc7)
  • rls.SetupTestTenant and SetupTestUser inserted into tables that no longer existed; they now create organizations, human principals, and principal memberships, and report cleanup failures (40fc9b9)
  • rls.SystemForgeTables named a table that no longer existed, so MigrateSystemForge failed; it now names sf_principal_memberships (012db98)
  • identity/oauth.NewProvider panicked on construction because its storage no longer satisfied Fosite's interfaces; it now does, checked at compile time (5e36fc3)
  • identity/oauth never recorded a token family, so revoking refresh and access tokens had no effect; tokens record their request as the family and rotation retires the exchanged refresh token (5e36fc3)
  • SystemAuth failed to record client-assertion JWT IDs under foreign-key enforcement, breaking private_key_jwt client authentication and leaving assertions replayable (bb78cf8)
  • Changing a user's email through SCIM no longer keeps the previous address's verification (ce3ea97)
  • The marketplace, organization, and invite APIs panicked at registration because list filters used pointer query parameters (52be74e)
  • The simple provider denied every organization permission check, because its permission names did not match the ones it looked up (fdfe9eb)
  • SpiceDB GetRole reported editors as non-members (8762bc6)
  • A managed principal's first sign-in to a relying party failed for lack of a verified email (b6f214a)
  • In-memory stores, password login, and federation sync could match or adopt a human by an empty email (ca80678)
  • Invite emails are matched case-insensitively (236c0e9)
  • organization.Service.Create failed for an organization without a plan instead of defaulting to free (6b3f405)
  • GetMembership reports a missing membership as organization.ErrMembershipNotFound (faedc5a)
  • identity/credential reports failures to record a credential's use and corrupt stored hashes (ErrCorruptCredential) instead of discarding them, and CreatePassword no longer creates a second password when its lookup fails (43ac1ff)
  • identity/oauth's authorization code exchange always failed and its tokens lost their subject; its grant storage now delegates to SystemAuth's, enforcing PKCE and redirect URIs and detecting code replay and refresh-token reuse (f2f71da)
  • A signup that failed after creating the user left an account with no organization whose email could not sign up again (e6d07df)
  • principal type-specific updates changed shared fields before checking the type, and CreateAgent accepted a missing or inactive delegating principal (5e002b3)
  • identity/oauth.NewAPI panicked on every call because the Fosite interceptor was added after routes (ef7ea3d)
  • The federation lookup handler read its path parameter with net/http's PathValue, which chi does not populate (d57bf0f)
  • The memory rate-limit store panicked when used after Close, and discarded windows after a fixed hour whatever their period (3019061)
  • A login with no usable characters in its username gets a neutral slug (7eaa539)
  • Accepting an invite syncs the new membership to the authorization graph (47b0cd9)
  • Principals and organizations created by social login are registered with the authorization syncer (d3566cf)
  • Signup creates the principal and personal organization in one transaction (cc58377)
  • The application-role seat limit is checked under a lock so concurrent assignments cannot exceed it (8521c37)
  • A managed principal is never a valid manager (88b8c7b)
  • Authorization checks for AddManager, RemoveManager and Release run inside the row-locked transaction (66ff372)
  • Managing operations record the accurate access-change reason (d94f453)
  • The resource schema helper keeps owner and delete (3fba5d6)
  • Assigning an application role with no seat left answers 409 instead of 500 (cbb810e)

Dependencies

  • 1 dependency update

Documentation

  • ADRs live in docs/design/adrs/ with an index of statuses, under a Design section in the docs nav; ADR-006 (organization lifecycle), ADR-007 (memberships and entitlements as claims), ADR-008 (resource-scoped collaborators, with rbac/rebac guidance) and ADR-009 (management is a relationship) are added (4ee73c5)
  • ADR-004 (retire legacy User; Principal as the sole identity root) and ADR-005 (managed principals and manager relationships), with specs for INIT-SYSTEMFORGE-007 and INIT-SYSTEMFORGE-008
  • Identity, OAuth, integration, and getting-started documentation rewritten for the principal model; the schema reference is generated from the Ent schema
  • The service-accounts page states that the RFC 7523 JWT-bearer grant is not implemented; the migration guide states that only Argon2id password hashes can be imported
  • Resource servers accepting AI agents via AAuth (00b495f)
  • Managed principals guide, with the email exception, login token security, and base manager relations added to the users, account security, and authorization conventions docs (6f9cd36)
  • Architecture pages for organizations, managed principals and authorization describe the implemented behavior (287ffaf)
  • Guides for invites, application roles and entitlements, collaborators and resource grants, organization slugs, personal-to-team conversion, access-change invalidation and the authorization mode (940fd7e)
  • Feature specifications moved from docs/design to docs/specs (30d9c8f)
  • INIT-SYSTEMFORGE-011 specifications for the organizations initiative (f41140a)

Tests

  • The test person-server client uses an explicit HTTP client (e0f1773)

v0.13.0 - 2026-10-06

Highlights

  • identity/systemauthsvc: embed SystemAuth in a host binary with config loading, production checks, migrations, client bootstrap and health
  • Production safety checks enforced by systemauthsvc.New, not only by the command
  • Service.Metadata() lets in-process relying parties skip network discovery
  • Configuration overrides apply before defaults and validation; SystemAuth configuration can be loaded from bytes

Added

  • Server.OpenIDConfiguration() and Server.Ready(ctx) on the SystemAuth server (d4e1834)
  • identity/systemauthsvc exported SystemAuth service setup for host binaries (77e642b)
  • systemauth.DecodeConfig and DecodeConfigFile decode configuration without validating (af3891e)
  • systemauthsvc.LoadConfigBytes; LoadConfig validates after overrides (974b8b0)

Changed

  • cmd/systemauth builds the server through systemauthsvc; flags and defaults unchanged, production-refusal message reworded (adf9268)

Documentation

  • Verified email design: ADR-003 and INIT-SYSTEMFORGE-006 (9786049)
  • Embedding SystemAuth in a host binary (7a7e5f5)
  • LoadConfigBytes and override ordering (f52d8f2)

v0.12.0 - 2026-10-06

Highlights

  • Social login on SystemAuth: GitHub/Google login routes, principal upsert keyed by provider subject with verified-email linking, hardened __Host-sf_login session, state CSRF + PKCE, allowlisted redirects
  • Session and token lifecycle: refresh-token rotation with reuse detection and absolute expiry, logout with token revocation, consent page
  • OpenID Connect: ID tokens, optional RS256 JWT access tokens, and the /oauth/userinfo endpoint
  • identity/relyingparty: reusable OIDC relying party with sub → sf_principal_id linking, /bff/* cookie sessions, and bearer middleware for JWTs and API keys
  • Durable stores: Ent-backed SystemAuth login sessions, login state and consent grants; identity/relyingparty/pgstore encrypted PostgreSQL session stores with key rotation
  • Production-deployable systemauth binary: PostgreSQL via pgx, signing key from a secret, health checks, and a production mode that refuses unsafe configuration

Breaking

  • Removed the unused duplicate session/oauth package; use identity/oauthclient (51f85fd)
  • cmd/systemauth without --dev refuses to start without a signing key, an https issuer, and a persistent database, and rejects insecure_cookies (bd65215)
  • Refresh tokens rotate on every use; presenting a rotated refresh token returns invalid_grant and revokes the token family (2c72979)
  • OAuth codes and tokens record a subject; auth-code user_id becomes nullable; run systemauth migrate (6ed9b76)

Added

  • identity/oauthclient: provider Connector, User.EmailVerified, and a pluggable single-use StateStore (178063d)
  • ExternalIdentity entity (sf_external_identities) linking principals to upstream logins (9d2f589)
  • SystemAuth principal directory and external-login account linking (verified-email linking only) (ae8a363)
  • social_login configuration with redirect allowlist (9ae2eb5)
  • __Host-sf_login session store and hardened cookies (35b8ba3)
  • GitHub/Google login routes on SystemAuth (a1e4310)
  • Logout and consent pages (3644e1b)
  • OpenID Connect UserInfo endpoint (adbb5b7)
  • OIDC ID tokens, optional JWT access tokens, and idp_hint (d83b627)
  • identity/relyingparty OIDC client and principal linking (2f2ef88)
  • Relying-party /bff cookie-session handler and bearer middleware (c0c6f5d)
  • Signing key loaded from a secret with a key ID, and /healthz / /readyz (d496386)
  • Production-deployable systemauth binary with PostgreSQL via pgx and env/flag configuration (bd65215)
  • Ent schemas for login sessions, login state and consent grants (52b21a5)
  • Ent-backed SystemAuth login session, login state and consent stores, used by default with database storage (311ce3a)
  • identity/relyingparty/pgstore PostgreSQL session and login-state stores with AES-256-GCM encryption at rest (0369dd5)
  • pgstore.Keys, KeysFromEnv, and NewStores for shared session-key loading and rotation (64bde37)

Changed

  • Relying-party memberships come from a MembershipSource fed by SystemAuth claims; sessions track sid for future back-channel logout (f34b05d)
  • cmd/systemauth logs whether social login state is database-backed at startup (b286d70)

Fixed

  • Refresh-token rotation with reuse detection; reused refresh tokens no longer crash the server (2c72979)
  • Query-escape the return URL in DefaultSessionProvider redirects (50743ec)
  • Update configured OAuth clients that already exist in the database on startup (ca517d3)
  • Generate the relying-party seal nonce in a dedicated buffer (sealed format unchanged) (fcce545)

Dependencies

  • 1 dependency update

Documentation

  • Centralized social login design: ADR-002 and INIT-SYSTEMFORGE-005 (66a0103)
  • Social login guide (c897f21)
  • Logout, consent, and refresh-token rotation (db3ced2)
  • SystemAuth endpoints and UserInfo (d999cd7)
  • Federating applications to SystemAuth (relying-party guide) (13afdf0)
  • SystemAuth production deployment guide (6e5f979)
  • Production stores for SystemAuth and relying parties (ec75da4)
  • NewStores and environment-based key rotation (b3dda5d)

v0.11.0 - 2026-10-02

Highlights

  • coreauth -> systemauth: the identity/auth server package, binary, bootstrap user, JWKS key id, env var, and observability metric namespace all rename; the parallel CoreControl naming is retired in favor of the same name
  • cf_ table prefix -> sf_: all 26 identity tables, via the Ent schema annotations
  • API-key visible prefix cf_ -> sf_: newly issued keys read sf_live_.../sf_test_...
  • Unified cross-app principal-link field: PrincipalMixin's sf_principal_id replaces the divergent core_control_principal_id / core_auth_principal_id spelling

Breaking

  • identity/coreauth -> identity/systemauth import path; cmd/coreauth -> cmd/systemauth binary; CoreControlConfig and related types renamed to SystemAuthConfig etc. (d97bdde)
  • All cf_ tables renamed to sf_; migrations/0001_rename_cf_to_sf.sql provided for an existing dev database with data to keep (5f78037)
  • identity/apikey.DefaultPrefix and identity/credential.APIKeyPrefix move from cf_ to sf_; dev-issued cf_-prefixed keys must be reissued (385fe99)
  • PrincipalMixin's SSO-federation link field renamed to sf_principal_id; consumers on core_control_principal_id or core_auth_principal_id must rename and regenerate Ent (5734a60)

Documentation

  • README Database Tables and Migration Strategy sections updated to sf_*

v0.10.0 - 2026-09-06

Highlights

  • Module path moved from github.com/grokify/systemforge to github.com/plexusone/systemforge; the GitHub repository was transferred to the plexusone org
  • Cross-app authorization vocabulary contract (AppVocabulary) and registry so Forge platform apps share one role/permission/scope convention
  • Shared SpiceDB base schema (principal/organization/platform) with a composition helper for app-contributed fragments

Breaking

  • Module path changed to github.com/plexusone/systemforge. Update imports from github.com/grokify/systemforge/... to github.com/plexusone/systemforge/... (the API is unchanged); the old path still resolves via GitHub's repository-transfer redirect but will not receive new tags (852744b)

Added

  • authz.AppVocabulary contract and VocabularyRegistry validating app-name format, {app}:{resource}:{verb} scope naming, role-hierarchy coverage, and {app}_-prefixed SpiceDB definitions (7886093)
  • BaseSpiceDBSchema and VocabularyRegistry.ComposeSpiceDBSchema, assembling the platform base plus every registered app fragment and rejecting duplicate definitions (d61bc4f)

Fixed

  • Close a line-anchored regex bypass in SpiceDB schema-definition detection: a fragment packing two definitions onto one physical line hid the second from both the {app}_-prefix check and the duplicate-shadowing check, while the raw fragment was still concatenated verbatim into the composed schema — letting an app silently redefine a reserved or foreign definition (3f43040)
  • Exclude github.com/KimMachineGun/automemlimit v1.0.0, which removed memlimit.SetGoMemLimitWithOpts and broke the build via jzelinskie/cobrautil/v2/cobraproclimits (a64fce1)
  • Reference the shared plexusone/.github CI workflows at @main (with check-latest: true added upstream) instead of a stale pinned tag, so go.mod's required Go patch version resolves correctly (1e27a9a)

Dependencies

  • 3 dependency updates

Documentation

  • Publish the INIT-SYSTEMFORGE-001 (unified Forge authorization/IAM/shell) and INIT-SYSTEMFORGE-002 (grokify-to-plexusone migration) initiative specs (fd97642)

v0.9.0 - 2026-08-23

Highlights

  • DPoP (RFC 9449) extracted to the standalone github.com/grokify/goauth/dpop package; consumers must update their import path
  • GuardSQL authorization adapter (authzguardsql) consolidated into SystemForge
  • OpenAPI 3.1 spec with an interactive Scalar API reference in the docs site

Breaking

  • The session/dpop package has been removed; DPoP now lives at github.com/grokify/goauth/dpop. Update imports from github.com/grokify/systemforge/session/dpop to github.com/grokify/goauth/dpop (the API is unchanged). The session/bff layer that binds DPoP to sessions remains in SystemForge (1892c0d)

Added

  • authzguardsql adapter mapping GuardSQL schemas/policies to SystemForge authorization (PolicyBuilder, ResourceBuilder, DefaultResourceBuilder); depends on github.com/grokify/guardsql (cc789a7)
  • OpenAPI 3.1 specification and a Scalar interactive API reference (b271108)

Changed

  • bff reverse proxy migrated from the deprecated httputil.ReverseProxy.Director to Rewrite (Go 1.26 SA1019), propagating the session via the outbound request context (1892c0d)

Dependencies

  • 8 dependency updates

Documentation

  • Add a query policy engines guide and integrate it across the docs (434862c)
  • Integrate the interactive API docs into site navigation (293eb0b)
  • Document the authzguardsql adapter and the guardsql rename (ac300af)
  • Update README shields (9b8c673)

v0.8.0 - 2026-06-21

Highlights

  • Organization ownership transfer with transaction-safe implementation
  • OmniStorage session backend with Redis support and size limits
  • SpiceDB API compatibility fix for v1.54.0+

Added

  • Organization ownership transfer functionality with TransferOwnership method (7be89d8)
  • POST /organizations/{slug}/transfer-ownership API endpoint (7be89d8)
  • TransferOwnershipInput type for transfer configuration (7be89d8)
  • OmniStorage session store backend with memory and Redis support (3493416)
  • Session size limits and per-user session limits with auto-eviction (3493416)
  • Site isolation for multi-tenant session management (3493416)

Fixed

  • SpiceDB client API compatibility with v1.54.0+ using grpc.NewClient (4aa41ae)

Dependencies

  • 12 dependency updates

Documentation

  • Session management overview with architecture diagram (b3d0cd6)
  • BFF sessions documentation with store interface and backends (b3d0cd6)
  • Ownership transfer documentation in memberships guide (f7218a1)

v0.7.0 - 2026-05-10

Highlights

  • BREAKING: Renamed project from CoreForge to SystemForge
  • ProductGraph integration for event correlation and tracking
  • Session invalidation with memory and Redis stores
  • Account lockout protection for identity module

Added

  • ProductGraph client for event correlation and tracking (cf8aa54)
  • ProductGraph integration with observability module (df5c013)
  • Session invalidation with MemoryStore and RedisStore implementations (b4077b1)
  • Account lockout protection in identity module (500fd61)

Changed

  • BREAKING: Renamed project from CoreForge to SystemForge - update all imports from coreforge to systemforge (dc9b68f)

Fixed

  • Session IsExpired flaky test on Windows due to time resolution (e332cfa)
  • golangci-lint errcheck, gosec G115, staticcheck SA1019 issues (16cfbe1)
  • gosec G710 open redirect and G124 insecure cookie lint issues (d8de86f)

Dependencies

  • 7 dependency updates

Documentation

  • Observability overview documentation (98b3669)
  • ProductGraph task tracking documentation (9ce6db1)
  • ProductGraph integration design documents (062b663)

v0.6.0 - 2026-04-12

Highlights

  • Multi-app platform infrastructure for running multiple SaaS apps on shared backend
  • Schema-per-app PostgreSQL isolation with X-App-ID header routing
  • SystemForge identity and session integration for multiapp deployments

Security

  • Generic 404 responses for missing/invalid X-App-ID to prevent enumeration attacks (1c85471)

Added

  • Multi-app server with MultiAppMode and SingleAppMode deployment options (a6ab2aa)
  • AppBackend interface for composable app registration with lifecycle hooks (a6ab2aa)
  • Schema-per-app database isolation using PostgreSQL schemas (app_ prefix) (a6ab2aa)
  • X-App-ID header routing for multi-tenant request dispatch (a6ab2aa)
  • Redis and in-memory cache implementations with app-scoped prefixes (a6ab2aa)
  • SystemForge identity integration with JWT claims extraction and validation (fb0ed5f)
  • Session management helpers for multi-tenant deployments (fb0ed5f)
  • Ent client factory for schema-isolated database connections (fb0ed5f)
  • HTTP middleware for authentication and tenant context propagation (fb0ed5f)
  • Example app backend implementation demonstrating AppBackend interface (0895fe0)

Dependencies

  • 2 dependency updates

Documentation

  • Multiapp architecture documentation with deployment patterns (3078737)

v0.5.0 - 2026-04-05

Highlights

  • Audience-aware JWT tokens for BFF vs API client separation
  • Ent-backed stores for API keys and BFF sessions with AES-256-GCM encryption
  • Reusable Ent schema mixins for API keys and BFF sessions

Added

  • Audience-aware JWT tokens with GenerateBFFTokenPair and GenerateAPIToken methods (8978a57)
  • AES-256-GCM token encryption for BFF sessions with Encryptor type (c101b1f)
  • Ent-backed BFF session store with automatic expired session cleanup (c101b1f)
  • Ent-backed API key store with EntClientInterface for app integration (efeecfb)
  • APIKey Ent mixin with fields for key management (prefix, hash, scopes, environment) (cda9b50)
  • BFFSession Ent mixin with encrypted token fields and session metadata (cda9b50)

Dependencies

  • 5 dependency updates

Documentation

  • JWT audience separation guide for BFF vs API tokens (4144c80)
  • Ent-backed session store integration guide (4144c80)
  • API key Ent store implementation documentation (4144c80)
  • OAuth client package documentation (4144c80)
  • Design documents for JWT audience and Ent stores features (00d784d)

v0.4.0 - 2026-03-23

Highlights

  • Backend for Frontend (BFF) package with session management, rate limiting, and API proxy
  • Public profile fields for users and organizations enabling directory listings
  • Huma framework integration for OpenAPI schema generation in BFF endpoints

Added

  • BFF HTTP handler with session creation, API proxy, and CSRF protection (76b618a)
  • Token bucket rate limiter with per-endpoint overrides and standard headers (3d4962b)
  • Client IP extraction with Cloudflare and proxy header support (4b60e87)
  • Huma API integration for BFF with OpenAPI schema generation (02c57fc)
  • Public profile fields for HumanMixin (slug, headline, bio, social links) (a4a52b7)
  • Public listing fields for OrganizationBase (tagline, description, website) (156ff92)

Dependencies

  • 3 dependency updates

Documentation

  • BFF pattern documentation with architecture and integration examples (92590b0)

Infrastructure

  • Updated shared CI workflows to Go 1.26.x only (126ca83)

v0.3.0 - 2026-03-14

Highlights

  • Vendor-agnostic observability integration with OmniObserve (Datadog, New Relic, Dynatrace, OTLP)
  • SaaS marketplace infrastructure with Stripe billing and seat-based licensing
  • Redis-backed rate limiting with sliding window and token bucket algorithms
  • OAuth client management and provider abstraction for CoreAuth

Added

  • Observability package with OmniObserve integration for metrics, traces, and logs (8b08c3f)
  • Marketplace package with Stripe subscription and seat-based licensing (736cca3)
  • OAuth client management service in identity/oauthclient (2bd40be)
  • CoreAPI rate limiting package with policy-based controls (be156d1)
  • Redis-backed rate limiter with sliding window algorithm (4de27f5)
  • Marketplace Ent entities: License, Listing, Subscription, SeatAssignment (daed5ba)
  • CoreAuth provider abstraction layer for pluggable authentication (6e3698d)
  • JWT claims enhancement with audience and issuer validation (7e343ee)
  • Session middleware improvements with context utilities (0ab89cf)

Dependencies

  • 3 dependency updates

Documentation

  • Authorization PRD and TRD design documents (cc4e0cd)
  • Marketplace PRD design document (cc4e0cd)
  • CoreAPI and CoreAuth documentation (cc4e0cd)

v0.2.0 - 2026-03-08

Highlights

  • SpiceDB authorization provider for Zanzibar-style relationship-based access control (ReBAC)
  • Principal-based identity model supporting humans, agents, applications, and service principals
  • SCIM 2.0 user provisioning with SystemForge-compliant patch operations
  • Identity-authorization sync automatically maintains SpiceDB relationships on identity changes

Added

  • SpiceDB authorization provider with embedded and remote modes (1bdab84)
  • Principal identity model with type-specific extensions (Human, Agent, Application, ServicePrincipal) (beb1dba)
  • GitHub-style organization system with owner, admin, member roles (f10369c)
  • SCIM 2.0 user provisioning endpoints with filter, patch, and bulk operations (e0da6c7)
  • Coreauth authentication server with Fosite-based OAuth 2.0 (0462153)
  • Credential and token management service for principals (b7cbbd7)
  • Standardized API contract module with consistent error handling (2f78fae)
  • Coreauth CLI for server and key management operations (af33be0)
  • User schema extended with profile fields (locale, timezone, avatar) (4c300f5)
  • RelationshipSyncer interface for identity-authorization integration (0d6b81e)
  • No-op syncer for deployments without SpiceDB (0d6b81e)
  • SpiceDB integration tests with embedded server (b77e366)

Changed

  • OAuth 2.0 implementation refactored for principal-based identity (09b1146)

Removed

  • Casbin authorization provider (replaced by SpiceDB) (0c01487)

Documentation

  • SpiceDB setup guide for embedded and remote modes (1bdab84)
  • SpiceDB schema reference with permission inheritance model (1bdab84)
  • Authorization integration patterns and middleware examples (0d6b81e)
  • Updated module documentation for v0.2.0 (4d676b1)

v0.1.0 - 2026-02-28

Highlights

  • Batteries-included Go platform module for multi-tenant SaaS applications
  • Complete identity management with users, organizations, and memberships
  • Full OAuth 2.0 server implementation using Fosite with PKCE, client credentials, and JWT bearer grants
  • Session management with JWT, DPoP (RFC 9449) proof-of-possession, and BFF pattern

Added

  • User accounts with email and Argon2id password hashing (0c48782)
  • Organizations for multi-tenant applications with name, slug, plan, and settings (0c48782)
  • Memberships with flexible role-based user-organization relationships (0c48782)
  • OAuth account linking for GitHub and Google providers (0c48782)
  • API key service for machine-to-machine authentication with scopes (42ce852)
  • OAuth 2.0 server using Fosite with Authorization Code + PKCE grant (91bac6c)
  • Client Credentials grant for service-to-service authentication (91bac6c)
  • Refresh Token grant with rotation and theft detection (91bac6c)
  • JWT Bearer grant (RFC 7523) for service account authentication (91bac6c)
  • Service accounts with RSA/EC key pairs for non-human identities (91bac6c)
  • Token introspection (RFC 7662) and revocation (RFC 7009) endpoints (91bac6c)
  • JWT service supporting HS256, RS256, and ES256 algorithms (1a09a05)
  • DPoP (RFC 9449) proof-of-possession token binding implementation (1f68df0)
  • Backend for Frontend (BFF) pattern with server-side sessions (bc6b81e)
  • GitHub and Google OAuth social login handlers (70a85cc)
  • JWT Bearer and API key authentication middleware (a15ac17)
  • Role-based access control (RBAC) with organization-scoped permissions (3aed18f)
  • Casbin provider for advanced policy rules (3aed18f)
  • Simple provider for lightweight permission checking (3aed18f)
  • HTTP middleware for route protection (Chi and stdlib) (3aed18f)
  • Feature flag engine with boolean, percentage, and user list flags (d7a0bcb)
  • Organization-scoped feature flag evaluation (d7a0bcb)
  • In-memory feature flag store for development and testing (d7a0bcb)
  • PostgreSQL RLS policy generation and session variable helpers (803db13)
  • Tenant isolation for multi-tenant data separation (803db13)
  • Ent ORM integration with transaction helpers for tenant context (803db13)

Documentation

  • Comprehensive MkDocs documentation site with Material theme (a52d6d6)
  • Getting started guides: installation, quickstart, configuration (a52d6d6)
  • Identity module documentation: users, organizations, memberships, API keys (a52d6d6)
  • OAuth 2.0 documentation: apps, authorization code, client credentials, service accounts, tokens (a52d6d6)
  • Integration guides: existing apps and migration (a52d6d6)
  • API reference and Ent schema documentation (a52d6d6)
  • PRD and TRD design documents for authentication and OAuth (aad6a32)
  • README with badges, quick start examples, and module structure (ac04664)

Infrastructure

  • GitHub Actions CI workflow for build and test (e2f98d5)
  • GitHub Actions lint workflow with golangci-lint (e2f98d5)
  • Dependabot configuration for Go modules and GitHub Actions (e2f98d5)