Skip to content

Commit 11dde48

Browse files
authored
Merge pull request #868 from O-sura/bug-fix
Bumping jwt auth policy version to v0.1.2
2 parents bcf444f + 27bfc6e commit 11dde48

File tree

3 files changed

+21
-14
lines changed

3 files changed

+21
-14
lines changed

.github/workflows/operator-integration-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ jobs:
974974
url: http://httpbin.default.svc.cluster.local:80
975975
policies:
976976
- name: jwt-auth
977-
version: v0.1.1
977+
version: v0.1.2
978978
params:
979979
issuers:
980980
- MockKeyManager
@@ -1052,7 +1052,7 @@ jobs:
10521052
url: http://httpbin.default.svc.cluster.local:80
10531053
policies:
10541054
- name: jwt-auth
1055-
version: v0.1.1
1055+
version: v0.1.2
10561056
params:
10571057
issuers:
10581058
- DummyKeyManager

gateway/gateway-controller/default-policies/jwt-auth.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: jwt-auth
2-
version: v0.1.1
2+
version: v0.1.2
33
description: |
44
Validates JWT access tokens using one or more JWKS providers (key managers).
55
System-level configuration holds key manager endpoints and fetch behavior.
@@ -46,6 +46,13 @@ parameters:
4646
type: string
4747
description: Override for the authorization header scheme prefix (e.g., "Bearer", "JWT"). If specified at user-level, takes precedence over system configuration for this route.
4848

49+
userIdClaim:
50+
type: string
51+
description: >-
52+
Claim name to extract the user ID from the JWT token for analytics.
53+
If not specified, defaults to "sub" claim.
54+
default: sub
55+
4956
systemParameters:
5057
type: object
5158
additionalProperties: false

gateway/it/features/jwt-auth.feature

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Feature: JWT Authentication
4747
path: /protected
4848
policies:
4949
- name: jwt-auth
50-
version: v0.1.1
50+
version: v0.1.2
5151
params:
5252
issuers:
5353
- mock-jwks
@@ -81,7 +81,7 @@ Feature: JWT Authentication
8181
path: /protected
8282
policies:
8383
- name: jwt-auth
84-
version: v0.1.1
84+
version: v0.1.2
8585
params:
8686
issuers:
8787
- mock-jwks
@@ -116,7 +116,7 @@ Feature: JWT Authentication
116116
path: /protected
117117
policies:
118118
- name: jwt-auth
119-
version: v0.1.1
119+
version: v0.1.2
120120
params:
121121
issuers:
122122
- mock-jwks
@@ -152,7 +152,7 @@ Feature: JWT Authentication
152152
path: /protected
153153
policies:
154154
- name: jwt-auth
155-
version: v0.1.1
155+
version: v0.1.2
156156
params:
157157
issuers:
158158
- mock-jwks
@@ -187,7 +187,7 @@ Feature: JWT Authentication
187187
path: /protected
188188
policies:
189189
- name: jwt-auth
190-
version: v0.1.1
190+
version: v0.1.2
191191
params:
192192
issuers:
193193
- wrong-issuer-km
@@ -223,7 +223,7 @@ Feature: JWT Authentication
223223
path: /protected
224224
policies:
225225
- name: jwt-auth
226-
version: v0.1.1
226+
version: v0.1.2
227227
params:
228228
issuers:
229229
- mock-jwks
@@ -259,7 +259,7 @@ Feature: JWT Authentication
259259
path: /protected
260260
policies:
261261
- name: jwt-auth
262-
version: v0.1.1
262+
version: v0.1.2
263263
params:
264264
issuers:
265265
- mock-jwks
@@ -297,7 +297,7 @@ Feature: JWT Authentication
297297
path: /protected
298298
policies:
299299
- name: jwt-auth
300-
version: v0.1.1
300+
version: v0.1.2
301301
params:
302302
issuers:
303303
- mock-jwks
@@ -333,7 +333,7 @@ Feature: JWT Authentication
333333
path: /protected
334334
policies:
335335
- name: jwt-auth
336-
version: v0.1.1
336+
version: v0.1.2
337337
params:
338338
issuers:
339339
- mock-jwks
@@ -372,7 +372,7 @@ Feature: JWT Authentication
372372
path: /protected
373373
policies:
374374
- name: jwt-auth
375-
version: v0.1.1
375+
version: v0.1.2
376376
params:
377377
issuers:
378378
- mock-jwks
@@ -407,7 +407,7 @@ Feature: JWT Authentication
407407
path: /protected
408408
policies:
409409
- name: jwt-auth
410-
version: v0.1.1
410+
version: v0.1.2
411411
params:
412412
issuers:
413413
- mock-jwks

0 commit comments

Comments
 (0)