Skip to content

Commit bfa7ba4

Browse files
authored
Add timeout field to JWTRule (#3018)
* Add timeout field to JWTRule * Change timeout comment * Sync gen files * Sync gen files 2 * Adjust comment * minor changes to comment
1 parent 501a12d commit bfa7ba4

File tree

7 files changed

+129
-44
lines changed

7 files changed

+129
-44
lines changed

kubernetes/customresourcedefinitions.gen.yaml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto.lock

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47546,6 +47546,11 @@
4754647546
"name": "output_claim_to_headers",
4754747547
"type": "ClaimToHeader",
4754847548
"is_repeated": true
47549+
},
47550+
{
47551+
"id": 13,
47552+
"name": "timeout",
47553+
"type": "google.protobuf.Duration"
4754947554
}
4755047555
]
4755147556
},
@@ -47587,6 +47592,9 @@
4758747592
}
4758847593
],
4758947594
"imports": [
47595+
{
47596+
"path": "google/protobuf/duration.proto"
47597+
},
4759047598
{
4759147599
"path": "google/api/field_behavior.proto"
4759247600
}
@@ -48059,6 +48067,11 @@
4805948067
"name": "output_claim_to_headers",
4806048068
"type": "ClaimToHeader",
4806148069
"is_repeated": true
48070+
},
48071+
{
48072+
"id": 13,
48073+
"name": "timeout",
48074+
"type": "google.protobuf.Duration"
4806248075
}
4806348076
]
4806448077
},
@@ -48100,6 +48113,9 @@
4810048113
}
4810148114
],
4810248115
"imports": [
48116+
{
48117+
"path": "google/protobuf/duration.proto"
48118+
},
4810348119
{
4810448120
"path": "google/api/field_behavior.proto"
4810548121
}

security/v1/jwt.pb.go

Lines changed: 40 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

security/v1/jwt.proto

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// limitations under the License.
1414
syntax = "proto3";
1515

16+
import "google/protobuf/duration.proto";
1617
import "google/api/field_behavior.proto";
1718

1819
// $schema: istio.security.v1.JWTRule
@@ -178,8 +179,12 @@ message JWTRule {
178179
// [Experimental] This feature is a experimental feature.
179180
repeated ClaimToHeader output_claim_to_headers = 11; // [TODO:Update the status whenever this feature is promoted.]
180181

182+
// The maximum amount of time that the resolver, determined by the PILOT_JWT_ENABLE_REMOTE_JWKS environment variable,
183+
// will spend waiting for the JWKS to be fetched. Default is 5s.
184+
google.protobuf.Duration timeout = 13;
185+
181186
// $hide_from_docs
182-
// Next available field number: 13
187+
// Next available field number: 14
183188
}
184189

185190
// This message specifies a header location to extract JWT token.

security/v1beta1/jwt.pb.go

Lines changed: 39 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

security/v1beta1/jwt.pb.html

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

security/v1beta1/jwt.proto

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// limitations under the License.
1414
syntax = "proto3";
1515

16+
import "google/protobuf/duration.proto";
1617
import "google/api/field_behavior.proto";
1718

1819
// $schema: istio.security.v1beta1.JWTRule
@@ -177,8 +178,12 @@ message JWTRule {
177178
// [Experimental] This feature is a experimental feature.
178179
repeated ClaimToHeader output_claim_to_headers = 11; // [TODO:Update the status whenever this feature is promoted.]
179180

181+
// The maximum amount of time that the resolver, determined by the PILOT_JWT_ENABLE_REMOTE_JWKS environment variable,
182+
// will spend waiting for the JWKS to be fetched. Default is 5s.
183+
google.protobuf.Duration timeout = 13;
184+
180185
// $hide_from_docs
181-
// Next available field number: 13
186+
// Next available field number: 14
182187
}
183188

184189
// This message specifies a header location to extract JWT token.

0 commit comments

Comments
 (0)