NAME
and value YOUR_NAME
.
package.json
file.
express
and infisical-node, the client Node SDK for Infisical.
client
instance of the Infisical Node SDK with the Infisical Token
that we created earlier, giving access to the secrets in the development environment of the
project in Infisical that we created earlier.
Finally, start the app and head to http://localhost:3000
to see the message Hello, Your Name.
NAME
from Infisical that we returned in the response of the endpoint.
At this stage, you know how to fetch secrets from Infisical back to your Node application. By using Infisical Tokens scoped to different environments, you can easily manage secrets across various stages of your project in Infisical, from local development to production.
Isn't it inefficient if my app makes a request every time it needs a secret?
cacheTTL
parameter at
the time of initializing the client.What if a request for a secret fails?
process.env
.What's the point if I still have to manage a token for the SDK?