Class ClusterSecrets

All Implemented Interfaces:
ClusterState.Custom, Diffable<ClusterState.Custom>, NamedDiffable<ClusterState.Custom>, NamedWriteable, VersionedNamedWriteable, Writeable, ChunkedToXContent

public class ClusterSecrets extends AbstractNamedDiffable<ClusterState.Custom> implements ClusterState.Custom
Secrets that are stored in cluster state

Cluster state secrets are initially loaded on each node, from a file on disk, in the format defined by LocallyMountedSecrets. Once the cluster is running, the master node watches the file for changes. This class propagates changes in the file-based secure settings from the master node out to other nodes.

Since the master node should always have settings on disk, we don't need to persist this class to saved cluster state, either on disk or in the cloud. Therefore, we have defined this ClusterState.Custom as a private custom object. Additionally, we don't want to ever write this class's secrets out in a client response, so toXContentChunked(ToXContent.Params) returns an empty iterator.