-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OCPBUGS-4811: New-App Using Git via SSH #1269
Conversation
Removing `GIT_SSH=/dev/null` to allow using SSH based authentication.
@otaviof: Bugzilla bug 2078694 is in a bug group that is not in the allowed groups for this repo.
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign @coreydaley |
/bugzilla refresh |
@otaviof: Bugzilla bug 2078694 is in a bug group that is not in the allowed groups for this repo.
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/test e2e-aws-serial |
/bugzilla refresh |
@coreydaley: Bugzilla bug 2078694 is in a bug group that is not in the allowed groups for this repo.
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/approve |
/test e2e-aws-builds |
/retest |
/bugzilla refresh |
@otaviof: Bugzilla bug 2078694 is in a bug group that is not in the allowed groups for this repo.
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign @coreydaley @gabemontero Gabe, would you please review this PR? Thanks in advance. |
// 1) The HOME directory is set to a temporary dir to avoid loading any settings in .gitconfig | ||
// 2) The GIT_SSH variable is set to /dev/null so the regular SSH keys are not used | ||
// (changing the HOME directory is not enough). | ||
// 3) GIT_CONFIG_NOSYSTEM prevents git from loading system-wide config | ||
// 4) GIT_ASKPASS to prevent git from prompting for a user/password |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the record, the changes in this block are due to gofmt
.
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: coreydaley, otaviof The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
hey @otaviof - first, I must admit I'm worried that either bad memory or not being what I would consider an SME in how SSH clients work might render my review of little value. I did look back at git history and saw I touched this file as part of https://bugzilla.redhat.com/show_bug.cgi?id=2052578 maybe that change and calling In any event, I suppose that as long as the ssh scenarios noted in the bz there still works, I think this is OK. For reference, from that bz's description:
That looks like the same usage you are trying now though in the PR description here, right? If that BZ fix broke that SSH scenario though, I don't remember seeing that during testing, nor the user reporting that basic auth was now OK, but SSH was broke. Doing git-blame on the file, that /dev/null was added 6 years ago via ace8cab from @csrwng ... maybe he remembers why he added that env var then? Otherwise, I suppose by removing |
@otaviof: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Yes, that's correct, Gabe. The bug this pull-request is addressing (BZ-2078694), the issue happends in that method.
The issue happens during the
Thanks for sharing the official Git documentation about
So, indeed, I think the best way is to remove Thanks for the comments and references! |
/retitle OCPBUGS-4811: New-App Using Git via SSH |
@otaviof: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-4811 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
When a user tries to create a new-app with a SSH based repository,
oc
fails on not being able togit ls-remote --heads
due authentication error, i.e.:This pull request removes the hardcoded
GIT_SSH=/dev/null
allowing Git to use the local SSH-Agent: