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
Resource policy #7138
Resource policy #7138
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7138 +/- ##
==========================================
+ Coverage 88.43% 88.43% +<.01%
==========================================
Files 234 234
Lines 8578 8580 +2
==========================================
+ Hits 7586 7588 +2
Misses 992 992
Continue to review full report at Codecov.
|
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.
Thank you @brianjd ! I confirmed by running integration tests, that this time it works as expected.
@brianjd The default generated "resourcePolicy" for ApiGateway is conflicting with the method option "Invoke with caller credentials". The following error is being logged by cloudFormation
|
@ftmazzone if you feel this change introduced a bug. Can you prepare a minimal test case that reproduces it and open a new bug issue? |
Regression introduced with serverless#7138 Fixes serverless#7194 serverless#7211
What did you implement
Provides default apig resource policy. This ensures any previously defined resource policy gets overwritten.
Closes #6789 (Re: #7002)
How can we verify it
First create a resource policy that limits traffic to your source ip address.
Now remove said policy, and test accessing the endpoint using a different source address from original policy.
Is this ready for review?: YES
Is it a breaking change?: NO
cc: @pmuens @medikoo