Add Redis username parameter #7392

Closed
opened 2025-12-29 20:22:49 +01:00 by adam · 1 comment
Owner

Originally created by @christianpinger on GitHub (Dec 20, 2022).

Originally assigned to: @christianpinger on GitHub.

NetBox version

v.3.4.0

Feature type

Change to existing functionality

Proposed functionality

Allow for specifying an username in the Redis configuration, to be able to connect to Redis servers, which have an redis-username configured.

Implementation:

  • Add optional username parameter to redis-tasks and redis-caching in configuration.py
  • Add TASKS_REDIS_USERNAME and CACHING_REDIS_USERNAME to settings.py
  • Add username to cache-options and RQ_PARAMS in setting.py

Use case

When you have an Redis instance with username configured, you are unable to connect. E.g. Managed-Redis at OVH-cloud forces you to set an redis-user, so this service can't be used for NetBox.

If you could specify an redis user, it would allow users to connect to more redis-instances.

Database changes

No response

External dependencies

No response

Originally created by @christianpinger on GitHub (Dec 20, 2022). Originally assigned to: @christianpinger on GitHub. ### NetBox version v.3.4.0 ### Feature type Change to existing functionality ### Proposed functionality Allow for specifying an username in the Redis configuration, to be able to connect to Redis servers, which have an redis-username configured. ### Implementation: * Add optional username parameter to redis-tasks and redis-caching in configuration.py * Add TASKS_REDIS_USERNAME and CACHING_REDIS_USERNAME to settings.py * Add username to cache-options and RQ_PARAMS in setting.py ### Use case When you have an Redis instance with username configured, you are unable to connect. E.g. Managed-Redis at OVH-cloud forces you to set an redis-user, so this service can't be used for NetBox. If you could specify an redis user, it would allow users to connect to more redis-instances. ### Database changes _No response_ ### External dependencies _No response_
adam added the status: acceptedtype: feature labels 2025-12-29 20:22:49 +01:00
adam closed this issue 2025-12-29 20:22:50 +01:00
Author
Owner

@christianpinger commented on GitHub (Dec 28, 2022):

I can implement it

@christianpinger commented on GitHub (Dec 28, 2022): I can implement it
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7392