You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "jiangfucheng (via GitHub)" <gi...@apache.org> on 2023/03/08 13:19:48 UTC

[GitHub] [apisix] jiangfucheng opened a new pull request, #9039: feat: suppot header injection for fault-injection plugin

jiangfucheng opened a new pull request, #9039:
URL: https://github.com/apache/apisix/pull/9039

   ### Description
   
   <!-- Please include a summary of the change and which issue is fixed. -->
   
   <!-- Please also include relevant motivation and context. -->
   Sometimes, we want set content-type header or other headers.
   
   ### Checklist
   
   - [ ] I have explained the need for this PR and the problem it solves
   - [x] I have explained the changes or the new features added to this PR
   - [x] I have added tests corresponding to this change
   - [x] 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](https://github.com/apache/apisix/tree/master#community) first)
   
   <!--
   
   Note
   
   1. Mark the PR as draft until it's ready to be reviewed.
   2. Always add/update tests for any changes unless you have a good reason.
   3. Always update the documentation to reflect the changes made in the PR.
   4. Make a new commit to resolve conversations instead of `push -f`.
   5. To resolve merge conflicts, merge master instead of rebasing.
   6. Use "request review" to notify the reviewer after making changes.
   7. Only a reviewer can mark a conversation as resolved.
   
   -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] jiangfucheng commented on pull request #9039: feat: suppot header injection for fault-injection plugin

Posted by "jiangfucheng (via GitHub)" <gi...@apache.org>.
jiangfucheng commented on PR #9039:
URL: https://github.com/apache/apisix/pull/9039#issuecomment-1495649043

   @monkeyDluffy6017 Hi, this PR still not be merged, could help me merge it?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] spacewander commented on a diff in pull request #9039: feat: suppot header injection for fault-injection plugin

Posted by "spacewander (via GitHub)" <gi...@apache.org>.
spacewander commented on code in PR #9039:
URL: https://github.com/apache/apisix/pull/9039#discussion_r1131877063


##########
apisix/plugins/fault-injection.lua:
##########
@@ -32,6 +35,10 @@ local schema = {
             properties = {
                 http_status = {type = "integer", minimum = 200},
                 body = {type = "string", minLength = 0},
+                headers = {
+                    type = "object",
+                    minProperties = 1

Review Comment:
   Let's add more validation like https://github.com/apache/apisix/blob/09cc4946bc051452960975b4dd7436a2497df346/apisix/plugins/response-rewrite.lua#L65



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] monkeyDluffy6017 merged pull request #9039: feat: suppot header injection for fault-injection plugin

Posted by "monkeyDluffy6017 (via GitHub)" <gi...@apache.org>.
monkeyDluffy6017 merged PR #9039:
URL: https://github.com/apache/apisix/pull/9039


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] jiangfucheng commented on a diff in pull request #9039: feat: suppot header injection for fault-injection plugin

Posted by "jiangfucheng (via GitHub)" <gi...@apache.org>.
jiangfucheng commented on code in PR #9039:
URL: https://github.com/apache/apisix/pull/9039#discussion_r1133015893


##########
apisix/plugins/fault-injection.lua:
##########
@@ -32,6 +35,10 @@ local schema = {
             properties = {
                 http_status = {type = "integer", minimum = 200},
                 body = {type = "string", minLength = 0},
+                headers = {
+                    type = "object",
+                    minProperties = 1

Review Comment:
   Done.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] jiangfucheng commented on pull request #9039: feat: suppot header injection for fault-injection plugin

Posted by "jiangfucheng (via GitHub)" <gi...@apache.org>.
jiangfucheng commented on PR #9039:
URL: https://github.com/apache/apisix/pull/9039#issuecomment-1482425944

   @soulbird  Hi, could help me reivew this PR?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org