Put sensitive data (appid/appsecret) on config file, and add it to .gitignore
See original GitHub issueI’m using the Node.js Bot Builder Framework.
As I think loots of people are going to keep bots public at github, it would be great if sensitive data (as appId and appSecret) was storage at a config file. For safety, this file could come added at .gitignore.
In my case I have created /.bot/secrets.json
to storage sensitive information. If I don’t have the file, my server just use some default strings like: YOUR_APP_ID
and YOUR_APP_SECRET
.
I’m not sure if I did it in the best way. I accept suggestions.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Put sensitive data (appid/appsecret) on config file, and add it ...
I'm using the Node.js Bot Builder Framework. As I think loots of people are going to keep bots public at github, it would...
Read more >How To Create A .gitignore File To Hide Your API Keys
I am going to use an example of how to configure a .gitignore file when you are working with an API (Application Programming...
Read more >Keeping secrets out of source control - are we just moving the ...
A good rule of thumb to follow when designing a system where confidential data must be protected is to always put controls in...
Read more >Hiding Secret Keys in Create-React-App - Pluralsight
To make this practical, you'll set up an app that makes an API call to Newsapi.org and secure the keys obtained from the...
Read more >Configure secrets for the GitLab chart
For configuring OAuth integration of various services like GitLab Pages and Grafana with GitLab, secrets containing OAuth credentials are required. The secret ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
In C#, I’m pretty sure you can just configure variables at your azure
app settings
. For localhost test, just addenvironment variables
to windows (from control panel, or start menu search).Thanks. I’ll try it out.