-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feat: Add the function to hide header for key-auth plugin #6670
Merged
Merged
Changes from 5 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
4dfabc9
feat: Add the function of hiding header for key-auth plugin
bin-ya 9be27cc
Merge branch 'master' of https://github.com/apache/apisix into key-au…
bin-ya 7f47a59
merge maste
bin-ya 31fdc62
fix ci
bin-ya c766814
fix key-auth.md
bin-ya 8f6db40
modify information
bin-ya 17fb9ab
fix previous error
bin-ya 02cbe96
Merge branch 'master' of https://github.com/apache/apisix into key-au…
bin-ya 4022efd
Merge branch 'master' of https://github.com/apache/apisix into key-au…
bin-ya 448ce8f
fix ci
bin-ya faea26e
modify format
bin-ya 2658e4d
Merge branch 'key-auth-plugin-uograde' of https://github.com/bin-ya/a…
bin-ya 5cb6ae5
Add the function of hiding query information
bin-ya 5d1f8d3
fix ci
bin-ya a02d7ad
modify hidden information and add test
bin-ya 97d754a
fix key-auth.t
bin-ya a3a4ff9
modify key-auth.t
bin-ya 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 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 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 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 | ||||
---|---|---|---|---|---|---|
|
@@ -41,6 +41,7 @@ router 端配置: | |||||
| ---- | ------ | ------ | ------ | ------ | ------------------------------------------------------------------------------------------------------------- | | ||||||
| header | string | 可选| apikey | | 设置我们从哪个 header 获取 key。 | | ||||||
| query | string | 可选 | apikey | | 设置我们从哪个 query string 获取 key,优先级低于 `header` | | ||||||
| hide_credentials | bool | 可选 | false | | 是否将请求头传递给 upstream。 | | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok |
||||||
|
||||||
## 如何启用 | ||||||
|
||||||
|
This file contains 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
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.
We should remove the key according to where the key comes from.
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.
ok, I will.