-
Notifications
You must be signed in to change notification settings - Fork 434
Open
Description
I have a couple of setups using the Zalando Postgres Operator, configured to upload WALs to an S3 bucket using IAM Roles for Service Accounts (IRSA). When upgrading from spilo-16 3.2-p3 to 3.3-p1, wal-g breaks with the following errors:
ERROR: 2024/07/31 21:34:51.694882 Failed to configure multi-storage: configure primary storage: configure storage with prefix "s3://[...]": create S3 storage: create new AWS session: configure session: assume role by ARN: InvalidParameter: 1 validation error(s) found.
- minimum field size of 2, AssumeRoleInput.RoleSessionName.
I have redacted the bucket name.
I believe this is related to the wal-g upgrade from 2.0.1 to 3.0.0, and the bug is probably in there. I expect it is trying to AssumeRole with the RoleSessionName being the empty string, as no AWS_ROLE_SESSION_NAME
is being supplied. Unfortunately I can't test this theory easily as AWS_ROLE_SESSION_NAME
is not passed through to wal-g via configure_spilo.py
.
I have reverted those clusters to 3.2-p3 for now.
danavatavu, minimax75, kruczjak, murtll, Jasper-Ben and 9 more
Metadata
Metadata
Assignees
Labels
No labels