Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
node_modules/
k8s/secrets.local.yaml

# Internal Claude Code skills
.claude/
10 changes: 7 additions & 3 deletions k8s/data/minio-secret.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# MinIO root credentials — local dev only.
# MinIO root credentials — legacy local-dev path (in-cluster MinIO retired
# 2026-05-20). Operators MUST replace placeholders before applying. Local-dev
# convenience values were here historically; OSS publication requires
# placeholders so a fresh clone cannot accidentally come up with the same
# credentials as every other clone.
# Apply: kubectl apply -f data/minio-secret.yaml
# The API pod reads these same values from instant-secrets (instant namespace).
apiVersion: v1
Expand All @@ -8,5 +12,5 @@ metadata:
namespace: instant-data
type: Opaque
stringData:
MINIO_ROOT_USER: "minioadmin"
MINIO_ROOT_PASSWORD: "minioadmin123"
MINIO_ROOT_USER: "CHANGE_ME"
MINIO_ROOT_PASSWORD: "CHANGE_ME"
18 changes: 18 additions & 0 deletions k8s/data/mongodb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,21 @@ spec:
ports:
- port: 27017
targetPort: 27017

---
# Secret consumed by provisioner deployment as MONGO_ADMIN_URI (added 2026-05-21
# for OSS prep — was previously inlined in provisioner/deployment.yaml).
# Operators MUST replace placeholders. The URI format is:
# mongodb://<user>:<password>@mongodb.instant-data.svc.cluster.local:27017
# where <user>/<password> match MONGO_INITDB_ROOT_USERNAME/PASSWORD set on
# the mongodb StatefulSet (see the env vars above in this same file once you
# template them).
apiVersion: v1
kind: Secret
metadata:
name: mongodb-admin
namespace: instant-data
type: Opaque
stringData:
MONGO_ADMIN_URI: "CHANGE_ME"

10 changes: 9 additions & 1 deletion k8s/provisioner/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,16 @@ spec:
value: "k8s"
- name: REDIS_PROVISION_HOST
value: "redis-provision.instant-data.svc.cluster.local:6379"
# MONGO_ADMIN_URI was historically inlined here as
# `mongodb://root:root@...` for local-dev convenience. For OSS
# publication it is sourced from a Secret so the manifest contains
# no credentials. Operators MUST create the secret before applying;
# see infra/k8s/data/mongodb.yaml for the matching Secret template.
- name: MONGO_ADMIN_URI
value: "mongodb://root:root@mongodb.instant-data.svc.cluster.local:27017"
valueFrom:
secretKeyRef:
name: mongodb-admin
key: MONGO_ADMIN_URI
- name: MONGO_HOST
value: "mongodb.instant-data.svc.cluster.local:27017"
- name: PROVISIONER_SECRET
Expand Down
14 changes: 9 additions & 5 deletions k8s/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ metadata:
namespace: instant
type: Opaque
stringData:
PLATFORM_DB_PASSWORD: instant
CUSTOMER_DB_PASSWORD: instant_cust
# Local-dev convenience values were here historically. For OSS publication
# every credential is CHANGE_ME — operators MUST replace before applying.
PLATFORM_DB_PASSWORD: "CHANGE_ME"
CUSTOMER_DB_PASSWORD: "CHANGE_ME"
# New Relic license key — rotate via kubectl patch (see comment at top of file).
# Empty/CHANGE_ME means the Go agent fails open and logs a warning at startup.
NEW_RELIC_LICENSE_KEY: "CHANGE_ME"
Expand Down Expand Up @@ -49,9 +51,11 @@ stringData:
R2_API_TOKEN: "CHANGE_ME"
R2_ENDPOINT: "CHANGE_ME"
R2_BUCKET_NAME: "CHANGE_ME"
# MinIO credentials (same values as in infra/k8s/data/minio-secret.yaml)
MINIO_ROOT_USER: "minioadmin"
MINIO_ROOT_PASSWORD: "minioadmin123"
# MinIO credentials (same values as in infra/k8s/data/minio-secret.yaml).
# Used only by the legacy self-hosted MinIO Deployment, which was retired
# 2026-05-20 in favour of DigitalOcean Spaces. Operators MUST replace.
MINIO_ROOT_USER: "CHANGE_ME"
MINIO_ROOT_PASSWORD: "CHANGE_ME"
# Comma-separated list of admin user emails (case-insensitive). Empty
# / unset → admin endpoints reject every caller (closed-by-default).
# Read by api/internal/middleware/admin.go on every request, no app
Expand Down
Loading