From 6f6383c311d3a844514f7385ec4ba61cf9525a33 Mon Sep 17 00:00:00 2001 From: Sreenadh S <32409698+sree96@users.noreply.github.com> Date: Wed, 13 Nov 2024 12:12:29 +0530 Subject: [PATCH] [INJIVER-722] - server side verification deployment updates (#234) * [INJIVER-722] - add api for server side verification and integrate with ui Signed-off-by: Sreenadh S <32409698+sree96@users.noreply.github.com> * [INJIVER-722] - update vc status condition and api route Signed-off-by: Sreenadh S <32409698+sree96@users.noreply.github.com> * [INJIVER-722] - add configmap for nginx Signed-off-by: Sreenadh S <32409698+sree96@users.noreply.github.com> * [INJIVER-722] - add helm env Signed-off-by: Sreenadh S <32409698+sree96@users.noreply.github.com> * [INJIVER-722] - add helm env Signed-off-by: Sreenadh S <32409698+sree96@users.noreply.github.com> --------- Signed-off-by: Sreenadh S <32409698+sree96@users.noreply.github.com> --- deploy/inji-verify-ui/install.sh | 3 ++- helm/inji-verify-ui/templates/configmap.yaml | 9 +++++++++ helm/inji-verify-ui/values.yaml | 2 ++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/deploy/inji-verify-ui/install.sh b/deploy/inji-verify-ui/install.sh index 98308909..69560b99 100644 --- a/deploy/inji-verify-ui/install.sh +++ b/deploy/inji-verify-ui/install.sh @@ -55,7 +55,8 @@ function installing_inji-verify-ui() { echo Installing INJIVERIFY helm -n $NS install inji-verify-ui mosip/inji-verify-ui \ --set istio.hosts\[0\]=$INJIVERIFY_HOST \ - --version $CHART_VERSION + --set inji_verify_service.host="inji-verify-service.$NS" \ + --version $CHART_VERSION kubectl -n $NS get deploy -o name | xargs -n1 -t kubectl -n $NS rollout status diff --git a/helm/inji-verify-ui/templates/configmap.yaml b/helm/inji-verify-ui/templates/configmap.yaml index e2d4f8d1..b31733be 100644 --- a/helm/inji-verify-ui/templates/configmap.yaml +++ b/helm/inji-verify-ui/templates/configmap.yaml @@ -42,6 +42,15 @@ data: proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Host $server_name; } + + location /v1/verify { + proxy_pass http://{{ .Values.inji_verify_service.host }}/v1/verify; + proxy_redirect off; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Host $server_name; + } location /authorize { return 301 https://{{ .Values.esignet_redirect_url }}$request_uri; } diff --git a/helm/inji-verify-ui/values.yaml b/helm/inji-verify-ui/values.yaml index 10685403..63294291 100644 --- a/helm/inji-verify-ui/values.yaml +++ b/helm/inji-verify-ui/values.yaml @@ -419,6 +419,8 @@ metrics: inji_verify: port: '8000' host: 'mimoto.mimoto' +inji_verify_service: + host: 'inji-verify-service.injiverify' esignet_redirect_url: 'esignet.sandbox.xyz.net' istio: enabled: true