-
Notifications
You must be signed in to change notification settings - Fork 695
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
OSSEC test alert does not send, gpg "Permission denied" error in procmail log #5265
Comments
It looks like the issue went away after the nightly reboot. Now I can send test alerts that look as follows:
Assuming that's the expected format, closing. |
Even though the above email sent (and was encrypted), I still see a gpg "Permission denied" error in the procmail log for the same email. Reopening until we can confirm that it's either a problem with my instance or an expected error that's safe to ignore. |
From the looks of it so far, not high priority, but a good learning issue for @rocodes and myself to poke at in the 5/20-6/3 sprint. |
Can repro, am currently investigating! |
More than anyone probably wanted to know about thisSTR: triggered a test alert in the journalist interface, examined mon server (@1.3.0).
The Whence?
Is this serious?From a cursory look, it does not look serious. For example, it is possible to pass a From the gnupg manpage (https://gnupg.org/documentation/manpage.html): What do?Either the permissions could be changed to 600 from 550, or if the intention is to use gnupg in read-only mode after the install, we could suppress this warning (eg by looking at --no-random-seed-file and other gnupg options). |
lightning response, thanks @conorsch. EOD for me but I'll pick this up again tomorrow |
Definitely agree we should clean up the permissions. Noting that on the gnupg dir for OSSEC, we actually want 700, not 600—but definitely not 550! I suggest making the change in two places:
With that approach, we'll rely on the deb package logic to enforce state on servers during upgrade. In order to test the approach working well, we should use the "upgrade" scenario, to confirm that a server with bad 550 perms gets switched to 700 perms without any use of Ansible. |
Environment: long-running production instance just updated to 1.3.0 (not manually rebooted yet)
I see OSSEC alerts flowing, but sending a test alert via the Journalist Interface ("Instance Config" section) does not work for me. I see the following error in
/var/log/procmail.log
on the monitor server:Note: I don't know if this is a recent regression or a longstanding issue with my instance.
The text was updated successfully, but these errors were encountered: