Closed jonkerj closed 3 years ago
@jonkerj
Your pre-configured Secret is incorrect, the key is a typo.
It should be aws_secret_access_key
, not aws_secret_key
.
WAS
apiVersion: v1
kind: Secret
metadata:
name: minio-credentials
namespace: velero
stringData:
cloud: |
[default]
aws_access_key_id=<secret>
aws_secret_key=<not going to tell>
IS
apiVersion: v1
kind: Secret
metadata:
name: minio-credentials
namespace: velero
stringData:
cloud: |
[default]
aws_access_key_id=<secret>
aws_secret_access_key=<not going to tell>
I can report the same behavior, without the typo in the key. I was able to make progress, however, by creating the cloud-credentials secret outside of "velero install" (i.e., in the 00-minio-deployment.yaml file), but still providing the secret name to velero install. It reported the secret already existing, and proceeded. The only other difference, and I don't think this should be significant, is that I made the secret with stringData instead of data (which velero install does when it creates the secret).
I have the same issue when using Minio as backupstoragelocation and using openebs as default provider.
What I found is that AWS_SHARED_CREDENTIALS_FILE
env var is only set when using AWS
provider 0.
The workaround I have is adding it to the extraEnvVars
like below.
credentials:
secretContents:
cloud: |
[default]
aws_access_key_id=<secret>
aws_secret_key=<not going to tell>
extraEnvVars:
AWS_SHARED_CREDENTIALS_FILE: /credentials/cloud
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Closing the stale issue.
I tried setting up velero today using ansible & minio, came up with the same problem. existingSecret
would not work, had to use extraSecretRef
so this issue still exists.
What steps did you take and what happened: I am trying to use Velero targetting minio to backup my k8s cluster. Whatever I do, velero complains (repeatedly) about this in the logs:
The BSL is not getting verified and all Backups fail.
I have installed Velero using Helm (chart v2.16.0 / app v1.5.3) using the following values:
I've preconfigured a secret:
To double check,
kubectl exec -n velero deploy/velero -- cat /credentials/cloud
yields the above data.And here is the thing: when I switch from credential file based secrets to env vars, it does work. Config is identical, except for:
With the following secret:
What did you expect to happen: I would expect velero to be able to access Minio using the credentials file.
Anything else you would like to add: I tried several things:
velero install
Unfortunately, issues with seemingly similar problems (#2279, #2278) were closed without resolution.
Environment:
velero version
): client v1.5.3, server v1.5.3velero client config get features
):kubectl version
): client v1.20.2 server v1.20.5/etc/os-release
): n/a (talos)Vote on this issue!
This is an invitation to the Velero community to vote on issues, you can see the project's top voted issues listed here.
Use the "reaction smiley face" up to the right of this comment to vote.