Repository navigation
·
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
/metricsis gone from the app port, where it was public (BOU-1094).:prometheusserves it on its own
:port(and:path), bound to127.0.0.1unless:hostsays otherwise: set:portto keep scraping.- An unknown observability
:providerrefuses to boot outside dev, test and local (BOU-1094). It booted as
no-op; set a real:provideron:wagoe/logging,:metrics,:tracingand: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-dataor 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-profileandregister-userreturn no credential now. Nothing to do. - A storage image upload with a huge
thumbnail-sizeallocated 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.exepassed 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-limitson: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-secretand the push:callback-secrettook 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-secretbooted 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, thendocker compose up -dandbb test:services up. - The MCP
scaffold-moduletool wrote.ednfiles 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 implementsITotpSteps; seeUPGRADING.md. /api/v1/sessions/{token}put a live session token in URLs and the logs (BOU-1015). UseGET/DELETE /api/v1/sessionwithX-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 owntenants.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:adminfor 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/registeris never linked by email; seeUPGRADING.mdfor 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. SeeUPGRADING.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, seeUPGRADING.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 bybb 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; seeUPGRADING.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
sendingtenant_idfortenant-id. Both are refused now, as a field error. - The install one-liner ran
install.shfrommain, 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
-SNAPSHOTversions (BOU-1057):maincarries the next minor as-SNAPSHOT, published to Clojars from a green
commit withgh workflow run publish.yml --ref main. See "Snapshots" in RELEASING.md.:max-virtual-threadson:wagoe/httpand: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 checkis the pre-push gate (BOU-1024): gates, the CSS build and the tests of what changed (bb test:changed);
--gatesskips the tests,bb check-fulladdsbb test:allandbb e2e. Runnpm cionce 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 portsIViewAs,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/usersredirects to/web/users
through the new admin option:list-url. Add:list-url "/web/users"to youradmin/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 portsIMembershipExpiry,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.jsonstays OpenAPI 3.1.0. New projects get them; an app pinning these bumps its owndeps.edn. - A push to main needs review and simplify trailers (BOU-1041):
Reviewed-by: review-prandSimplified-by: simplifyon every commit, orReview-skipped: <reason>. See "Review before main" in CONTRIBUTING.md. require-roleandrequire-role-middlewarematch 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 checkfirst (BOU-1025), which now tests only the changed libraries, not the ones that
load them; CI on main still does. Runbb install-hooksonce per clone. - The admin service refuses a key that is not a field of the entity (BOU-998), as a
:validation-erroron that
key; it wrote any key as a column. Pass kebab-case field names only: seeUPGRADING.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:slf4jnow. An app that copied them: set:provider :slf4jon:wagoe/logging. /health,/health/ready,/health/liveand/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-labelits 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
:messagein its error data (BOU-1051); it carries:reasonnow. - 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.