summaryrefslogtreecommitdiffhomepage
path: root/infra
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-11-23 14:36:25 -0500
committerDax Raad <[email protected]>2025-11-23 14:36:36 -0500
commit38b70f78774d0dae6e30d8c05adc99664582e743 (patch)
treece1fa0a93fca32c878ed5760b18edccc28159071 /infra
parent5e112a17a585929b2163bd1b2a0025687f50d3ab (diff)
downloadopencode-38b70f78774d0dae6e30d8c05adc99664582e743.tar.gz
opencode-38b70f78774d0dae6e30d8c05adc99664582e743.zip
ci: secret
Diffstat (limited to 'infra')
-rw-r--r--infra/enterprise.ts5
-rw-r--r--infra/secret.ts4
2 files changed, 7 insertions, 2 deletions
diff --git a/infra/enterprise.ts b/infra/enterprise.ts
index 71acf20b3..8da0ba19b 100644
--- a/infra/enterprise.ts
+++ b/infra/enterprise.ts
@@ -1,3 +1,4 @@
+import { SECRET } from "./secret"
import { domain } from "./stage"
const storage = new sst.cloudflare.Bucket("EnterpriseStorage")
@@ -7,8 +8,8 @@ const enterprise = new sst.cloudflare.x.SolidStart("Enterprise", {
environment: {
OPENCODE_STORAGE_ADAPTER: "r2",
OPENCODE_STORAGE_ACCOUNT_ID: sst.cloudflare.DEFAULT_ACCOUNT_ID,
- OPENCODE_STORAGE_ACCESS_KEY_ID: "---",
- OPENCODE_STORAGE_SECRET_ACCESS_KEY: "---",
+ OPENCODE_STORAGE_ACCESS_KEY_ID: SECRET.R2AccessKey.value,
+ OPENCODE_STORAGE_SECRET_ACCESS_KEY: SECRET.R2SecretKey.value,
OPENCODE_STORAGE_BUCKET: storage.name,
},
})
diff --git a/infra/secret.ts b/infra/secret.ts
new file mode 100644
index 000000000..0b1870fa1
--- /dev/null
+++ b/infra/secret.ts
@@ -0,0 +1,4 @@
+export const SECRET = {
+ R2AccessKey: new sst.Secret("R2AccessKey", "unknown"),
+ R2SecretKey: new sst.Secret("R2SecretKey", "unknown"),
+}