Hello @Zach ,
the error is returned by mc (Minio Client). It says Access Denied, which usually means that credentials are wrong.
From restore-backup.sh I can see that we execute the following command:
mc -C /tmp/mc config host add dest “${ENDPOINT:-<a href=“https://s3.amazonaws.com}””>https://s3.amazonaws.com}" “$ACCESS_KEY_ID” “$SECRET_ACCESS_KEY”
And in hereI see that ACCESS_KEY_ID and key are defined based on what you have in the secrets:
accessKey := corev1.EnvVar{
Name: "ACCESS_KEY_ID",
ValueFrom: &corev1.EnvVarSource{
SecretKeyRef: app.SecretKeySelector(s3.CredentialsSecret, "AWS_ACCESS_KEY_ID"),
},
}
Do I understand correctly that if you execute mc command manually with correct keys - it works fine, but it does not work in the operator?
If so, please double check if the keys are set correctly in your secrets file (like backup-s3.yaml).