Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create sdk and read secrets method for use with Node.js/JavaScript #6

Open
alexellis opened this issue Sep 24, 2020 · 1 comment
Open

Comments

@alexellis
Copy link
Member

Task

Create sdk and read secrets method for use with Node.js in the node12 and node templates

Example

const sdk = require("openfaas-sdk")

let pass = await sdk.readSecret("db-pass")

await openDB("admin", pass)
@mrsimonemms
Copy link

That makes a lot of sense.

For the record, I wrote this for my Typescript template and the interface was pretty-much identical

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

No branches or pull requests

2 participants