In the handbook
Handbook/Operate

THE BLUEPRINT HANDBOOK 4 min read

Secrets & configuration

Set production secrets and tune each service's resources.

Operating notes for a personal platform. Its repository is private, so read these as a reference: the commands need access that only its owner has.

Push production secrets

Put single-line KEY=value entries in your project's gitignored .env.production. Run the Blueprint helper from the project repository. Use the path to your own Blueprint checkout if it differs.

Terminal · project repository
~/Work/blueprint/bin/secrets push

Secret Manager is the source of truth. The helper uploads new or changed values. It skips DATABASE_URL when the platform manages it. Never add that URL to the file.

The platform's current status record says this helper has only been tested against a stand-in. After the first real push, verify the secrets exist using your project values.

Terminal
gcloud secrets list --project "$GCP_PROJECT" \
  --filter "labels.project=$PROJECT"

Set up another machine

Terminal · project repository
~/Work/blueprint/bin/secrets pull

This recreates .env.production with file permissions limited to your user. It refuses to overwrite an existing file unless you pass --force. Platform-managed secrets stay out of the file. Removing a line from the file does not delete its Secret Manager entry.

Configure a service

Add overrides to the module "services" block in your project's infra/main.tf. Keys are app folder names.

infra/main.tf · inside module services
overrides = {
  web = {
    cpu           = "1"
    memory        = "1Gi"
    max_instances = 2
    public        = true
    env = {
      LOG_LEVEL = "info"
    }
  }
}

Use env for plain settings only. Defaults are 1 CPU, 512 MiB of memory, a maximum of 2 instances, and public access. Setting public = false requires callers to authenticate with Google IAM.

Open a feat: or fix: PR when the change needs a release. Review the infrastructure plan and deploy through the release PR. A chore: change alone will wait until the next feature or fix release.

Keep database pools small

The shared Postgres instance allows 25 connections across all projects. Use a pool of one or two connections per app instance. Raising max_instances raises the number of possible database connections too.

Request a database with database = true in Blueprint's project list, through a platform PR and reviewed apply. Your project receives DATABASE_URL from Secret Manager. Run migrations when the container starts, using your migration tool's concurrency controls.

Based on Blueprint's configuration, workflows and operating guides.
Reviewed October 4, 2026.