Bug 2053501

Summary: Git import detection does not happen for private repositories
Product: OpenShift Container Platform Reporter: Mohammed Saud <msaud>
Component: Dev ConsoleAssignee: Mohammed Saud <msaud>
Status: CLOSED ERRATA QA Contact: spathak <spathak>
Severity: high Docs Contact:
Priority: high    
Version: 4.9CC: aos-bugs, david.gabrysch, nmukherj, npaez, pkhaire, viraj, welin
Target Milestone: ---   
Target Release: 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
There is currently a known issue. When you use the *Import from Git* form to import a private git repository, the correct import type and a builder image are not identified. This issue happens because the secret to fetch the private repository details is not decoded. (link:https://bugzilla.redhat.com/show_bug.cgi?id=2053501[BZ#2053501])
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-10 10:49:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2057507    

Description Mohammed Saud 2022-02-11 12:42:44 UTC
Description of problem:
Git import detection does not happen for private repositories even when secrets are provided.

Version-Release number of selected component (if applicable):
4.9

How reproducible:
Always

Steps to Reproduce:
1. Navigate to +Add > git import
2. Enter a private git repository
3. In advanced git options create a secret with personal access token and select it

Actual results:
Import strategy detection should happen.

Expected results:
Import strategy detection does not happen.

Comment 3 david.gabrysch 2022-03-03 08:39:55 UTC
Hello,

since 4.9 this happens for us too, also for public repos without authentication.

Creating BuildConfigs via  "oc new-app https://git-url --allow-missing-images --source-secret=<secret> is working fine.

Comment 4 Mohammed Saud 2022-03-04 19:18:23 UTC
Hi David,

This bug is about import detection not working for private repositories,
but you might be facing a different issue if detection for public repositories is affected.

Can you please elaborate on the issue you face, or file a new bug for it?

Comment 6 spathak@redhat.com 2022-03-25 11:34:00 UTC
Verified on build version: 4.11.0-0.nightly-2022-03-20-160505
Browser version: Chrome 99

Comment 9 kevin 2022-04-13 09:37:19 UTC
Have any update for this bug?

Comment 10 Mohammed Saud 2022-04-13 11:10:12 UTC
This bug is fixed for 4.11, 4.10 backport progress can be tracked with https://bugzilla.redhat.com/show_bug.cgi?id=2057507

Comment 13 errata-xmlrpc 2022-08-10 10:49:30 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: OpenShift Container Platform 4.11.0 bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:5069