open-policy-agent / open-policy-agent/java-opa-sdk
Implement drop_decision policy
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 16
- Forks
- 24
- Avg merge
- 8h 17m
- Merged PRs (30d)
- 15
Description
Sibling to #73. DecisionLogPlugin.DecisionLogs.logDecision has // TODO: Apply drop decision policy if configured (around DecisionLogPlugin.java:299). The config field exists but nothing reads it, so callers can't filter out uninteresting events at the plugin layer.
- Evaluate the configured
drop_decisionpolicy against the event before buffering. - If it returns true, skip buffering and console output for that event.
- Treat evaluation errors consistently with #73 (likely: log the error and keep the event).
- Tests covering true / false / undefined return and evaluation failure.
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 in DecisionLogPlugin.java at DecisionLogPlugin.DecisionLogs.logDecision and compare the drop_decision handling with the implementation from #73. Trace how the configured policy is evaluated before buffering and console output, then add tests for true, false, undefined, and evaluation failure outcomes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100