camunda / camunda/api-test-generator

RBAC read-deny: deploy/runtime get-by-key tier — attach deny-checks to positive-suite chains

Open
#378 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

OCA
Dominant language
TypeScript
Stars
0
Forks
3
Avg merge
13h 41m
Merged PRs (30d)
23

Description

Follow-up to #373. The remaining ~15 get-by-key reads are deploy/runtime resources — process/decision definitions, decision-requirements, resources, forms, process-instances, user-tasks, incidents, jobs, variables, element-instances, agent-instances, batch-operations, decision-instances, audit-logs.

To deny-test these meaningfully you need a real existing instance, which for these requires deploying a BPMN/DMN model and/or running a process and waiting for the runtime entity to appear — i.e. the positive suite's deployment/execution machinery. Re-provisioning that inside the rbac global-setup would duplicate it and be slow/flaky.

Proposed approach: rather than re-provision, attach deny-checks onto the positive suite's existing entity chains — where an instance has already been created/emitted, add a step that re-fetches it as the zero-grant probe and asserts 403/404. This reuses the established instance and keeps the rbac setup lean.

Needs design (how the rbac assertion hooks into a positive chain; whether it's a new emitter mode or a chain annotation). Larger than #373.

Relates to #359, #373.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with #373 and the positive suite's deployment/execution machinery, then inspect how its existing entity chains emit deploy/runtime instances. Design how the RBAC assertion hooks into those chains, using an emitter mode or chain annotation, and ensure zero-grant re-fetches assert 403/404 without duplicating rbac global-setup provisioning.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
authorization, testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.