Commit 1b3b026 1 parent d3a01db commit 1b3b026 Copy full SHA for 1b3b026
File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ set -euo pipefail
5
5
6
6
db_username=$( gcloud secrets versions access latest --secret db-username)
7
7
db_password=$( gcloud secrets versions access latest --secret db-password)
8
+ packages_password=$( gcloud secrets versions access latest --secret packages-darklang-com-auth-password)
8
9
db_host=pub-us-central1.1c39714c-062a-40f3-b7ba-e320fce7ca3d.gcp.ybdb.io
9
10
db_port=5433
10
11
db_name=yugabyte
@@ -57,7 +58,7 @@ run_canvas_hack() {
57
58
DARK_CONFIG_TELEMETRY_EXPORTER=none \
58
59
DARK_CONFIG_ROLLBAR_ENABLED=n \
59
60
DARK_CONFIG_LAUNCHDARKLY_SDK_API_KEY=none \
60
- backend/Build/out/CanvasHack/Debug/net8.0/CanvasHack " $1 "
61
+ backend/Build/out/CanvasHack/Debug/net8.0/CanvasHack " $@ "
61
62
}
62
63
63
64
@@ -84,7 +85,7 @@ case $1 in
84
85
# Must install the packages before adding the canvases or they'll fail in the name resolver
85
86
4)
86
87
echo " 4. Add canvas"
87
- run_canvas_hack dark-packages
88
+ run_canvas_hack load-from-disk dark-packages " AUTH_PASSWORD= $packages_password "
88
89
canvasID=' 11111111-1111-1111-1111-111111111112'
89
90
domain=' packages.darklang.com'
90
91
exec_sql " INSERT INTO domains_v0 (canvas_id, domain) VALUES ('$canvasID '::uuid, '$domain ')"
Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ variable "secret_names" {
16
16
" allowed-dark-internal-canvas-ids" ,
17
17
" prodexec-chisel-username" ,
18
18
" prodexec-chisel-password" ,
19
- " prodexec-ssh-password"
19
+ " prodexec-ssh-password" ,
20
+ " packages-darklang-com-auth-password"
20
21
]
21
22
}
22
23
You can’t perform that action at this time.
0 commit comments