-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
18 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com), and this | |
|
||
### Removed | ||
* Remove `BackwardsCompatibleMonologProcessorDelegator`. | ||
* Remove support for redis URIs with just a password in place of the username (like `tcp://[email protected]`). | ||
* Remove support for non-URL-encoded credentials in redis URIs. | ||
* Remove `json_decode` and `json_encode` functions. | ||
|
||
### Fixed | ||
* *Nothing* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,16 +50,15 @@ return [ | |
|
||
'redis' => [ | ||
'servers' => [ | ||
// These should be valid URIs. Make sure credentials are URL-encoded | ||
'tcp://1.1.1.1:6379', | ||
'tcp://2.2.2.2:6379', | ||
'tcp://3.3.3.3:6379', | ||
'tcp://user:password@4.4.4.4:6379', // Redis ACL (https://redis.io/docs/management/security/acl/) | ||
'tcp://user:pass%40word@4.4.4.4:6379', // Redis ACL (https://redis.io/docs/management/security/acl/) | ||
'tcp://:[email protected]:6379', // Redis security (https://redis.io/docs/management/security/) | ||
'tcp://[email protected]:6379', // Same as above, but it's deprecated, as it's not a standard URI | ||
'tls://server_with_encryption:6379', | ||
], | ||
'sentinel_service' => 'the_service', // Optional. | ||
'decode_credentials' => true // Optional. Defaults to false | ||
], | ||
], | ||
|
||
|
@@ -72,7 +71,6 @@ You can allow caching to be done on a redis instance, redis cluster or redis sen | |
|
||
* `servers`: A list of redis servers. If one is provided, it will be treated as a single instance, and otherwise, a cluster will be assumed. | ||
* `sentinel_service`: Lets you enable sentinel mode. When provided, the servers will be treated as sentinel instances. | ||
* `decode_credentials`: Indicates if server credentials (if present) should be URL decoded before passing to redis connection. Otherwise, they are passed verbatim. | ||
|
||
> **Note** | ||
> The entries in `servers` support credentials in the form of `tcp://password@my-server:6379` or `tcp://username:password@my-server:6379`. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -144,19 +144,11 @@ public static function provideServersWithCredentials(): iterable | |
yield 'password only' => [[ | ||
'servers' => ['tcp://:[email protected]:6379'], | ||
], null, 'baz', null]; | ||
yield 'password only (deprecated)' => [[ | ||
yield 'username only' => [[ | ||
'servers' => ['tcp://[email protected]:6379'], | ||
], null, 'foo', null]; | ||
], 'foo', null, null]; | ||
yield 'URL-encoded' => [[ | ||
'servers' => ['tcp://user%3Aname:pass%[email protected]:6379'], | ||
], 'user%3Aname', 'pass%40word', null]; | ||
yield 'URL-encoded, no request decode' => [[ | ||
'servers' => ['tcp://user%3Aname:pass%[email protected]:6379'], | ||
'decode_credentials' => false, | ||
], 'user%3Aname', 'pass%40word', null]; | ||
yield 'URL-encoded, request decode' => [[ | ||
'servers' => ['tcp://user%3Aname:pass%[email protected]:6379'], | ||
'decode_credentials' => true, | ||
], 'user:name', 'pass@word', null]; | ||
yield 'tls encryption' => [[ | ||
'servers' => ['tls://1.1.1.1:6379'], | ||
|