Skip to content

fix: fetch postgres creds on each app startup#237

Merged
hrodmn merged 1 commit intomainfrom
fix/lambda-secret-race
Mar 17, 2026
Merged

fix: fetch postgres creds on each app startup#237
hrodmn merged 1 commit intomainfrom
fix/lambda-secret-race

Conversation

@hrodmn
Copy link
Contributor

@hrodmn hrodmn commented Mar 13, 2026

resolves #236

⚠️ Checklist if your PR is changing anything else than documentation

Merge request description

Instead of relying on the secret value not changing after a function version is registered and the snapshot is created, simply fetch the secret values on each app startup which should be very fast anyways.

@hrodmn hrodmn requested a review from jjfrench March 13, 2026 01:35
@hrodmn hrodmn self-assigned this Mar 13, 2026
Copy link
Contributor

@jjfrench jjfrench left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me 👍🏼

@hrodmn hrodmn merged commit 6e4f5b8 into main Mar 17, 2026
7 checks passed
@hrodmn hrodmn deleted the fix/lambda-secret-race branch March 17, 2026 20:11
github-actions bot pushed a commit that referenced this pull request Mar 17, 2026
## [11.3.1](v11.3.0...v11.3.1) (2026-03-17)

### Bug Fixes

* fetch postgres creds on each app startup ([#237](#237)) ([6e4f5b8](6e4f5b8)), closes [#236](#236)
@ds-release-bot
Copy link
Contributor

🎉 This PR is included in version 11.3.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SnapStart function versions sometimes cache outdated database credentials

2 participants