-
Notifications
You must be signed in to change notification settings - Fork 88
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
Bug: Remote Servers Certificates - Persistence Issue #16
Comments
Oh interesting, that is not a use case that was in our mind when designing this image. What if you use a bind mount for that directory? Have you tried? |
Yes I already mounted the certs directory within the
I also mounted this directory: |
Basically, everything in each subfolders of |
I am not going to remove that command since it's needed.
|
I did not ask you to remove that command. I proposed to remove the As proposed, I tried to mount only the certs directory and the same thing happens. |
Because I want to propagate if a new version of MISP deletes some of the directories inside files. |
Oh and now I see the issue. A few months ago the directory was not part of the MISP, now it is an empty directory, that is the issue, and the rsync behavior changed. @Felix83000 I think adding an exception in the script is the way to go; can you create a PR with the fix? |
I can propose you something like this then:
I will make the PR as soon as possible. I need to test it first. You will be able to modify it if needed. |
When do you plan to merge it? Will it be available for 2.4.185? |
Thank you for your PR and I appreciate you editing/deleting your previous messages. |
Actual behavior
After adding authentication certificates to one of our remote server and reloading the container the certificates disapears in the folder
/var/www/MISP/app/files/certs/
It seems that this function is executed at each container startup
core/files/entrypoint_nginx.sh
:--delete
: This option tellsrsync
to delete files in the destination directory (/var/www/MISP/app/files/) that do not exist in the source directory (/var/www/MISP/app/files.dist/certs
).This result deleting all custom certificates in (
/var/www/MISP/app/files/certs
).In the startup logs:
Expected behavior
The Certificates should remain in
/var/www/MISP/app/files/certs/
after rebooting the MISP Docker container.Steps to reproduce
You would get a Connection Timeout:
Operating System
Centos
Operating System version
8
The text was updated successfully, but these errors were encountered: