I want to encrypt the binary file using pulumi sec...
# general
b
I want to encrypt the binary file using pulumi secret which can be used inside be pod. Can someone pl suggest a way to do it
b
you said pods, are you talking #kubernetes ?
b
yes
I have a P12 file and want to encrypt it using pulumi secrets and store as a Kubernetes secret.
s
you can base64 encode the contents of the file, then
Copy code
pulumi config set --secret binaryFileContentsOrWhatever <base64 encoded contents>
and then pass
new Config().getSecret("binaryFileContentsOrWhatever")
to the pulumi k8s secret data