From db78ed8464804e5b96b6a2ce6ced7f4a10d63a82 Mon Sep 17 00:00:00 2001 From: Ghadi Mhawej Date: Mon, 14 Oct 2024 14:34:40 +0300 Subject: [PATCH] fix: fix k8s files according to new env config --- k8s-staging/staging-secrets.yaml | 20 ++++++++------------ k8s-staging/vc-api-deployment.yaml | 19 +++++++------------ k8s/secrets.yaml | 20 ++++++++------------ k8s/vc-api-deployment.yaml | 19 +++++++------------ 4 files changed, 30 insertions(+), 48 deletions(-) diff --git a/k8s-staging/staging-secrets.yaml b/k8s-staging/staging-secrets.yaml index 15cf58b..30b0644 100644 --- a/k8s-staging/staging-secrets.yaml +++ b/k8s-staging/staging-secrets.yaml @@ -23,6 +23,8 @@ spec: key: INFURA_PROJECT_ID - objectName: signing_private_key key: SIGNING_PRIVATE_KEY + - objectName: signing_private_key_sepolia_domain + key: SIGNING_PRIVATE_KEY_SEPOLIA_DOMAIN - objectName: environment key: ENVIRONMENT - objectName: api_domain @@ -45,14 +47,10 @@ spec: key: DISCORD_CLIENT_SECRET - objectName: ens_domain key: ENS_DOMAIN - - objectName: chain_id - key: CHAIN_ID + - objectName: ens_domain_sepolia + key: ENS_DOMAIN_SEPOLIA - objectName: jwt_secret key: JWT_SECRET - - objectName: siwe_domain - key: SIWE_DOMAIN - - objectName: siwe_origin - key: SIWE_ORIGIN - objectName: encrypt_key key: ENCRYPT_KEY - objectName: encrypt_salt @@ -73,6 +71,8 @@ spec: objectAlias: infura_project_id - path: SIGNING_PRIVATE_KEY objectAlias: signing_private_key + - path: SIGNING_PRIVATE_KEY_SEPOLIA_DOMAIN + objectAlias: signing_private_key_sepolia_domain - path: ENVIRONMENT objectAlias: environment - path: API_DOMAIN @@ -95,14 +95,10 @@ spec: objectAlias: discord_client_secret - path: ENS_DOMAIN objectAlias: ens_domain - - path: CHAIN_ID - objectAlias: chain_id + - path: ENS_DOMAIN_SEPOLIA + objectAlias: ens_domain_sepolia - path: JWT_SECRET objectAlias: jwt_secret - - path: SIWE_DOMAIN - objectAlias: siwe_domain - - path: SIWE_ORIGIN - objectAlias: siwe_origin - path: ENCRYPT_KEY objectAlias: encrypt_key - path: ENCRYPT_SALT diff --git a/k8s-staging/vc-api-deployment.yaml b/k8s-staging/vc-api-deployment.yaml index e5f39a7..f4b0e6f 100644 --- a/k8s-staging/vc-api-deployment.yaml +++ b/k8s-staging/vc-api-deployment.yaml @@ -43,6 +43,11 @@ spec: secretKeyRef: name: foosecret-verifications key: SIGNING_PRIVATE_KEY + - name: SIGNING_PRIVATE_KEY_SEPOLIA_DOMAIN + valueFrom: + secretKeyRef: + name: foosecret-verifications + key: SIGNING_PRIVATE_KEY_SEPOLIA_DOMAIN - name: ENVIRONMENT valueFrom: secretKeyRef: @@ -98,26 +103,16 @@ spec: secretKeyRef: name: foosecret-verifications key: ENS_DOMAIN - - name: CHAIN_ID + - name: ENS_DOMAIN_SEPOLIA valueFrom: secretKeyRef: name: foosecret-verifications - key: CHAIN_ID + key: ENS_DOMAIN_SEPOLIA - name: JWT_SECRET valueFrom: secretKeyRef: name: foosecret-verifications key: JWT_SECRET - - name: SIWE_DOMAIN - valueFrom: - secretKeyRef: - name: foosecret-verifications - key: SIWE_DOMAIN - - name: SIWE_ORIGIN - valueFrom: - secretKeyRef: - name: foosecret-verifications - key: SIWE_ORIGIN - name: ENCRYPT_KEY valueFrom: secretKeyRef: diff --git a/k8s/secrets.yaml b/k8s/secrets.yaml index 1028c08..2d3315c 100644 --- a/k8s/secrets.yaml +++ b/k8s/secrets.yaml @@ -23,6 +23,8 @@ spec: key: INFURA_PROJECT_ID - objectName: signing_private_key key: SIGNING_PRIVATE_KEY + - objectName: signing_private_key_sepolia_domain + key: SIGNING_PRIVATE_KEY_SEPOLIA_DOMAIN - objectName: environment key: ENVIRONMENT - objectName: api_domain @@ -45,14 +47,10 @@ spec: key: DISCORD_CLIENT_SECRET - objectName: ens_domain key: ENS_DOMAIN - - objectName: chain_id - key: CHAIN_ID + - objectName: ens_domain_sepolia + key: ENS_DOMAIN_SEPOLIA - objectName: jwt_secret key: JWT_SECRET - - objectName: siwe_domain - key: SIWE_DOMAIN - - objectName: siwe_origin - key: SIWE_ORIGIN - objectName: encrypt_key key: ENCRYPT_KEY - objectName: encrypt_salt @@ -71,6 +69,8 @@ spec: objectAlias: infura_project_id - path: SIGNING_PRIVATE_KEY objectAlias: signing_private_key + - path: SIGNING_PRIVATE_KEY_SEPOLIA_DOMAIN + objectAlias: signing_private_key_sepolia_domain - path: ENVIRONMENT objectAlias: environment - path: API_DOMAIN @@ -93,14 +93,10 @@ spec: objectAlias: discord_client_secret - path: ENS_DOMAIN objectAlias: ens_domain - - path: CHAIN_ID - objectAlias: chain_id + - path: ENS_DOMAIN_SEPOLIA + objectAlias: ens_domain_sepolia - path: JWT_SECRET objectAlias: jwt_secret - - path: SIWE_DOMAIN - objectAlias: siwe_domain - - path: SIWE_ORIGIN - objectAlias: siwe_origin - path: ENCRYPT_KEY objectAlias: encrypt_key - path: ENCRYPT_SALT diff --git a/k8s/vc-api-deployment.yaml b/k8s/vc-api-deployment.yaml index 590dc9f..b7c2d41 100644 --- a/k8s/vc-api-deployment.yaml +++ b/k8s/vc-api-deployment.yaml @@ -43,6 +43,11 @@ spec: secretKeyRef: name: foosecret-verifications key: SIGNING_PRIVATE_KEY + - name: SIGNING_PRIVATE_KEY_SEPOLIA_DOMAIN + valueFrom: + secretKeyRef: + name: foosecret-verifications + key: SIGNING_PRIVATE_KEY_SEPOLIA_DOMAIN - name: ENVIRONMENT valueFrom: secretKeyRef: @@ -98,26 +103,16 @@ spec: secretKeyRef: name: foosecret-verifications key: ENS_DOMAIN - - name: CHAIN_ID + - name: ENS_DOMAIN_SEPOLIA valueFrom: secretKeyRef: name: foosecret-verifications - key: CHAIN_ID + key: ENS_DOMAIN_SEPOLIA - name: JWT_SECRET valueFrom: secretKeyRef: name: foosecret-verifications key: JWT_SECRET - - name: SIWE_DOMAIN - valueFrom: - secretKeyRef: - name: foosecret-verifications - key: SIWE_DOMAIN - - name: SIWE_ORIGIN - valueFrom: - secretKeyRef: - name: foosecret-verifications - key: SIWE_ORIGIN - name: ENCRYPT_KEY valueFrom: secretKeyRef: