Skip to content

Commit

Permalink
SDP-1236 Fix SDP helm chart defaults and minimal-values (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
marwen-abid authored Jun 11, 2024
1 parent 331e976 commit a2e4495
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 14 deletions.
2 changes: 1 addition & 1 deletion charts/stellar-disbursement-platform/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: stellar-disbursement-platform
description: A Helm chart for the Stellar Disbursement Platform Backend (A.K.A. `sdp`)
version: 2.0.0
version: 2.0.1
appVersion: "2.0.0"
type: application
maintainers:
Expand Down
18 changes: 10 additions & 8 deletions charts/stellar-disbursement-platform/minimal-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,7 @@ global:
## @param global.eventBroker.urls A comma-separated list of broker URLs for the event broker.
## @param global.eventBroker.consumerGroupId The consumer group ID for the event broker.
eventBroker:
type: "KAFKA"
urls: #required
consumerGroupId: #required

## @extra global.eventBroker.kafka Configuration related to the Kafka event broker.
## @param global.eventBroker.kafka.securityProtocol The security protocol to be used for the Kafka broker. Options: "PLAINTEXT", "SASL_SSL", "SASL_PLAINTEXT", "SSL".
kafka:
securityProtocol: #required
type: "NONE"

sdp:

Expand All @@ -27,6 +20,7 @@ sdp:
domain: #required
mtnDomain: #required

## @param sdp.configMap.data.ENABLE_SCHEDULER Whether the scheduled jobs are enabled in this instance ("true" or "false"). Setting to "true" because broker type is `NONE`.
## @param sdp.configMap.data.EC256_PUBLIC_KEY [string] The EC256 public key used for authentication purposes.
## @param sdp.configMap.data.SEP10_SIGNING_PUBLIC_KEY Anchor platform SEP10 signing public key.
## @param sdp.configMap.data.DISTRIBUTION_PUBLIC_KEY The public key of the Stellar distribution account that sends the Stellar payments.
Expand All @@ -35,6 +29,7 @@ sdp:
configMap:
annotations:
data:
ENABLE_SCHEDULER: "true"
EC256_PUBLIC_KEY: #required
SEP10_SIGNING_PUBLIC_KEY: #required
DISTRIBUTION_PUBLIC_KEY: #required
Expand All @@ -48,10 +43,12 @@ sdp:
## @param sdp.kubeSecrets.data.ANCHOR_PLATFORM_OUTGOING_JWT_SECRET The JWT secret used to create a JWT token used to send requests to the anchor platform.
## @param sdp.kubeSecrets.data.DATABASE_URL URL of the database used by the SDP.
## @param sdp.kubeSecrets.data.DISTRIBUTION_SEED The private key of the Stellar account used to disburse funds. This is needed for the init container
## @param sdp.kubeSecrets.data.DISTRIBUTION_ACCOUNT_ENCRYPTION_PASSPHRASE The private key used to encrypt the distribution accounts secrets in the database, mandatory when DISTRIBUTION_SIGNER_TYPE is set to DISTRIBUTION_ACCOUNT_DB.
## @param sdp.kubeSecrets.data.CHANNEL_ACCOUNT_ENCRYPTION_PASSPHRASE The private key used to encrypt the channel account secrets in the database.
## @param sdp.kubeSecrets.data.ADMIN_ACCOUNT The ID of the admin account. To use, add to the request header as 'Authorization', formatted as Base64-encoded 'ADMIN_ACCOUNT:ADMIN_API_KEY'.",
## @param sdp.kubeSecrets.data.ADMIN_API_KEY The API key for the admin account. To use, add to the request header as 'Authorization', formatted as Base64-encoded 'ADMIN_ACCOUNT:ADMIN_API_KEY'.",
kubeSecrets:
secretName: sdp
create: true
data:
EC256_PRIVATE_KEY: #required
Expand All @@ -61,6 +58,7 @@ sdp:
ANCHOR_PLATFORM_OUTGOING_JWT_SECRET: #required for mySdpToAnchorPlatformSecret
DATABASE_URL: #required
DISTRIBUTION_SEED: #required
DISTRIBUTION_ACCOUNT_ENCRYPTION_PASSPHRASE: #required
CHANNEL_ACCOUNT_ENCRYPTION_PASSPHRASE: #required
ADMIN_ACCOUNT: #required
ADMIN_API_KEY: #required
Expand Down Expand Up @@ -88,6 +86,7 @@ anchorPlatform:
## @param anchorPlatform.kubeSecrets.data.SECRET_SEP24_INTERACTIVE_URL_JWT_SECRET The JWT secret used by the Anchor Platform to sign SEP-24 interactive URLs. These URLs typically initiate user-interactive processes like deposits and withdrawals.
## @param anchorPlatform.kubeSecrets.data.SECRET_SEP24_MORE_INFO_URL_JWT_SECRET The JWT secret used by the Anchor Platform to sign SEP-24 'More Info' URLs. These URLs provide users with additional details or steps related to their transactions.
kubeSecrets:
secretName: sdp-ap
create: true
data:
SECRET_DATA_PASSWORD: #required
Expand All @@ -111,12 +110,15 @@ tss:

## @param tss.kubeSecrets.data.DATABASE_URL URL of the database used by the TSS.
## @param tss.kubeSecrets.data.DISTRIBUTION_SEED The private key of the Stellar account used to disburse funds.
## @param tss.kubeSecrets.data.DISTRIBUTION_ACCOUNT_ENCRYPTION_PASSPHRASE The private key used to encrypt the distribution accounts secrets in the database, mandatory when DISTRIBUTION_SIGNER_TYPE is set to DISTRIBUTION_ACCOUNT_DB.
## @param tss.kubeSecrets.data.CHANNEL_ACCOUNT_ENCRYPTION_PASSPHRASE The private key used to encrypt the channel account secrets in the database.
kubeSecrets:
secretName: sdp-tss
create: true
data:
DATABASE_URL: #required
DISTRIBUTION_SEED: #required
DISTRIBUTION_ACCOUNT_ENCRYPTION_PASSPHRASE: #required
CHANNEL_ACCOUNT_ENCRYPTION_PASSPHRASE: #required

dashboard:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ metadata:
{{- if .Values.sdp.kubeSecrets.data }}
data:
{{- range $key, $value := .Values.sdp.kubeSecrets.data }}
{{ $key }}: {{ $value | b64enc | quote }}
{{- if $value }}
{{ $key }}: {{ $value | b64enc | quote }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ metadata:
{{- toYaml .Values.anchorPlatform.kubeSecrets.annotations | nindent 4 }}
{{- end }}

{{- if .Values.anchorPlatform.configMap.data }}
{{- if .Values.anchorPlatform.kubeSecrets.data }}
data:
{{- range $key, $value := .Values.anchorPlatform.configMap.data }}
{{ $key }}: {{ $value | b64enc | quote }}
{{- range $key, $value := .Values.anchorPlatform.kubeSecrets.data }}
{{- if $value }}
{{ $key }}: {{ $value | b64enc | quote }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ metadata:
{{- if .Values.tss.kubeSecrets.data }}
data:
{{- range $key, $value := .Values.tss.kubeSecrets.data }}
{{ $key }}: {{ $value | b64enc | quote }}
{{- if $value }}
{{ $key }}: {{ $value | b64enc | quote }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit a2e4495

Please sign in to comment.