feat: role and authority dataset (R1 S0) #92
Closed
sharang
wants to merge 1 commits from
feat/role-dataset into main
pull from: feat/role-dataset
merge into: platform:main
platform:main
platform:feat/einstieg-plan
platform:feat/update-policy
platform:feat/telemetry-relay
platform:feat/feedback-endpoint
platform:feat/onprem
platform:feat/onprem-mail
platform:feat/onprem-directory-users
platform:feat/onprem-mode
platform:feat/avv-autofill
platform:feat/release-avv-1.0.0
platform:fix/erpsetup-dunning-and-small
platform:feat/module-user-count
platform:feat/usage-summary
platform:feat/mahnung-ladder
platform:fix/toms-status-available
platform:feat/contractdocs-agb-tom
platform:feat/company-rules
platform:feat/staff-brand-slug
platform:fix/intake-outlives-purge
platform:fix/catalogue-labels
platform:feat/trial-offer-status
platform:feat/function-holders
platform:feat/assignable-bundles
platform:feat/contract-documents
platform:feat/erp-lb-versions
platform:feat/store-merges-unterlagen
platform:feat/product-hierarchy
platform:feat/preview-grants
platform:ci/platform-image-and-webhook
platform:ci/registry-meghsakha-orca-webhook
No Reviewers
Labels
Clear labels
cra:annex-i
cve
pruefwerk
risk:accepted
severity:critical
severity:high
severity:low
severity:medium
CRA Anhang I, wesentliche Cybersicherheitsanforderungen / CRA Annex I
Bekannte Schwachstelle in einer Abhängigkeit / known vulnerability in a dependency
Befund aus Prüfwerk / Prüfwerk finding
Risiko akzeptiert, nicht behoben / accepted risk, not fixed
Schweregrad kritisch / critical
Schweregrad hoch / high
Schweregrad niedrig / low
Schweregrad mittel / medium
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: platform/tenant-registry#92
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The company's role and authority dataset (Rollen- und Befugnisdatensatz) for R1 S0 (docgen#1: plan 13781 §3.2 no. 2, owner addendum 13791; S0 is released there). Stage only.
Design:
research/r1-phase-b/s0-registry-change.md(reviewed and approved by Sharang, Q6).What
internal/roles: the catalogue in code (r1-2026-10-26.1).rolle_offenuntil then.wirksamonly with a documented basis, within its validity and, where it covers management authority, with management's authorization. What management records itself, it has authorized.recorded_*andauthorized_*come from the token, never from the body. A changed deputyship loses its authorization, and nobody authorizes their own.GET/PUT /v1/tenants/{id}/role-dataset,GET …/revisions/{rev},GET …/resolve?decision_type=….user_token_requiredotherwise), andX-Portal-User-*is ignored.role-dataset.user, so the portal's sign-in client gets notenantsgrant.tenants.read.role_datasetsandrole_dataset_revisions, versioned like the company profile (expected_revision, 409). The migration test lists are updated.role_dataset.savedrecords the revision and the changed entry ids only (no names, contacts or texts).teststep now also runs./internal/roles/....Not in this PR
tenant-registry-audienceonportal-stage, andportal-stage:role-dataset.userinAUTHZ_RULES. Until then the portal gets 401/403 here, so this PR is safe to deploy first.migrations/tests are not in the CI test step (unchanged).🤖 Generated with Claude Code
https://claude.ai/code/session_014aRnCGqELxoix5TfpX8Ejf
One Rollen- und Befugnisdatensatz per company (docgen#1 plan 13781 §3.2 no. 2, owner addendum 13791): functions, who holds them, deputies with their basis, the deciding function per decision type, immediate authority, standard releases, named editors and the contact path for critical security events. - internal/roles: the catalogue in code (version r1-2026-10-26.1), the union of A1 §2.3 and A4 §4 = 21 functions, 14 customer decision types; only the three releases carry an owner default (management), the rest must be set by the company. - Rules: a deputy is wirksam only with a documented basis, within its validity and, where it covers management authority, with management's authorization (B7 wording: what management records it has authorized); another release body for R1-D02 updates only with the R1-D02 provision (B8); management and document owners write, the OWNER sign-in role may only record the first management holder; recorded_*/authorized_* are stamped from the token, never from the body; no self-authorization. - Routes: GET/PUT /v1/tenants/{id}/role-dataset, GET …/revisions/{rev}, GET …/resolve. Writes need the user's token; user tokens on these routes form route group role-dataset.user, so the portal's sign-in client needs no tenants grant. - Migration 0024: role_datasets and role_dataset_revisions, versioned as the company profile (expected_revision, 409 on conflict). - Audit role_dataset.saved with revision and changed entry ids only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014aRnCGqELxoix5TfpX8EjfSuperseded by a new PR with the same change as one clean commit on current main. CI's gitleaks scan (
generic-api-key) flagged the catalogue'sKey: "r1.…"struct literals in this branch's commit as possible secrets. gitleaks scans all fetched branches, so the commit also failed main's CI. The Go field is nowCode; the JSON field stayskey. This branch is deleted so the flagged commit is no longer scanned.Pull request closed