Bug 2102231 - Correct DNS validation for destination namespace
Summary: Correct DNS validation for destination namespace
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Migration Toolkit for Containers
Classification: Red Hat
Component: Controller
Version: 1.7.1
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 1.7.3
Assignee: Jason Montleon
QA Contact: ssingla
Richard Hoch
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-29 13:55 UTC by Javier Coscia
Modified: 2022-08-02 07:46 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-02 07:45:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github konveyor mig-controller pull 1304 0 None Merged Bug 2102231: Fix validation for namespace name 2022-07-07 18:26:39 UTC
Github konveyor mig-controller pull 1308 0 None Merged [release-1.7.3] Bug 2102231: Fix validation for namespace name 2022-07-07 18:54:09 UTC
Red Hat Knowledge Base (Solution) 6965195 0 None None None 2022-06-29 14:28:10 UTC
Red Hat Product Errata RHSA-2022:5840 0 None None None 2022-08-02 07:46:04 UTC

Description Javier Coscia 2022-06-29 13:55:59 UTC
Description of problem:

MigPlan cannot be validated because destination namespace starts with a non-alphabetic character

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

OCP 4.9.23
mtc-operator.v1.7.1
oadp-operator.v1.0.3

How reproducible:

Always

Steps to Reproduce:
1. Create a MigPlan with a source/destination (in case of migration of PVs between storage classes) namespace which starts with a numeric character like 3scale

Actual results:

MigPlan validation fails with: Destination Namespaces [0-9...] are not DNS compliant

Expected results:

We should not block migplan if destination namespace starts with a number. i.e.: 3scale

Additional info:

Validation introduced through https://bugzilla.redhat.com/show_bug.cgi?id=2005848

According to internal discussion we might need to change to RFC1123 rather than 1035, only difference is first char in 1123 is alphanumeric rather than alphabetic

Comment 10 errata-xmlrpc 2022-08-02 07:45:55 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 (Moderate: Migration Toolkit for Containers (MTC) 1.7.3 security and bug fix 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:5840


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