[NodeJS] Use Secrets When Deploying Applications with Now
2016-10-02 22:23
253 查看
Applications require a lot of sensitive information. Database passwords, API keys and secrets used for signing JWTs, just to name a few. If you're deploying your application using the Now CLI, you can deploy your secret information right through the CLI and give your code access to those secrets without exposing them directly in your source code. In this lesson, we'll cover how to add secrets to now, how to use a secret as the value of an environment variable and how to list and remove secrets in now.
// Create a secret now secrets add super-secret-message "Mr. Bond" // List Secrets now secrets ls // Deploy and Assign Secret to Environment Variable now -f -e GREETING=@super-secret-message // Remove Secret now secrets rm super-secret-message // Deploy with Standard Environment Variable Value now -f -e GREETING=Eggheads // Remove Deployment with Secret now rm <DEPLOYMENT ID>
相关文章推荐
- Deploying Windows Forms Applications with ClickOnce
- When to use volatile with shared CUDA Memory
- [Now] Configure secrets and environment variables with Zeit’s Now
- [References]Deploying .NET Compact Framework 2.0 Applications with .cab and .msi Files
- ][SQLServer JDBC Driver]This driver is locked for use with embedded applications
- GSM cell phone calls use outdated encryption that can now be cracked with rainbow tables on a PC
- Issues with SQL database applications when traffic traverses SRX
- [NodeJS] Use Now alias for custom sub-domains
- It will cause a new session when you use lazy loading collection, and the collection will assicated with the new session and the
- SurfaceFlinger/gralloc Out of Memory error when allocating buffer memory for use with virtual frame
- Smart Client Deployment with ClickOnce(TM): Deploying Windows Forms Applications with ClickOnce
- Deploying JRuby applications with Java Web Start
- [NodeJS] Deploy a Node Application with the Now CLI
- nodejs错误:ld: library not found for -lgcc_s.10.5 clang: error: linker command failed with exit code 1 (use -v to see invocation)
- When to use awakeFromNib , initWithWindow , windowDidLoad methods?
- When to use dequeueReusableCellWithIdentifier vs dequeueReusableCellWithIdentifier: forIndexPath
- [Node.js] Use nodejs-dashboard event loop delay with hrtime()
- How to specify image folder path for each user when use TinyMce ImageManager with Symfony
- wu qi zhao ba de listview control use the sort function with SDK simple example
- You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法