-
Notifications
You must be signed in to change notification settings - Fork 23
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
There is no possibility to choose a custom file path #77
Comments
SecretStore is designed as a local store and was not intended to be portable. The location of the data files is part of the security, especially if 'no password' option is selected. However, this is something we can consider as a future enhancement. |
Is at least DPAPI used if option set to "no password"? |
Encryption by user name is just a defense in depth effort when storing the actual encryption key to file, to add a layer of obfuscation. For the 'no password' option we basically rely on file system to protect the stored key. DPAPI was not used because it is Windows only, and also only works well for logged in user accounts but not built-in accounts. We could use DPAPI in However, we could special case Windows only platform and log-in accounts and use DPAPI only in these cases. It is something to consider. |
DPAPI should protect secrets if a laptop is stolen, the filesystem does not protect in that case. It's really a shame that you implement a no protection option in a secret store! |
The documentation is clear that the no password option is less secure and that secret protection relies on file system access protections. But it is not 'no protection at all'. The default configuration has the highest security with password option on. If you only use Windows systems, you can try using the CredMan extension vault. A community member has taken this example extension vault and published it on PSGallery. Also, SecretManagement is extensible so you can create your own extension vault implementation to fit your specific needs. |
That's only working for interactive users. DPAPI is the only viable solution. The documentation states:
But it does not state that the file itself is totally unprotected. |
There is no possibility to choose a custom file path right now.
This feature would be really useful for team collaboration and automation environments, as the secret store could be checked into a Git repository together with the scripts that require it. This functionality would be similar to Ansible Vault.
The text was updated successfully, but these errors were encountered: