Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-45807

Error when validating CloudFormation with a `/` in roleSessionName

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • pipeline-aws-plugin
    • None

      When validating CloudFormation with a `/` in the branch name, it fails with the following error:

      com.amazonaws.services.securitytoken.model.AWSSecurityTokenServiceException: 1 validation error detected: Value 'Jenkins-********-feature%2F********' at 'roleSessionName' failed to satisfy constraint: Member must satisfy regular expression pattern: [\w+=,.@-]* (Service: AWSSecurityTokenService; Status Code: 400; Error Code: ValidationError; Request ID: ********)

      The `/` is encoded as `%2F` which doesn't seem to be valid in `roleSessionName`

      We use pipeline-aws-plugin 1.12 on Jenkins 2.65

            hoegertn Thorsten Hoeger
            rochdev Roch Devost
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: