-
Notifications
You must be signed in to change notification settings - Fork 2.7k
feat: As a user, I want to include the request body in the opa-input, so that I can reason about its contents #11629
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
wistefan
wants to merge
23
commits into
apache:master
Choose a base branch
from
wistefan:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
5f05a50
add body support for the opa plugin
wistefan a04ec4b
fix method calls and test names
wistefan c86bc2c
fix linting issues
wistefan 7b1a8b6
fix tests
wistefan 6eeaac5
linting fixes
wistefan cea6be4
fix linting
wistefan 3aa6a48
add doc
wistefan 656a3f0
clean
wistefan 13c775f
still lintign
wistefan 73738b7
fix linter issues
wistefan cf69c83
change the error call
wistefan 0b0e045
Update apisix/plugins/opa/helper.lua
wistefan fdc9b53
Update apisix/plugins/opa/helper.lua
wistefan 6d1d672
Update apisix/plugins/opa/helper.lua
wistefan 897599c
add docu and change log level
wistefan 2cb43cb
Merge branch 'apache:master' into master
wistefan f01ac39
fix typo
wistefan c4fdd13
reindex opa3.t
LuciaCabanillasRodriguez 463b92f
security warning
LuciaCabanillasRodriguez 8f6bd31
updated Chinese documentation
LuciaCabanillasRodriguez e50d8df
updated Chinese documentation
LuciaCabanillasRodriguez 9502a18
Update docker-compose.plugin.yml and opa3.t test
LuciaCabanillasRodriguez 8a27c08
Fix test index for opa3.t
LuciaCabanillasRodriguez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
package with_body | ||
|
||
import input.request | ||
|
||
default allow = false | ||
|
||
allow { | ||
request.method == "POST" | ||
} | ||
|
||
allow { | ||
request.body | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to modify Chinese documents synchronously
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated!