Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encryption with csi-driver #1120

Open
sj14 opened this issue Sep 14, 2024 · 1 comment
Open

Encryption with csi-driver #1120

sj14 opened this issue Sep 14, 2024 · 1 comment

Comments

@sj14
Copy link

sj14 commented Sep 14, 2024

Hi, I've patched the DaemonSet and added encrypt_rsa_key to the secret according to the documentation [1].

However, the juicefs-plugin container reports:

node.go:149] NodePublishVolume: mounting juicefs with secret [secret-key storage access-key bucket encrypt_rsa_key format-options metaurl name], options [ro]
juicefs.go:352] Get PV with volumeID <REDACTED> error: k8s client is nil
juicefs.go:984] ceFormat cmd: [/usr/local/bin/juicefs format --storage=s3 --bucket=<REDACTED> --access-key=<REDACTED> --secret-key=${secretkey} ${metaurl} <REDACTED> --trash-days=1 --block-size=4096 --encrypt-rsa-key]
juicefs.go:1004] Format output is ERROR: This command requires at least 2 arguments

It seems the encryption key from the secret is not passed to the format command.

I'm using the following values for the chart:

immutable: true
mountMode: process

Help is appreciated.

[1] https://juicefs.com/docs/csi/security/encryption

@zwwhdls zwwhdls transferred this issue from juicedata/charts Sep 19, 2024
@zwwhdls
Copy link
Member

zwwhdls commented Sep 19, 2024

Hi, can you provide the secret and version of CSI node ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants