Skip to content

A tool for creating and syncing Redis ACLs across all Redis nodes

Notifications You must be signed in to change notification settings

B3ns44d/redis-acl-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Redis ACL Manager

Redis ACL Manager is a tool for managing Redis Access Control Lists (ACLs) using Redis Sentinel. It provides a convenient way to create and manage ACL users in a Redis cluster configured with Sentinel.

Features

  • Create new ACL users with customizable permissions.
  • Manage ACL users in a Redis cluster.
  • Support for connecting to Redis cluster with Sentinel.
  • Sync ACL across Redis nodes

Installation

  1. Clone the repository:

    git clone https://github.com/B3ns44d/redis-acl-manager.git
    cd redis-acl-manager
  2. Install the dependencies:

    pip install -r requirements.txt

Usage

Configuration File

Create a JSON configuration file with the following structure:

{
  "REDIS_PORT": 6379,
  "REDIS_MASTER": "mymaster",
  "REDIS_ADMIN_PASSWORD": "admin_password",
  "REDIS_ADMIN_USER": "admin_user",
  "USERNAME": "test_user",
  "ACL_SETTINGS": {
    "enabled": true,
    "nopass": false,
    "passwords": [
      "+pass1",
      "+pass2"
    ],
    "commands": [
      "+SET",
      "+GET"
    ],
    "keys": [
      "key1",
      "key2"
    ],
    "channels": [
      "channel1",
      "channel2"
    ]
  },
  "REDIS_NODES": "server001.hostname.com,server002.hostname.com,server003.hostname.com"
}

Command-line Arguments

  • --config: Path to the JSON configuration file.
  • --log_level: Log level (DEBUG, INFO, WARNING, ERROR, CRITICAL).

Example Usage

python redis_acl_manager/main.py --config config.json

About

A tool for creating and syncing Redis ACLs across all Redis nodes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages