首页 > 代码库 > [NodeJS] Use Secrets When Deploying Applications with Now
[NodeJS] Use Secrets When Deploying Applications with Now
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 secretnow secrets add super-secret-message "Mr. Bond"// List Secretsnow secrets ls// Deploy and Assign Secret to Environment Variablenow -f -e GREETING=@super-secret-message// Remove Secretnow secrets rm super-secret-message// Deploy with Standard Environment Variable Valuenow -f -e GREETING=Eggheads// Remove Deployment with Secretnow rm <DEPLOYMENT ID>
[NodeJS] Use Secrets When Deploying Applications with Now
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。