-
Notifications
You must be signed in to change notification settings - Fork 68
Closed
Labels
Description
User Story
As a System engineer
I want to inject certificates in my docker
So that I can encrypt data/run a webserver using a certificate
Test Scenarios
Given Summon version 0.10.7
When I have a certificate in my provider
Then i want the certificate to be available in my docker as a quoted env variable
Hello,
In the following example, i am trying to use the eyaml command and a PKCS7 certificate.
However, it is multi-line and thus is not properly injected in docker.
summon docker run -it --rm -v $PWD:/repo:Z --env-file @SUMMONENVFILE --entrypoint sh mydocker -c 'eyaml encrypt --pkcs7-private-key=$PRIVPKCS7 --pkcs7-public-key=$PUBPKCS7 -s "something"'
docker: invalid env file (/dev/shm/.summon3055706795): variable '-----END RSA PRIVATE KEY-----' contains whitespaces
A solution would be to quote these variable, or add an option to quote in the secret.yaml file.
Regards
Reactions are currently unavailable