Skip to content

Commit

Permalink
Deploy Attestation Service 1.0.5 to cLabs validators on baklava (#5440)
Browse files Browse the repository at this point in the history
### Description

* Bump Attestation Service version to 1.0.5
* New Twilio secrets for new Twilio app
* New Nexmo applications configured. Right now, we've configured 15, so that the first 15 of 30 correctly get Delivery info. Can extend this later. There is a per month $ fee for the numbers reserved for each application.

### Other changes

_Describe any minor or "drive-by" changes here._

### Tested

Deployed

### Backwards compatibility

Yes
  • Loading branch information
timmoreton authored Oct 20, 2020
1 parent d82f801 commit 1961a55
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .env.baklava
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
ENV_TYPE="production"

GETH_VERBOSITY=2
GETH_ENABLE_METRICS=false

VM_BASED=true

Expand Down Expand Up @@ -76,7 +77,10 @@ EKSPORTISTO_DOCKER_IMAGE_TAG="b199a634866ef34c4fa1925381dff4de40eb0a3c"
EKSPORTISTO_SUFFIX='1'

ATTESTATION_SERVICE_DOCKER_IMAGE_REPOSITORY="us.gcr.io/celo-testnet/celo-monorepo"
ATTESTATION_SERVICE_DOCKER_IMAGE_TAG="attestation-service-dc5e5dfa07231a4ff4664816a95eae606293eae9"
ATTESTATION_SERVICE_DOCKER_IMAGE_TAG="attestation-service-1-0-5"

# We only configured 15 nexmo applications. So delivery receipts from the second 15 will always go to the wrong place for now
NEXMO_APPLICATIONS=ef341798-ab17-4029-8e35-eb574aaf3a59,dfffa813-14a9-4788-a920-9ba3ea6b954f,e4dec04f-9f80-4cdf-b640-db1a5ce6f891,089bad07-739a-45e5-a0ab-c24de477cfd2,fa5fad11-5a18-4f46-954b-250915003fa6,5c53815b-658e-415b-a6e2-709cc099b5da,0b494350-524d-4e0e-8b96-96e7f6d79e62,5e5fed3e-841f-4b09-b17c-c54dfea16493,2b537eeb-8409-4477-8922-c4f1a112b8d8,9870cd94-4281-45b5-b292-c0249632126b,1fdb10b6-45c0-4555-816b-2c11007286c1,1b1f3644-8e3c-47fb-af3f-49c44c133a7e,fba4f241-14ad-402a-a871-073e40eb8b48,2cec3a9e-cdbb-4f11-ad25-d83abd23e299,e6c77355-7113-4e57-b825-17078dec0c31,ef341798-ab17-4029-8e35-eb574aaf3a59,dfffa813-14a9-4788-a920-9ba3ea6b954f,e4dec04f-9f80-4cdf-b640-db1a5ce6f891,089bad07-739a-45e5-a0ab-c24de477cfd2,fa5fad11-5a18-4f46-954b-250915003fa6,5c53815b-658e-415b-a6e2-709cc099b5da,0b494350-524d-4e0e-8b96-96e7f6d79e62,5e5fed3e-841f-4b09-b17c-c54dfea16493,2b537eeb-8409-4477-8922-c4f1a112b8d8,9870cd94-4281-45b5-b292-c0249632126b,1fdb10b6-45c0-4555-816b-2c11007286c1,1b1f3644-8e3c-47fb-af3f-49c44c133a7e,fba4f241-14ad-402a-a871-073e40eb8b48,2cec3a9e-cdbb-4f11-ad25-d83abd23e299,e6c77355-7113-4e57-b825-17078dec0c31

GETH_EXPORTER_DOCKER_IMAGE_REPOSITORY="gcr.io/celo-testnet-production/geth-exporter"
GETH_EXPORTER_DOCKER_IMAGE_TAG="ed7d21bd50592709173368cd697ef73c1774a261"
Expand Down
Binary file modified .env.mnemonic.baklava.enc
Binary file not shown.
3 changes: 3 additions & 0 deletions packages/celotool/src/lib/attestation-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ async function helmParameters(celoEnv: string) {
envVar.ATTESTATION_SERVICE_DOCKER_IMAGE_REPOSITORY
)}`,
`--set attestation_service.image.tag=${fetchEnv(envVar.ATTESTATION_SERVICE_DOCKER_IMAGE_TAG)}`,
`--set attestation_service.twilio.accountSid="${fetchEnv(envVar.TWILIO_ACCOUNT_SID)}"`,
`--set attestation_service.twilio.authToken="${fetchEnv(envVar.TWILIO_ACCOUNT_AUTH_TOKEN)}"`,
`--set attestation_service.twilio.addressSid="${fetchEnv(envVar.TWILIO_ADDRESS_SID)}"`,
`--set attestation_service.nexmo.apiKey="${fetchEnv(envVar.NEXMO_KEY)}"`,
`--set attestation_service.nexmo.apiSecret="${fetchEnv(envVar.NEXMO_SECRET)}"`,
...setHelmArray('attestation_service.nexmo.applications', fetchEnv(envVar.NEXMO_APPLICATIONS).split(',')),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ type: Opaque
data:
NEXMO_KEY: {{ .Values.attestation_service.nexmo.apiKey | b64enc | quote }}
NEXMO_SECRET: {{ .Values.attestation_service.nexmo.apiSecret | b64enc | quote }}
MNEMONIC: {{ .Values.mnemonic | b64enc | quote }}
MNEMONIC: {{ .Values.mnemonic | b64enc | quote }}
TWILIO_ACCOUNT_SID: {{ .Values.attestation_service.twilio.accountSid | b64enc }}
TWILIO_AUTH_TOKEN: {{ .Values.attestation_service.twilio.authToken | b64enc }}
TWILIO_MESSAGING_SERVICE_SID: {{ .Values.attestation_service.twilio.addressSid | b64enc }}

0 comments on commit 1961a55

Please sign in to comment.