Skip to content
Myr

.env.schema

This file

Path

infra/.env.schema

40 lines · 1.9 KiB

Last changed by

Merge infra/drop-demo into mainoscabrielbefore adoptionc49b6bf

History of this file

Take it

1# Tool credentials for infra/ scripts and `bun run ops` (cf). Apps never2# import this file. Values go in infra/.env.local (gitignored), encrypted with3# `varlock encrypt --file infra/.env.local`. Never create a plain infra/.env:4# cf reads .env from its working directory.5#6# @import(../, pick=[APP_ENV])7# @defaultRequired=infer @defaultSensitive=false8# ---910# The Cloudflare account that holds the Workers and Artifacts namespaces.11# @required @type=string(matches=regex("^[0-9a-f]{32}$"))12# @docs(https://developers.cloudflare.com/fundamentals/account/find-account-and-zone-ids/)13CLOUDFLARE_ACCOUNT_ID=1415# An API token for ops calls and infra scripts: the "Read all resources"16# template plus Account › Artifacts › Edit. Writes anywhere else, deploys17# included, go through `wrangler login`, never this token. Its Account ›18# Account Analytics › Read lets smoke read a deploy's Workers Logs through19# the SQL API (`--since`); without it, every deploy's smoke fails.20# @required @sensitive21# @docs(https://developers.cloudflare.com/fundamentals/api/get-started/create-token/)22CLOUDFLARE_API_TOKEN=2324# Where a stage's alerts are sent: one address, entered as each alert's25# email destination. A person makes the alerts by hand (README, Alerts), so26# bootstrap only says whether this is set, and never shows it.27# @type=email28# @docs(https://developers.cloudflare.com/notifications/notification-available/)29ALERT_EMAIL=3031# Telemetry stays off for every tool run through varlock here.32DO_NOT_TRACK=133CF_SEND_TELEMETRY=03435# Nothing here is a person's token. The swarm (`bun run swarm`) signs in as36# the examples' fictional people with apps/platform/.env.schema's37# SESSION_TOKENS, run as `bunx varlock run --path apps/platform/ -- bun38# scripts/swarm.ts …`, so no script or agent reads a `.env*` file. On every39# stage those tokens come from the stage's generated secrets file outside the40# repo (STAGE_SECRETS_FILE).