Skip to content

Commit 27f6006

Browse files
committed
don't log secrets
1 parent 0202233 commit 27f6006

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

microservices/gatewayApi/v2/routes/gateway.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,8 @@ def write_config(namespace: str) -> object:
354354
},
355355
"certificates": certs
356356
}
357-
log.debug("[%s] - Initiating request to kube API %s" % (dp, route_payload))
357+
route_payload_log = route_payload['hosts'] + route_payload['select_tag'] + route_payload['ns_attributes'] + route_payload['overrides']
358+
log.debug("[%s] - Initiating request to kube API %s" % (dp, route_payload_log))
358359
rqst_url = app.config['data_planes'][dp]["kube-api"]
359360
res = session.put(rqst_url + "/namespaces/%s/routes" % namespace, json=route_payload, auth=(
360361
app.config['kubeApiCreds']['kubeApiUser'], app.config['kubeApiCreds']['kubeApiPass']))

0 commit comments

Comments
 (0)