2533 Commits

Author SHA1 Message Date
Jakub Zych
10c8a05d06 docs(32.2): record tag-and-publish release decision v0.6.7 2026-11-21 13:30:58 +01:00
Jakub Zych
eb721a77fc test(32.2): reorder UAT so the release precedes the live checks 2026-11-21 13:27:39 +01:00
Jakub Zych
449ff6a454 docs(32.2): re-verify phase after code review fixes 2026-11-21 13:27:23 +01:00
Jakub Zych
5a54122efa docs(32.2): shorten COVERAGE.md opt-out reason for the coverage gate 2026-11-21 13:20:10 +01:00
Jakub Zych
261ad3fd43 docs(32.2): reconcile code review disposition after fixes 2026-11-21 10:03:58 +01:00
Jakub Zych
cf96d372c7 docs(32.2): add code review fix reports 2026-11-21 10:03:43 +01:00
Jakub Zych
0ade662a04 fix(32.2): WR-06 check the consent provider's redirect against the request's redirect URI
cabana loads the pending request on both decisions and refuses (500) a Decide answer whose scheme, user info, host, path or opaque part differ from the registered redirect URI. The admin SPA also refuses blob:, file:, about: and filesystem: and a destination that does not return to the host the consent card showed. Regenerated the admin OpenAPI document and rebuilt modules/boardwalk/dist.
2026-11-21 09:32:54 +01:00
Jakub Zych
60bc6ee68f fix(32.2): WR-05 hand the deactivate revocation the plain transaction
The deactivate lifecycle fired BackendAccessRevokedEvent with actionDB's Unscoped session, so a listener's Delete through ev.Tx was a hard delete only for that reason. It now passes the save's transaction like every other site.
2026-11-21 09:21:59 +01:00
Jakub Zych
a261a8fdfe fix(32.2): WR-04 never fire BackendAccessRevokedEvent without the save's transaction
fireBackendAccessRevoked refuses a nil tx before any listener runs, and the Administrators and Roles update hooks fail closed (like the delete hook) when the save carries no transaction, instead of firing with whatever TxFromContext answered.
2026-11-21 09:17:33 +01:00
Jakub Zych
19bb3f9485 fix(32.2): WR-03 refuse an unknown MCPGrant.Subject instead of treating it as a user grant
pier now resolves only the empty subject (frontend user grant) and pact.MCPGrantSubjectBackend; any other value is ErrUnauthorized and never reaches the linked-administrator lookup.
2026-11-21 09:11:46 +01:00
Jakub Zych
1dcc2ed06d fix(32.2): WR-02 refuse a ConsentPath that is not a same-origin path
Add wristband.CheckConsentPath (additive, for hosts to call at boot) and make Authorize answer 500 before storing a pending request while the configured path fails it, so the handoff can never leave the issuer's origin.
2026-11-21 09:08:12 +01:00
Jakub Zych
fa7a84821e fix(32.2): WR-01 apply DefaultScopes to offline_access-only authorize requests
A request naming only offline_access now gets Options.DefaultScopes (when set) plus offline access instead of a pending request with zero data scopes. The read fallback is only used when the server accepts read; otherwise the request is refused with invalid_scope (RFC 6749 3.3).
2026-11-21 09:05:07 +01:00
Jakub Zych
20260e8bb4 test(32.2): persist human verification items as UAT 2026-11-21 02:52:39 +01:00
Jakub Zych
e238537fc2 docs(32.2): phase verification report 2026-11-21 02:52:38 +01:00
Jakub Zych
c16402f79b docs(32.2): record code review disposition 2026-11-21 02:41:55 +01:00
Jakub Zych
7a2b4954be docs(32.2): add code review reports 2026-11-21 02:41:41 +01:00
Jakub Zych
75f45933b8 docs(phase-32.2): update tracking after wave 4 2026-11-21 02:31:05 +01:00
Jakub Zych
7a39fda957 docs(32.2-05): record the hold release decision and complete the tests plan
- 32.2-05-release-decision.txt: hold, framework-base v0.6.6, plugin-base v0.1.7
- 32.2-05-SUMMARY.md: tests, regression exit codes, deviations, release
  pending the user's go-ahead, live SameSite connector check unverified
2026-11-21 02:30:45 +01:00
Jakub Zych
fc90a5470c docs(32.2-05): update deferred items after the plugin tests 2026-11-21 02:22:48 +01:00
Jakub Zych
b1b96d85da fix(32.2-05): run admin:reset-password in a lagoon transaction
The reset fired BackendAccessRevokedEvent inside a plain GORM
transaction, where lagoon.AfterCommit refuses to run, so a listener's
after-commit work (sm-oauthserver-plugin's revoked MCPSubjectChanged
events that end MCP sessions) never ran for this D-13 site.
TestBackendAccessRevokedEvent now asserts the after-commit callback runs
once for a committed reset and not for a vetoed one.
2026-11-21 02:14:12 +01:00
Jakub Zych
1e00ed3d3e test(32.2-05): admin SPA tests for the consent screen, login hint and My account item rows
- ConnectView.test.ts: every C1 state, the * rule, no auto-allow, Allow and
  Deny bodies through window.location.assign, forbidden schemes, switch
  account, 401/404 handling, focus and the profile fallback
