Skip to content
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

Bug 1971332: revert incorrect allowance of ssh:// prefix with scp styled URLs #875

Merged
merged 1 commit into from Jul 26, 2021

Conversation

gabemontero
Copy link
Contributor

/hold

for now

want to discuss with @adambkaplan when he returns from PTO

this is a possible reconciliation with the concerns in this BZ with conclusions drawn from https://bugzilla.redhat.com/show_bug.cgi?id=1884270

but I'm not ready to make an executive decsion here

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 6, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 6, 2021

@gabemontero: This pull request references Bugzilla bug 1971332, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.9.0) matches configured target release for branch (4.9.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

Requesting review from QA contact:
/cc @xiuwang

In response to this:

Bug 1971332: work around s2i parse url ssh:// prefix removal to allow use of ssh and private keys in git operations

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.

@openshift-ci openshift-ci bot added bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. labels Jul 6, 2021
@gabemontero
Copy link
Contributor Author

terraform flake on e2e-aws-builds

/test e2e-aws-builds

@gabemontero
Copy link
Contributor Author

bugs 1973724 1975050 1972374 are all noted in sippy wrt metal ipi ... failures unrelated to this PR

I'll also mention here that adding a new option to oc new-build for end user control of how we manipulate the git url when ssh:// is involved is an option to discuss.

@gabemontero
Copy link
Contributor Author

/retest

Copy link
Contributor

@adambkaplan adambkaplan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/hold

@@ -167,6 +168,9 @@ func (r *SourceRef) BuildSource() (*buildv1.BuildSource, []buildv1.BuildTriggerP
URI: r.URL.StringNoFragment(),
Ref: r.URL.URL.Fragment,
}
if r.SSHPrefixWorkaround {
source.Git.URI = "ssh://" + source.Git.URI
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels like a band-aid on top of a thing we broke in s2i.

We should fix s2i so that handles regular SSH URIs (which are valid URIs) and SCP style URIs.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as I put a hold on in the description, and mentioned wanting to discuss this, I agree this is a band aid ... of course your additional hold does not hurt anything :-)

that said, the reason I want to discuss voice to voice in office hours is
a) fixing it this in s2i could prove trickier and more time consuming than we realize ... not 100% sure but I want to talk through it
b) if that pans out, is the band aid sufficient given what we have to do elsewhere

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In particular, the wide use of the embedded golang URL inside the S2I URL throughout new-app / new-build code gave me some pause @adambkaplan

And that golang URL still can't deal with ssh://

My hope is bring up the code in an editor, walk through the references during office hours, and see what change makes sense where.

@xiuwang
Copy link

xiuwang commented Jul 15, 2021

/bugzilla refresh

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 15, 2021

@xiuwang: This pull request references Bugzilla bug 1971332, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.9.0) matches configured target release for branch (4.9.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

Requesting review from QA contact:
/cc @jitendar-singh

In response to this:

/bugzilla refresh

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.

@gabemontero
Copy link
Contributor Author

/hold cancel

OK @adambkaplan the revert of https://bugzilla.redhat.com/show_bug.cgi?id=1884270 plus additional test cases is up.

I'll wait until you approve the "copied s2i" piece here before I make the change in s2i, and once that merges, vendor that into opensift/builder and openshift/openshift-apiserver

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 15, 2021
@gabemontero gabemontero changed the title Bug 1971332: work around s2i parse url ssh:// prefix removal to allow use of ssh and private keys in git operations Bug 1971332: revert incorrect allowance of ssh:// prefix with scp styled URLs Jul 15, 2021
@gabemontero
Copy link
Contributor Author

only a sig-network flake on ipi-ovn-ipv6 ... all sig-builds passed @adambkaplan

Copy link
Contributor

@adambkaplan adambkaplan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

My only question is how we are going to support scp-style git locations in oc. We can do this in a follow-up PR (i.e. move the BZ back to ASSIGNED).

@gabemontero
Copy link
Contributor Author

/retest

Copy link
Contributor

@adambkaplan adambkaplan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 23, 2021
@gabemontero
Copy link
Contributor Author

/assign @soltysh

for an approve from someone in the OWNERS file

thanks

Copy link
Member

@soltysh soltysh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 26, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adambkaplan, gabemontero, soltysh

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 26, 2021
@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 1557476 into openshift:master Jul 26, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 26, 2021

@gabemontero: All pull requests linked via external trackers have merged:

Bugzilla bug 1971332 has been moved to the MODIFIED state.

In response to this:

Bug 1971332: revert incorrect allowance of ssh:// prefix with scp styled URLs

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.

@gabemontero gabemontero deleted the bz1971332 branch July 26, 2021 21:37
@gabemontero
Copy link
Contributor Author

/cherrypick release-4.8

@openshift-cherrypick-robot

@gabemontero: new pull request created: #898

In response to this:

/cherrypick release-4.8

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.

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. bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants