From 27f600696458826d93d82ad6327dc667091ca873 Mon Sep 17 00:00:00 2001 From: Russell Vinegar Date: Wed, 20 Nov 2024 16:10:52 -0800 Subject: [PATCH] don't log secrets --- microservices/gatewayApi/v2/routes/gateway.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/microservices/gatewayApi/v2/routes/gateway.py b/microservices/gatewayApi/v2/routes/gateway.py index a3922de..5d2fd10 100644 --- a/microservices/gatewayApi/v2/routes/gateway.py +++ b/microservices/gatewayApi/v2/routes/gateway.py @@ -354,7 +354,8 @@ def write_config(namespace: str) -> object: }, "certificates": certs } - log.debug("[%s] - Initiating request to kube API %s" % (dp, route_payload)) + route_payload_log = route_payload['hosts'] + route_payload['select_tag'] + route_payload['ns_attributes'] + route_payload['overrides'] + log.debug("[%s] - Initiating request to kube API %s" % (dp, route_payload_log)) rqst_url = app.config['data_planes'][dp]["kube-api"] res = session.put(rqst_url + "/namespaces/%s/routes" % namespace, json=route_payload, auth=( app.config['kubeApiCreds']['kubeApiUser'], app.config['kubeApiCreds']['kubeApiPass']))