- router, LoginView and AccountContributions tests extended for /connect,
  the login hint and item rows (null items unchanged, empty block, :title
  confirm, 404 item_gone, 409 action_stale)
2026-11-21 02:00:16 +01:00
Jakub Zych
7ecfa6087d test(32.2-05): unit tests for administrator MCP grants, admin consent, account items and access revocation
- wristband: TestAuthorizeConsentPath, TestAuthorizeDefaultScopes
- pier: TestBackendOnlyGrant, TestLinkedGrantNoScopeLimit (Docker)
- cabana: TestTokenScopeNames, TestMCPAdminConsent, TestAccountContributionItems,
  TestBackendAccessRevokedEvent (Docker); export_test.go exposes the event
  helper for the de-duplication case
2026-11-21 02:00:16 +01:00
Jakub Zych
d450a6819e docs(phase-32.2): update tracking after wave 3 2026-11-21 01:40:46 +01:00
Jakub Zych
308f121d1b docs(32.2-04): complete first-consumer administrator MCP OAuth plan 2026-11-21 01:40:19 +01:00
Jakub Zych
fdcab18bb8 docs(phase-32.2): update tracking after wave 2 2026-11-21 01:27:06 +01:00
Jakub Zych
7e89a9d7e4 docs(32.2-03): complete sm-oauthserver-plugin backend-subject mode plan 2026-11-21 01:26:39 +01:00
Jakub Zych
26af5f9549 docs(phase-32.2): update tracking after plan 32.2-02 2026-11-21 00:59:08 +01:00
Jakub Zych
44a39ff250 docs(32.2-02): complete admin consent screen and account items plan 2026-11-21 00:57:03 +01:00
Jakub Zych
ee754b6b5d chore(32.2-02): rebuild embedded admin dist with the connect screen and account items 2026-11-21 00:53:01 +01:00
Jakub Zych
2708982601 feat(32.2-02): My account item rows with per-row actions; connect screen docs
- AccountContributions renders a section's items as list rows (title,
  subtitle, meta joined with ' · ') with one button per item action, or
  the dashed empty block; sections without items render as before
- item actions confirm with :title filled as text, post to
  /account/contribution-items/{name}/{item}/actions/{action}, reload and
  focus the section heading; 404 toasts item_gone and reloads
- myaccount.items_empty, item_gone, item_action_named in en and pl
- docs/backend/admin-spa.md: the /connect screen and My account item rows
2026-11-21 00:52:23 +01:00
Jakub Zych
6900bd1a72 feat(32.2-02): every consent card state, account switch and login hint
- Loading skeleton (aria-busy, no buttons), Expired (404 or no request,
  no call), Load error with Try again, No grantable scope (Deny only),
  Returning with the continue link for http(s) redirects
- 422 shows scopes_required under the scopes; 5xx, network, 400 and a
  javascript:/data:/vbscript: redirect show decide_failed; ticks kept
- 401 hands over to expireSession; focus follows the state heading
- Use another account: logout() without the router, then login with the
  /connect?request= redirect
- LoginView shows mcp_connect.login_hint when the redirect is /connect
2026-11-21 00:48:02 +01:00
Jakub Zych
f46c90f7fb feat(32.2-02): admin consent card at /connect posts the decision and leaves for redirect_uri
- /connect route without shell and without public, so login round-trips back
- ConnectView ready state: client mark, fact box, catalog-order scope picker
  with the token-dialog * rule, Stay connected, Deny and Allow
- Allow/Deny POST /mcp/consent/{request}; the browser leaves through
  window.location.assign after refusing javascript:, data: and vbscript:
- MCPConsent, MCPConsentDecision and AccountItem type aliases
- backend::lang.mcp_connect copy in en and pl; connect page title
- smoke test: ticks, POST body, assign called, router never used
2026-11-21 00:42:01 +01:00
Jakub Zych
1d3e6df6ec docs(phase-32.2): update tracking after wave 1 2026-11-21 00:35:58 +01:00
Jakub Zych
9809f9bea8 docs(32.2-01): complete framework seams plan 2026-11-21 00:33:39 +01:00
Jakub Zych
fcc7bbde25 feat(32.2-01): in-transaction BackendAccessRevokedEvent at every admin access change
- cabana: BackendAccessRevokedEvent with reasons deleted, deactivated,
  password_changed, password_set, password_reset and permissions, fired
  synchronously inside the save's transaction; a listener error rolls back
