Description:
I am trying to setup the automatic backup using serviceaccount without passing credentialsecrets. The backup doesn’t suppose to be working.
Steps to Reproduce:
Deploy the percoanmongodb using helm chart and try configuring backup only using serviceaccount.
Below given is my backup section of the values.yaml I used →
backup:
enabled: true
image:
repository: percona/percona-backup-mongodb
tag: 2.3.0
serviceAccountName: percona-server-mongodb-operator
annotations:
iam.amazonaws.com/role: arn:aws:iam::645193536862:role/prod-percona-s3-role
# podSecurityContext: {}
# containerSecurityContext: {}
# resources:
# limits:
# cpu: "300m"
# memory: "0.5G"
# requests:
# cpu: "300m"
# memory: "0.5G"
storages:
backupstorage:
type: s3
s3:
bucket: "ds-mongodb-backup"
credentialsSecret: percona-backup-secret
region: us-east-1
prefix: "perconabackup"
# uploadPartSize: 10485760
# maxUploadParts: 10000
storageClass: STANDARD
insecureSkipTLSVerify: true
# minio:
# type: s3
# s3:
# bucket: MINIO-BACKUP-BUCKET-NAME-HERE
# region: us-east-1
# credentialsSecret: my-cluster-name-backup-minio
# endpointUrl: http://minio.psmdb.svc.cluster.local:9000/minio/
# prefix: ""
# azure-blob:
# type: azure
# azure:
# container: CONTAINER-NAME
# prefix: PREFIX-NAME
# credentialsSecret: SECRET-NAME
pitr:
enabled: false
oplogOnly: false
# oplogSpanMin: 10
# compressionType: gzip
# compressionLevel: 6
tasks:
- name: mongobackup_night
enabled: true
schedule: "30 23 * * *"
keep: 5
storageName: backupstorage
compressionType: gzip
type: logical
- name: mongobackup_day
enabled: true
schedule: "0 12 * * 0"
keep: 5
storageName: backupstorage
compressionType: gzip
type: logical
Version:
[Insert the version number of the software]
Logs:
The error I am getting in my logs is this →
[agentCheckup] check storage connection: storage check failed with: get S3 object header: Forbidden: Forbidden
status code: 403, request id: XMW9A46YZQR1D6RH, host id: hIfOWJwRb6E2jxlfURSgKv9+gPl0F3fnIIeDg/qBjIFjlCyorRt5EvOTU1vxOa7sv/JfiSPHfLg=
Expected Result:
The automatic backup should get initiated
Actual Result:
There is permission error without credential secret.
Additional Information:
[Include any additional information that could be helpful to diagnose the issue, such as browser or device information]