-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Authentication to Redis #2222
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also be setting these values in Docker/the CI?
What do you think about also including them in the example file?
src/config/entities/configuration.ts
Outdated
user: process.env.REDIS_USER || undefined, | ||
pass: process.env.REDIS_PASS || undefined, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are undefined
by default.
user: process.env.REDIS_USER || undefined, | |
pass: process.env.REDIS_PASS || undefined, | |
user: process.env.REDIS_USER, | |
pass: process.env.REDIS_PASS, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
9e76bd1
REDIS_USER = undefined, | ||
REDIS_PASS = undefined, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are undefined
by default.
REDIS_USER = undefined, | |
REDIS_PASS = undefined, | |
REDIS_USER, | |
REDIS_PASS, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
9e76bd1
user: process.env.REDIS_USER || undefined, | ||
pass: process.env.REDIS_PASS || undefined, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are undefined
by default.
user: process.env.REDIS_USER || undefined, | |
pass: process.env.REDIS_PASS || undefined, | |
user: process.env.REDIS_USER, | |
pass: process.env.REDIS_PASS, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
9e76bd1
@iamacook Well, since we haven't decided to enable authentication I haven't included them in the compose file yet. Edit: Sample file updated |
Summary
This PR adds authentication support for Redis in the application. It configures Redis connections to include authentication credentials, ensuring secure access to the Redis instance
Changes