- fired on admin delete, deactivate, a password set by another admin, an own
  password change, admin:reset-password, a role/permissions/superuser change
  and a role's permission change (every holder); MCPSubjectChanged unchanged
- role delete fires nothing (refused while the role has holders); no sign
  out everywhere action exists
- smoke test TestBackendAccessRevokedSmoke (Postgres)
2026-11-21 00:32:26 +01:00
Jakub Zych
3f7ce6020d feat(32.2-01): per-item rows and item actions on My account contributions
- pact: AccountContribution.Items/ItemActions/ItemsEmpty, AccountItem,
  AccountItemAction, AccountItemActionInput, ErrAccountItemNotFound
- cabana: the list sends items (null without Items), permitted item actions
  and the empty line; boot refuses item actions without Items
- cabana: POST {api}/account/contribution-items/{name}/{item}/actions/{action}
  runs only for an item the administrator's own Items listed, in a transaction
  (path outside /account/contributions/ to avoid a ServeMux overlap)
- swag views; admin.json and schema.d.ts regenerated; route inventories
2026-11-21 00:22:13 +01:00
Jakub Zych
97d7ee0586 feat(32.2-01): admin consent endpoint for administrator-only MCP grants
- pact: MCPAdminConsent provider interface, MCPAdminConsentRequest,
  MCPAdminConsentDecision, ErrMCPConsentNotFound, ErrMCPConsentNoScopes
- cabana: GET/POST {api}/mcp/consent/{request}, interactive-only, scope
  policy of personal tokens (requested, catalog, owned; * collapses)
- cabana: TokenScopeNames and TokenScopeLabels export the token-scope catalog
- swag views and annotations; admin.json and schema.d.ts regenerated so the
  contract and conformance inventories stay green
- phrasebook keys mcp_connect.request_not_found and no_grantable_scopes
2026-11-21 00:14:43 +01:00
Jakub Zych
c63bfa3ef2 feat(32.2-01): administrator-only MCP grants and a configurable consent handoff
- pact: MCPGrant.Subject with MCPGrantSubjectBackend, MCPSubject.ScopeLimited
- pier: a backend-subject grant resolves straight to a scope-limited backend
  subject bound to oauth:backend:<client>:<admin>, no link lookup, no ceiling
- pier: the backend guard scope-limits ScopeLimited subjects like g15_ tokens
- wristband: Options.ConsentPath and Options.DefaultScopes; defaults unchanged
- smoke tests TestBackendSubjectSmoke (Postgres) and TestConsentPathSmoke
2026-11-21 00:06:19 +01:00
Jakub Zych
45eb34e5c4 docs(32.2): create phase plan
Five plans in four waves: framework seams, admin SPA consent route and plugin backend mode in parallel, app wiring with a local proof, then unit tests and the release checkpoint. Research open questions marked resolved.
2026-11-20 23:52:23 +01:00
Jakub Zych
9783b3d530 docs(32.2): UI design contract 2026-11-20 23:00:29 +01:00
Jakub Zych
28a07f6b27 docs(32.2): research and validation strategy 2026-11-20 21:58:45 +01:00
Jakub Zych
6c44946dfa docs(state): insert phase 32.2 and record its context session 2026-11-20 20:39:26 +01:00
Jakub Zych
b70071060c docs(32.2): capture phase context 2026-11-20 20:39:13 +01:00
Jakub Zych
e74af3b6c3 docs: capture exploration — mcp-oauth-backend-subject 2026-11-20 19:31:35 +01:00
Jakub Zych
e4863b22fb docs(quick-261119-kj8): sm-user-plugin JWT blacklist sweep as scheduled command 2026-11-19 15:08:10 +01:00
Jakub Zych
005fb4a2cb docs(quick-261118-qsd): compile module README Go examples via src= references v0.6.6 2026-11-18 20:25:00 +01:00
Jakub Zych
8c03cc3621 feat(docsite): require src= on Go code blocks of module READMEs (quick-261118-qsd) 2026-11-18 20:18:38 +01:00
Jakub Zych
1e56d750ef docs(lighthouse,postcard,signpost): compile README Go examples via src= (quick-261118-qsd) 2026-11-18 20:13:14 +01:00
Jakub Zych
a2551d83d7 docs(pact,party,surf): compile README Go examples via src= (quick-261118-qsd) 2026-11-18 20:07:39 +01:00
Jakub Zych
cd55a3980d docs(pier,seaglass,sunrise,sunscreen,tide): compile README Go examples via src= (quick-261118-qsd) 2026-11-18 20:04:47 +01:00