-
-
Notifications
You must be signed in to change notification settings - Fork 200
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
Enable silencing of "gpg: WARNING: unsafe permissions on homedir" warning (--no-permission-warning) #999
Comments
FYI: As a workaround, we are currently using a shim for
The file is located at But this is obviously not a desirable solution and probably has some side effects somewhere :( This is done in our Dockerfile via:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What are the steps to reproduce this issue?
git secret
.gitsecret/keys
folder via bind-mount with docker on Windows via Docker Desktop (Docker Desktop sets permissions to read/write/execute for users, groups and others 0777 - this can not be changed)git secret hide
gpg: WARNING: unsafe permissions on homedir
Run the following script on Windows using Docker Desktop
See this gif for the an example
What happens?
A GPG permission warning is shown
What were you expecting to happen?
Not see any warnings
Proposal
Add an ENV variable like
DISABLE_GPG_PERMISSIONS_WARNING
that sets the--no-permission-warning
flag on thegpg
command.Any other comments?
This behavior started when we switched from v0.4.0 to v0.5.0 and is also documented in the CHANGELOG via
Unfortunately, there is no way to disable the warnings. In the setup outlined above, it is impossible to change the file permissions, see:
(https://docs.docker.com/desktop/settings/windows/#file-sharing)
(https://docs.docker.com/desktop/troubleshoot/topics/#permissions-errors-on-data-directories-for-shared-volumes)
(https://docs.docker.com/desktop/faqs/windowsfaqs/#can-i-change-permissions-on-shared-volumes-for-container-specific-deployment-requirements)
What versions of software are you using?
Operating system: (
uname -a
) …git-secret
path: (which git-secret
) …git-secret
version: (git secret --version
) …git
version: (git --version
) …Shell type and version: (
$SHELL --version
) …gpg
version: (gpg --version
) …The text was updated successfully, but these errors were encountered: