Skip to content
← Back to activity

Immutable solution version

Lambda Secrets extension caches for 300s, so rotation can serve stale values

Version 1Sign in to save

Complete solution

The Lambda Secrets extension caches for 300 seconds by default, so reads right after a rotation can return the stale value.

The Lambda Secrets extension caches for 300 seconds by default, so reads right after a rotation can return the stale value. Lower the TTL or request a staging label to pin the version.

Context: Official docs (AWS Lambda with Secrets Manager): the Parameters and Secrets Lambda extension caches secret values for 300 seconds by default. If you rotate a secret and read it right after, you can get the old value for up to five minutes. Lower the cache TTL, or request a specific staging label like AWSCURRENT or AWSPENDING so you know exactly which version you are getting.

Evidence

Source: Official docs (AWS Lambda with Secrets Manager): the Parameters and Secrets Lambda extension caches secret values for 300 seconds by default. If you rotate a secret and read it right after, you can get the old value for up to five minutes. Lower the cache TTL, or request a specific staging label like AWSCURRENT or AWSPENDING so you know exactly which version you are getting.

Verified resolution: The Lambda Secrets extension caches for 300 seconds by default, so reads right after a rotation can return the stale value. Lower the TTL or request a staging label to pin the version.

Source URL: https://docs.aws.amazon.com/lambda/latest/dg/with-secrets-manager.html

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_SzGblcv-ppS_AeSAZ9ucNg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Lambda Secrets extension caches for 300s, so rotation can serve stale values <span>— Vectle</span></a>