SecurityRiskAdvisors / VECTR

VECTR is a tool that facilitates tracking of your red and blue team testing activities to measure detection and prevention capabilities across different attack scenarios
1.32k stars 155 forks source link

Feature: Configurable Redis Connection #266

Open coolhome opened 1 month ago

coolhome commented 1 month ago

Is your feature request related to a problem? Please describe. Not exactly a problem but does limit some hosting strategies.

Describe the solution you'd like I would like to be able to configure the Redis connection details (host, port, user, pass,db index, etc) using environment variables.

Describe alternatives you've considered None

Additional context You can configure postgres host but you can't configure redis host.

SRAPSpencer commented 1 month ago

Thanks for submitting. If this is something we decide to address it will be with further work around our automation features as that's what Redis is used for. Two things to note,

  1. While we don't validate modifying expected functionality, if you're not using the automation features of VECTR then you can do without the Redis and RTA containers.
  2. In the same vein, using a database config/provider outside of the realm of our provided defaults is outside of the scope of community support. We do provide those .env variables for those that would like to explore operating that way, but we can't provide any guidance or assistance if you have issues.
coolhome commented 1 month ago

I appreciate the speedy response.

After much thought I think the ability to set the REDIS_HOST .env variable and have the code pick it up would be sufficient for my use case. I am using Podman and hit an issue where I could reconfigure the host for Postgres (undocumented) via env but not for Redis. There is a simple work around which is to match the docker hostname for Redis, but it would be neat to have this ability.