Repository navigation
0.29.0
Sign-in moves to openid-client, three dependency advisories close, and a hardening round tightens roles, sign-in, API key scopes, AI tools and budgets, the plugin identity seam, CLI output and tooling; trace content capture defaults off.
apps/web/src/api/auth/providers/openid.tsis the oneOAuthClientthe three providers return: code + PKCE (S256) throughopenid-client, given aConfigurationand whether the provider sends a nonce.OAuthClient.validateAuthorizationCode(callbackParams, { state, verifier, nonce })replacesvalidateAuthorizationCode(code, verifier): the router passes the callback's whole query, andopenid-clientchecks state, PKCE and nonce itself.toTokenSetis gone.- Microsoft discovers the
commonauthority (cached per isolate forDISCOVERY_TTL_MS), so anid_tokennaming the person's own tenant is accepted and one naming another tenant is refused. Google uses fixed endpoints. Both authenticate with HTTP Basic, as before. oidc.tsbuilds itsConfigurationfrom the cached discovery document, which now keepsid_token_signing_alg_values_supportedandauthorization_response_iss_parameter_supported— so an issuer that advertises the latter must sendisson the callback. Itsjoseverification of theid_tokenis unchanged.isAccessDeniedAtTokenExchangeis async and readsopenid-client's errors, so a Cognito denial is stillno_accesswhatever its body's content type. A token response must beapplication/json; any other failed exchange isoauth_failed.routes/auth/oauth.tsdraws state, verifier and nonce fromopenid-client(randomState,randomPKCECodeVerifier,randomNonce).@ag-ui/core,@ag-ui/encoderand@ag-ui/protoare pinned at1.0.4(were1.0.3).@ag-ui/proto@1.0.4takes zod as a peer, so the only zod left is the kit's own (GHSA-mrhx-c7xc-m3w5).pnpm-workspace.yamlgainsoverrides:@esbuild-kit/core-utils>esbuild→0.25.12(GHSA-67mh-4wv8-2f99, reached throughdrizzle-kit) and@tailwindcss/typography>postcss-selector-parser→6.1.5(GHSA-rj75-hqrm-r3gf).- A copy upgraded to 0.28.0 may still resolve
source-map-js@1.2.1, which the kit's lockfile already moved to1.2.2; the steps below refresh it. - Only an owner-level actor issues or resends an
ownerinvitation;createInvitation,bulkInviteandresendInvitationtake a requiredactor: RoleView. - A member removed from a tenant takes their pending invitations with them; a global admin's stay, and leaving support revokes nothing.
- Accepting an invitation over an
idpmembership leaves the row as it is. person.suspendedclears an issuer-granted global admin; amanualgrant stays.- Losing global admin by any route deletes the person's
supportrows, unpins their sessions and closes their sockets in those tenants. - An identity event with an unmatched
subreaches an account by email only when the account has no link at that issuer. - Invitation mail is bounded: a five-minute resend cooldown (429) and daily Postgres counters per person and per tenant.
POST /api/tenantsrefuses a pending or rejected person (403pending_approval), answers 409idp_managedunder managed tenancy, and stops atMAX_OWNED_TENANTS_PER_USER(403tenant_limit_reached).- A slug change on
PATCH /api/tenantanswers 409idp_managedunder managed tenancy. - A 429 carries
Retry-AfterfromRateLimitedError. - API key scopes are enforced in
authMiddleware:readallows GET/HEAD/OPTIONS,writeor*allow everything, otherwise 403insufficient_scope. AUTH_OIDC_ONLY=trueturns magic links off on the server, and/auth/methodsreportsmagicLink: false.GET /auth/clino longer creates a key: it goes to/cli/confirm,POST /auth/cli/confirmcreates it, androcketflare loginchecks a per-loginstate.- One return-path rule,
isSameOriginPath(@rocketflare/shared/paths), is used byredirectToSchemaandsafeReturnUrl. - Sign-in mail is limited to 5 per 15 minutes per recipient (KV); past that the route still answers 202 and sends nothing.
POST /auth/magic-link/verifyruns the Origin and fetch-metadata check even with no session cookie.GET /wsrefuses anOriginoutside the CORS/CSRF allowlist; a client with noOriginis unaffected.- Removing a member, signing out, blocking a person, suspending a tenant and every identity-provider removal close the affected hub sockets (close code 4001).
- The OAuth flow cookie is
__Host-oauth_state, alwaysSecure; a flow in progress at deploy fails once withoauth_state_mismatch. - Microsoft sign-in matches and links on
userPrincipalName;mailis no longer read. APP_ENV=productionno longer logs a sign-in link, and/api/invite/:tokenlogs carry/api/invite/[redacted].- Chat neither offers nor runs a tool that declares an approval gate; such tools belong to agent runs.
- A tool approval runs only the call the person was shown, once per attempt;
ToolApprovalgains a requiredapprovedCall. POST /api/agents/runson an exclusive slot held by a run the caller cannot see answers a bare 409agent_run_active.- The run token budget counts prompt-cache reads and writes.
- While a cost cap applies, a chat call the deployment pays for on a model the price table cannot cost is refused (
BudgetLimitunpriced_model); a tenant's own key is not refused. - An external-id re-ingest replaces chunks and grants in the upsert's transaction.
POST /api/ai/configkeeps a stored key only while the provider and normalised base URL both match.describeAiErrorno longer repeats an upstream message for an unmapped status.- Markdown renders images as links;
MarkdownImageLinkis exported from@/plugins/api/ui. OBSERVABILITY_CAPTURE_CONTENTdefaults tofalseinconfig.tsand both tomls.- The identity seam needs
linkByEmail: trueto create an account as well as to claim one, and never creates or links aBOOTSTRAP_ADMIN_EMAILSaddress;admitUsertakes a requiredproof. requireTenantanswers 403tenant_suspended, andsignInanswersno_accessfor a suspended tenant.SsoRequirementandsignIntake an optionalconnectionIdthat binds a claim to its connection.ToolCtx.can(action, subject)andmemberCan(ctx, { tenantId, userId }, action, subject)are new plugin entries.- A plugin
apiPrefixesentry outside/apigets the 1 MB JSON body cap. - The CLI drops terminal control characters from human output (
--jsonunchanged);Columngainsstyle, andneutraliseis a new CLI plugin entry. plugin add|upgrade|removeandkit:upgraderefuse any path outside the repository, under.git/or through a symlink, before writing (scripts/lib/repo-paths.mjs).