Module: Elasticsearch::API::Encryption::Actions
- Defined in:
- lib/elasticsearch/api/actions/encryption/reset.rb
Instance Method Summary collapse
-
#reset(arguments = {}) ⇒ Object
Reset the project encryption key.
Instance Method Details
#reset(arguments = {}) ⇒ Object
Reset the project encryption key.
Destroy the current project encryption key (PEK) and generate a new one.
This is the recovery path for when the on-disk encrypted PEK becomes permanently
inaccessible, for example because the key encryption material protecting it was lost.
All data that was encrypted under the destroyed key becomes permanently unrecoverable.
Each feature that stores encrypted data decides how to handle its own data during the
reset: some features drop the encrypted values entirely, while others preserve the rest
of the affected data and only clear the values that can no longer be decrypted.
Because this operation causes permanent data loss, it requires the accept_data_loss
query parameter to be set to true.
This functionality is experimental and is not ready for production usage. Experimental
features may change or be removed at any time. Elastic will work to fix any issues, but
experimental features are not subject to the support SLA of official GA features. Specific
Support terms apply.
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/elasticsearch/api/actions/encryption/reset.rb', line 62 def reset(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'encryption.reset' } arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil method = Elasticsearch::API::HTTP_POST path = '_encryption/_reset' params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) end |