Sync: merge upstream v1.0.6 (30s timeout for IAM token/DB connect) - #7
Merged
Merged
Conversation
gcaracuel#17) * fix: add 30s timeout to IAM token generation and initial DB connection context.Background() has no timeout, so if STS is unreachable (IRSA misconfig) or RDS is unreachable, the operator hangs at startup indefinitely — never binding health probe ports. Added 30-second context timeouts to: - NewPG initial IAM token generation and DB connection - getConnectionWithIAMAuth temporary connection token generation * fix: add info-level logging for IRSA auth success and DB connection - Added 'Successfully generated IAM auth token, connecting to RDS' info-level log after the IAM token is generated - Changed 'connected to postgres server' from V(1) (debug) to info-level so users can verify the operator connected successfully * fix: improve startup logging before health probe port is bound Add structured logging with host/region/user/database context at each startup step so users can identify where the operator hangs: - 'Using IAM database authentication for RDS' includes region, host, user - 'Successfully generated IAM auth token' after token succeeds - 'Connecting to PostgreSQL' includes host and database - On failure: 'Failed to connect to PostgreSQL' with host/database + error - 'Connected to PostgreSQL server' after connection succeeds - getConnectionWithIAMAuth also logs when generating fresh tokens
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Syncs latest upstream commit:
pkg/postgres/postgres.go)After merge, create tag
v1.0.6onmasterto trigger the chart release workflow.