open-policy-agent / open-policy-agent/java-opa-sdk

Implement drop_decision policy

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

Nobody has claimed this yet.

decision-logs services
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_decision policy 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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.