From 699a6652fd8b0a97ea0336171d05d9cbcdbdddb5 Mon Sep 17 00:00:00 2001 From: Roland Weber Date: Mon, 24 Jan 2022 16:36:19 +0100 Subject: [PATCH] make jwt for access to echo service optional --- metrics/.scripts/verify.sh | 2 +- metrics/solution/echo-microgateway/config/config.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/metrics/.scripts/verify.sh b/metrics/.scripts/verify.sh index d071cb8..f5d2cd3 100755 --- a/metrics/.scripts/verify.sh +++ b/metrics/.scripts/verify.sh @@ -56,7 +56,7 @@ else EXIT_CODE=1 fi -STATUSCODE=$(curl -k -s -o /dev/null -w "%{http_code}" -H "Authorization: Bearer eyJjdHkiOiJKV1QiLCJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiZGlyIn0..q_382QLa9P1N5xuv.STvykuZALmVkEDeRVssJ5J-W7gU-fbEUa3D-drurDji2CltNV31EW7mF7jnW-IGUw9dBvapHDtt-ADne8AhzpbDpmsCFDGY4pTbp-LFXpVtsLfhT1aWM8C245tB2CBT5Mr-wHzxfyRHwusZhgIljqE0qzQl6Ys-lxG2lYaXLc51ajBtq2C8TJoZ1WadhToNGoNx_begTDescWBerlrQxL-P2kMB-A_F_OpkUFkX3-S6dZOxtBTK-8EzZUvc_ButxskYjm24M3QneJ8J1NER0DORqxKh-MKdj3eTdYiQNUJ72N_POEQg_ubvDeSD4J9mF0XShE8Z5fWVhtPbzzw1VCSQbcp2gpIWfZuEnxkguwQwr1sV2.GcTNSVOFh5Coog2rY7dGXg" https://${kubernetes_ip}/echo/) +STATUSCODE=$(curl -k -s -o /dev/null -w "%{http_code}" https://${kubernetes_ip}/echo/) if [ "${STATUSCODE}" = "200" ] then echo "OK: echo service returned status code 200" diff --git a/metrics/solution/echo-microgateway/config/config.yaml b/metrics/solution/echo-microgateway/config/config.yaml index a8020c7..c935e69 100644 --- a/metrics/solution/echo-microgateway/config/config.yaml +++ b/metrics/solution/echo-microgateway/config/config.yaml @@ -22,7 +22,7 @@ apps: roles: - member access_token: - mandatory: true + mandatory: false # expiry_checked is disabled to see authenticated sessions in Grafana # note: it is highly recommended to enable expiry_checked in production expiry_checked: false