Skip to content

πŸ› [Bug]: Redis secure connection not working properlyΒ #981

@mirusky

Description

@mirusky

Bug Description

When trying to connect to a rediss (redis secure) it fails.

I'm supposing that is a problem with the storage/redis, since go-redis is handling it here and returning options with tls, but storage/redis is not handling it as we can see it here, it's not setting the TLS config.

How to Reproduce

Steps to reproduce the behavior:

  1. Create a new redis storage
  2. Pass the URL as rediss (redis secure) protocol
  3. Try to use the store

Expected Behavior

Connection established with TLS.

Storage package Version

v2.0.3

Code Snippet (optional)

package main

import "fmt"

func main() {

	store = redis.New(redis.Config{
		URL: "rediss://<user>:<pass>@127.0.0.1:6379/<db>",
	})

	fmt.Println(store.Get(key))

}

Checklist:

  • I agree to follow Fiber's Code of Conduct.
  • I have checked for existing issues that describe my problem prior to opening this one.
  • I understand that improperly formatted bug reports may be closed without explanation.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions