public final class ConsistentSettingsService extends Object
Used to publish secure setting hashes in the cluster state and to validate those hashes against the local values of those same settings. This is colloquially referred to as the secure setting consistency check. It will publish and verify hashes only for the collection of settings passed in the constructor. The settings have to have the
Method SummaryModifier and TypeMethodDescription
()Verifies that the hashes of consistent secure settings in the latest
ClusterStateverify for the values of those same settings on the local node.
LocalNodeMasterListenerthat will publish hashes of all the settings passed in the constructor.
newHashPublisherpublic LocalNodeMasterListener newHashPublisher()
areAllConsistentpublic boolean areAllConsistent()Verifies that the hashes of consistent secure settings in the latest
ClusterStateverify for the values of those same settings on the local node. The settings to be checked are passed in the constructor. Also, validates that a missing local value is also missing in the published set, and vice-versa.