Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-51167

CIRO must handle edge cases in image registry S3 bucket naming

XMLWordPrintable

    • Important
    • None
    • Proposed
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, the logic for bucket name generation was incorrect. With this release, the issue is resolved. (link:https://issues.redhat.com/browse/OCPBUGS-51167[*OCPBUGS-51167*])
      ------
      Fixed incorrect bucket naming generation logic.
      Show
      * Previously, the logic for bucket name generation was incorrect. With this release, the issue is resolved. (link: https://issues.redhat.com/browse/OCPBUGS-51167 [* OCPBUGS-51167 *]) ------ Fixed incorrect bucket naming generation logic.

      This is a clone of issue OCPBUGS-50950. The following is the description of the original issue:

      User Story:

      As a ROSA HCP user in FedRAMP, I would like to be able to deploy a hosted control plane and dataplane in a customer/personal AWS account, and make use of the image registry cluster operator.

      In AWS govcloud, hosted clusters currently can be created but will fail to deploy the Image Registy CO. This is due to an edge case in the naming schema for S3 buckets created in customer accounts to back the image registry-- when using GovCloud region names, full bucket name is 61 characters, which is padded to reach a desired length of 62 characters. This padding is appended after a dash, but sense only one character of padding is needed, only a dash is appended, and the name ends in a dash

      Below is an example of the invalid S3 bucket name generated for a cluster in region us-gov-west-1:

      2gt95p48ekt031m3qvnpec63eva7hm7f-image-registry-us-gov-west-1- 

      Acceptance Criteria:

      Description of criteria:

      • The Cluster Image Registry Operator adopts a suitable scheme for truncating S3 bucket names, that ensures that the name is always valid by S3 bucket naming criteria

      Engineering Details:

      • CIRO will be updated with an adapted S3 bucket name generation function

      This requires/does not require a design proposal.
      This requires/does not require a feature gate.

              rmarasch@redhat.com Ricardo Maraschini
              openshift-crt-jira-prow OpenShift Prow Bot
              XiuJuan Wang XiuJuan Wang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: