Skip to content

refactor: simplify env configuration workflow#8

Merged
cfchase merged 1 commit into
mainfrom
refactor/cleanup-config
Feb 19, 2026
Merged

refactor: simplify env configuration workflow#8
cfchase merged 1 commit into
mainfrom
refactor/cleanup-config

Conversation

@cfchase
Copy link
Copy Markdown
Owner

@cfchase cfchase commented Feb 19, 2026

Summary

  • Consolidates 14 per-service .env.*.example files into 2 single .env.example files (one per environment: config/local/ and config/dev/)
  • Rewrites generate-config.sh to never mutate user-edited .env files — auto-generated secrets go directly into deployment artifacts (k8s overlays, Helm secrets)
  • Unifies Makefile config targets: bare name = local (config-setup, config-reset), -cluster suffix = cluster deployment (config-setup-cluster, config-reset-cluster)
  • Adds LANGFUSE_INIT_USER_PASSWORD to .env.example so users can set their own password (auto-generates if empty)
  • Wires deploy.sh admin-credentials to use the Langfuse password from user's .env
  • Fixes Langflow→Langfuse tracing: deploy-langflow.sh now reads API keys from generated secrets-dev.yaml instead of expecting them in the user's .env
  • Reorders deploy steps: namespace → secrets → PostgreSQL → Langfuse → MLflow → Langflow → App (dependencies before dependents)
  • Updates all dev scripts, deploy scripts, and documentation to reference consolidated config

Test plan

  • make config-reset && make config-setup creates config/local/.env from example and syncs to backend/.env
  • make config-setup-cluster creates config/dev/.env from example
  • make config-generate generates k8s overlay .env files and helm/langfuse/secrets-dev.yaml
  • make deploy deploys all components in correct order (Langfuse before Langflow)
  • Langfuse login works with password from config/dev/.env
  • Langflow traces appear in Langfuse after running a flow
  • make get-admin-credentials shows correct Langfuse credentials

🤖 Generated with Claude Code

@cfchase cfchase force-pushed the refactor/cleanup-config branch from 0a37bb8 to f1b7fa4 Compare February 19, 2026 03:53
…dling

Consolidate per-service .env files into single .env per environment,
reorder deploy dependencies, and improve error handling across scripts.

- Consolidate config/dev/.env.* files into single config/dev/.env
- Reorder deploy: namespace → postgres → langfuse → mlflow → langflow → app
- Fix undeploy to reverse deploy dependency order
- Allow user-settable LANGFUSE_INIT_USER_PASSWORD in .env
- Auto-inject Langfuse API keys from secrets-dev.yaml into Langflow
- Validate eval-based secret generation output (fail on empty)
- Add openssl fallback for admin password generation
- Make envsubst a hard requirement (remove eval fallback)
- Improve rollout status and RBAC error reporting
- Fix stale comments referencing removed per-service config vars

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cfchase cfchase force-pushed the refactor/cleanup-config branch from b167b1c to 22cc662 Compare February 19, 2026 04:15
@cfchase cfchase merged commit 3451bd5 into main Feb 19, 2026
4 checks passed
@cfchase cfchase deleted the refactor/cleanup-config branch February 19, 2026 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant