Skip to content

Don't set safe.dir=* in main app - #993

Merged
thockin merged 2 commits into
kubernetes:masterfrom
thockin:dont_use_safe.dir_star
Jul 16, 2026
Merged

thockin merged 2 commits into
kubernetes:masterfrom
thockin:dont_use_safe.dir_star

Conversation

@thockin

@thockin thockin commented Jun 29, 2026 •

Copy link
Copy Markdown
Member

Instead, set it in tests. This requires a new flag --add-git-config which is like --git-config but uses repeated calls to the flag instead of a comma-separated value.

Also puts /usr/lib/git-core/git-sh-i18n--envsubst back into the image since it shows up in error logs.

@kubernetes-prow kubernetes-prow Bot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 29, 2026
@kubernetes-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: thockin

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubernetes-prow
kubernetes-prow Bot requested review from sdowell and stp-ip June 29, 2026 17:40
@kubernetes-prow kubernetes-prow Bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 29, 2026
@thockin
thockin force-pushed the dont_use_safe.dir_star branch 2 times, most recently from 036ea17 to 742869b Compare June 29, 2026 18:27
thockin added 2 commits July 16, 2026 14:29
Instead, set it in tests.  This requires a new flag `--add-git-config`
which is like `--git-config` but uses repeated calls to the flag instead
of a comma-separated value.
@thockin
thockin force-pushed the dont_use_safe.dir_star branch from 742869b to 8d2b637 Compare July 16, 2026 21:29
@thockin
thockin merged commit 91a5cdf into kubernetes:master Jul 16, 2026
4 of 5 checks passed
vember31 added a commit to vember31/home-ops that referenced this pull request Oct 24, 2026
git-sync v4.8.0 stopped setting safe.directory=* (kubernetes/git-sync#993),
so the jbops sidecar crashes with 'detected dubious ownership in repository
at /add-ons'. Pass the replacement --git-config-add flag to restore it.
DavidIlie added a commit to DavidIlie/home-cluster that referenced this pull request Oct 24, 2026
git-sync 4.8.0 no longer sets safe.directory=* (kubernetes/git-sync#993).
The /subcleaner emptyDir is root-owned while git-sync runs as 1000, so git
refuses it as dubious ownership and the sidecar crash-loops. Trust that one
directory.

Co-authored-by: Claude <noreply@anthropic.com>
will-white added a commit to will-white/home-k8s-cluster that referenced this pull request Oct 25, 2026
git-sync v4.8.0 stopped setting safe.directory=* (kubernetes/git-sync#993).
The add-ons emptyDir is root-owned (group via fsGroup), so the subcleaner
sidecar aborted with 'detected dubious ownership' and crashlooped, taking
the bazarr pod out of Ready.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
s0len added a commit to s0len/solen-ops that referenced this pull request Oct 25, 2026
git-sync v4.8.0 stopped setting safe.directory=* (kubernetes/git-sync#993).
The subcleaner sidecar's GITSYNC_ROOT is an emptyDir owned by root while
git-sync runs as 568, so git rejected /add-ons with "detected dubious
ownership" and the sidecar crash-looped, failing the HelmRelease upgrade.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant