Skip to content

issue when using barman plugin with AWS S3 IRSA #500

@josmo

Description

@josmo

When moving from the native backup to the new plugin style, there's an issue with authentication to AWS.

I've followed the configuration of including the correct role in

  serviceAccountTemplate:
    metadata:
      annotations:
        eks.amazonaws.com/role-arn: arn:aws:iam::xxxxxxxxx:role/role

as well as the inheritFromIAMROle

spec:
  retentionPolicy: "30d"
  configuration:
    destinationPath: s3://mybucketxxxx/key1/key2/
    s3Credentials:
      inheritFromIAMRole: true
    wal:
      compression: bzip2

However we keep getting errors like the following in the plugin sidecar

WARNING: Refreshing temporary credentials failed during mandatory refresh period.
ERROR: Barman cloud WAL archive check exception: An error occurred (InvalidIdentityToken) when calling the AssumeRoleWithWebIdentity operation: No OpenIDConnect provider found in your account for https://oidc.eks.us-gov-west-1.amazonaws.com/id/xxxxxxxxxxxx

This works with the native backup with the same role, to the same bucket.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions