git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH 0/1] git-config --add allows values from stdin
@ 2019-09-17 13:31 Zeger-Jan van de Weg
  2019-09-17 13:31 ` [PATCH 1/1] Git config allows value setting " Zeger-Jan van de Weg
  2019-09-22  3:11 ` [PATCH 0/1] git-config --add allows values " Taylor Blau
  0 siblings, 2 replies; 6+ messages in thread
From: Zeger-Jan van de Weg @ 2019-09-17 13:31 UTC (permalink / raw)
  To: git; +Cc: Zeger-Jan van de Weg

When adding or updating configuration values using git-config, the
values could all be observed by different processes as these are passed
as arguments. In some environments all commands executed are also all
logged. When the value contains secrets, this is a side effect that
would be great to avoid. At GitLab we use Rugged/libgit2 to circumvent
this property[1].

The following patch allows a value to be set through stdin when the user
passes a `--stdin` flag.

[1]: https://gitlab.com/gitlab-org/gitaly/blob/8ab5bd595984678838f3f09a96798b149e68a939/ruby/lib/gitlab/git/http_auth.rb#L14-15

Zeger-Jan van de Weg (1):
  Git config allows value setting from stdin

 Documentation/git-config.txt |  5 ++++-
 builtin/config.c             | 23 +++++++++++++++++++++--
 t/t1300-config.sh            | 11 +++++++++++
 3 files changed, 36 insertions(+), 3 deletions(-)

--
2.23.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-09-23 11:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-17 13:31 [PATCH 0/1] git-config --add allows values from stdin Zeger-Jan van de Weg
2019-09-17 13:31 ` [PATCH 1/1] Git config allows value setting " Zeger-Jan van de Weg
2019-09-17 16:59   ` Junio C Hamano
2019-09-22  3:11 ` [PATCH 0/1] git-config --add allows values " Taylor Blau
2019-09-23  9:46   ` Phillip Wood
2019-09-23 11:45   ` SZEDER Gábor

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).