-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/add-request-signature-validation
- Loading branch information
Showing
24 changed files
with
614 additions
and
222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
# YOU DO NOT NEED TO CREATE A .env FILE MANUALLY | ||
# Terraform will automatically create a local .env file with the required environment variables when you run `terraform apply`. | ||
# This file is just to illustrate the required environment variables for the function to work locally. | ||
|
||
# Required for the function to be able to look up the Discord Webhook URL in GCP Secret Manager. | ||
# Get it via `gcloud projects list --filter="name:governance-watchdog*" --format="value(projectId)")` | ||
# You can check it manually via `gcloud projects list --filter="name:governance-watchdog*" --format="value(projectId)"` | ||
GCP_PROJECT_ID= | ||
|
||
# Required for the function to be able to look up secrets in GCP Secret Manager. | ||
# Get them via `gcloud secrets list` | ||
DISCORD_WEBHOOK_URL_SECRET_ID=discord-webhook-url | ||
QUICKNODE_SECURITY_TOKEN_SECRET_ID=quicknode-security-token | ||
TELEGRAM_BOT_TOKEN_SECRET_ID=telegram-bot-token | ||
# You can check it manually via `gcloud secrets list` | ||
DISCORD_WEBHOOK_URL_SECRET_ID= | ||
TELEGRAM_BOT_TOKEN_SECRET_ID= | ||
QUICKNODE_SECURITY_TOKEN_SECRET_ID= | ||
|
||
# Get it via inviting @MissRose_bot to the telegram group and then using the `/id` command (please remove the bot after you're done) | ||
# You can check it manually either via | ||
# a) `terraform state show "google_cloudfunctions2_function.watchdog_notifications" | grep TELEGRAM_CHAT_ID | awk -F '= ' '{print $2}' | tr -d '"'` | ||
# OR | ||
# b) inviting @MissRose_bot to the telegram group and then using the `/id` command (please remove the bot after you're done) | ||
TELEGRAM_CHAT_ID= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.