Skip to content

Commit e971c37

Browse files
authored
set Content-Length "" for jwks uri and enable test (#3607)
1 parent 2e85a28 commit e971c37

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

internal/configs/version2/nginx-plus.virtualserver.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ server {
182182
location = /_jwks_uri_server {
183183
internal;
184184
proxy_method GET;
185+
proxy_set_header Content-Length "";
185186
{{ if .KeyCache }}
186187
proxy_cache jwks_uri;
187188
proxy_cache_valid 200 12h;
@@ -382,6 +383,7 @@ server {
382383
location = {{ $l.Path }}_jwks_uri {
383384
internal;
384385
proxy_method GET;
386+
proxy_set_header Content-Length "";
385387
{{ if .KeyCache }}
386388
proxy_cache {{ $l.Path }}_jwks_uri;
387389
proxy_cache_valid 200 12h;

tests/suite/test_jwt_policies_jwksuri.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ def get_token(request):
6262
)
6363
class TestJWTPoliciesVsJwksuri:
6464
@pytest.mark.parametrize("jwt_virtual_server", [jwt_vs_spec_src, jwt_vs_route_src])
65-
@pytest.mark.flaky(max_runs=3)
66-
@pytest.mark.skip(reason="under review for causing pipeline delays")
6765
def test_jwt_policy_jwksuri(
6866
self,
6967
request,
@@ -110,6 +108,7 @@ def test_jwt_policy_jwksuri(
110108
resp2 = requests.get(
111109
virtual_server_setup.backend_1_url,
112110
headers={"host": virtual_server_setup.vs_host, "token": token},
111+
timeout=5,
113112
)
114113

115114
delete_policy(kube_apis.custom_objects, pol_name, test_namespace)

0 commit comments

Comments
 (0)