[JIRA] (JENKINS-60652) Plugin breaks credential list views when it cannot contact AWS

0 views
Skip to first unread message

chris+jenkins@chriskilding.com (JIRA)

unread,
Jan 16, 2020, 6:46:07 AM1/16/20
to jenkinsc...@googlegroups.com
Chris Kilding updated an issue
 
Jenkins / Bug JENKINS-60652
Plugin breaks credential list views when it cannot contact AWS
Change By: Chris Kilding
Summary: plugin Plugin breaks jenkins without a connection to credential list views when it cannot contact AWS
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

chris+jenkins@chriskilding.com (JIRA)

unread,
Jan 16, 2020, 6:47:04 AM1/16/20
to jenkinsc...@googlegroups.com
Chris Kilding commented on Bug JENKINS-60652
 
Re: Plugin breaks credential list views when it cannot contact AWS

Yes, we'll break it up, and address the list views first.

chris+jenkins@chriskilding.com (JIRA)

unread,
Jan 16, 2020, 6:55:04 AM1/16/20
to jenkinsc...@googlegroups.com
Chris Kilding updated an issue
Change By: Chris Kilding
when ever When this plugin does not have a connection to cannot contact AWS it breaks many screens . e.g. every screen which wants to that list some credentials in a dropdown will show an error message .

Examples:
* Pipeline DSL snippet generator
* Global Configuration screen 
e.g. in [http://localhost:8080/configure] when the [docker-commons-plugin|https://plugins.jenkins.io/docker-commons] or [cloudbees-bitbucket-branch-source-plugin|https://plugins.jenkins.io/cloudbees-bitbucket-branch-source] is installed.  
* Credentials list screen
Also all build accessing any credential will fail, even if the credentials requested by the build are provided by a different credentials-provider (e.g. default jenkins provider).

This can easily reproduced by just installing the plugin on a local instance and not configuring anything more. 

 

The exception looks like this:
{code:java}
com.amazonaws.SdkClientException: Unable to find a region via the region provider chain. Must provide an explicit region in the builder or setup environment to supply a region.
at com.amazonaws.client.builder.AwsClientBuilder.setRegion(AwsClientBuilder.java:462)
at com.amazonaws.client.builder.AwsClientBuilder.configureMutableProperties(AwsClientBuilder.java:424)
at com.amazonaws.client.builder.AwsSyncClientBuilder.build(AwsSyncClientBuilder.java:46)
at io.jenkins.plugins.credentials.secretsmanager.AwsCredentialsProvider.fetchCredentials(AwsCredentialsProvider.java:103)
at com.google.common.base.Suppliers$ExpiringMemoizingSupplier.get(Suppliers.java:173)
at io.jenkins.plugins.credentials.secretsmanager.AwsCredentialsProvider.getCredentials(AwsCredentialsProvider.java:61)
at com.cloudbees.plugins.credentials.CredentialsProvider.getCredentials(CredentialsProvider.java:1147)
at com.cloudbees.plugins.credentials.CredentialsProvider.getCredentials(CredentialsProvider.java:1222)
at com.cloudbees.plugins.credentials.CredentialsProvider.lookupCredentials(CredentialsProvider.java:549)
at com.cloudbees.plugins.credentials.CredentialsProvider.findCredentialById(CredentialsProvider.java:906)
at com.cloudbees.plugins.credentials.CredentialsProvider.findCredentialById(CredentialsProvider.java:850)
at org.jenkinsci.plugins.credentialsbinding.MultiBinding.getCredentials(MultiBinding.java:144)
at org.jenkinsci.plugins.credentialsbinding.impl.UsernamePasswordMultiBinding.bind(UsernamePasswordMultiBinding.java:75)
at org.jenkinsci.plugins.credentialsbinding.impl.BindingStep$Execution2.doStart(BindingStep.java:135) {code}
 

chris+jenkins@chriskilding.com (JIRA)

unread,
Jan 16, 2020, 6:57:07 AM1/16/20
to jenkinsc...@googlegroups.com
Chris Kilding updated an issue
When this plugin cannot contact AWS it breaks screens that list credentials.


Examples:
* Pipeline DSL snippet generator
* Global Configuration screen , when any credential consumer plugin  e.g. in  [ http://localhost:8080/configure] when the [ docker-commons-plugin|https://plugins.jenkins.io/docker-commons] or [cloudbees-bitbucket-branch-source-plugin|https://plugins.jenkins.io/cloudbees-bitbucket-branch-source] is installed.
* Credentials list screen

This can easily reproduced by just installing the plugin on a local instance and not configuring anything more.  

The exception looks like this:
{code:java}
com.amazonaws.SdkClientException: Unable to find a region via the region provider chain. Must provide an explicit region in the builder or setup environment to supply a region.
at com.amazonaws.client.builder.AwsClientBuilder.setRegion(AwsClientBuilder.java:462)
at com.amazonaws.client.builder.AwsClientBuilder.configureMutableProperties(AwsClientBuilder.java:424)
at com.amazonaws.client.builder.AwsSyncClientBuilder.build(AwsSyncClientBuilder.java:46)
at io.jenkins.plugins.credentials.secretsmanager.AwsCredentialsProvider.fetchCredentials(AwsCredentialsProvider.java:103)
at com.google.common.base.Suppliers$ExpiringMemoizingSupplier.get(Suppliers.java:173)
at io.jenkins.plugins.credentials.secretsmanager.AwsCredentialsProvider.getCredentials(AwsCredentialsProvider.java:61)
at com.cloudbees.plugins.credentials.CredentialsProvider.getCredentials(CredentialsProvider.java:1147)
at com.cloudbees.plugins.credentials.CredentialsProvider.getCredentials(CredentialsProvider.java:1222)
at com.cloudbees.plugins.credentials.CredentialsProvider.lookupCredentials(CredentialsProvider.java:549)
at com.cloudbees.plugins.credentials.CredentialsProvider.findCredentialById(CredentialsProvider.java:906)
at com.cloudbees.plugins.credentials.CredentialsProvider.findCredentialById(CredentialsProvider.java:850)
at org.jenkinsci.plugins.credentialsbinding.MultiBinding.getCredentials(MultiBinding.java:144)
at org.jenkinsci.plugins.credentialsbinding.impl.UsernamePasswordMultiBinding.bind(UsernamePasswordMultiBinding.java:75)
at org.jenkinsci.plugins.credentialsbinding.impl.BindingStep$Execution2.doStart(BindingStep.java:135) {code}
 

chris+jenkins@chriskilding.com (JIRA)

unread,
Jan 17, 2020, 6:49:03 AM1/17/20
to jenkinsc...@googlegroups.com
Chris Kilding started work on Bug JENKINS-60652
 
Change By: Chris Kilding
Status: Open In Progress

chris+jenkins@chriskilding.com (JIRA)

unread,
Jan 17, 2020, 10:02:07 AM1/17/20
to jenkinsc...@googlegroups.com
 
Re: Plugin breaks credential list views when it cannot contact AWS

Started work on the pull request to fix the bug.

chris+jenkins@chriskilding.com (JIRA)

unread,
Jan 20, 2020, 11:27:06 AM1/20/20
to jenkinsc...@googlegroups.com

chris+jenkins@chriskilding.com (JIRA)

unread,
Jan 20, 2020, 11:28:02 AM1/20/20
to jenkinsc...@googlegroups.com
Change By: Chris Kilding
Status: In Review Resolved
Resolution: Fixed
Released As: 0.1.3
Reply all
Reply to author
Forward
0 new messages