StackExchange / StackExchange/StackExchange.Redis

Is it possible to have different passwords for each endpoint in StackExchange.Redis

Open
#2,639 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

❔ question
Dominant language
C#
Stars
6.2k
Forks
1.6k
Avg merge
1d 15h
Merged PRs (30d)
43

Description

I am trying to setup endpoints for master and slave. As per the Basics documentation https://stackexchange.github.io/StackExchange.Redis/Configuration.html you can connect to multiple Redis servers, and StackExchange.Redis will automatically determine the master/slave setup.

ConnectionMultiplexer redis = ConnectionMultiplexer.Connect("server1:6379,server2:6379");

Is it possible to have different passwords for master and slave setup?

Here is my code for Master setup, i can add more endpoints to setup slave but not sure if Redis allows different passwords for Master and Slave.

  var configurationOptions = new ConfigurationOptions
  {
   EndPoints = { { cachedserver.Host, cachedserver.Port }, },
   Password = cachedserver.Password,
   SslProtocols = System.Security.Authentication.SslProtocols.Tls12,
  };

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with ConfigurationOptions and the linked Basics documentation, then trace how multiple endpoints and the Password option are represented. Determine whether credentials can be configured per endpoint and identify the relevant behavior or documentation change; done means the supported limitation or capability is clear and verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, redis
Domain
databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.