Skip to content

Refactor lib/data.py for V2 #8

@Morriz

Description

@Morriz

Objective

Refactor lib/data.py to load from projects/ structure with ${VAR} expansion from secrets/.

Prerequisites

Issue #6 completed (migration script exists as reference)

Implementation Steps

See todos/IMPLEMENTATION.md lines 1231-1443.

Key Changes:

  1. Simplify models (remove complex db.yml schema, keep minimal Ingress/TraefikConfig)
  2. Implement secret loading from secrets/*.txt files (decrypted)
  3. Implement ${VAR} expansion using regex
  4. Implement infrastructure loading from projects/traefik.yml
  5. Implement project loading from projects/{name}/
  6. Add validation functions

Success Criteria

  • Loads from projects/ structure
  • Expands ${VARS} from secrets/
  • TraefikConfig model works
  • No import errors
  • Validation functions work

Estimated Time

1 hour

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions