Class DataSourceEncryptedDataHandler

java.lang.Object
org.elasticsearch.xpack.esql.datasources.DataSourceEncryptedDataHandler
All Implemented Interfaces:
EncryptedDataHandler<DataSourceMetadata>

public final class DataSourceEncryptedDataHandler extends Object implements EncryptedDataHandler<DataSourceMetadata>
Re-encrypts every stored data-source secret under the active project encryption key on rotation — without it, retiring a key would strand secrets undecryptable. Driven by the rotation coordinator for the DataSourceMetadata custom; contributed via EsqlEncryptedDataHandlerProvider. The payload is an opaque writeGenericValue blob, preserved verbatim — only the wrapping key changes.