Skip to content

fix(review): remediate devsecops findings and enhance review self-improvement loop #176

Closed

Description

@dan-petty

Description

Remediate verified security findings from review session 20260912-054338 and enhance prompts, documentation, and tooling to strengthen the feedback, review, and self-improvement loop.

Scope & Acceptance Criteria

  1. Critical & High Security Findings Remediation:
    • Validate and contain DEVOPS_CLI_DATA_DIR in ui/data_providers.py and ai/controller/manager.py against path traversal.
    • Enforce DNS resolution and IP address checking in web_fetch_tool (ai/common_tools.py) to prevent DNS rebinding SSRF.
    • Restrict SqlitePlanStore db_path in ai/harness/planning.py to safe project directory.
    • Fix timeout construction in new_http_client and new_async_http_client in http/client.py.
    • Ensure mask_secrets on payloads in StepPersistence.save_step (ai/agents/persistence.py).
    • Sanitize and bound URLs in SSRFBlockedError details (exceptions/security.py).
    • Bound sleep latency in fault injection (ai/chaos/injector.py).
    • Bound max input size for JSON repair in ai/response_repair.py.
    • Remove/sanitize file:// reference in ai/knowledge_base/devops_cli/libraries/cryptography.md.
  2. Review & Self-Improvement Loop Enhancement:
    • Update reviewer prompts in src/devops_cli/ai/review/ to emphasize automated verification and prevent false positives / detect regressions early.
    • Update documentation (docs/SELF_IMPROVEMENT.md, AGENTS.md) describing the feedback, review, and self-improvement loop.
  3. Quality & Test Gates:
    • Add unit and regression tests for all remediations.
    • Pass all 10 devops ci quality gates (coverage >= 90%, complexity <= 10, nesting <= 5).

Activity

  1. added this to the v0.2.17 milestone on Sep 12, 2026
  2. added
    type/security
    scope/review
    priority/p1-high
    status/in-progress
    on Sep 12, 2026
  3. dan-petty commented on Sep 12, 2026

    @dan-petty
    OwnerAuthor

    Resolved and delivered via PR #177 merged into release/v0.2.17.

  4. added a commit that references this issue on Sep 14, 2026
  5. removed
    status/in-progress
    on Oct 30, 2026
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/p1-highscope/reviewtype/security

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions