https://pulumi.com logo
Title
b

big-psychiatrist-43588

08/17/2022, 4:09 AM
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

billions-processor-3086

08/17/2022, 4:20 AM
you said pods, are you talking #kubernetes ?
b

big-psychiatrist-43588

08/17/2022, 4:21 AM
yes
I have a P12 file and want to encrypt it using pulumi secrets and store as a Kubernetes secret.
s

steep-toddler-94095

08/17/2022, 4:51 AM
you can base64 encode the contents of the file, then
pulumi config set --secret binaryFileContentsOrWhatever <base64 encoded contents>
and then pass
new Config().getSecret("binaryFileContentsOrWhatever")
to the pulumi k8s secret data