-
Notifications
You must be signed in to change notification settings - Fork 552
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
Store Redis username & password in a dedicated environment variables #2083
Comments
P.S. Username & password may be passed as a part of the |
The prefix is based on input endpoint. Some webdav services could expose webdav at
Although the URL is technically valid, incorporating the password directly within the endpoint is risky, as the endpoint is not excluded from Debug output. This oversight could potentially expose the password in logs or traces, leading to a security vulnerability. |
As I can see in Artifactory docs - just used as an example - I should use |
Make sense. Let's provide additional variables for the username & password for the Redis. Will it be OK? |
From my perspective, I believe the endpoint should be
LGTM. We should encourage users to use the |
You prefer to drop the current format support for the new one or just support both or them? |
Dropping current format might lead to a breaking change which is not good. I prefer to support both by including |
SCCACHE_WEBDAV_KEY_PREFIX
value from SCCACHE_WEBDAV_ENDPOINT
* Store Redis credentials via dedicated fields: for security reasons, as discussed in mozilla#2083 * Deprecate `url` usage for Redis config
* Store Redis credentials via dedicated fields: for security reasons, as discussed in #2083 * Deprecate `url` usage for Redis config
As I can see, this split was done in a manner that
opendal
processes URL prefixes (out of the current issue scope).But this concept is not useful, IMO.
I prefer to pass a single
SCCACHE_WEBDAV_ENDPOINT
and extractSCCACHE_WEBDAV_KEY_PREFIX
from the endpoint. Ifopendal
needs,SCCACHE_WEBDAV_ENDPOINT
value may be removed fromSCCACHE_WEBDAV_KEY_PREFIX
too (for better understanding/support viaopendal
provider).If both
SCCACHE_WEBDAV_ENDPOINT
path is non-root andSCCACHE_WEBDAV_ENDPOINT
is not empty, we should:opendal
assert!
and finish the program as an invalid caseI prefer to use the second variant, but maybe some implementations exist that requires both of the values (I don't know anything about them).
The text was updated successfully, but these errors were encountered: