Skip to content

feat(cli): template rendering engine sandboxing, pre-compiled ast caching & variable validation research #325

Closed

Description

@dan-petty

Context & Rationale

Manifest generation and task tracking file generation use fragmented Jinja2 and string concatenation logic scattered across multiple modules without unified sandboxing.

Scope & Deliverables

  • Context & Rationale*: Manifest generation and task tracking file generation use fragmented Jinja2 and string concatenation logic scattered across multiple modules without unified sandboxing.
  • Deep Integration & Functional Extension*: Unify all Kubernetes manifest, Dockerfile, and task documentation rendering under a single jinja2.SandboxedEnvironment with pre-compiled AST caching and compile-time variable schema validation.
  • Code Optimization & Performance Acceleration*: Eliminate runtime template re-parsing by pre-compiling templates into bytecode; prevent template injection vulnerabilities (CWE-1336) through strict sandboxing; validate all required parameters prior to rendering.
  • Refactoring Potential & Legacy Elimination*: Consolidate fragmented template logic across k8s/, docker/, and github/ into a centralized TemplateEngine service; eliminate ad-hoc string concatenation and brittle regex replacements.

Strategic Alignment

  • Milestone: v0.2.22 (Deep Subsystem Integration, Architectural Optimization & Extensible Refactoring)
  • Roadmap Reference: docs/ROADMAP.md

Activity

  1. added this to the v0.2.22 milestone on Sep 19, 2026
  2. added
    type/feature
    scope/cli
    priority/p2-medium
    on Sep 19, 2026
  3. dan-petty commented on Sep 22, 2026

    @dan-petty
    OwnerAuthor

    Closed by #378, merged into release/v0.2.22.

    GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by devops gh issues close-merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p2-mediumscope/clitype/feature

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions