From bf218975ded499e00d0e0ec5d840d5cc3464b1bb Mon Sep 17 00:00:00 2001 From: antares-sw <23400824+antares-sw@users.noreply.github.com> Date: Wed, 5 Jul 2023 11:46:13 +0300 Subject: [PATCH] Remove RSA from oracle (#410) --- charts/v3-oracle/Chart.yaml | 2 +- charts/v3-oracle/templates/configmap.yaml | 1 - charts/v3-oracle/templates/secret.yaml | 13 ------------- charts/v3-oracle/templates/statefulset.yaml | 10 ---------- charts/v3-oracle/values.yaml | 5 ----- 5 files changed, 1 insertion(+), 30 deletions(-) diff --git a/charts/v3-oracle/Chart.yaml b/charts/v3-oracle/Chart.yaml index 6196453a4..e01513981 100644 --- a/charts/v3-oracle/Chart.yaml +++ b/charts/v3-oracle/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: v3-oracle -version: 3.1.8 +version: 3.1.9 appVersion: v0.1.0 kubeVersion: "^1.14.0-0" description: The StakeWise application for submitting off-chain data to smart contracts. diff --git a/charts/v3-oracle/templates/configmap.yaml b/charts/v3-oracle/templates/configmap.yaml index 17032544c..399614e59 100644 --- a/charts/v3-oracle/templates/configmap.yaml +++ b/charts/v3-oracle/templates/configmap.yaml @@ -12,4 +12,3 @@ data: CONSENSUS_ENDPOINT: {{ .Values.settings.consensusEndpoint | quote }} IPFS_FETCH_ENDPOINTS: {{ .Values.settings.ipfsFetchEndpoints | quote }} DATABASE: "/data/oracle.db" - RSA_PRIVATE_KEY_PATH: "/secret/rsakey" diff --git a/charts/v3-oracle/templates/secret.yaml b/charts/v3-oracle/templates/secret.yaml index fcef5583a..1d4baff29 100644 --- a/charts/v3-oracle/templates/secret.yaml +++ b/charts/v3-oracle/templates/secret.yaml @@ -14,16 +14,3 @@ data: IPFS_INFURA_CLIENT_USERNAME: {{ .Values.settings.ipfsInfuraClientUsername | b64enc | quote }} IPFS_INFURA_CLIENT_PASSWORD: {{ .Values.settings.ipfsInfuraClientPassword | b64enc | quote }} IPFS_WEB3STORAGE_TOKEN: {{ .Values.settings.ipfsWeb3StorageToken | b64enc | quote }} - RSA_PRIVATE_KEY_PASSPHRASE: {{ .Values.settings.rsaPrivateKeyPassphrase | b64enc | quote }} - ---- -apiVersion: v1 -kind: Secret -metadata: - name: {{ include "common.names.fullname" . }}-rsa-private-key - namespace: {{ .Release.Namespace }} - labels: - {{- include "common.labels.standard" . | nindent 4 }} -type: Opaque -data: - rsakey: {{ .Values.settings.rsaPrivateKey | b64enc | quote }} diff --git a/charts/v3-oracle/templates/statefulset.yaml b/charts/v3-oracle/templates/statefulset.yaml index f1b797d6d..650c213e6 100644 --- a/charts/v3-oracle/templates/statefulset.yaml +++ b/charts/v3-oracle/templates/statefulset.yaml @@ -63,9 +63,6 @@ spec: containerPort: {{ .Values.service.ports.http }} protocol: TCP volumeMounts: - - name: rsakey - mountPath: /secret - readOnly: true - name: data mountPath: /data {{- with .Values.resources }} @@ -82,19 +79,12 @@ spec: - secretRef: name: {{ include "common.names.fullname" . }} volumeMounts: - - name: rsakey - mountPath: /secret - readOnly: true - name: data mountPath: /data {{- with .Values.resources }} resources: {{ toYaml . | nindent 12 | trim }} {{- end }} - volumes: - - name: rsakey - secret: - secretName: {{ include "common.names.fullname" . }}-rsa-private-key volumeClaimTemplates: - metadata: name: data diff --git a/charts/v3-oracle/values.yaml b/charts/v3-oracle/values.yaml index f83273321..7c9183f4d 100644 --- a/charts/v3-oracle/values.yaml +++ b/charts/v3-oracle/values.yaml @@ -99,11 +99,6 @@ settings: walletPrivateKey: "" sentryDsn: "" - # RSA - rsaPrivateKeyPassphrase: "" - rsaPrivateKeyPath: "" - rsaPrivateKey: "" - ## Ethereum / Gnosis Nodes ## executionEndpoint: ""