Page MenuHomePhabricator

Fix an issue where "git" may be unable to read a temporary file in Diffusion
ClosedPublic

Authored by epriestley on Apr 20 2022, 4:31 PM.
Tags
None
Referenced Files
F15456483: D21759.diff
Sun, Mar 30, 10:01 AM
F15455462: D21759.diff
Sun, Mar 30, 12:33 AM
F15443879: D21759.id51871.diff
Thu, Mar 27, 6:42 AM
F15409230: D21759.diff
Wed, Mar 19, 3:40 AM
F15406166: D21759.id.diff
Tue, Mar 18, 12:11 PM
F15401397: D21759.diff
Mon, Mar 17, 5:26 PM
F15392260: D21759.diff
Sat, Mar 15, 2:08 PM
F15375435: D21759.id.diff
Wed, Mar 12, 11:12 PM
Subscribers
None

Details

Summary

Ref T13673. After the changes in that task, we may execute "git config -l ..." as a user other than the user we used to write this temporary file.

Use "--file -" to pass the data instead, avoiding use of temporary files. This makes us agnostic to filesystem permissions.

Test Plan

Viewed a Git repository with submodules in Diffusion with "ssh.user" configured as a user relatively isolated from the webserver user.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley created this revision.
This revision was not accepted when it landed; it landed in state Needs Review.Apr 20 2022, 8:04 PM
This revision was automatically updated to reflect the committed changes.