Skip to content

test(security): the security and crypto tests run on the process, clock and GitHub session fakes, and the scan gate, the Vault lease registry and git signing leave commands #2543

Closed

Description

@dan-petty

Problem or Motivation

Part 2 of #1332. After part 1, the security and crypto tests of #1332 still patch devops_cli names that merged fakes cover: the process layer (run_subprocess, check_binary, is_dry_run, subprocess.run, shutil.which), the clock, settings and GitHub SSH-key registration. Three pieces of logic also live in commands (Q19): the devops scan gate (commands/scan.py), the Vault lease registry (commands/vault.py) and the git-signing configuration (commands/ssh.py).

Proposed Solution & Architectural Design

Target Subsystem

src/devops_cli/security/, src/devops_cli/crypto/, src/devops_cli/commands/{scan,vault,ssh}.py and their tests.

Existing Tool Considered

The fakes exist on main (#775, #1320, #983). Nothing new is built.

Acceptance criteria

Related

Parent: #1332. Needs part 1 (the scanners stop looking for mocks). #1327 makes the commands thin adapters over these functions.

Source: #1332

Activity

  1. added
    source/agent
    type/test
    status/new
    value/medium
    effort/medium
    on Oct 28, 2026
  2. dan-petty commented on Oct 28, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/test. The primary goal is restructuring security and crypto tests to use merged fakes and moving logic into testable modules.
    • Priority: P2-Medium. It follows Part 1 and improves test reliability, but it is not a security vulnerability or blocking defect.
    • Value: Medium. It makes tests offline and removes fragile patches, improving maintainability for the project team.
    • Effort: Medium. It requires rewiring tests to existing fakes and extracting three logic blocks from commands/ into new modules.
    • Related: test(security): the scanners stop looking for mocks, and their tests run on the scanner fake #2542, which asks for a different change. Both are parts of #1332 on security tests and fakes; #2542 removes mock detection from scanners while the candidate moves tests onto merged fakes and relocates logic out of commands/.
  3. added
    priority/p2-medium
    on Oct 28, 2026
  4. removed
    status/new
    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

    effort/mediumpriority/p2-mediumsource/agenttype/testvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions