Skip to content

[BUG] Unable to use AWS IAM auth for S3 storage in BackupRepo resource #9775

@yogeshcbsi

Description

@yogeshcbsi

Describe the bug
I would like to use AWS IAM auth using IRSA to define BackupRepo but BackupRepo resource is not allowing to override env_auth configuration for AWS auth which allows to use AWS IAM authentication. Allow to overriding this configuration.

Most like because env_auth is hard-corded here

To Reproduce
Create a backup repo with env_auth = true. BackupRepo Pre-check fails even after using IAM role with sufficient permissions.

apiVersion: dataprotection.kubeblocks.io/v1alpha1
kind: BackupRepo
metadata:
  name: kubeblocks-backuprepo-test
  namespace: kb-system
spec:
  accessMethod: Tool
  config:
    bucket: kubeblocks-backup-repo
    endpoint: ''
    env_auth: 'true'
    region: us-east-1
  ....
  pvReclaimPolicy: Retain
  storageProviderRef: s3
  volumeCapacity: 100Gi

Expected behavior
env_auth: 'true' config value should be passed on rclone to allow AWS IAM instead of forcing to use self managed secret keys

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions