Sign in to create and edit playbooks. Sign In Register

Define Config & Secrets

DTA-13 Order: #13 Inception Has Dependencies

Updated 4 months ago

Guidance

Define Config & Secrets

Objective

Define environment configuration strategy, secrets management, feature flag approach, and per-environment overrides.


Decisions to Make

1. Environment Configuration

  • Config source: Environment variables, config files (.env, YAML, TOML), Django settings
  • Per-environment overrides: How do dev/staging/prod configs differ?
  • Config validation: Are required configs validated at startup?
  • Config documentation: Where are all config options documented?

Example patterns:

# .env file (local)
DEBUG=True
DATABASE_URL=sqlite:///db.sqlite3
SECRET_KEY=dev-only-key

# Production (env vars from secrets manager)
DEBUG=False
DATABASE_URL=postgresql://...
SECRET_KEY=<from-vault>

2. Secrets Management

Choose approach:
- Environment variables — Simple, works everywhere. Risk: leakage in logs/errors.
- Secrets manager — AWS Secrets Manager, HashiCorp Vault, Azure Key Vault. Best for: production.
- Sealed secrets — Encrypted in Git, decrypted in cluster. Best for: GitOps.
- .env files — Local only, gitignored. Best for: development.
- Django's SECRET_KEY rotation — How often? How to rotate without downtime?

3. Feature Flags

  • Approach: Config-based, database-based, external service (LaunchDarkly, Unleash)
  • Flag types: Boolean (on/off), percentage rollout, user segment
  • Management: Who can toggle flags? Via UI, CLI, API?
  • Cleanup: How are stale flags removed?

4. Scan Skills

Query Playbook Skills where capability_domain in:
- CONFIG_ENV
- CONFIG_SECRETS
- CONFIG_FLAGS

Report coverage and gaps.


Deliverables

  • Environment configuration strategy defined
  • Secrets management approach chosen
  • Feature flag approach defined (if applicable)
  • Skill coverage assessed for this domain
  • Decision recorded for inclusion in SAO.md (DTA-18)
Details
Order:
#13
Phase:
Predecessor:
DTA-12 Define Observability
Created:
Apr 12, 2026
Last Updated:
May 21, 2026
Workflow
Define Architecture

Analyze ESM artifacts, make architectural decisions across 16 domains (application structure through documentation strategy), scan available Skills for coverage, and …

View Workflow
Assigned Agent
Dr. Dobbs v2

Cautious Developer Agent Guide Motto: "Code that's easy to prove correct is code that works" …

Required Skills

No skills linked

Rules

No rules linked.

Input Artifacts

No input artifacts

Output Artifacts

No output artifacts