I generate some keys using the command below. The keyfile.enc is encoded in binary
openssl enc -aes-256-cbc -md sha1 -pass file:/tmp/keyfile.key \
-in /tmp/keyfile \
-out /tmp/keyfile.enc
I want to write the contents of this file as a secret in vault
cat keyfile.enc | vault kv put secret/mysecret key=-
However, when I use this secret in my mutating webhook config I have problems getting the contents of this secret.
Are there any limitations wrt binary files ?