Commit Graph
183 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5.5 3ef530b504 fix(connections): refuse user tokens on product routes
ci / shared (pull_request) Successful in 11s
ci / test (pull_request) Successful in 6m32s
ci / image (pull_request) Skipped
The two internal routes carry the peer's tenant id, which no person
sees; a user token is now refused there whatever groups its client
holds. The per-person window for entering codes applies only when a
person is named: keyed on the portal's own client, one workspace's
attempts would have blocked every other workspace.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
2026-11-20 09:43:35 +01:00
Sharang ParnerkarandClaude Opus 5.5 400d1b1678 feat(connections): connect two workspaces by code (#138)
ci / shared (pull_request) Successful in 13s
ci / test (pull_request) Successful in 6m36s
ci / image (pull_request) Skipped
A workspace administrator creates a code (160 random bits, 14 days,
single use, stored as SHA-256 only); another workspace's administrator
enters it and the two are connected at once. Each side sees only the
other's display name. Every code that does not work gets the same 404,
and entering codes is limited to 20 per hour per workspace and person.
Either side can end a connection; archiving a workspace ends all of its
connections, and a purged side leaves the other an ended connection
with the name it knew. Both audit logs record each step; the other
side's entry names neither the person nor the address.

Products read the active connections and check one before each
delivery under the new route group connections.read
(GET /v1/internal/tenants/{id}/connections, GET
/v1/internal/connections/{connection}).

The Postgres GetTenant now answers a non-UUID id as not found (404),
as the memory store does, instead of a 500.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
2026-11-20 09:39:56 +01:00
sharang 768c195854 Merge pull request 'feat(contracts): fill the AVV from the company profile' (#141) from feat/avv-autofill into main
ci / shared (push) Successful in 12s
ci / test (push) Successful in 8m49s
ci / image (push) Successful in 44s
v0.1.16
2026-11-19 10:43:01 +00:00
Sharang ParnerkarandClaude Opus 5.5 c8dd3ba4dc feat(avvfill): Unicode glyphs (Identity-H) instead of Windows-1252
ci / shared (pull_request) Successful in 12s
ci / test (pull_request) Successful in 9m6s
ci / image (pull_request) Skipped
With WinAnsi encoding, names like "Michał", "Yılmaz" or "Łódź" fell back to "staff fill it in", a path nobody watches yet. The value is now set as glyph ids of the embedded Geist Regular (Type0 / CIDFontType2, Identity-H) with a ToUnicode map, so any character the font has works and the text still extracts as written. Only control characters and characters without a glyph (e.g. CJK) are refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 11:23:57 +01:00
Sharang ParnerkarandClaude Opus 5.5 05673defd4 feat(contracts): fill the AVV from the company profile
ci / shared (pull_request) Successful in 12s
ci / test (pull_request) Successful in 8m26s
ci / image (pull_request) Skipped
A workspace whose company profile is submitted and whose Geschäftsleitung is named (Verantwortliche) now sees its AVV filled in: name with legal form, address, "Vertreten durch" and, as the owner decided, "Geschäftsleitung" on the Weisung line. The new package internal/legal/avvfill writes the details onto the released master as one incremental PDF update: the two content streams holding the blank lines are replaced, the underscores dropped and the value set in their place in Geist Regular at body size, inside the line's marked content. The master's bytes stay an untouched prefix, so its pin still holds; the result is deterministic and cached by master and details digest. Layouts are pinned per master SHA-256; a test makes every released AVV master have one.

Until then the master is listed with "missing" (profile, company_name, address, management) for the portal's hint; details that do not fit the form or the Windows-1252 character set give "manual" and a log line without the values. A staff upload still wins (filled_from: staff). The admin avv-values answer uses the same derivation; its Weisung is now "Geschäftsleitung" only. The legal form is no longer appended twice when the name writes it without spaces ("UG(haftungsbeschränkt)").

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 11:10:45 +01:00
sharang 16b4b9528f Merge pull request 'feat(contractdocs): release the AVV 1.0.0 master' (#139) from feat/release-avv-1.0.0 into main
ci / shared (push) Successful in 12s
ci / test (push) Successful in 7m52s
ci / image (push) Successful in 35s
2026-11-19 09:38:36 +00:00
Sharang ParnerkarandClaude Opus 5.5 116bb83ddf feat(contractdocs): release the AVV 1.0.0 master
ci / shared (pull_request) Successful in 12s
ci / test (pull_request) Successful in 7m45s
ci / image (pull_request) Skipped
The owner released the AVV on 19.11.2026: Arbeitsstand 06, without a signature block (it is concluded with the main contract, § 12(1)), Stand 17.11.2026. The PDF is byte for byte the one in its release record FREIGABE_1.0.0.json (sha256 623aa518…). It is listed between AGB and TOM for every workspace; a workspace's own filled AVV still takes its place. The AVV contract status stays "not_concluded": listing the master concludes nothing.

Tests: released set and order, the master in the overview and as PDF, and the own-AVV-without-master path now on a catalogue without the master.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 10:02:11 +01:00
sharang 9d6b5d48cf Merge pull request 'fix: erpsetup dunning read rule, migration seed test, usage events 500' (#137) from fix/erpsetup-dunning-and-small into main
ci / shared (push) Successful in 12s
ci / test (push) Successful in 7m22s
ci / image (push) Successful in 38s
2026-11-17 12:10:38 +00:00
Sharang ParnerkarandClaude Opus 5.5 37032e649e fix(usage): malformed tenant id lists no events on postgres
ci / shared (pull_request) Successful in 12s
ci / test (pull_request) Successful in 8m27s
ci / image (pull_request) Skipped
pgx reports an invalid UUID from rows.Err, not from Query, so GET /v1/usage/events?tenant_id=not-a-uuid answered 500 on Postgres and 200 on the memory store. It now returns an empty list on both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 12:55:28 +01:00
Sharang ParnerkarandClaude Opus 5.5 524f5009d3 test(migrations): intake reports keep their workspace (0030)
TestSeed_canInsertAndQuery deleted a tenant that had intake reports, which 0030 forbids on purpose (reports outlive their workspace). The intake rows now sit on a workspace of their own; the test checks that its delete is refused and the rows stay, and the cascade check keeps the other tenant.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 12:55:28 +01:00
Sharang ParnerkarandClaude Opus 5.5 b02bf254bc feat(erpsetup): registry user may read dunning, read only
The late-payment ladder (#134) reads Dunnings, which ERPNext lets only the Accounts roles read. The registry's API user holds Sales User only. erpsetup now adds a level-0 read rule for Sales User on Dunning through Frappe's permission manager (which first copies the standard rules, as the Role Permissions Manager UI does) and cuts a broader rule back to read only. The spec.go comment no longer claims Accounts User. Live ERP: the same rule was added by hand on 17.11.; the next run reports it as existing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 12:55:28 +01:00
sharang f6bb84933c Merge pull request 'feat(metering): count module users per tenant and month (t81, part 1)' (#136) from feat/module-user-count into main
ci / shared (push) Successful in 10s
ci / test (push) Successful in 6m51s
ci / image (push) Successful in 38s
v0.1.15
2026-11-17 09:01:55 +00:00
sharang 2b3cea5974 Merge pull request 'feat(usage): add GET /v1/usage/summary aggregate route' (#135) from feat/usage-summary into main
ci / shared (push) Failing after 4s
ci / test (push) Successful in 7m45s
ci / image (push) Skipped
2026-11-17 08:33:49 +00:00
Sharang ParnerkarandClaude Opus 5.5 9af0d9f8e1 test(metering): low-entropy token sentinel for gitleaks
ci / shared (pull_request) Successful in 14s
ci / test (pull_request) Successful in 7m23s
ci / image (pull_request) Skipped
The first sentinel looked like an API key to gitleaks' generic rule. It
is a test value; its fingerprint goes into .gitleaksignore since the
commit is already pushed.

Refs: t81

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 09:32:59 +01:00
Sharang ParnerkarandClaude Opus 5.5 692a9dd378 feat(metering): count module users per tenant and month
ci / test (pull_request) Failing after 26s
ci / image (pull_request) Skipped
ci / shared (pull_request) Failing after 3s
Daily Europe/Berlin job: Managed Git = members signed in to the tenant's
active instances; Werkpilot/Firmwerk = people with their own licence in
use in the month. Staff PUT for the Gitea admin token, staff and tenant
reads of the month's counts, POST /v1/internal/module-users/count on
demand (route group module-users). No invoicing yet (t72).

Refs: t81

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 09:28:20 +01:00
Sharang ParnerkarandClaude Opus 5.5 f9ada789ea feat(gitea): list the users of a managed git instance
GET /api/v1/admin/users with a read:admin token in the Authorization
header, paged until an empty page. Errors carry no body, URL or token.

Refs: t81

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 09:28:20 +01:00
Sharang ParnerkarandClaude Opus 5.5 7b9ae37be7 feat(store): module user counts and sealed git admin token (0031)
Migration 0031 adds managed_services.admin_token_enc (sealed, write-only),
module_user_days (Managed Git daily counts, month = peak day) and
module_users_seen (Werkpilot/Firmwerk people per month). Postgres and
Memory stores implement both.

Refs: t81

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 09:28:20 +01:00
sharang 2f0d2f035a Merge pull request 'feat(erp): restrict for late payment only after a Mahnung (t78)' (#134) from feat/mahnung-ladder into main
ci / shared (push) Successful in 12s
ci / image (push) Successful in 36s
ci / test (push) Successful in 7m10s
2026-11-17 08:23:54 +00:00
Sharang ParnerkarandClaude Opus 5.5 9138ac586b feat(usage): add GET /v1/usage/summary aggregate route
ci / shared (pull_request) Successful in 11s
ci / test (pull_request) Successful in 7m32s
ci / image (pull_request) Skipped
The portal's 30-day views folded at most 1000 events from the usage list,
so busy tenants saw figures that were too low. The summary aggregates
every matching event in the store (GROUP BY in Postgres, the same fold in
Memory): counts, quantity sums and the latest occurred_at per product and
metric, and counts and sums per UTC day and metric.

Same filters, tenant pinning for user tokens and route group (usage.read)
as GET /v1/usage/events, so the portal's service client needs no new
AUTHZ grant. Both stores share the filter (usageWhere / matches).

Refs: t80

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 09:17:47 +01:00
Sharang ParnerkarandClaude Opus 5.5 38b9a72eda feat(erp): restrict for late payment only after a mahnung
ci / shared (pull_request) Successful in 12s
ci / test (pull_request) Successful in 6m51s
ci / image (pull_request) Skipped
AGB § 10 allows restricting access only "trotz Mahnung und angemessener
Nachfrist". The ladder counted from the due date (restricted after 14,
halted after 30 days overdue) and escalated any warning after 14 days.

Now an overdue invoice alone means warning. The reconcile pass reads the
customer's submitted, unresolved ERPNext Dunnings; the earliest one that
names a still-open invoice sets the clock: restricted 14 days after its
posting date, halted a further 14 days after the restriction. A Mahnung
never halts directly, so a late-seen one errs in the customer's favour.
A failed Dunning read keeps the tenant on warning and is reported.

ERP_HALT_AFTER_DAYS defaults to 28 (was 30), so an expired trial is
read-only for 14 days instead of 16 before it is halted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 09:04:11 +01:00
sharang 8a72469e18 Merge pull request 'fix(contracts): TOMs are available once the released TOM is listed' (#133) from fix/toms-status-available into main
ci / shared (push) Successful in 12s
ci / test (push) Successful in 7m18s
ci / image (push) Successful in 53s
v0.1.14
2026-11-16 22:00:02 +00:00
Sharang ParnerkarandClaude Opus 5.5 2921fa0663 fix(contracts): TOMs are available once the released TOM is listed
ci / shared (pull_request) Successful in 12s
ci / test (pull_request) Successful in 7m24s
ci / image (pull_request) Skipped
The contracts overview reported the TOMs as "pending" unconditionally,
from before the TOM was released, so the portal showed "Wird
bereitgestellt" above the released TOM 1.0.0 on stage. The status is
now "available" when a TOM document is listed for the tenant (i.e.
released and CONTRACT_DOCUMENTS on), and stays "pending" otherwise.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 22:38:10 +01:00
sharang 8d7bfac810 Merge pull request 'feat(contractdocs): release AGB 1.0.0 and TOM 1.0.0' (#132) from feat/contractdocs-agb-tom into main
ci / shared (push) Successful in 11s
ci / test (push) Successful in 6m31s
ci / image (push) Successful in 40s
2026-11-16 21:27:18 +00:00
Sharang ParnerkarandClaude Opus 5.5 0271c99ab7 test(contractdocs): plain condition for the released-set check (staticcheck QF1001)
ci / shared (pull_request) Successful in 12s
ci / test (pull_request) Successful in 7m12s
ci / image (pull_request) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 22:14:12 +01:00
Sharang ParnerkarandClaude Opus 5.5 290fa64f6a feat(contractdocs): release AGB 1.0.0 and TOM 1.0.0
ci / shared (pull_request) Successful in 11s
ci / test (pull_request) Failing after 36s
ci / image (pull_request) Skipped
Released by the owner on 16.11.2026 (AGB SaaS AS06, TOM AS08, both
Stand 09.11.2026). The PDFs are byte for byte the released working
versions (release records FREIGABE_1.0.0.json next to them in the
document store); their SHA-256 are pinned in the table. They apply to
every workspace and are listed first, before the Leistungsbeschreibungen.

The AVV master stays out: it is on hold until the signature block and
§12(1) are decided internally.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 22:06:16 +01:00
sharang 9f24cc35dc Merge pull request 'feat(roles): functions of owner decision Nr. 2 in the catalogue' (#131) from feat/function-catalogue-r2-r5 into main
ci / shared (push) Successful in 12s
ci / test (push) Successful in 6m39s
ci / image (push) Successful in 46s
2026-11-16 11:57:11 +00:00
Sharang ParnerkarandClaude Opus 5.5 b7608e07ba test(roles): rank namespace check without double negation
ci / shared (pull_request) Successful in 13s
ci / test (pull_request) Successful in 7m0s
ci / image (pull_request) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014aRnCGqELxoix5TfpX8Ejf
2026-11-16 12:49:51 +01:00
Sharang ParnerkarandClaude Opus 5.5 bef4e31c05 feat(roles): functions of owner decision Nr. 2 in the catalogue
ci / shared (pull_request) Successful in 11s
ci / test (pull_request) Failing after 37s
ci / image (pull_request) Skipped
Catalogue r1-2026-11-16.1 adds the functions owner decision Nr. 2
(docgen#6 17878, 18011) names and that no R1 function already covers:
CVD-Verantwortung and Veröffentlichungsverantwortung (R5), Meldefreigabe,
Fristführung, Vorabprüfung, Weitergabe von Informationen and
Datenschutzfunktion (R2), and the R1 functions Erstzuordnung, Eskalation
and Einsichtsprotokollkontrolle. External holders as proposed in 18110
K-4. The safety check and product measures wait for the owner (K-1, K-2).

GET /role-dataset now names the current catalogue as catalogue_version
and the stored one as stored_catalogue_version. It named the stored one,
which the portal sends back on save: after any catalogue change every
save of an existing dataset was refused as catalogue_outdated, and
reloading answered the same version again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014aRnCGqELxoix5TfpX8Ejf
2026-11-16 12:48:02 +01:00
sharang 9cf4f7db05 Merge pull request 'feat(roles): company rule for separate determination and approval' (#129) from feat/company-rules into main
ci / shared (push) Successful in 12s
ci / test (push) Successful in 6m4s
ci / image (push) Successful in 40s
2026-11-12 17:17:58 +00:00
Sharang ParnerkarandClaude Opus 5.5 0f7cc29f10 feat(roles): company rule for separate determination and approval
ci / shared (pull_request) Successful in 11s
ci / test (pull_request) Successful in 5m51s
ci / image (pull_request) Skipped
docgen#4 Nr. 31 (AK-R3-030): the role dataset gets an optional section
company_rules with separate_approval ("Festlegung und Freigabe durch
verschiedene Personen"). Not set counts as off.

- The rule is maintained by whoever maintains the dataset (AM-3),
  stamped from the writer's token, and historised with the revisions.
- Older datasets decode unchanged and store no section.
- GET /v1/tenants/{id}/role-dataset/rules answers the rules now for
  Werkmeister (tenants.read) or a member of the tenant.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014aRnCGqELxoix5TfpX8Ejf
2026-11-12 18:11:17 +01:00
sharang 6789e8053a Merge pull request 'feat(tenants): staff may create the "breakpilot" workspace' (#128) from feat/staff-brand-slug into main
ci / test (push) Successful in 5m53s
ci / image (push) Successful in 37s
ci / shared (push) Successful in 12s
2026-11-12 17:04:58 +00:00
Sharang ParnerkarandClaude Opus 5.5 fb7aea76a9 feat(tenants): staff may create the "breakpilot" workspace
ci / shared (pull_request) Successful in 13s
ci / test (pull_request) Successful in 5m52s
ci / image (pull_request) Skipped
The slug "breakpilot" was reserved (#32) so no customer could pose as
Breakpilot. Sharang decided (12.11.) that the company's own workspace
is app.breakpilot.com/breakpilot. Staff (a named staff member on the
admin client) may now create exactly this slug; everyone else, and
the trial offer's slug choice, still get reserved_slug. The other
reserved slugs stay closed to staff too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 17:58:54 +01:00
sharang b28d564867 Merge pull request 'fix(intake): security reports outlive their workspace' (#127) from fix/intake-outlives-purge into main
ci / shared (push) Successful in 12s
ci / test (push) Successful in 6m22s
ci / image (push) Successful in 38s
2026-11-12 13:33:10 +00:00
Sharang ParnerkarandClaude Opus 5.5 34921bd44e fix(intake): security reports outlive their workspace
ci / shared (pull_request) Successful in 12s
ci / test (pull_request) Successful in 6m5s
ci / image (pull_request) Skipped
Purging an archived workspace deleted its intake reports with it: every
intake table cascaded from tenants. Benjamin's decision Nr. 17 (docgen#6
17878, V-g): no automatic deletion of the reports when a workspace is
deleted.

The purge now refuses first, before any file or account is removed:
409 intake_retained while the workspace has reports. Migration 0030 makes
the database refuse as well (intake_reports → tenants ON DELETE RESTRICT),
and DeleteTenant maps that to ErrConflict. CountIntakeReports on both
stores.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014aRnCGqELxoix5TfpX8Ejf
2026-11-12 14:25:53 +01:00
sharang 25f46706a8 Merge pull request 'fix(authz): bundle labels as the portal names them; last admin message' (#126) from fix/catalogue-labels into main
ci / shared (push) Successful in 12s
ci / test (push) Successful in 6m12s
ci / image (push) Successful in 38s
v0.1.13
2026-11-12 10:20:18 +00:00
Sharang ParnerkarandClaude Opus 5.5 be95574847 ci: run the tests uncached so the coverage total is complete
ci / shared (pull_request) Successful in 13s
ci / test (pull_request) Successful in 5m44s
ci / image (pull_request) Skipped
With the runner's test cache, packages marked "(cached)" left their
share out of cover.out and the total fell under the 70% gate, while the
same code passed on a run without cached results (main dd94763: every
package run, gate passed; PR #126: six packages cached, gate failed
twice with the same per-package numbers). -count=1 runs them all.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014aRnCGqELxoix5TfpX8Ejf
2026-11-12 11:14:15 +01:00
Sharang ParnerkarandClaude Opus 5.5 f4a9f937fb fix(authz): bundle labels as the portal names them; last admin message
ci / shared (pull_request) Successful in 11s
ci / test (pull_request) Failing after 6m10s
ci / image (pull_request) Skipped
The catalogue named CXO "Geschäftsleitung" and OWNER "Inhaber des
Arbeitsbereichs", while the portal shows "Geschäftsführung" and
"Inhaberschaft". The catalogue now takes the portal's names (version
2026-11-12.1), which also keeps the role "Geschäftsführung" apart from
the company function "Geschäftsleitung" of the role dataset.

The last-admin refusal named only IT_ADMIN; the guard holds for OWNER
too, so the message now says "the last administrator (IT_ADMIN or
OWNER)".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014aRnCGqELxoix5TfpX8Ejf
2026-11-12 10:59:15 +01:00
sharang dd94763d50 Merge pull request 'feat(trial): offer status read, offer address for the profile' (#125) from feat/trial-offer-status into main
ci / shared (push) Successful in 13s
ci / test (push) Successful in 6m23s
ci / image (push) Successful in 56s
2026-11-12 08:49:01 +00:00
Sharang ParnerkarandClaude Opus 5.5 2e6f360751 test(trial): status read shows a staff-extended trial end
ci / shared (pull_request) Successful in 12s
ci / test (pull_request) Successful in 5m52s
ci / image (pull_request) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 09:42:48 +01:00
Sharang ParnerkarandClaude Opus 5.5 d0b1287afb feat(trial): offer address in the contract overview
ci / shared (pull_request) Successful in 12s
ci / test (pull_request) Failing after 6m9s
ci / image (pull_request) Skipped
GET /v1/tenants/{id}/contracts carries street, postcode, city and
country of the trial offer, so the company profile can suggest the
registration address as the master data (portal#159, item 3; read
by portal#161). Only for the tenant's own activated offer, as the
rest of the trial block.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 09:34:46 +01:00
Sharang ParnerkarandClaude Opus 5.5 0f8cc33888 feat(trial): GET /v1/trial-offers/{id} for the waiting page
ci / shared (pull_request) Successful in 11s
ci / test (pull_request) Successful in 5m33s
ci / image (pull_request) Skipped
The page that sent the offer waits for the e-mail confirmation. When
the link is opened on another device (a phone), that page stayed put
(portal#159, item 1). The status read lets it follow: the state and,
once active, the workspace slug and the trial dates. No e-mail or
company data in the answer; the offer id, which only the sending
browser has, is the key. Same authz group as the other offer routes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 09:23:05 +01:00
sharang 63ea5790c7 Merge pull request 'feat(roles): who holds a function (RBAC step 5)' (#124) from feat/function-holders into main
ci / shared (push) Successful in 11s
ci / test (push) Successful in 5m28s
ci / image (push) Successful in 35s
2026-11-11 21:44:55 +00:00
Sharang ParnerkarandClaude Opus 5.5 351c7356fd test(server): the workers stop with their context; client addresses
ci / shared (pull_request) Successful in 11s
ci / image (pull_request) Skipped
ci / test (pull_request) Successful in 5m32s
The coverage gate sits at 70% and main is just above it; these cover
the mail, outbox and reconcile loops and clientIP, which no test ran.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014aRnCGqELxoix5TfpX8Ejf
2026-11-11 22:37:54 +01:00
Sharang ParnerkarandClaude Opus 5.5 79588bef05 feat(roles): the holders answer names the function
ci / shared (pull_request) Successful in 11s
ci / test (pull_request) Failing after 5m57s
ci / image (pull_request) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014aRnCGqELxoix5TfpX8Ejf
2026-11-11 22:15:34 +01:00
Sharang ParnerkarandClaude Opus 5.5 9c2e23a036 feat(roles): who holds a function (RBAC step 5)
ci / shared (pull_request) Successful in 12s
ci / test (pull_request) Failing after 5m56s
ci / image (pull_request) Skipped
GET /v1/tenants/{id}/role-dataset/holders?function=…[&scope] answers
who holds a role-dataset function now: the holders in the scope, the
effective deputies of the function and open/filled/not applicable.
Werkmeister reads it (tenants.read) when a step names a function.

It shares the matching with /resolve, which now goes through it; for a
decision type, only deputies covering it count, as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014aRnCGqELxoix5TfpX8Ejf
2026-11-11 22:14:54 +01:00
sharang 3ed8780615 Merge pull request 'feat(authz): the new bundles are assignable (RBAC step 4)' (#123) from feat/assignable-bundles into main
ci / shared (push) Successful in 11s
ci / test (push) Successful in 5m59s
ci / image (push) Successful in 35s
2026-11-11 20:37:36 +00:00
Sharang ParnerkarandClaude Opus 5.5 dc44eb22bb feat(authz): the new bundles are assignable (RBAC step 4)
ci / shared (pull_request) Successful in 12s
ci / test (pull_request) Successful in 6m6s
ci / image (pull_request) Skipped
PSIRT, DEVELOPMENT, QUALITY, PRIVACY, PURCHASING, AUDITOR and EXTERNAL
can be given to a member (catalogue 2026-11-11.1). Invitations and role
changes accept exactly the catalogue's assignable bundles.

The registry's own checks read the catalogue instead of role lists:
notification recipients, managed services and Prüfwerk settings. For
today's six bundles nothing changes (pinned against the 2026-11-10
tables); AUDITOR now reads managed services, and the new bundles get
the mails their capabilities name. Individual capabilities still do not
count in the registry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014aRnCGqELxoix5TfpX8Ejf
2026-11-11 21:29:33 +01:00
sharang c18f0dc945 Merge pull request 'feat(authz): individual capabilities per member (RBAC step 3)' (#122) from feat/extra-capabilities into main
ci / shared (push) Successful in 11s
ci / test (push) Successful in 5m47s
ci / image (push) Successful in 39s
2026-11-11 12:48:53 +00:00
Sharang ParnerkarandClaude Opus 5.5 fe05192182 feat(authz): individual capabilities per member (RBAC step 3)
ci / shared (pull_request) Successful in 26s
ci / test (pull_request) Successful in 6m7s
ci / image (pull_request) Skipped
A member can hold capabilities on top of their bundle. They live in the
Keycloak user attribute extra_capabilities, which the tenant-context
mapper puts into the token; the registry writes it like org_roles and
clears it when the member leaves.

- POST/DELETE /v1/tenants/{id}/members/{uid}/capabilities[/{cap}]
- a person who holds registry:members.manage grants, never on
  themselves, and only what they hold themselves
- an administration capability waits for a second person: open
  requests in capability_requests (0029), approve or reject under
  /v1/tenants/{id}/capability-requests
- a role change keeps the extras; the principal parses the claim, the
  registry's own checks still go by org_roles

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014aRnCGqELxoix5TfpX8Ejf
2026-11-11 13:39:36 +01:00
sharang 73c93ae09b Merge pull request 'feat(authz): the catalogue of rights (RBAC step 1)' (#121) from feat/authz-catalogue into main
ci / shared (push) Successful in 12s
ci / test (push) Successful in 8m5s
ci / image (push) Successful in 38s
2026-11-10 21:55:52 +00:00