Skip to content

Multi-line secrets. #260

@JGodin-C2C

Description

@JGodin-C2C

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions