[Improvement]: Support multiple JSONPaths in the AWS Bedrock Guardrail policy

Open
#4,211 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
50/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
aws, go
Domain
api

Research direction

The payload names no files, so start by finding the AWS Bedrock Guardrail policy in the gateway code and how its JSONPath policy parameter is currently read and applied. Decide what counts as a valid hit when several paths are tried in order, and confirm that choice with the maintainers before coding. Done means a list of paths is accepted, evaluated in sequence until one matches, and covered by tests for the first-match, no-match, and single-path cases.

Written by the indexing model from the issue text.

Description

Aspect/AI Type/Improvement
Please select the area the issue is related to

Gateway

Please select the aspect the issue is related to

Aspect/AI (AI/LLM integration, MCP, AI readiness)

Suggested Improvement

Under the policy params add a list of json paths and evaluate them as per the sequence until we get a valid hit More robust use case is to have a map where we define json path for different operations but this is getting ruled out with operational policies we have in place.

Related Issues

No response

Dominant language
Go
Stars
85
Forks
137
Avg merge
1d 12h
Merged PRs (30d)
247

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No 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.

More from wso2/api-platform

All issues in wso2/api-platform

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.