-
Notifications
You must be signed in to change notification settings - Fork 43
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
feat: Implements CIS Benchmark - 2.1.2 Ensure chrony is configured #236
base: main
Are you sure you want to change the base?
Conversation
[citest] |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @mlichvar - so the PR as it stands needs some work so that it will only set -u chrony
on those platforms that do not set a default user.
Hello, in RHEL the compiled-in default user is "chrony" user, on the other hand, CIS benchmark want to be sure that is also the effective configuration. Is it possible to add a check in order to implements it only on RHEL. Another way to allow the implementation is to allow to customization of the sysconfig file. |
I'm not sure what you are trying to do. Are you running some sort of CIS compliance scanner that is complaining that chronyd is not using |
Yes, I'm appling CIS compliant configuration. On the other hand, this role broke the configuation as it removes |
Well, as @mlichvar says, the default on RHEL is |
Unfotunally no, CIS Security mandatory requires explicit user in |
If a new option needs to be added to the role for this, I'd prefer a more general approach specifying directly the additional chronyd options included in /etc/sysconfig/chronyd, e.g. |
The role already has |
Some systems don't have sysconfig, e.g. on Debian the options are in |
Ok - what about |
That's better. I'm not sure if it's clear enough that it's the command-line options. I suspect someone could confuse it with the systemd service settings. |
Signed-off-by: Francesco Trentini <[email protected]>
e41332b
to
7a467eb
Compare
Hello, I've updated with the suggestion and using |
[citest] |
How can we test this? e.g. add or modify a test in https://github.com/linux-system-roles/timesync/tree/main/tests ? |
I had to close and reopen the PR to trigger checks - not sure why the checks were not being run . . . |
Need a test for this in tests/ |
Enhancement:
I changed the template for chrony sysconfig in order to implement CIS Benchmark recomendation for RHEL.
Reason:
Be compatible with CIS Benchmark "2.1.2 Ensure chrony is configured" on a RHEL.
Result:
CIS Benchmark compatible.
Issue Tracker Tickets (Jira or BZ if any):
N.A.