Skip to content

0.29.0

Choose a tag to compare

@cliftonc cliftonc released this 09 Nov 07:37
· 231 commits to main since this release
0.29.0
502ac91

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.ts is the one OAuthClient the three providers return: code + PKCE (S256) through openid-client, given a Configuration and whether the provider sends a nonce.
  • OAuthClient.validateAuthorizationCode(callbackParams, { state, verifier, nonce }) replaces validateAuthorizationCode(code, verifier): the router passes the callback's whole query, and openid-client checks state, PKCE and nonce itself. toTokenSet is gone.
  • Microsoft discovers the common authority (cached per isolate for DISCOVERY_TTL_MS), so an id_token naming 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.ts builds its Configuration from the cached discovery document, which now keeps id_token_signing_alg_values_supported and authorization_response_iss_parameter_supported — so an issuer that advertises the latter must send iss on the callback. Its jose verification of the id_token is unchanged.
  • isAccessDeniedAtTokenExchange is async and reads openid-client's errors, so a Cognito denial is still no_access whatever its body's content type. A token response must be application/json; any other failed exchange is oauth_failed.
  • routes/auth/oauth.ts draws state, verifier and nonce from openid-client (randomState, randomPKCECodeVerifier, randomNonce).
  • @ag-ui/core, @ag-ui/encoder and @ag-ui/proto are pinned at 1.0.4 (were 1.0.3). @ag-ui/proto@1.0.4 takes zod as a peer, so the only zod left is the kit's own (GHSA-mrhx-c7xc-m3w5).
  • pnpm-workspace.yaml gains overrides: @esbuild-kit/core-utils>esbuild → 0.25.12 (GHSA-67mh-4wv8-2f99, reached through drizzle-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 to 1.2.2; the steps below refresh it.
  • Only an owner-level actor issues or resends an owner invitation; createInvitation, bulkInvite and resendInvitation take a required actor: 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 idp membership leaves the row as it is.
  • person.suspended clears an issuer-granted global admin; a manual grant stays.
  • Losing global admin by any route deletes the person's support rows, unpins their sessions and closes their sockets in those tenants.
  • An identity event with an unmatched sub reaches 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/tenants refuses a pending or rejected person (403 pending_approval), answers 409 idp_managed under managed tenancy, and stops at MAX_OWNED_TENANTS_PER_USER (403 tenant_limit_reached).
  • A slug change on PATCH /api/tenant answers 409 idp_managed under managed tenancy.
  • A 429 carries Retry-After from RateLimitedError.
  • API key scopes are enforced in authMiddleware: read allows GET/HEAD/OPTIONS, write or * allow everything, otherwise 403 insufficient_scope.
  • AUTH_OIDC_ONLY=true turns magic links off on the server, and /auth/methods reports magicLink: false.
  • GET /auth/cli no longer creates a key: it goes to /cli/confirm, POST /auth/cli/confirm creates it, and rocketflare login checks a per-login state.
  • One return-path rule, isSameOriginPath (@rocketflare/shared/paths), is used by redirectToSchema and safeReturnUrl.
  • 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/verify runs the Origin and fetch-metadata check even with no session cookie.
  • GET /ws refuses an Origin outside the CORS/CSRF allowlist; a client with no Origin is 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, always Secure; a flow in progress at deploy fails once with oauth_state_mismatch.
  • Microsoft sign-in matches and links on userPrincipalName; mail is no longer read.
  • APP_ENV=production no longer logs a sign-in link, and /api/invite/:token logs 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; ToolApproval gains a required approvedCall.
  • POST /api/agents/runs on an exclusive slot held by a run the caller cannot see answers a bare 409 agent_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 (BudgetLimit unpriced_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/config keeps a stored key only while the provider and normalised base URL both match.
  • describeAiError no longer repeats an upstream message for an unmapped status.
  • Markdown renders images as links; MarkdownImageLink is exported from @/plugins/api/ui.
  • OBSERVABILITY_CAPTURE_CONTENT defaults to false in config.ts and both tomls.
  • The identity seam needs linkByEmail: true to create an account as well as to claim one, and never creates or links a BOOTSTRAP_ADMIN_EMAILS address; admitUser takes a required proof.
  • requireTenant answers 403 tenant_suspended, and signIn answers no_access for a suspended tenant.
  • SsoRequirement and signIn take an optional connectionId that binds a claim to its connection.
  • ToolCtx.can(action, subject) and memberCan(ctx, { tenantId, userId }, action, subject) are new plugin entries.
  • A plugin apiPrefixes entry outside /api gets the 1 MB JSON body cap.
  • The CLI drops terminal control characters from human output (--json unchanged); Column gains style, and neutralise is a new CLI plugin entry.
  • plugin add|upgrade|remove and kit:upgrade refuse any path outside the repository, under .git/ or through a symlink, before writing (scripts/lib/repo-paths.mjs).

Porting note · Compare