Skip to content

Support Scaleway API keypairs #280

@gabbler97

Description

@gabbler97

Hi all,

I’ve started using this driver on Scaleway.

On Scaleway, the S3 bucket access key and secret key are the API key itself.
The access key is 20 characters long, containing uppercase letters and numbers, which I believe is compatible with your driver.
The secret key, however, contains lowercase letters, numbers, and “-” characters, for example:
1a111a11-1a1a-1a11-11a1-a111a1111a1a

I’m using dynamic provisioning right now, but I’m planning to use it for static provisioning as well.
The PVC gets created and the bucket is also created in the background, but unfortunately the pod cannot mount the volume.

I get the following error:

Warning  FailedMount  108s (x16 over 18m)  kubelet  MountVolume.SetUp failed for volume "pvc-97f73e8b-af52-4b55-816f-2de9c164c7df": rpc error: code = Internal desc = Could not mount "csi-s3-841d403f-39fc-46cb-a3d5-310a1ff14e41" at "/var/lib/kubelet/pods/59f4aac4-d485-44e9-9cf6-997e596007d4/volumes/kubernetes.io~csi/pvc-97f73e8b-af52-4b55-816f-2de9c164c7df/mount": failed to provide credentials for "/var/lib/kubelet/pods/59f4aac4-d485-44e9-9cf6-997e596007d4/volumes/kubernetes.io~csi/pvc-97f73e8b-af52-4b55-816f-2de9c164c7df/mount": rpc error: code = InvalidArgument desc = credentialprovider: missing or invalid keys in Kubernetes Secret: secret_access_key

You can see Mountpoint logs by running: `kubectl logs -n mount-s3 mp-a7008a177d37937114ab40e92906e35a6f7b4792e38e8d1beaab44a8`. If the Mountpoint Pod already restarted, you can also pass `--previous` to get logs from the previous run.

I think this is the corresponding line

secretAccessKeyRe = regexp.MustCompile(`^[A-Za-z0-9/+=]{1,` + strconv.Itoa(maxSecretAccessKeyLen) + `}$`)

I tried your driver on Stackit Cloud and it works perfectly.

Thank you in advance for your help!

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