Skip to content

Commit 71b3d04

Browse files
committed
upd sdx patterns response signer and change header
1 parent 01e8fcc commit 71b3d04

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

microservices/gatewayApi/patterns/sdx/application_r1.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@
4040
- ${route_host}
4141
paths:
4242
- ${route_path}
43-
headers:
44-
"X-Client-Id": [ ${consumer_uri} ]
4543
methods:
4644
- GET
4745
- POST
@@ -111,6 +109,14 @@
111109
key_id: aps-kong-gateway
112110
issuer: https://aps-jwks-upstream-jwt-api-gov-bc-ca-lab.dev.api.gov.bc.ca
113111
112+
- name: request-transformer
113+
tags: [ns.${gateway}.${ns_qualifier}]
114+
enabled: true
115+
config:
116+
add:
117+
headers:
118+
- "X-Client-Id:${consumer_uri}"
119+
114120
# - name: oidc
115121
# tags: [ns.gw-0a524]
116122
# enabled: true

microservices/gatewayApi/patterns/sdx/service_r1.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,24 @@
6464
disable_userinfo_header: "yes"
6565
disable_id_token_header: "yes"
6666
67+
- name: response-signer
68+
tags: [ns.${gateway}.${ns_qualifier}]
69+
enabled: true
70+
config:
71+
public_key_location: /etc/secrets/kong-upstream-jwt/tls.crt
72+
private_key_location: /etc/secrets/kong-upstream-jwt/tls.key
73+
key_id: "aps-kong-gateway"
74+
issuer: "https://aps-jwks-upstream-jwt-api-gov-bc-ca-lab.dev.api.gov.bc.ca"
75+
6776
routes:
6877
- name: ${service_name}
6978
tags: [ns.${gateway}.${ns_qualifier}, sdx]
7079
hosts:
7180
- ${route_host}
7281
paths:
7382
- ${route_path}
83+
headers:
84+
"X-Client-Id": [ ${consumer_uri} ]
7485
methods:
7586
- GET
7687
- POST

0 commit comments

Comments
 (0)