Files
motovaultpro/docs/redesign/PHASE-04-CONFIG-CLEANUP.md
Eric Gullickson 046c66fc7d Redesign
2025-11-01 21:27:42 -05:00

2.2 KiB

Phase 4: Configuration Cleanup

Agent Assignment

Primary Agent: config-agent Duration: 20-30 minutes

Prerequisites

  • None (FIRST WAVE - starts immediately)

Objectives

  1. Remove MinIO configuration
  2. Remove platform tenant service configuration
  3. Remove platform API keys
  4. Clean up secrets directory
  5. Simplify environment variables

Step-by-Step Instructions

Step 1: Update config/app/production.yml

Remove these sections:

# REMOVE:
minio:
  endpoint: admin-minio
  port: 9000
  bucket: motovaultpro

platform_tenants:
  api_url: http://mvp-platform-tenants:8000
  api_key: ${PLATFORM_TENANTS_API_KEY}

# UPDATE:
platform_vehicles:
  api_url: http://mvp-platform:8000  # No API key needed (same network)

Step 2: Update .env

# REMOVE these lines:
# PLATFORM_VEHICLES_API_KEY=
# MINIO_ENDPOINT=
# MINIO_ACCESS_KEY=
# MINIO_SECRET_KEY=
# PLATFORM_TENANTS_API_URL=

# UPDATE these:
PLATFORM_VEHICLES_API_URL=http://mvp-platform:8000
DATABASE_URL=postgresql://postgres:password@mvp-postgres:5432/motovaultpro
REDIS_URL=redis://mvp-redis:6379

Step 3: Delete Secret Files

# Delete MinIO secrets
rm secrets/app/minio-access-key.txt
rm secrets/app/minio-secret-key.txt

# Delete platform API key
rm secrets/app/platform-vehicles-api-key.txt

# Delete platform secrets directory
rm -rf secrets/platform/

Step 4: Verify No Sensitive References

grep -r "minio" config/
grep -r "platform-vehicles-api-key" config/
grep -r "platform-tenants" config/
# All should return 0 results

Validation Criteria

  • config/app/production.yml has no MinIO section
  • config/app/production.yml has no platform tenant section
  • .env has no MINIO_* variables
  • .env has no PLATFORM_VEHICLES_API_KEY
  • secrets/app/minio-*.txt deleted
  • secrets/platform/ deleted
  • Platform vehicles URL points to mvp-platform

Validation Command:

grep -E "minio|MINIO" config/ .env
# Expected: 0 results

Blocks

This phase MUST complete before:

  • Phase 1 (infra-agent needs clean config)
  • Phase 2 (backend-agent needs clean config)

Update EXECUTION-STATE.json

{
  "phases": {"4": {"status": "completed", "validation_passed": true}},
  "waves": {"1": {"status": "completed"}}
}