Skip to content

[Bug]: Authentication with Azure Managed Redis fails because an incorrect tenant is used #6047

@GuusRaaphorst

Description

@GuusRaaphorst

Preconditions (Any important steps we need to know)

Setup done on Azure tenant 'YYY'' using Azure setup guide

Steps to reproduce (How to reproduce what you found step by step)

  • Used docker run -d --name redisinsight -p 5540:5540 redis/redisinsight:latest to get the latest image and start redisinsight
  • Opened the ui in a browser on http://localhost:5540/
  • Selected "Connect existing database"
  • Pressed button for "Azure Managed Redis"
  • Selected my user
  • An error messages was shown that the service principal was not found on organization 'XXX'.

Actual behavior (A short description of what you found)

An error message pops up after selecting my account.

AADSTS650052: The app is trying to access a service 'acca5fbb-b7e4-4009-81f1-37e38fd66d78'(AzureRedisCacheAadApp) that your organization 'XXX' lacks a service principal for. Contact your IT Admin to review the configuration of your service subscriptions or consent to the application in order to create the required service principal.

This makes sense, because the setup was done on Azure tenant/organization 'YYY'. Tenant 'YYY' is the tenant of one of our customers where we have several Azure Managed Redis instances. Tenant 'XXX' is the tenant of my own company.

Expected behavior (A short description of what you expected to find)

That I can login with my user. Perhaps having some way to select or set the desired tenant, to help login succeed.

Additional context (Operating system, version of Redis Insight, Redis database version, Redis module version, database type, connection type, logs, or any other information)

  • using latest redis insight from docker
  • Azure Managed Redis with Entra authentication

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions