Comments (3)
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.
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.
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)
- Document using async functions with the Rust http handler HOT 1
- Update Python documentation to support Spin SDK 3.1.0 and Componentize-Py 0.13.3 HOT 1
- Update docs & tutorials in the context of Serverless AI to place models in the right directory.
- Mismatched Language: Python Code in TypeScript tab
- Add "Troubleshooting Tips" page for Fermyon Cloud that includes CLI error response codes HOT 1
- Update spin-test manifest workdir/dir as soon as spin-test implements the change
- CLI Reference defaults to oldest version of Spin HOT 2
- Create public-facing roadmap for the language guide HOT 1
- Surface some of the details in implementing Fermyon Platform for Kubernetes
- Update Developer Documentation to Include Python Version Requirement
- "Spin on Kubernetes" page loses TOC expansion HOT 4
- Update c-lang instructions
- Text in Spin version drop down doesn't reflect dark mode
- Missing "type" field in SQLite storage runtime configuration HOT 1
- Incorporate "Deploy This" button into the top two/three highlighted cards of the Spin Up Hub Page
- Turn top three highlighted cards on the SUH page into a new page when user clicks on them
- Implement images/visualizations for the top three or two highlighted cards on SUH page
- Add a new template/sample to the Spin Up Hub page
- document per trigger instance redis address scenario
- clean up tags for each template/sample on the spin up hub
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from developer.