aws-secrets-manager-credentials-provider-plugin

Caching

This plugin uses AWS Secrets Manager, which is a remote service. It uses caching where appropriate to improve reliability and responsiveness.

Credentials List

The plugin caches the credential list that it obtains from Secrets Manager by default. This list contains metadata about the secrets (like names and descriptions), not the secret values.

When the cache is enabled, credentials are cached for 5 minutes.

You can disable the cache by setting the relevant configuration option in CasC or the Web UI:

unclassified:
  awsCredentialsProvider:
    cache: false

If Jenkins is running, this change will take effect after the current cache expires.

This change has consequences:

As such, you should generally avoid disabling the cache, except for testing purposes.

Credential Value

The plugin never caches the secret value of a credential in normal use. The value is retrieved from Secrets Manager at binding time.

Exceptions: