Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Posting API keys on github

I'm working on a C project that uses the WolframAlpha API, and I was planning on making it available on github, however the source code contains my API key. Do people generally post their API keys on github or should I delete it?

like image 551
mshindal Avatar asked Nov 25 '25 14:11

mshindal


1 Answers

You should definitely delete your API key and have a README.md in the github Repository that states that the pre-requisite is to obtain an API key and place it in the config. This is assuming your code reads the API key from a config file. If it doesn't, update your code to do so.

I don't think this is an unreasonable request. Also, if you do leave your API key in there, very quickly your key will hit the API rate limit and WolframAlpha will likely disable your key anyways. HTH.

like image 101
Shiva Avatar answered Nov 28 '25 02:11

Shiva



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!