Skip to content

repo hygiene: fix the ansible .gitignore, .PHONY and repoURL scheme - #613

Merged
swares merged 1 commit into
mainfrom
fix/repo-hygiene-batch
Oct 12, 2026
Merged

swares merged 1 commit into
mainfrom
fix/repo-hygiene-batch

Conversation

@swares

@swares swares commented Oct 12, 2026

Copy link
Copy Markdown
Owner

ansible/.gitignore carried three rules copied from the root file with the ansible/ prefix intact, so inside ansible/ they resolved to ansible/ansible/... and matched nothing. Patterns are relative to the file that contains them. Corrected and verified: git check-ignore -v now names ansible/.gitignore where it previously named the root.

No secret was exposed - the root .gitignore has the same lines in the one place that prefix is correct, and was doing the work. The defect is a second layer that looked like protection and provided none, which is worse than no second layer because a reader checking it would stop looking.

Makefile: ldap removed from .PHONY; the target went with the ldap-1 VM in July and .PHONY names a missing target without complaint, which is why it survived. make -n help still parses.

gitlab-runner.yaml: two repoURL lines used https where thirteen other sources use git@. Argo keys credentials by URL string, so the spellings were two repositories to it, and the https one had no credential - it worked only because the repo is public. All fifteen now match. Normalised toward git@ because that deploy key demonstrably works; the reverse is defensible but a design choice.

Also ticks three items that were already true: the sandbox-vm-update comment now explains the deletion rather than pointing at a live file, FETCH_HEAD is not tracked, and TODO-2026-07-14.md does not exist.

ansible/.gitignore carried three rules copied from the root file with the ansible/ prefix intact, so inside ansible/ they resolved to ansible/ansible/... and matched nothing. Patterns are relative to the file that contains them. Corrected and verified: git check-ignore -v now names ansible/.gitignore where it previously named the root.

No secret was exposed - the root .gitignore has the same lines in the one place that prefix is correct, and was doing the work. The defect is a second layer that looked like protection and provided none, which is worse than no second layer because a reader checking it would stop looking.

Makefile: ldap removed from .PHONY; the target went with the ldap-1 VM in July and .PHONY names a missing target without complaint, which is why it survived. make -n help still parses.

gitlab-runner.yaml: two repoURL lines used https where thirteen other sources use git@. Argo keys credentials by URL string, so the spellings were two repositories to it, and the https one had no credential - it worked only because the repo is public. All fifteen now match. Normalised toward git@ because that deploy key demonstrably works; the reverse is defensible but a design choice.

Also ticks three items that were already true: the sandbox-vm-update comment now explains the deletion rather than pointing at a live file, FETCH_HEAD is not tracked, and TODO-2026-07-14.md does not exist.
@swares
swares merged commit 0af5d79 into main Oct 12, 2026
4 checks passed
@swares
swares deleted the fix/repo-hygiene-batch branch October 12, 2026 14:21
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