Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Custom Encryptor #54

Open
cs-akash-jarad opened this issue Apr 29, 2021 · 0 comments
Open

Issue with Custom Encryptor #54

cs-akash-jarad opened this issue Apr 29, 2021 · 0 comments

Comments

@cs-akash-jarad
Copy link

cs-akash-jarad commented Apr 29, 2021

currently, the key mapping process is considered using Halite and Defuse only if i give a custom call path for my Encrypter class then it expected the key to be at that path .
eg :
at line 37 in src/DependencyInjection/DoctrineEncryptExtension.php
$config['encryptor_class_full'] = $config['encryptor_class'];
and for mapping the key path below code is used
$config['secret_directory_path'].'/.'.$config['encryptor_class'].'.key'
issue is if i give my Encryptor calls Path as App\Encryptors\CustomEncryption
and my secret_directory_path path as /opt/application/keypath/

the formation of the key will be expected /opt/application/keypath/App\Encryptors\CustomEncryption
which is not the case.

my proposed solution is to add a new config param as "secret_key_name" if set then it will make the encryption key path accordingly.

PR: #55

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

No branches or pull requests

1 participant