Skip to content

Update redis dep 0.9.0 -> 0.12.0#537

Closed
tiras-j wants to merge 1 commit intomozilla:masterfrom
tiras-j:master
Closed

Update redis dep 0.9.0 -> 0.12.0#537
tiras-j wants to merge 1 commit intomozilla:masterfrom
tiras-j:master

Conversation

@tiras-j
Copy link
Copy Markdown

@tiras-j tiras-j commented Oct 10, 2019

It turns out that redis-rs 0.9.0 doesn't properly handle percent-decoding
of passwords extracted from the provided redis URL. This is particularly
problematic for Azure-hosted Redis infrastructure, as the access keys that
are generated are all base64 encoded (and thus have padding = chars) which
are percent-encoded when parsed into URL format. Bumping the redis dep handles
this use-case.

Unfortunately I discovered shortly thereafter that Azure disables the CONFIG
command (along with others) for their hosted Redis Cache... Oh well. The update
might see some help for someone using non-urlsafe passwords for Redis somewhere.

Also, if I'm missing some PR guidelines or whatnot sorry about that - just cutting this in the hopes that my frustration might benefit someone else, but it's such a small change I'm sure you could just inline it locally without any fuss.

It turns out that redis-rs 0.9.0 doesn't properly handle percent-decoding
of passwords extracted from the provided redis URL. This is particularly
problematic for Azure-hosted Redis infrastructure, as the access keys that
are generated are all base64 encoded (and thus have padding `=` chars) which
are percent-encoded when parsed into URL format. Bumping the redis dep handles
this use-case.

Unfortunately I discovered shortly thereafter that Azure disables the CONFIG
command (along with others) for their hosted Redis Cache... Oh well. The update
might see some help for someone using non-urlsafe passwords for Redis somewhere.
@froydnj
Copy link
Copy Markdown
Contributor

froydnj commented Nov 4, 2019

Thanks for this change; it looks like there are some conflicts. Can you rebase your changes and force-push your branch again, please?

@glandium
Copy link
Copy Markdown
Collaborator

redis was updated to 0.15 in 34f391f and 0.18 in 9189ac6

@glandium glandium closed this Dec 10, 2020
tottoto pushed a commit to tottoto/sccache that referenced this pull request Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants