# 2026-11-19

These notes cover changes from [`21eae65f`](<https://git.caution.co/public/platform/commit/21eae65f26a2045ce5631fbb80b3b6ccec210593>) through [`545ea609`](<https://git.caution.co/public/platform/commit/545ea609182b4863084992a033347c3b8ba263ec>).

## Upgrade notes

- **Assign roles to existing members.** Existing `admin` and `viewer` memberships become `member`, with no automatic RBAC role assignment or permission backfill. Owners retain access; all non-owner members need an owner to assign roles through **Users** before they can use organization-scoped features.
- **Reissue legacy member invitations.** Pending member invitations without a selected RBAC role cannot be accepted. Owners must cancel and reissue them with a role. Previously issued owner invitations retain their ownership grant.

## Features and improvements

- Added organization-scoped roles with allow/deny rules for HTTP operations and optional resource restrictions. The dashboard groups members, roles and owner-only token management under **Users**, with clearer explanations when access is denied. The role editor provides six access areas: **Apps**, **Go live**, **BYOC**, **Secrets**, **Billing** and **Team**, plus an advanced rules view. Go-live permission is separate from permission to build and deploy candidates.
- Added organization-owned access tokens for non-interactive HTTP API and CLI use through `CAUTION_ACCESS_TOKEN`. Owners choose each token's roles and optional expiry, view last-used metadata and revoke tokens. The secret is shown only when created; the server stores its hash. Tokens never inherit owner access and cannot use user-only or owner-only operations. Revoked, expired and deactivated-organization tokens are rejected.
- Token-authorized deployment switches and quorum-bundle operations run without a passkey challenge, subject to their assigned permissions. Human requests still require passkey confirmation. Deployment history records the acting token for token-authenticated switches and destroys.
- Added passkey confirmation for access grants and role/rule changes, including invitation creation, member changes and token creation. Both gateway and API enforce the signed-route requirement for human callers. Owners may demote another owner when at least one owner remains; the last owner cannot be demoted or removed, including during concurrent changes.
- Added a passkey explanation dialog before browser registration. Cancel or Escape returns to the registration screen without beginning credential creation.
- Added opt-in Sentry reporting for authenticated dashboard errors, unhandled rejections and HTTP 5xx responses. Public authentication, verifier, QR and key-release flows remain excluded. Reporting sanitizes outgoing events and does not enable replay or tracing; builds without a DSN exclude the Sentry SDK.

## Fixes

- Attested TLS configuration (`mode = "tls"`) now requires a `domain` in the HTTP configuration. Configurations without one are rejected before deployment; add the application domain before redeploying.
- Credit exhaustion now records attempted and confirmed suspension separately. Partial stops, missing credentials and timeouts remain retryable; reconciliation continues even when no running meters remain. Credit suspension continues to exclude BYOC resources.
- Credit stops and restoration are serialized to avoid stale suspension state after top-ups or delayed responses. Failed restoration retains a recovery marker for retry. Top-ups do not restart organizations suspended for unpaid invoices, and invoice-dunning state is cleared only after a successful restart response.
- Credit-suspension emails retry independently of resource stops, recording email-service acceptance per member and suspension episode. Recorded recipients are skipped on retries; a crash before recording acceptance can still cause a duplicate.
- Final compute-usage collection and meter shutdown now share a transaction and row lock with regular collection, avoiding overlapping charges for the same interval. An already-stopped meter is settled through its saved stop time, not the retry time. Untracking reports final-collection failures instead of silently succeeding.
- Customer application Docker-build failures are reported as client errors rather than platform failures in Sentry. Build output remains available in the deployment stream, and platform-side build failures retain operator diagnostics.
- Invalid deployment configuration is rejected before opening the deployment response stream. SSH deployment output now reports overall elapsed time on success or failure instead of misleading per-stage timings.
- `caution init` and `caution apps create` now tell users to commit a newly generated `caution.hcl` before pushing, without staging local `.caution/deployment.json` state. CLI installation prints shell-specific PATH instructions.
- Generated Git URLs no longer duplicate SSH ports. Source-archive downloads made by the CLI and enclave builder now send a User-Agent so forge firewalls do not reject otherwise valid requests.
- Quorum certificate generation handles bounded issuer clock skew, waits for certificate eligibility and a Keymaker clock margin, and still rejects skew outside the bound. Certificate validity and revocation are rechecked against the actual clock before use.
- Organization invitation conflicts now distinguish existing membership and other conflicting states. Dashboard content keeps the correct clearance when the responsive announcement banner is dismissed.

## Dependency updates

- Updated `actix-http`, `actix-web` and `quinn-udp` for RustSec advisories, alongside AWS SDK updates.
- Updated Vite to 8.3.8 and its Vue plugin to 6.0.11. Added pinned Sentry Vue SDK and source-map uploader dependencies for the optional integration.
