Skip to content

Commit cb2b9d4

Browse files
committed
adj patterns
1 parent 3c3c48b commit cb2b9d4

File tree

2 files changed

+23
-13
lines changed

2 files changed

+23
-13
lines changed

microservices/gatewayApi/patterns/sdx/application_r1.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
origins: ["*"]
6868
methods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"]
6969
headers: ["Accept", "Accept-Version", "Content-Length", "Content-Type", "Authorization", "X-Client-Id", "X-Sdx-Ap-Sign"]
70-
70+
7171
- name: oidc
7272
tags: [ns.${gateway}.${ns_qualifier}]
7373
enabled: true
@@ -89,17 +89,6 @@
8989
disable_userinfo_header: "yes"
9090
disable_id_token_header: "yes"
9191
92-
- name: openid-authzen
93-
tags: [ns.${gateway}.${ns_qualifier}]
94-
enabled: true
95-
config:
96-
# lua_ssl_trusted_certificate has to have the CA's - otherwise "unable to get local issuer certificate"
97-
target_url: https://ping.api.gov.bc.ca
98-
json_locator: []
99-
# subject_claim: "sub"
100-
# resource_type: "service_name|route_name|uri_path"
101-
# action_name: "read"
102-
10392
- name: kong-upstream-jwt
10493
tags: [ns.${gateway}.${ns_qualifier}]
10594
enabled: true
@@ -116,7 +105,7 @@
116105
add:
117106
headers:
118107
- "X-Client-Id:${consumer_uri}"
119-
108+
120109
# - name: oidc
121110
# tags: [ns.gw-0a524]
122111
# enabled: true

microservices/gatewayApi/patterns/sdx/service_r1.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@
1818
retries: 0
1919
tls_verify: false
2020
plugins:
21+
- name: mtls-auth
22+
tags: [ns.${gateway}.${ns_qualifier}]
23+
config:
24+
error_response_code: 401
25+
upstream_cert_cn_header: "X-CERT-CN"
26+
upstream_cert_fingerprint_header: "X-CERT-FINGERPRINT"
27+
upstream_cert_i_dn_header: "X-CERT-I-DN"
28+
upstream_cert_s_dn_header: "X-CERT-S-DN"
29+
upstream_cert_serial_header: "X-CERT-SERIAL"
30+
2131
- name: rate-limiting
2232
tags: [ns.${gateway}.${ns_qualifier}]
2333
enabled: true
@@ -65,6 +75,17 @@
6575
disable_userinfo_header: "yes"
6676
disable_id_token_header: "yes"
6777
78+
- name: openid-authzen
79+
tags: [ns.${gateway}.${ns_qualifier}]
80+
enabled: true
81+
config:
82+
# lua_ssl_trusted_certificate has to have the CA's - otherwise "unable to get local issuer certificate"
83+
target_url: https://ping.api.gov.bc.ca
84+
json_locator: []
85+
# subject_claim: "sub"
86+
# resource_type: "service_name|route_name|uri_path"
87+
# action_name: "read"
88+
6889
routes:
6990
- name: ${service_name}.OPTIONS
7091
tags: [ns.${gateway}.${ns_qualifier}, sdx]

0 commit comments

Comments
 (0)