Redis database plugin HTTP API

The Redis database plugin is one of the supported plugins for the database secrets engine. This plugin generates database credentials dynamically based on configured roles for the Redis database.

Configure connection

In addition to the parameters defined by the Database Secrets Enginearrow-up-right, this plugin has a number of parameters to further configure a connection.

Method
Path

POST

/database/config/:name

Parameters

Sample payload

{
  "plugin_name": "redis-database-plugin",
  "host": "localhost://127.0.0.1",
  "username": "user",
  "password": "pass",
  "allowed-roles": "my-*-role"
}

Sample request

Statements

Statements are configured during role creation and are used by the plugin to determine what is sent to the database on user creation, renewing, and revocation. For more information on configuring roles see the Role APIarrow-up-right in the database secrets engine docs.

Parameters

The following are the statements used by this plugin. If not mentioned in this list the plugin does not support that statement type.

Last updated