Skip to content

Handle non-2xx responses from secrets endpoint#167

Merged
steventux merged 1 commit intomainfrom
handle-non-2xx-secrets-response
Aug 4, 2025
Merged

Handle non-2xx responses from secrets endpoint#167
steventux merged 1 commit intomainfrom
handle-non-2xx-secrets-response

Conversation

@steventux
Copy link
Contributor

AWS Parameters and Secrets endpoint is used to retrieve/cache secrets when we invoke a lambda.
Being an HTTP endpoint it may not always respond successfully.

This PR adds some resilience to failures around seeding the env from the AWS endpoint:

  • If we encounter a non 2xx response, make another attempt at retrieving secrets.
  • If we encounter a successful response with unparseable JSON, make another attempt at retrieving secrets.

AWS Parameters and Secrets endpoint is used to retrieve/cache secrets when we invoke a lambda. Being an HTTP endpoint it may not always respond successfully.
If we encounter a non 2xx response, make another attempt at retrieving
secrets.
If we encounter a successful response with unparseable JSON, make
another attempt at retrieving secrets.
@steventux steventux added this pull request to the merge queue Aug 4, 2025
Merged via the queue into main with commit ab9c368 Aug 4, 2025
17 checks passed
@steventux steventux deleted the handle-non-2xx-secrets-response branch August 4, 2025 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants