camunda / camunda/api-test-generator
RBAC read-deny: precise per-endpoint permission (extract mapping) + allow counterparts
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 3
- Avg merge
- 13h 41m
- Merged PRs (30d)
- 23
Description
Follow-up to the read-side RBAC deny-test vertical slice (#359). The slice is generic (zero-grant user → deny). This adds precise per-endpoint RBAC: name the exact permission that gates each read endpoint and assert both directions.
Scope:
- Extract the read endpoint→permission mapping from
camunda/camundaservice/.../authorization/Authorizations.java(read-side constants likePROCESS_INSTANCE_READ_AUTHORIZATIONare declarative/machine-extractable) into a config, e.g.configs/camunda-oca/read-permissions.json, and attachrequiredPermissiontoOperationModelvia the spec/registry loader. - Deny test: grant the probe user everything except the target permission → assert deny (proves that permission gates the endpoint).
- Allow counterpart: grant the probe user exactly the target permission → assert 200.
Why after the slice: the camunda/camunda extraction is its own focused change and the generic slice already establishes the scoped-user + authz-run-mode infra.
Relates to #359. The write-side analog is blocked on upstream camunda/camunda#54727.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the read-side constants in camunda/camunda's service/.../authorization/Authorizations.java, then inspect the spec/registry loader and OperationModel. Add the extracted mapping at configs/camunda-oca/read-permissions.json and wire requiredPermission through the model. Done means each read endpoint has deny and allow coverage using the exact permission, building on the infrastructure from #359.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- backend-api-design, security, testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100