Coder Social home page Coder Social logo

Authentication for Redis about developer HOT 3 OPEN

radu-matei avatar radu-matei commented on July 28, 2024
Authentication for Redis

from developer.

Comments (3)

etehtsea avatar etehtsea commented on July 28, 2024 1

Actually, there is a way to provide the password through address url.
If a redis instance has:

requirepass "hello world"
trigger = {type = "redis", address = "redis://:hello world@localhost:6379"}

will work (I've tested against examples/redis-rust).

from developer.

radu-matei avatar radu-matei commented on July 28, 2024

Ooooh this is great!
Thank you!

I will leave this issue open, as I'd like to track adding this to the documentation as well.

That being said, we would still want to be able to somehow use a secret here as well, but this is a great starting point, thanks, @etehtsea!

from developer.

vdice avatar vdice commented on July 28, 2024

We do now show an example in docs around hard-coding the password in the redis addres: https://developer.fermyon.com/spin/redis-trigger#specifying-an-application-as-redis.

As @radu-matei mentions, it would be ideal to use a secret here. I was actually under the impression that we could use Spin's dynamic/runtime config approach to do so, but now realize that it isn't yet possible, as it doesn't appear that interpolation is supported in the address field of the trigger section of the spin.toml. Perhaps others can check my understanding here. Assuming it is not yet possible, do we want to track this work in this same issue or create a new one?

from developer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.