Skip to content

1.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 23 Nov 13:15
· 73 commits to main since this release
Immutable release. Only release title and notes can be modified.

Wagoe Framework 1.3.0

All libraries published to Clojars.

com.wagoe/wagoe-platform {:mvn/version "1.3.0"}

Breaking

  • /metrics is gone from the app port, where it was public (BOU-1094). :prometheus serves it on its own
    :port (and :path), bound to 127.0.0.1 unless :host says otherwise: set :port to keep scraping.
  • An unknown observability :provider refuses to boot outside dev, test and local (BOU-1094). It booted as
    no-op; set a real :provider on :wagoe/logging, :metrics, :tracing and :error-reporting, or none.

Security

  • Storage decoded any image a header claimed, so a small PNG saying 30000x30000 took 3.6 GB (BOU-1085). An image
    over 50 megapixels or 200 MB decoded is refused before decoding, and none over 50 megapixels is produced.
  • Sentry no longer sends ex-data or uncaught exceptions unredacted (BOU-1094). Every extra is PII-redacted
    before sending, and the SDK's uncaught-exception handler is off: report through the error reporter.
  • User service reads returned the TOTP secret and backup codes (BOU-1072): list-users, get-user-by-id,
    update-user-profile and register-user return no credential now. Nothing to do.
  • A storage image upload with a huge thumbnail-size allocated an image that size (BOU-1084). A thumbnail is
    never larger than its image now, and always a PNG (a JPEG one was empty). Nothing to do.
  • Storage checked the type a client declared but served a file by its extension (BOU-1078): x.exe passed as
    image/png. The extension decides the type now: an allowed type needs its extension, an unknown one is octet-stream.
  • The storage upload route took its size and type limits from the query string (BOU-1076). They now come from
    :upload-limits on :wagoe/storage; a request can only narrow them. Set it, or the 10 MB default applies.
  • The storage routes let every member of a file's tenant download, delete or sign it (BOU-1075). An app with a
    narrower rule sets :may-access? on :wagoe/storage, a (fn [request file-key]); without it nothing changes.
  • The storage :signing-secret and the push :callback-secret took any length (BOU-1049): a short one could be
    guessed from one signed URL or token. When set, each is refused at boot if short, and outside dev if an example.
  • CSRF_SECRET, the webhook encryption key and the OIDC :state-secret booted with an example value (BOU-1021).
    Each is refused at boot when short, and outside dev when an example, as JWT_SECRET is: openssl rand -base64 32.
  • An admin of one tenant passed admin-only checks in another tenant where they were only a member (BOU-1020).
    These checks read the role held where the request runs now, so a tenant's admin by membership passes them there.
  • The dev and test compose files published Postgres, MySQL and Redis with default credentials on every interface
    (BOU-1019). They bind to 127.0.0.1: re-copy your compose override, then docker compose up -d and bb test:services up.
  • The MCP scaffold-module tool wrote .edn files outside the project through an entity's plural (BOU-1018).
    Plurals, parents, referenced tables and field names must be identifiers, and scaffolder writes stay in the output dir.
  • The publish job ran third-party actions by tag next to the Clojars credentials (BOU-1017). Every workflow
    action is pinned to a commit and bb to a version; attesting and releasing the installer are their own jobs.
  • A TOTP code could sign in twice in its 30 s window (BOU-1016), so a relayed code also opened a parallel login.
    Each window's code is accepted once now. A user repository of your own implements ITotpSteps; see UPGRADING.md.
  • /api/v1/sessions/{token} put a live session token in URLs and the logs (BOU-1015). Use GET/DELETE /api/v1/session with X-Session-Token; the path form is deprecated, and Wagoe's logs mask its token.
  • Any website could run SQL on the dev database through the dev dashboard (BOU-1012), or rewrite its config. It
    writes only from its own page and runs one reading query; bound beyond 127.0.0.1, open it with the logged URL.
  • A tenant's admin could change their tenant's status, features and limits, or delete it, in the admin (BOU-1011).
    Add :platform-fields #{:status :settings} and :permissions {:delete :platform-admin} to your own tenants.edn.
  • A tenant's admin streaming in another tenant got that tenant's admin messages (BOU-1010). An SSE stream now
    holds the roles held in its tenant: there, a membership's role, or :admin for a platform admin.
  • Someone could register a victim's email and keep the account the victim later linked by OIDC (BOU-1009). An
    account made at /web/register is never linked by email; see UPGRADING.md for accounts made before.
  • A tenant admin could take over a member of another tenant (BOU-1008) by changing their email and signing in
    through OIDC. Such links are refused, and only the user or a platform admin changes that email.
  • A password change wrote the old and new hash into the audit log and data exports (BOU-1013). An entry now says
    only that it changed; a migration blanks logged hashes. Exports built before keep them until they expire.
  • A session slid to 24 hours on use and never ended (BOU-1007): it slides by its own hours now, up to
    :max-session-days (7); the page asks before it ends. Sessions older than that end at upgrade.
  • A JWT kept working after logout, a password change or "Revoke all sessions" (BOU-1006), until it expired. It
    now ends with its session; old tokens are refused, so API clients sign in again. See UPGRADING.md.
  • An admin of one tenant made admin-only workflow transitions in another (BOU-1005), where they were only a
    member. A transition now takes the roles held where the request runs; patch a scaffolded workflow, see UPGRADING.md.
  • A published example JWT_SECRET or RPC service key booted in production (BOU-1014): anyone could sign tokens
    with it. Outside dev, test and local such values are refused, as by bb doctor; the examples now ship empty.
  • Creating a user told a tenant's admin that an email existed in another tenant (BOU-995). An email is unique per
    tenant now: the same email in two tenants is two accounts. Sign-in takes the tenant from the URL or asks; see UPGRADING.md.
  • Roles and groups were one set for every tenant (BOU-996): only a platform admin could manage them. Each tenant
    has its own now, and its admins manage them; the migration moves existing groups into their members' tenants.
  • A tenant's admin could point a foreign key at, or move a record into, another tenant (BOU-997), the latter by
    sending tenant_id for tenant-id. Both are refused now, as a field error.
  • The install one-liner ran install.sh from main, not the release copy its hash covers (BOU-974). It runs the
    latest release's now, and releases attest it: gh attestation verify install.sh --repo wagoebv/wagoe.

