CookieComputing / mc-discord-admin

A serverless discord bot to perform cloud-based server configuration ops.
Apache License 2.0
0 stars 0 forks source link

Store secrets for discord via Azure Table storage #4

Open CookieComputing opened 2 years ago

CookieComputing commented 2 years ago

Currently, we hardcode our secrets in an .env file and restrict this file from being seen by the .gitignore file. However, this is restrictive in that it requires the .env file to be known at runtime. While this works for local development, I'm not sure if this will work in production when an azure function (or any other cloud vendor's function) is published. Either way, it's definitely a better idea to upload these to each of the cloud vendor's specialized storage systems to offload any local state we hold.

CookieComputing commented 2 years ago

Probably also need a script to run and create tables, with some sort of "op" file script. We could re-use the Typescript SDK to run this.