Issue
While having the AWS Secrets Manager plugin installed, the instance gets unresponsive when loading credentials dropdowns that retrieve information from AWS.
Additionally, we can find similar stack traces as the one below in the Slow Requests folder that is found in the jenkins_home
main folder:
... io.jenkins.plugins.credentials.secretsmanager.CustomSuppliers$ExpiringMemoizingSupplier.get(CustomSuppliers.java:57) io.jenkins.plugins.credentials.secretsmanager.AwsCredentialsProvider.getCredentials(AwsCredentialsProvider.java:47) com.cloudbees.plugins.credentials.CredentialsProvider.getCredentials(CredentialsProvider.java:1146) com.cloudbees.plugins.credentials.CredentialsProvider.getCredentials(CredentialsProvider.java:1220) com.cloudbees.plugins.credentials.CredentialsProvider.lookupCredentials(CredentialsProvider.java:564) ...
This plugin attempts to fetch credentials from the AWS Secrets Manager service and present them in credentials dropdowns inside Jenkins. If the connection to AWS is disrupted, the plugin blocks page loading until the connection times out.
Resolution
An enhancement has been requested to be done in the plugin to use a cache in order to avoid having to retrieve the information from AWS each time a credentials combo is opened in Jenkins, reducing this way the slowness and instability caused by this issue.
Jenkins JIRA link: https://issues.jenkins.io/browse/JENKINS-70126