Skip to content

Commit

Permalink
Remove RSA from oracle (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
antares-sw authored Jul 5, 2023
1 parent 10eec20 commit bf21897
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 30 deletions.
2 changes: 1 addition & 1 deletion charts/v3-oracle/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 0 additions & 1 deletion charts/v3-oracle/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
13 changes: 0 additions & 13 deletions charts/v3-oracle/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
10 changes: 0 additions & 10 deletions charts/v3-oracle/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand Down
5 changes: 0 additions & 5 deletions charts/v3-oracle/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,6 @@ settings:
walletPrivateKey: ""
sentryDsn: ""

# RSA
rsaPrivateKeyPassphrase: ""
rsaPrivateKeyPath: ""
rsaPrivateKey: ""

## Ethereum / Gnosis Nodes
##
executionEndpoint: ""
Expand Down

0 comments on commit bf21897

Please sign in to comment.