Skip to content
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.

Use path location for keys instead of parameter values #1

Open
sverraest opened this issue Apr 19, 2018 · 1 comment
Open

Use path location for keys instead of parameter values #1

sverraest opened this issue Apr 19, 2018 · 1 comment

Comments

@sverraest
Copy link

Is there a way to give a location to a path on the server for the private.pem and public.pem keys instead of having to include them in the parameters.yml file?

@picodexter
Copy link
Owner

picodexter commented Apr 19, 2018

Right now there is no way to do that right out of the box, but you could add a key transformer service which takes the key value and transforms it based on certain criteria (e.g. if the value starts with "file:" you could recognize the rest of the value as a path).

The key transformers are loaded by the pcdx_parameter_encryption.encryption.key.resolver service, so you just have to override that service definition in order to load your own one.

Btw this is an issue for the main bundle PcdxParameterEncryptionBundle, but I do get that it especially makes sense in this particular bundle.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants