Secret param in ControllerExpandVolumeRequest is inaccessible

I am implementing in my CSI driver the call ControllerExpandVolume()
I have to access to the secret field in ControllerExpandVolumeRequest var, but I got it empty.

I tried to add into the storageClass.yaml file:
those 2 lines:


            "csi.storage.k8s.io/controller-modify-secret-name": "csi-rbd-secret",
            "csi.storage.k8s.io/controller-modify-secret-namespace": "default",

but the sc does not recognize the “modify” and according to here StorageClass Secrets - Kubernetes CSI Developer Documentation
I am not sure if there is an option for access to the secret . So I dont know why there is secret field in the request.
also, if I have to use the secret (I must retrieve some metadata I saved in the image. I dont want to save “locally” metadata. )

thnks for your help.

Cluster information:
Kubernetes version: 1.31
Cloud being used: (put bare-metal if not on a public cloud)
Installation method:
Host OS:
CNI and version:
CRI and version:

You can format your yaml by highlighting it and pressing Ctrl-Shift-C, it will make your output easier to read.