[JIRA] (JENKINS-58842) Error assuming IAM role in Jenkins (es_ES)

5 views
Skip to first unread message

yo@diegomunozbeltran.com (JIRA)

unread,
Aug 7, 2019, 6:59:02 AM8/7/19
to jenkinsc...@googlegroups.com
Diego Muñoz created an issue
 
Jenkins / Bug JENKINS-58842
Error assuming IAM role in Jenkins (es_ES)
Issue Type: Bug Bug
Assignee: Jan Roehrich
Components: amazon-ecs-plugin, aws-credentials-plugin
Created: 2019-08-07 10:58
Priority: Minor Minor
Reporter: Diego Muñoz

While using amazon-ecs-plugin and aws-credentials-plugin, we are trying to assume an IAM role to describe ECS clusters. We noticed this in logs:

Exception searching clusters for credentials=Test, regionName=eu-west-1:com.amazonaws.services.securitytoken.model.AWSSecurityTokenServiceException: 1 validation error detected: Value 'Jenkins ' at 'roleSessionName' failed to satisfy constraint: Member must satisfy regular expression pattern: [\w+=,.@-]* (Service: AWSSecurityTokenService; Status Code: 400; Error Code: ValidationError; Request ID: 20e28d0c-b8ff-11e9-8b33-4d7def127bc0)

Looks like roleSessionName is wrong, as it includes a whitespace which breaks the assumeRole action. It doesn't happen in other languages. Forcing Jenkins to use en_GB locales (Using locale plugin for example) fixes it.

This is the Jenkins file which contains the bad property

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

o.v.nenashev@gmail.com (JIRA)

unread,
Aug 16, 2019, 8:49:02 AM8/16/19
to jenkinsc...@googlegroups.com

o.v.nenashev@gmail.com (JIRA)

unread,
Aug 16, 2019, 8:49:02 AM8/16/19
to jenkinsc...@googlegroups.com
Oleg Nenashev updated an issue
 
Change By: Oleg Nenashev
Component/s: amazon-ecs-plugin
Reply all
Reply to author
Forward
0 new messages