Bug 2053501 - Git import detection does not happen for private repositories
Summary: Git import detection does not happen for private repositories
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.9
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.11.0
Assignee: Mohammed Saud
QA Contact: spathak@redhat.com
Depends On:
Blocks: 2057507
TreeView+ depends on / blocked
Reported: 2022-02-11 12:42 UTC by Mohammed Saud
Modified: 2022-08-10 10:50 UTC (History)
7 users (show)

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])
Clone Of:
Last Closed: 2022-08-10 10:49:30 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github openshift console pull 11071 0 None open Bug 2053501: Decode secrets before authorizing repository 2022-02-16 14:16:30 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 10:50:06 UTC

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):

How reproducible:

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

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.


Note You need to log in before you can comment on or make changes to this bug.