Examples · Atlas Payments demo project

Example: what production needs before the deploy

A DevOps engineer reads from the project's files which variables production needs, which are secrets and which are unset, and exports the list.

For
DevOps
Time
About 5 minutes
Plan
The Configuration and Structure tabs are free. Export needs Solo Pro or Team.

Atlas Payments is about to deploy to production. Before anyone runs the pipeline, someone has to answer: which variables does prod need, which are secrets, and which are not set yet? The answer is already in the repository, spread over .env.example, Helm values, Spring profiles and docker-compose.

You start with: the Atlas Payments project linked on this computer. Its .env.example documents each variable:

.env.example
# Postgres for payments-api and ledger-service
DATABASE_URL=postgres://atlas@localhost:5432/payments
# Password of the atlas database user
DATABASE_PASSWORD=
# Kafka brokers for the outbox relay and the ledger consumer
KAFKA_BROKERS=localhost:9092
# Acquirer API base URL
ACQUIRER_URL=https://sandbox.acquirer.example/v2
# Key the acquirer gives each merchant account
ACQUIRER_API_KEY=
# Signs outgoing merchant webhooks (HMAC-SHA256)
WEBHOOK_SIGNING_SECRET=
# Hours a webhook is retried before it is marked failed
WEBHOOK_RETRY_HOURS=72

and the Helm values for prod set some of them, with the secrets taken from Kubernetes secrets:

deploy/helm/payments/values-prod.yaml
env:
  - name: DATABASE_URL
    value: postgres://atlas@payments-db.atlas.internal:5432/payments
  - name: KAFKA_BROKERS
    value: kafka-0.atlas.internal:9092,kafka-1.atlas.internal:9092
  - name: ACQUIRER_URL
    value: https://api.acquirer.example/v2
  - name: FRAUD_HOLD_THRESHOLD
    value: "75"
  - name: LOG_LEVEL
    value: warn
  - name: ACQUIRER_API_KEY
    valueFrom:
      secretKeyRef:
        name: acquirer
        key: api-key
  - name: WEBHOOK_SIGNING_SECRET
    valueFrom:
      secretKeyRef:
        name: webhooks
        key: signing-secret

1. Pick the environment#

Open the project's Configuration tab and choose prod. Environments come from file names such as values-prod.yaml and application-prod.yml. Each row is one variable with its value in prod or its default, Required and Secret badges, the description from the comment above it in .env.example, and every file and line that reads it.

The Configuration tab for prod: What to set to deploy prod with three secrets and where each is read, and the variables table with values, hidden secrets, Required and Secret badges, descriptions and the files that read each one

Secrets show as "value hidden". Real .env files and keys are never opened, and a password inside a connection string is never kept.

2. Read the checklist#

What to set to deploy prod, above the table, lists the required variables with no value in prod and every secret, with where each is read. Here that is three secrets, such as the acquirer key and the webhook signing secret that prod takes from Kubernetes. Not set filters the table to the same rows.

3. Export it and check what runs#

Export Markdown gives the list for a ticket or a runbook, Export CSV a spreadsheet. Secret values are never exported. The Structure tab shows what runs: the services from docker-compose and Helm with their images and ports, the modules with their dependencies and the owners from CODEOWNERS.

The Structure tab: docker-compose services with images and ports, modules with their direct dependencies, and the owners of each folder from CODEOWNERS

What you have now#

  • A checklist of what prod needs, read from the repository instead of someone's memory.
  • Who owns each service, for the questions the checklist does not answer.

Read more in Configuration and structure and the deploy checklist tutorial.