-
Notifications
You must be signed in to change notification settings - Fork 680
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 AllowPrivateNetwork to support Access-Control-Allow-Private-Network #5034
Conversation
Hi @lvyanru8200! Welcome to our community and thank you for opening your first Pull Request. Someone will review it soon. Thank you for committing to making Contour better. You can also join us on our mailing list and in our channel in the Kubernetes Slack Workspace |
Thanks for the PR @lvyanru8200! Please add a changelog file per the instructions in https://github.com/projectcontour/contour/actions/runs/4068330638/jobs/7006764495. You'll also need to run |
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.
Mostly looks good here, just a couple minor comments.
ffba8af
to
314f342
Compare
cc @skriss |
Looks like a few more failing unit tests to update. |
314f342
to
ab7f2c4
Compare
cc @skriss |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #5034 +/- ##
=======================================
Coverage 77.47% 77.48%
=======================================
Files 138 138
Lines 16904 16906 +2
=======================================
+ Hits 13097 13100 +3
+ Misses 3552 3551 -1
Partials 255 255
|
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.
Code LGTM. The last thing is to update the docs (https://github.com/projectcontour/contour/blame/main/site/content/docs/main/config/cors.md)
I think mentioning this in https://github.com/projectcontour/contour/blame/main/site/content/docs/main/config/cors.md#L7, plus adding it to one of the YAML examples with a sentence or comment explaining it, should be sufficient.
…-Network Fixes: projectcontour#4553 Signed-off-by: tigerK <yanru.lv@daocloud.io>
ab7f2c4
to
0168d59
Compare
cc @skriss |
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.
LGTM, thanks @lvyanru8200.
Adds an AllowPrivateNetwork field to HTTPProxy's CORSPolicy to allow setting the Access-Control-Allow-Private-Network header. Closes projectcontour#4553. Signed-off-by: tigerK <yanru.lv@daocloud.io> Signed-off-by: yy <yang.yang@daocloud.io>
Adds an AllowPrivateNetwork field to HTTPProxy's CORSPolicy to allow setting the Access-Control-Allow-Private-Network header. Closes projectcontour#4553. Signed-off-by: tigerK <yanru.lv@daocloud.io> Signed-off-by: yy <yang.yang@daocloud.io>
Adds an AllowPrivateNetwork field to HTTPProxy's CORSPolicy to allow setting the Access-Control-Allow-Private-Network header. Closes projectcontour#4553. Signed-off-by: tigerK <yanru.lv@daocloud.io>
Fixes: #4553
Signed-off-by: tigerK yanru.lv@daocloud.io