Skip to content

Commit 2a5ec31

Browse files
authored
✨ Add Cheqd services to Dev Helm configuration (#1565)
* ✨ Add DID services to Helm configuration Add DID registrar, resolver, and cheqd driver configs to Helmfile. * Add configuration files for the new services in dev environment * Update list of releases in `acapy-cloud.yaml.gotmpl` * Update comment wording in did-resolver configuration * Preserve original case in secret keys instead of converting to UPPER_SNAKE_CASE * 🔇 Universal Registrar Log Levels * Set to `WARN` * 🔧 Set Cheqd DID Resolver log level * 🔇 Disable Spring Boot banner * 🔧 Better Testnet Mnemonic in Dev * 📌 Switch to official Cheqd did-registrar Replace fork `didx-xyz/cheqd-did-registrar` with the official `cheqd/did-registrar` repository and pin the version to `2.4.6-1-ga6af3d5` instead of using `production-latest` tag. This change follows the merge of our required changes to the upstream repository. * 🐛
1 parent c875965 commit 2a5ec31

File tree

9 files changed

+175
-13
lines changed

9 files changed

+175
-13
lines changed

helm/acapy-cloud.yaml.gotmpl

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,49 @@ releases:
189189
- ingress:
190190
{{ toYaml . | nindent 10 }}
191191
{{- end }}
192+
193+
# https://github.com/decentralized-identity/universal-registrar
194+
- name: did-registrar
195+
labels:
196+
app: did-registrar
197+
namespace: {{ .Values.namespace }}
198+
chart: ./acapy-cloud
199+
version: 0.2.0
200+
values:
201+
- ./acapy-cloud/conf/{{ .Environment.Name }}/did-registrar.yaml
202+
- deploymentLabels:
203+
tags.datadoghq.com/env: acapy-cloud-{{ .Environment.Name }}
204+
podLabels:
205+
admission.datadoghq.com/enabled: "false"
206+
tags.datadoghq.com/env: acapy-cloud-{{ .Environment.Name }}
207+
# https://github.com/cheqd/did-resolver
208+
- name: did-resolver
209+
labels:
210+
app: did-resolver
211+
namespace: {{ .Values.namespace }}
212+
chart: ./acapy-cloud
213+
version: 0.2.0
214+
values:
215+
- ./acapy-cloud/conf/{{ .Environment.Name }}/did-resolver.yaml
216+
- deploymentLabels:
217+
tags.datadoghq.com/env: acapy-cloud-{{ .Environment.Name }}
218+
podLabels:
219+
admission.datadoghq.com/enabled: "false"
220+
tags.datadoghq.com/env: acapy-cloud-{{ .Environment.Name }}
221+
# https://github.com/cheqd/did-registrar
222+
- name: driver-did-cheqd
223+
labels:
224+
app: driver-did-cheqd
225+
namespace: {{ .Values.namespace }}
226+
chart: ./acapy-cloud
227+
version: 0.2.0
228+
values:
229+
- ./acapy-cloud/conf/{{ .Environment.Name }}/driver-did-cheqd.yaml
230+
- deploymentLabels:
231+
tags.datadoghq.com/env: acapy-cloud-{{ .Environment.Name }}
232+
podLabels:
233+
admission.datadoghq.com/enabled: "false"
234+
tags.datadoghq.com/env: acapy-cloud-{{ .Environment.Name }}
192235
---
193236
repositories:
194237
- name: redpanda
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
fullnameOverride: did-registrar
2+
3+
replicaCount: 1
4+
5+
podAnnotations:
6+
sidecar.istio.io/proxyCPU: 10m
7+
8+
image:
9+
registry: docker.io
10+
name: universalregistrar/uni-registrar-web
11+
pullPolicy: Always
12+
tag: latest
13+
## Multi-Arch Digest
14+
digest: sha256:f94053ab9b7ee8104f88bc9ecceeb0353455a9559ec1ab933f9fab7588d67f16
15+
## If things start breaking, this is a known good SHA but isn't Multi-Arch
16+
# digest: sha256:d02207a156cb97dd79d3515bc90a963d12660c4ca82382f77ae6b5d32351267f
17+
18+
env:
19+
# Disable the Spring Boot banner
20+
SPRING_MAIN_BANNER-MODE: off
21+
## Be very careful, this can do _a lot_ of logging
22+
## Valid levels are: TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF
23+
LOGGING_LEVEL_ROOT: WARN
24+
LOGGING_LEVEL_uniregistrar: WARN
25+
service:
26+
appProtocol: http
27+
port: 9080
28+
containerPort: 9080
29+
30+
livenessProbe:
31+
tcpSocket:
32+
port: 9080
33+
readinessProbe:
34+
tcpSocket:
35+
port: 9080
36+
startupProbe:
37+
tcpSocket:
38+
port: 9080
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
fullnameOverride: did-resolver
2+
3+
replicaCount: 1
4+
5+
podAnnotations:
6+
sidecar.istio.io/proxyCPU: 10m
7+
8+
image:
9+
registry: ghcr.io
10+
name: cheqd/did-resolver
11+
pullPolicy: Always
12+
tag: 3.7.7
13+
14+
service:
15+
appProtocol: http
16+
port: 8080
17+
containerPort: 8080
18+
19+
livenessProbe:
20+
tcpSocket:
21+
port: 8080
22+
readinessProbe:
23+
tcpSocket:
24+
port: 8080
25+
startupProbe:
26+
tcpSocket:
27+
port: 8080
28+
29+
env:
30+
# Syntax: <grpc-endpoint-url:port>,boolean,time
31+
# 1st parameter is gRPC endpoint
32+
# 2nd (Boolean) parameter is whether or not to use TLS
33+
# 3rd connection timeout
34+
# MAINNET_ENDPOINT: grpc.cheqd.net:443,true,5s
35+
TESTNET_ENDPOINT: grpc.cheqd.network:443,true,5s
36+
37+
RESOLVER_LISTENER: 0.0.0.0:8080
38+
LOG_LEVEL: warn
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
fullnameOverride: driver-did-cheqd
2+
3+
replicaCount: 1
4+
5+
podAnnotations:
6+
sidecar.istio.io/proxyCPU: 10m
7+
8+
image:
9+
registry: ghcr.io
10+
name: cheqd/did-registrar
11+
pullPolicy: Always
12+
tag: 2.4.6-1-ga6af3d5
13+
14+
service:
15+
appProtocol: http
16+
port: 3000
17+
containerPort: 3000
18+
19+
livenessProbe:
20+
tcpSocket:
21+
port: 3000
22+
readinessProbe:
23+
tcpSocket:
24+
port: 3000
25+
startupProbe:
26+
tcpSocket:
27+
port: 3000
28+
29+
secretData: {}
30+
# FEE_PAYER_TESTNET_MNEMONIC: "" # Cheqd did-registrar uses testnet faucet by default
31+
# FEE_PAYER_MAINNET_MNEMONIC: "..."
32+
33+
env:
34+
FEE_PAYER_TESTNET_MNEMONIC:
35+
valueFrom:
36+
secretKeyRef:
37+
name: cheqd-testnet-mnemonic
38+
key: mnemonic

helm/acapy-cloud/conf/local/did-registrar.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ image:
1515
## If things start breaking, this is a known good SHA but isn't Multi-Arch
1616
# digest: sha256:d02207a156cb97dd79d3515bc90a963d12660c4ca82382f77ae6b5d32351267f
1717

18+
env:
19+
# Disable the Spring Boot banner
20+
SPRING_MAIN_BANNER-MODE: off
21+
## Be very careful, this can do _a lot_ of logging
22+
## Valid levels are: TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF
23+
LOGGING_LEVEL_ROOT: WARN
24+
LOGGING_LEVEL_uniregistrar: WARN
25+
1826
service:
1927
appProtocol: http
2028
port: 9080

helm/acapy-cloud/conf/local/did-resolver.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ startupProbe:
2929
env:
3030
# Syntax: <grpc-endpoint-url:port>,boolean,time
3131
# 1st parameter is gRPC endpoint
32-
# 2nd (Boolean) parameter is whether to use TLS or not
33-
# 3nd connection timeout
34-
# MAINNET_ENDPOINT: "grpc.cheqd.net:443,true,5s"
35-
TESTNET_ENDPOINT: "grpc.cheqd.network:443,true,5s"
32+
# 2nd (Boolean) parameter is whether or not to use TLS
33+
# 3rd connection timeout
34+
# MAINNET_ENDPOINT: grpc.cheqd.net:443,true,5s
35+
TESTNET_ENDPOINT: grpc.cheqd.network:443,true,5s
3636

37-
RESOLVER_LISTENER: "0.0.0.0:8080"
38-
RESOLVER_LOG_LEVEL: "warn"
37+
RESOLVER_LISTENER: 0.0.0.0:8080
38+
LOG_LEVEL: warn

helm/acapy-cloud/conf/local/driver-did-cheqd.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,9 @@ podAnnotations:
77

88
image:
99
registry: ghcr.io
10-
## Temporarily point to our fork
11-
## pending merge/release of https://github.com/cheqd/did-registrar/pull/427
12-
name: didx-xyz/cheqd-did-registrar
13-
# name: cheqd/did-registrar
10+
name: cheqd/did-registrar
1411
pullPolicy: Always
15-
tag: production-latest
12+
tag: 2.4.6-1-ga6af3d5
1613

1714
service:
1815
appProtocol: http

helm/acapy-cloud/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ spec:
171171
- name: "{{ .name }}"
172172
securityContext:
173173
{{- toYaml .securityContext | nindent 10 }}
174-
image: "{{ .image.repository | default $.Values.image.repository }}:{{ .image.tag | default $.Values.image.tag }}{{ if .image.digest }}@{{ .image.digest }}{{ end }}"
174+
image: "{{ .image.registry | default $.Values.image.registry }}/{{ .image.name | default $.Values.image.name }}:{{ .image.tag | default $.Values.image.tag }}{{ if .image.digest }}@{{ .image.digest }}{{ end }}"
175175
imagePullPolicy: {{ .image.pullPolicy | default $.Values.image.pullPolicy }}
176176
ports:
177177
- name: "{{ trunc 15 .name }}"

helm/acapy-cloud/templates/secret.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ metadata:
88
type: Opaque
99
stringData:
1010
{{- range $key, $value := .Values.secretData }}
11-
{{ upper (snakecase $key) }}: {{ tpl (toString $value) $ | quote }}
11+
{{ $key }}: {{ tpl (toString $value) $ | quote }}
1212
{{- end }}
1313
{{- end }}

0 commit comments

Comments
 (0)