Configure Time Service Maxpoll Interval
An XCCDF Rule
Description
The maxpoll
should be configured to
/etc/ntp.conf
or
/etc/chrony.conf
to continuously poll time servers. To configure
maxpoll
in /etc/ntp.conf
or /etc/chrony.conf
add the following after each `server`, `pool` or `peer` entry:
maxpollto
serverdirectives. If using chrony any
pooldirectives should be configured too. If no
server
or pool
directives are configured, the rule evaluates
to pass.
Note that if the remediation shipping with this content is being used, the MachineConfig shipped does not include reference NTP servers to point to. It is up to the admin to set these which will vary depending on the cluster's requirements.
The aforementioned remediation does include the directory /etc/chrony.d
which would allow the creation of configuration files to set these servers.
pool 2.rhel.pool.ntp.org iburst server 0.rhel.pool.ntp.org minpoll 4 maxpoll 10 server 1.rhel.pool.ntp.org minpoll 4 maxpoll 10 server 2.rhel.pool.ntp.org minpoll 4 maxpoll 10 server 3.rhel.pool.ntp.org minpoll 4 maxpoll 10This could be done with to the following manifest:
apiVersion: machineconfiguration.openshift.io/v1 kind: MachineConfig metadata: labels: machineconfiguration.openshift.io/role: master name: 75-master-chrony-servers spec: config: ignition: version: 3.1.0 storage: files: - contents: source: data:,pool%202.rhel.pool.ntp.org%20iburst%0A%0Aserver%200.rhel.pool.ntp.org%20minpoll%204%20maxpoll%2010%0Aserver%201.rhel.pool.ntp.org%20minpoll%204%20maxpoll%2010%0Aserver%202.rhel.pool.ntp.org%20minpoll%204%20maxpoll%2010%0Aserver%203.rhel.pool.ntp.org%20minpoll%204%20maxpoll%2010 mode: 0600 path: /etc/chrony.d/10-rhel-pool-and-servers.conf overwrite: trueNote that this needs to be done for each
MachineConfigPool
Rationale
Inaccurate time stamps make it more difficult to correlate events and can lead to an inaccurate analysis. Determining the correct time a particular event occurred on a system is critical when conducting forensic analysis and investigating system events. Sources outside the configured acceptable allowance (drift) may be inaccurate. Synchronizing internal information system clocks provides uniformity of time stamps for information systems with multiple system clocks and systems connected over a network. Organizations should consider endpoints that may not have regular access to the authoritative time server (e.g., mobile, teleworking, and tactical endpoints).
- ID
- xccdf_org.ssgproject.content_rule_chronyd_or_ntpd_set_maxpoll
- Severity
- Medium
- References
- Updated
Remediation - Kubernetes Patch
---
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
spec:
config:
ignition: