From: Dimitri Kopriwa <d.kopriwa@gmail.com>
To: git-security@googlegroups.com, git@vger.kernel.org
Subject: Fwd: Git credentials not working
Date: Wed, 3 Oct 2018 21:06:38 +0700 [thread overview]
Message-ID: <f4f7bd2c-4c48-e749-4df1-ddf05896b337@gmail.com> (raw)
In-Reply-To: <a1ceb967-6020-6074-f504-c684242c79ab@gmail.com>
Dear Git list,
I have tried to used git credentials within Gitlab-CI runners. I have 4
instance of GitLab and discovered a weird bug with Git credentials when
use within a CI process.
Please note before all that the time spend allowed me multiple time to
check that my credentials are valid for the repository. And calling git
fetch --tags with the full remote url that include the credentials
always succeeded.
Tested with Git 2.11, 2.19
Git credentials in ~/.git-credentials and ~/.config/git/credentials are
being removed by git upon reading.
This happen randomly accross my CI runner, and change that make them
work on not related.
{ Error: Command failed: git fetch --tags
https://git.example.com/example/some-project.git
18:25:52.554903 git.c:415 trace: built-in: git fetch
--tags https://git.example.com/example/some-project.git
18:25:52.555234 run-command.c:637 trace: run_command: GIT_DIR=.git
git-remote-https https://git.example.com/example/some-project.git
https://git.example.com/example/some-project.git
18:25:52.692741 run-command.c:637 trace: run_command: 'git
credential-store get'
18:25:52.697314 git.c:659 trace: exec:
git-credential-store get
18:25:52.697372 run-command.c:637 trace: run_command:
git-credential-store get
18:25:52.936024 run-command.c:637 trace: run_command: 'git
credential-store erase'
18:25:52.940307 git.c:659 trace: exec:
git-credential-store erase
18:25:52.940365 run-command.c:637 trace: run_command:
git-credential-store erase
remote: HTTP Basic: Access denied
fatal: Authentication failed for
'https://git.example.com/example/some-project.git/'
See the full question here:
https://stackoverflow.com/questions/52614467/why-does-git-credential-store-call-git-credential-erase-and-make-my-credential-f
Can you please help me found why is git credential-store erase called ?
Best regards,
next parent reply other threads:[~2018-10-03 14:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <a1ceb967-6020-6074-f504-c684242c79ab@gmail.com>
2018-10-03 14:06 ` Dimitri Kopriwa [this message]
2018-10-03 16:03 ` Git credentials not working Christian Couder
2018-10-03 17:29 ` Dimitri Kopriwa
2018-10-03 17:11 ` Fwd: " Jeff King
2018-10-03 18:12 ` Dimitri Kopriwa
2018-10-03 18:24 ` Jeff King
2018-10-03 19:34 ` Dimitri Kopriwa
2018-10-03 20:03 ` Bryan Turner
2018-10-03 20:43 ` Jeff King
2018-10-03 21:35 ` Dimitri Kopriwa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f4f7bd2c-4c48-e749-4df1-ddf05896b337@gmail.com \
--to=d.kopriwa@gmail.com \
--cc=git-security@googlegroups.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 NNTP newsgroup(s).