Skip to content

feat(devcontainer): isolate project ssh signing keys and install pre-commit globally #66

Closed

Description

@dan-petty

Problem

  1. When multiple DevContainers share /home/vscode (such as via global-devcontainer-home Docker volume), running post-start lifecycle in one container stomped git config --global user.signingkey with another project's key when keys shared creation dates.
  2. _run_post_start_lifecycle did not filter by project SSH key prefix and did not inspect .devcontainer/config.yaml or parent directories.
  3. pre-commit was only installed in the Python virtualenv in the devcontainer, causing pre-commit: command not found in other submodules or non-Python repositories.
  4. FastMCP prompt templates were inlined strings in server.py rather than canonical markdown files under src/devops_cli/ai/tasks/.

Solution

  • Decompose and enhance get_ssh_key_prefix and _resolve_prefix_from_project_config to inspect DEVOPS_CLI_CONFIG, config.yaml, .devcontainer/config.yaml, .devops/config.yaml, and ancestor directories.
  • Configure git config --local user.signingkey on the active workspace repo, making local commit signing immune to global /home/vscode/.gitconfig stomping.
  • Prevent foreign project key adoption in _run_post_start_lifecycle.
  • Install pre-commit system-wide in .devcontainer/Dockerfile and bootstrap standalone pre-commit via uv tool install in post-create.
  • Externalize FastMCP prompt templates to canonical markdown tasks.

Activity

  1. added this to the v0.2.13 milestone on Sep 8, 2026
  2. added
    type/feature
    scope/config
    priority/p1-high
    on Sep 8, 2026
  3. dan-petty commented on Sep 8, 2026

    @dan-petty
    OwnerAuthor

    Resolved by PR #67 into release/v0.2.13.

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/configtype/feature

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions