Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
Former Member
3 years agoRecommended way to use credentials in the code - NodeJS
Hi!
I have a NodeJS application and I'm trying to figure out the best way to use 1Password Secret Automation. I already have a Connect server in place and also already did some tests successfully....
Former Member
3 years agoHi!
I'm still struggling to find a way to read secrets at runtime, and I'm about to give up using 1Password for secrets on our platform.
I saw one example at https://levelup.gitconnected.com/the-awesome-new-1password-feature-for-developers-to-secure-and-manage-your-secrets-b583e47e8693 that I can't make it to work:
Referencing secret values that way in the code is what I'm trying to accomplish.
I thougth of using API calls to get secret values https://developer.1password.com/docs/connect/connect-api-reference/#get-item-details, but for that we'd need to specify UUIDs, and that is not practical for development once vaults will have different UUIDs between development, staging, and production.
If it were possible to get vault items via rest API using op:// references I'd go that way, but it looks like it is not an option.
Unfortunately we'll need to look for alternatives other than 1Password. :(