Skip to content

feat(git): inventory nested bare execution config (ST-131) - #52

Merged
velzepooz merged 2 commits into
mainfrom
feat/ST-131-nested-bare-git
Sep 28, 2026
Merged

velzepooz merged 2 commits into
mainfrom
feat/ST-131-nested-bare-git

Conversation

@velzepooz

Copy link
Copy Markdown
Collaborator

Summary

Add bounded, inert inventory for nested bare Git config. Report command-valued core.fsmonitor or diff.external as SD-027 only when a regular HEAD, config, objects/, and core.bare=true establish a candidate. Inspect at most 64 candidates and 64 KiB per config. Reject unsupported config, includes, and symlink markers without a grade. Keep .git, vendor, and other existing exclusions.

The finding is conditional. The scan does not run Git or configured commands, establish runtime Git auto-discovery, or determine an agent version. The advisory lists Copilot CLI <=1.0.42 as affected and 1.0.43 as patched; an unknown version is not a confirmed CVE.

Evidence

  • make lint, go test ./... -count=1 (5602 tests), and go vet ./... passed.
  • The CLI returned SD-027 for a synthetic fixture; its side-effect sentinel remained absent. An unsupported include returned tool error 3 and no grade.
  • make verify-clone passed before publishing this branch.

Delivery boundary

The hosted scanner needs a separate sparse-fetch change to preserve the bare-repository signature. Its current released detector pin cannot run SD-027 until a new detector release and downstream pin update. This PR does not release, merge, or deploy anything.

Linear: https://linear.app/glibrulev/issue/ST-131/threat-model-recognize-nested-bare-git-execution-configuration-without

Scan bounded local Git config without invoking Git or its helpers.
Reject unsupported configuration instead of publishing a clean grade.

ST-131
Record the new rule fingerprint and its effect on opt-in High and security-axis gates.

ST-131
@velzepooz
velzepooz merged commit bbb75ce into main Sep 28, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant