ra-tls-secret-prov/secret_prov_pf on Kubernetes not decrypting file (no errors apparently) #1610
-
Hello, I am trying to run the example ra-tls-secret-prov/secret_prov_pf on a kubernetes environment using volumes with encrypted mounts on gsc manifest - sorry if its the wrong place to make this question. The client and the server were ported to a docker image, to make it easier to run on kubernetes.
Here is the kubernetes yml file, where I encrypt the file (on a init container called encrypt-data) using the volume and then use the same encrypted file on the main container called client - attaching the same volume.
And here are the logs of the server that provides the secret:
And here is the logs of the client container:
Since it shows 'GRAFS_PF' its not actually decrypting the file, it is instead the encrypted file itself... I guess the problem is related to how kubernetes handles this kind of volumes. Thank you in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
@tiagorvmartins Looks like Gramine for some reason doesn't recognize the Please add |
Beta Was this translation helpful? Give feedback.
Yes, you're correct! My mistake. But your new solution is perfect.
We really need to add a new command-line option to
gramine-sgx-pf-crypt
to allow specifying arbitrary filenames, so that deployers have easier time. I added it in my TODO list.