-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
add brotli-min-length
configuration option
#7854
Conversation
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
@rahil-p: This issue is currently awaiting triage. If Ingress contributors determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Welcome @rahil-p! |
Hi @rahil-p. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Hi @rahil-p, Kindly write tests for this change. Hopefully, we can get get
some assurance that no other impact is possible when this feature is used.
Thanks,
; Long
…On Wed, 27 Oct, 2021, 1:50 PM Rahil Patel, ***@***.***> wrote:
I signed it
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#7854 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGZVWWHLQGKEYLWANERSATUI6Y3BANCNFSM5GZWJHVA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
@@ -778,6 +781,7 @@ func NewDefault() Configuration { | |||
BlockUserAgents: defBlockEntity, | |||
BlockReferers: defBlockEntity, | |||
BrotliLevel: 4, | |||
BrotliMinLength: 20, |
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.
Uses the brotli_min_length
's default value from the ngx_brotli
module.
@@ -59,6 +59,7 @@ var _ = framework.IngressNginxDescribe("brotli", func() { | |||
WithHeader("Accept-Encoding", "br"). | |||
Expect(). | |||
Status(http.StatusOK). | |||
ContentType(contentEncoding). |
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.
The httpbin server responds with the content type application/octet-stream
for the /bytes/{n}
endpoint. This test enables compression for this type by setting brotli-types
to application/octet-stream
. This extra check should help indicate if Brotli compression was skipped in this test because of a content type mismatch (in the off-chance changes are made to the httpbin server image).
test/e2e/settings/brotli.go
Outdated
@@ -0,0 +1,75 @@ | |||
/* | |||
Copyright 2020 The Kubernetes Authors. |
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.
2021 here
/ok-to-test Then lgtm |
Please also fix the go formatting error :) |
/lgtm
Thanks,
; Long
…On Tue, 2 Nov, 2021, 7:35 AM Rahil Patel, ***@***.***> wrote:
lgtm
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#7854 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGZVWXTMWRBZXNP7E5H7S3UJ5BOHANCNFSM5GZWJHVA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: longwuyuan, rahil-p, rikatz The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* add `brotli-min-length` configuration option * add e2e tests for brotli * include check for expected content type * fix header and format
What this PR does / why we need it:
Adds the
brotli-min-length
configuration option for setting the ngx_brotlibrotli_min_length
directive (with updated documentation).#7853
Types of changes
Which issue/s this PR fixes
fixes #7853
How Has This Been Tested?
The following tests have passed locally:
make test
make lua-test
make kind-e2e-test
(including a new test for Brotli)Checklist: