NAME
and value YOUR_NAME
.
package.json
file.
express
and @infisical/sdk, the client Node SDK for Infisical.
client
instance of the Infisical Node SDK with the Machine Identity
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 Machine Identities scoped to different projects and environments, you can easily manage secrets across various stages of your project in Infisical, from local development to production.
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?