Learn how to dynamically generate Elasticsearch user credentials.
manage_security
and monitor
permissions.superuser
, that will have full control over the cluster. This is not
recommended in production environments following the principle of least
privilege.Open Secret Overview Dashboard
Click on the 'Add Dynamic Secret' button
Select 'Elasticsearch'
Provide the inputs for dynamic secret parameters
superuser
, which
is highly privileged. It is recommended to create a new role with the least
privileges required for the lease.Username/Password
authentication
method.Username/Password
authentication
method.API Key
authentication method.API Key
authentication method.{{randomUsername}}
: Random username string{{unixTimestamp}}
: Current Unix timestamp{{identity.name}}
: Name of the identity that is generating the secret{{random N}}
: Random string of N characterstruncate
: Truncates a string to a specified lengthreplace
: Replaces a substring with another valueClick `Submit`
Generate dynamic secrets
Submit
button, a new secret lease will be generated and the credentials from it will be shown to you.