Skip to content

feat: As a user, I want to include the request body in the opa-input, so that I can reason about its contents - #11629

Open
wistefan wants to merge 398 commits into
apache:masterfrom
wistefan:master
Open

feat: As a user, I want to include the request body in the opa-input, so that I can reason about its contents#11629
wistefan wants to merge 398 commits into
apache:masterfrom
wistefan:master

Conversation

@wistefan

@wistefan wistefan commented Oct 8, 2024

Copy link
Copy Markdown

Description

In order to make decisions based on the request body, the OPA-Plugin will also forward the body when configured to do so.

Fixes #11387

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. doc Documentation things enhancement New feature or request labels Oct 8, 2024
@wistefan

wistefan commented Nov 6, 2024

Copy link
Copy Markdown
Author

Is there anything I can do to get this PR forward?

@github-actions

github-actions Bot commented Jan 6, 2025

Copy link
Copy Markdown

This pull request has been marked as stale due to 60 days of inactivity. It will be closed in 4 weeks if no further activity occurs. If you think that's incorrect or this pull request should instead be reviewed, please simply write any comment. Even if closed, you can still revive the PR at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions.

@github-actions github-actions Bot added the stale label Jan 6, 2025
Comment thread apisix/plugins/opa/helper.lua Outdated
Comment thread apisix/plugins/opa/helper.lua Outdated
@moonming

moonming commented Jan 7, 2025

Copy link
Copy Markdown
Member

@wistefan Please synchronize the master code to trigger all CI

@wistefan

wistefan commented Jan 7, 2025

Copy link
Copy Markdown
Author

@wistefan Please synchronize the master code to trigger all CI

@moonming Thank you for the review, I updated.

@LuciaCabanillasRodriguez

Copy link
Copy Markdown

Hello! If I want this new implementation with the request body, what should I do?

@Baoyuantop

Copy link
Copy Markdown
Contributor

Hi @wistefan, please synchronize the latest master branch code to trigger the test.

Comment thread docs/en/latest/plugins/opa.md Outdated
Comment thread apisix/plugins/opa/helper.lua Outdated
Comment thread apisix/plugins/opa/helper.lua Outdated
@Baoyuantop Baoyuantop moved this to 👀 In review in ⚡️ Apache APISIX Roadmap Mar 28, 2025
@Baoyuantop Baoyuantop moved this from 👀 In review to 🏗 In progress in ⚡️ Apache APISIX Roadmap Mar 28, 2025
@Baoyuantop Baoyuantop moved this from 🏗 In progress to 👀 In review in ⚡️ Apache APISIX Roadmap Mar 28, 2025
@wistefan
wistefan requested a review from Baoyuantop March 31, 2025 08:18
@Baoyuantop

Copy link
Copy Markdown
Contributor

Hi @wistefan, please fix failed ci

@Baoyuantop

Copy link
Copy Markdown
Contributor

Hi @wistefan, do you have time to continue working on this PR?

@wistefan

wistefan commented Apr 3, 2025

Copy link
Copy Markdown
Author

@Baoyuantop Yes, most likely beginning of next week

@wistefan

Copy link
Copy Markdown
Author

@Baoyuantop Could you please appove the ci workflows?

@Baoyuantop

Copy link
Copy Markdown
Contributor

@wistefan, please fix failed ci

@Baoyuantop Baoyuantop added the wait for update wait for the author's response in this issue/PR label Apr 29, 2025
@LuciaCabanillasRodriguez

Copy link
Copy Markdown

Hello! What is the status of this?

@Baoyuantop

Copy link
Copy Markdown
Contributor

Need to fix the failed CI, waiting for a response from the author.

@LuciaCabanillasRodriguez

Copy link
Copy Markdown

Hello! Any news?

nic-6443 and others added 27 commits June 16, 2026 09:35
…r examples (apache#13543)

* docs: fix mocking config note and invalid JSON in elasticsearch-logger examples

- mocking: the docs say response_example and response_schema must not be
  configured together, but the schema uses anyOf (at least one) and the
  plugin prefers response_example when both are set. Correct the en/zh
  description accordingly.
- elasticsearch-logger: the Admin API examples had a trailing comma after
  the only field ("index": "gateway",), making the JSON invalid for
  copy-paste. Remove it (en + zh, two places each).

Signed-off-by: AlinsRan <alinsran@apache.org>

* docs(mocking): clarify response_example/response_schema are not mutually exclusive

The Required column said 'One of this or ...' / '二选一', implying the two
fields are mutually exclusive, but the schema uses anyOf (at least one) and the
plugin accepts both with response_example taking precedence. Align the column
with that behavior.

Signed-off-by: AlinsRan <alinsran@apache.org>

---------

Signed-off-by: AlinsRan <alinsran@apache.org>
Signed-off-by: Abhishek Choudhary <shreemaan.abhishek@gmail.com>
@wistefan

Copy link
Copy Markdown
Author

@Baoyuantop @LuciaCabanillasRodriguez Hi, sorry, took far to long. But I think everything should be fixed now.

@LuciaCabanillasRodriguez

Copy link
Copy Markdown

Is there anything missing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Documentation things enhancement New feature or request size:L This PR changes 100-499 lines, ignoring generated files. user responded wait for update wait for the author's response in this issue/PR

Projects

Status: 📋 Backlog

Development

Successfully merging this pull request may close these issues.

feat: As a user, I want to include the request body in the opa-input, so that I can reason about its contents