Deprecated

  • IUserService/get-user-by-email (BOU-995): nil when the email has accounts in several tenants. Use
    ITenantAccountLookup/get-user-by-tenant-and-email.

Added

  • -SNAPSHOT versions (BOU-1057): main carries the next minor as -SNAPSHOT, published to Clojars from a green
    commit with gh workflow run publish.yml --ref main. See "Snapshots" in RELEASING.md.
  • :max-virtual-threads on :wagoe/http and :wagoe/rpc (BOU-1056) raises Jetty's cap of 200 concurrent requests,
    SSE streams included, on virtual threads. Absent keeps 200; see the scaling page.
  • A search filter value can be a set (BOU-1055): {:filters {:conversation-id #{c1 c2}}} matches any of them;
    an empty set matches nothing. The search API takes up to 500 members.
  • bb release <version> tags only a commit CI passed on main (BOU-1029): it bumps, moves [Unreleased] to
    the version, pushes, waits for green CI, then tags. Release with it instead of tagging by hand.
  • bb check is the pre-push gate (BOU-1024): gates, the CSS build and the tests of what changed (bb test:changed);
    --gates skips the tests, bb check-full adds bb test:all and bb e2e. Run npm ci once for the CSS row.
  • A user's Rights tab shows what they can and can't do (BOU-1000): per module at a glance, every permission held or
    not with its reason, their roles, and whether they open the admin pages. Nothing to change in an app.
  • View the app as a user, read-only (BOU-868): from their Rights tab, for 30 minutes; every change is refused
    and start and stop are audited. New ports IViewAs, ISessionViewAs; a migration adds two session columns.
  • A view as a user keeps to what the administrator may see (BOU-1004): a tenant's admin by membership is not
    viewed as, another tenant is refused, and no websocket opens while viewing.
  • One user list, and "Role" reads "Administrator" (BOU-1003): /web/admin/users redirects to /web/users
    through the new admin option :list-url. Add :list-url "/web/users" to your admin/users.edn.
  • Filter the user list on what users can do (BOU-1002): on a permission, a group or a role, in the URL, with
    each user's groups. Nothing to change in an app.
  • Take a permission away from a user (BOU-1001): a wizard ranks leaving a group or ending an assignment by what
    else it takes, each previewed, or ends a membership on a day. New ports IMembershipExpiry, IMembershipEnd.

Changed

  • Dependencies upgraded (BOU-1051): Clojure 1.12.7, reitit 0.11, malli 0.20.3, next.jdbc 1.4, honeysql 2.8, Jetty 12.1.15
    and more; /openapi.json stays OpenAPI 3.1.0. New projects get them; an app pinning these bumps its own deps.edn.
  • A push to main needs review and simplify trailers (BOU-1041): Reviewed-by: review-pr and Simplified-by: simplify on every commit, or Review-skipped: <reason>. See "Review before main" in CONTRIBUTING.md.
  • require-role and require-role-middleware match the role held in the request's tenant (BOU-1020). An app
    guarding with its own role should check it is granted there.
  • A pull request runs CI's fast layer (BOU-1026): no e2e, MySQL job, first-run/example/web-crawl smokes, isolation
    matrix or uberjar; main runs all and opens a "main is red" issue. Releases need a green run on main.
  • A push to main runs bb check first (BOU-1025), which now tests only the changed libraries, not the ones that
    load them; CI on main still does. Run bb install-hooks once per clone.
  • The admin service refuses a key that is not a field of the entity (BOU-998), as a :validation-error on that
    key; it wrote any key as a column. Pass kebab-case field names only: see UPGRADING.md.

Fixed

  • The reference app's prod and acc configs named no logging :provider, so they ran the no-op logger (BOU-1095).
    They use :slf4j now. An app that copied them: set :provider :slf4j on :wagoe/logging.
  • /health, /health/ready, /health/live and / answered HEAD with 405 (BOU-1094), so an uptime checker
    that sends HEAD reported the app down. They answer HEAD as they answer GET. Nothing to do.
  • The user menu button had an aria-label its visible initials were not part of (BOU-1054, WCAG 2.5.3); hidden
    text names it now.
  • Creating a user whose email exists carried an empty :message in its error data (BOU-1051); it carries :reason now.
  • A job enqueued in a transaction could run before the commit (BOU-993) and miss its rows; a data export then stayed
    pending for a day. Jobs wait for the commit now, and an export no worker started in 15 minutes is failed.