diff --git a/.env.production b/.env.production deleted file mode 100644 index 63a05f83a..000000000 Binary files a/.env.production and /dev/null differ diff --git a/.env.production-ro b/.env.production-ro deleted file mode 100644 index e036df654..000000000 Binary files a/.env.production-ro and /dev/null differ diff --git a/.env.shared b/.env.shared deleted file mode 100644 index fb26597c2..000000000 Binary files a/.env.shared and /dev/null differ diff --git a/.env.staging b/.env.staging deleted file mode 100644 index 48662ba03..000000000 Binary files a/.env.staging and /dev/null differ diff --git a/.git-crypt/.gitattributes b/.git-crypt/.gitattributes deleted file mode 100644 index 665b10e8f..000000000 --- a/.git-crypt/.gitattributes +++ /dev/null @@ -1,4 +0,0 @@ -# Do not edit this file. To specify the files to encrypt, create your own -# .gitattributes file in the directory where your files are. -* !filter !diff -*.gpg binary diff --git a/.git-crypt/keys/l1/0/04B72CB269C401B21510D5DAC3B9E5835946ABDF.gpg b/.git-crypt/keys/l1/0/04B72CB269C401B21510D5DAC3B9E5835946ABDF.gpg deleted file mode 100644 index 292ec02cc..000000000 Binary files a/.git-crypt/keys/l1/0/04B72CB269C401B21510D5DAC3B9E5835946ABDF.gpg and /dev/null differ diff --git a/.git-crypt/keys/l1/0/23048B1B234196525F3E1418184C89EFA9ACECA9.gpg b/.git-crypt/keys/l1/0/23048B1B234196525F3E1418184C89EFA9ACECA9.gpg deleted file mode 100644 index 4b93808c7..000000000 Binary files a/.git-crypt/keys/l1/0/23048B1B234196525F3E1418184C89EFA9ACECA9.gpg and /dev/null differ diff --git a/.git-crypt/keys/l1/0/311A18B60972303C558FFC6C9BA7DE47D7C15C96.gpg b/.git-crypt/keys/l1/0/311A18B60972303C558FFC6C9BA7DE47D7C15C96.gpg deleted file mode 100644 index 4ba2f3df9..000000000 Binary files a/.git-crypt/keys/l1/0/311A18B60972303C558FFC6C9BA7DE47D7C15C96.gpg and /dev/null differ diff --git a/.git-crypt/keys/l1/0/34CD46883B68738106CA4A57FBA4DD9EDEE3DC80.gpg b/.git-crypt/keys/l1/0/34CD46883B68738106CA4A57FBA4DD9EDEE3DC80.gpg deleted file mode 100644 index df667538b..000000000 --- a/.git-crypt/keys/l1/0/34CD46883B68738106CA4A57FBA4DD9EDEE3DC80.gpg +++ /dev/null @@ -1,2 +0,0 @@ -… ä6ê# ß¿õþ/Zˆ¡ -—-S­¥t¹ï ~8@�Rš‚@Õ¾HΛQœÍØ=�ò±´wâ­Ö/þú�b2:Ö» U9ßgm¹ÎÇà>5iþë†.žm5í}‘OíÌ[�Ü(ˆ臡á´ty?•…^Û”úÒý¿YØ\1fnmáð¬&ËA€ÌáätBµ^Ù?U…çþÉ=¯Z/ÝzqœÃF˜š'¾Hn‰±(öv{cQÑÇUé�F;îeÛOæ á— Ö:¼^o‚¾­£µœžÀ¦¾ŒE}éºFÏøÅX�ÖKíB�È~oÙQKz'UƒkF·óä†s:(„k¸CŘ;:ö^€árKyOb¥KnÓz7å¶<®ÐW�¯¸ÛÕz¸ ½I) Ê»”˜HÅƒŠ ÚàO«ƒ%Ë0ÚvÈÛK‘€�Êèô¥¼‰ìj–’J 0æÐ±ÞÎÃNÏß‚¦°«1ÌØ{ƒ‘À·B½ÅÝ Ü£7è8nM!ôpJR¨¹˜áÂýŸI½ßÊw�¡“K©,(èzÊ4LânCòW÷•ãoõ®v�ôÉã«Ãý€£¦±±T 1nÀcP÷�t”à\kóB²ó„º¹ÖàÓšÿL"™×šrš©\ í}G©�³#œp’Ͷ™A0/>“¾qbú¯Å"ãȺRþ‹†aÔÀ øCšdu*ÃqˆÇÔò¶k…<=&"·Ú$elg9Ë&8õ–‘’æÛjÓÛcrÑÜ£üdj…î£jïØ2ÚñýìZz¤AN™™R1?�ˆ4âtTùôè±?7Å'°ª^šFç{B»ÏAsÈ ¿%8wFi>Áq*ç� C #Y?ñÇúTo$õä&íUY” ZHË©©‚£Üš¸$^¦3ºAgr𡇬Ñõ¢7)É ëÃ@Ït’Š—è.ÉŠÉCc‘�ßÛiþ \ No newline at end of file diff --git a/.git-crypt/keys/l1/0/49DFE29E4846BBC8D5ED3FF0A6AD28DD7B99B42C.gpg b/.git-crypt/keys/l1/0/49DFE29E4846BBC8D5ED3FF0A6AD28DD7B99B42C.gpg deleted file mode 100644 index aa690c56a..000000000 Binary files a/.git-crypt/keys/l1/0/49DFE29E4846BBC8D5ED3FF0A6AD28DD7B99B42C.gpg and /dev/null differ diff --git a/.git-crypt/keys/l1/0/4D9385B92E361A8421881C7561CFB8542D6F0476.gpg b/.git-crypt/keys/l1/0/4D9385B92E361A8421881C7561CFB8542D6F0476.gpg deleted file mode 100644 index 43d0b09a5..000000000 Binary files a/.git-crypt/keys/l1/0/4D9385B92E361A8421881C7561CFB8542D6F0476.gpg and /dev/null differ diff --git a/.git-crypt/keys/l1/0/5BF4197E97D201D67869EA1068F82A8AB6501625.gpg b/.git-crypt/keys/l1/0/5BF4197E97D201D67869EA1068F82A8AB6501625.gpg deleted file mode 100644 index 0dfcf1128..000000000 Binary files a/.git-crypt/keys/l1/0/5BF4197E97D201D67869EA1068F82A8AB6501625.gpg and /dev/null differ diff --git a/.git-crypt/keys/l1/0/884D9798A341D5862AAB23C8B67890E6EA88C2F5.gpg b/.git-crypt/keys/l1/0/884D9798A341D5862AAB23C8B67890E6EA88C2F5.gpg deleted file mode 100644 index 29798a355..000000000 Binary files a/.git-crypt/keys/l1/0/884D9798A341D5862AAB23C8B67890E6EA88C2F5.gpg and /dev/null differ diff --git a/.git-crypt/keys/l1/0/8A789D36BB86DA2B5B1F33DCCB39E97CC6496081.gpg b/.git-crypt/keys/l1/0/8A789D36BB86DA2B5B1F33DCCB39E97CC6496081.gpg deleted file mode 100644 index eb03b8372..000000000 Binary files a/.git-crypt/keys/l1/0/8A789D36BB86DA2B5B1F33DCCB39E97CC6496081.gpg and /dev/null differ diff --git a/.git-crypt/keys/l1/0/9B4D010E38FD64A4DA4470B6064A8DB2ACC9A47D.gpg b/.git-crypt/keys/l1/0/9B4D010E38FD64A4DA4470B6064A8DB2ACC9A47D.gpg deleted file mode 100644 index da976915f..000000000 Binary files a/.git-crypt/keys/l1/0/9B4D010E38FD64A4DA4470B6064A8DB2ACC9A47D.gpg and /dev/null differ diff --git a/.git-crypt/keys/l1/0/9BB9F3DE7C383BD851D27ED8D946F7BECF8E7B46.gpg b/.git-crypt/keys/l1/0/9BB9F3DE7C383BD851D27ED8D946F7BECF8E7B46.gpg deleted file mode 100644 index 175b25ca9..000000000 Binary files a/.git-crypt/keys/l1/0/9BB9F3DE7C383BD851D27ED8D946F7BECF8E7B46.gpg and /dev/null differ diff --git a/.git-crypt/keys/l1/0/A49DA2EDCF7B7393229E70AABA6C01A5BFA64287.gpg b/.git-crypt/keys/l1/0/A49DA2EDCF7B7393229E70AABA6C01A5BFA64287.gpg deleted file mode 100644 index dfaede333..000000000 Binary files a/.git-crypt/keys/l1/0/A49DA2EDCF7B7393229E70AABA6C01A5BFA64287.gpg and /dev/null differ diff --git a/.git-crypt/keys/l1/0/D7765720AB91507796BA0CC21DD52F4FCEDC84B5.gpg b/.git-crypt/keys/l1/0/D7765720AB91507796BA0CC21DD52F4FCEDC84B5.gpg deleted file mode 100644 index 6a35aea7a..000000000 Binary files a/.git-crypt/keys/l1/0/D7765720AB91507796BA0CC21DD52F4FCEDC84B5.gpg and /dev/null differ diff --git a/.git-crypt/keys/l1/0/F9936E35E8EB92A6428BA83154FEC228EEE84342.gpg b/.git-crypt/keys/l1/0/F9936E35E8EB92A6428BA83154FEC228EEE84342.gpg deleted file mode 100644 index 5896a6b2a..000000000 Binary files a/.git-crypt/keys/l1/0/F9936E35E8EB92A6428BA83154FEC228EEE84342.gpg and /dev/null differ diff --git a/.git-crypt/keys/l2/0/04B72CB269C401B21510D5DAC3B9E5835946ABDF.gpg b/.git-crypt/keys/l2/0/04B72CB269C401B21510D5DAC3B9E5835946ABDF.gpg deleted file mode 100644 index bf15f6291..000000000 Binary files a/.git-crypt/keys/l2/0/04B72CB269C401B21510D5DAC3B9E5835946ABDF.gpg and /dev/null differ diff --git a/.git-crypt/keys/l2/0/23048B1B234196525F3E1418184C89EFA9ACECA9.gpg b/.git-crypt/keys/l2/0/23048B1B234196525F3E1418184C89EFA9ACECA9.gpg deleted file mode 100644 index 1c5359c53..000000000 Binary files a/.git-crypt/keys/l2/0/23048B1B234196525F3E1418184C89EFA9ACECA9.gpg and /dev/null differ diff --git a/.git-crypt/keys/l2/0/311A18B60972303C558FFC6C9BA7DE47D7C15C96.gpg b/.git-crypt/keys/l2/0/311A18B60972303C558FFC6C9BA7DE47D7C15C96.gpg deleted file mode 100644 index a031f292a..000000000 Binary files a/.git-crypt/keys/l2/0/311A18B60972303C558FFC6C9BA7DE47D7C15C96.gpg and /dev/null differ diff --git a/.git-crypt/keys/l2/0/34CD46883B68738106CA4A57FBA4DD9EDEE3DC80.gpg b/.git-crypt/keys/l2/0/34CD46883B68738106CA4A57FBA4DD9EDEE3DC80.gpg deleted file mode 100644 index c30ee6361..000000000 Binary files a/.git-crypt/keys/l2/0/34CD46883B68738106CA4A57FBA4DD9EDEE3DC80.gpg and /dev/null differ diff --git a/.git-crypt/keys/l2/0/49DFE29E4846BBC8D5ED3FF0A6AD28DD7B99B42C.gpg b/.git-crypt/keys/l2/0/49DFE29E4846BBC8D5ED3FF0A6AD28DD7B99B42C.gpg deleted file mode 100644 index 8fcb0bac8..000000000 Binary files a/.git-crypt/keys/l2/0/49DFE29E4846BBC8D5ED3FF0A6AD28DD7B99B42C.gpg and /dev/null differ diff --git a/.git-crypt/keys/l2/0/4D9385B92E361A8421881C7561CFB8542D6F0476.gpg b/.git-crypt/keys/l2/0/4D9385B92E361A8421881C7561CFB8542D6F0476.gpg deleted file mode 100644 index 282f5904d..000000000 Binary files a/.git-crypt/keys/l2/0/4D9385B92E361A8421881C7561CFB8542D6F0476.gpg and /dev/null differ diff --git a/.git-crypt/keys/l2/0/5BF4197E97D201D67869EA1068F82A8AB6501625.gpg b/.git-crypt/keys/l2/0/5BF4197E97D201D67869EA1068F82A8AB6501625.gpg deleted file mode 100644 index b4706be07..000000000 Binary files a/.git-crypt/keys/l2/0/5BF4197E97D201D67869EA1068F82A8AB6501625.gpg and /dev/null differ diff --git a/.git-crypt/keys/l2/0/884D9798A341D5862AAB23C8B67890E6EA88C2F5.gpg b/.git-crypt/keys/l2/0/884D9798A341D5862AAB23C8B67890E6EA88C2F5.gpg deleted file mode 100644 index 108078bf6..000000000 Binary files a/.git-crypt/keys/l2/0/884D9798A341D5862AAB23C8B67890E6EA88C2F5.gpg and /dev/null differ diff --git a/.git-crypt/keys/l2/0/8A789D36BB86DA2B5B1F33DCCB39E97CC6496081.gpg b/.git-crypt/keys/l2/0/8A789D36BB86DA2B5B1F33DCCB39E97CC6496081.gpg deleted file mode 100644 index 5643f46e0..000000000 Binary files a/.git-crypt/keys/l2/0/8A789D36BB86DA2B5B1F33DCCB39E97CC6496081.gpg and /dev/null differ diff --git a/.git-crypt/keys/l2/0/9B4D010E38FD64A4DA4470B6064A8DB2ACC9A47D.gpg b/.git-crypt/keys/l2/0/9B4D010E38FD64A4DA4470B6064A8DB2ACC9A47D.gpg deleted file mode 100644 index 078c3f6cb..000000000 Binary files a/.git-crypt/keys/l2/0/9B4D010E38FD64A4DA4470B6064A8DB2ACC9A47D.gpg and /dev/null differ diff --git a/.git-crypt/keys/l2/0/9C299342B68DA6E0378643C169EF7BA9FF7F359E.gpg b/.git-crypt/keys/l2/0/9C299342B68DA6E0378643C169EF7BA9FF7F359E.gpg deleted file mode 100644 index 2efc2373c..000000000 Binary files a/.git-crypt/keys/l2/0/9C299342B68DA6E0378643C169EF7BA9FF7F359E.gpg and /dev/null differ diff --git a/.git-crypt/keys/l2/0/A49DA2EDCF7B7393229E70AABA6C01A5BFA64287.gpg b/.git-crypt/keys/l2/0/A49DA2EDCF7B7393229E70AABA6C01A5BFA64287.gpg deleted file mode 100644 index 07b6c7d59..000000000 Binary files a/.git-crypt/keys/l2/0/A49DA2EDCF7B7393229E70AABA6C01A5BFA64287.gpg and /dev/null differ diff --git a/.git-crypt/keys/l2/0/D7765720AB91507796BA0CC21DD52F4FCEDC84B5.gpg b/.git-crypt/keys/l2/0/D7765720AB91507796BA0CC21DD52F4FCEDC84B5.gpg deleted file mode 100644 index e6345a13e..000000000 Binary files a/.git-crypt/keys/l2/0/D7765720AB91507796BA0CC21DD52F4FCEDC84B5.gpg and /dev/null differ diff --git a/.git-crypt/keys/l2/0/F9936E35E8EB92A6428BA83154FEC228EEE84342.gpg b/.git-crypt/keys/l2/0/F9936E35E8EB92A6428BA83154FEC228EEE84342.gpg deleted file mode 100644 index 9d3669686..000000000 Binary files a/.git-crypt/keys/l2/0/F9936E35E8EB92A6428BA83154FEC228EEE84342.gpg and /dev/null differ diff --git a/.git-crypt/keys/l3/0/311A18B60972303C558FFC6C9BA7DE47D7C15C96.gpg b/.git-crypt/keys/l3/0/311A18B60972303C558FFC6C9BA7DE47D7C15C96.gpg deleted file mode 100644 index db4276f47..000000000 --- a/.git-crypt/keys/l3/0/311A18B60972303C558FFC6C9BA7DE47D7C15C96.gpg +++ /dev/null @@ -1,3 +0,0 @@ -…  ?NMÀ�ÂÿvÿqfR:¦-gaÏ+ûjêéçgu™ &Æ´ªÑߨ%pQÉ{¥ËBZÕé&}¾¼ -ÈÔ¸Pe�kˆ@Kù¢þ3�qd¶€’…?ÿò¤ŒŒ´s?ï+ ×î®(¯U½Q»�ð­â€€ÆTî{M\ÉZøËž#Ÿ¼Yàm@Ã2μF¦C~"~µÄ´5DZÂLéVýá¬d½¿ƒ¿p¥±ÀyUìŒÉþÙ©ûÅ`¨Sa@Ð<ê;ÈoâfQ*ƒz)6ˆG(nIè$:aÔ×óWÇ@I{ωÛÉ~T¯fÑr~ô`a€â«( é©+;§�YŽ»´+ì(þ‰¶?‚¦¯Üª)ò¡ßÍÖÍG²N±¡çÖhDi“ ә܃MØÕVD»¼˜:_LjUJ`„œµÈªn¼†¢—½‡»�ó��K£DÇà× Sif¦/|lV(�Ï¥ž‡Ñ0E}Ƕö&ë*tÖÇÔÀ Þu¤¾âÄéë5·:²|¸C lxÇógI’ä¥? %²|ŒÅ«­¥Ñ6€Ž‰æo„=G¡û õûÒ“jtºL J(÷þ;%ûˆ_¥bIB×[7ýºù§ÅesiCýb§n ÐÀÕ¥Nw�š+5e{ù’ÿaQ_1�ôÄôŽ—m^a)ù!èàŽ è™…&NßÓ}¯wU…¹!œX)¦=Ÿ{õ|‰Î�ü‚e–VzQ+ÑÝ:$±}þè‡lÂÏó@Ï}�êÜŠ �j– \ No newline at end of file diff --git a/.git-crypt/keys/l3/0/4D9385B92E361A8421881C7561CFB8542D6F0476.gpg b/.git-crypt/keys/l3/0/4D9385B92E361A8421881C7561CFB8542D6F0476.gpg deleted file mode 100644 index 422e822e9..000000000 Binary files a/.git-crypt/keys/l3/0/4D9385B92E361A8421881C7561CFB8542D6F0476.gpg and /dev/null differ diff --git a/.git-crypt/keys/l3/0/884D9798A341D5862AAB23C8B67890E6EA88C2F5.gpg b/.git-crypt/keys/l3/0/884D9798A341D5862AAB23C8B67890E6EA88C2F5.gpg deleted file mode 100644 index 56f4d119d..000000000 Binary files a/.git-crypt/keys/l3/0/884D9798A341D5862AAB23C8B67890E6EA88C2F5.gpg and /dev/null differ diff --git a/.git-crypt/keys/l3/0/A49DA2EDCF7B7393229E70AABA6C01A5BFA64287.gpg b/.git-crypt/keys/l3/0/A49DA2EDCF7B7393229E70AABA6C01A5BFA64287.gpg deleted file mode 100644 index 2998219b3..000000000 Binary files a/.git-crypt/keys/l3/0/A49DA2EDCF7B7393229E70AABA6C01A5BFA64287.gpg and /dev/null differ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 685cd29eb..000000000 --- a/.gitattributes +++ /dev/null @@ -1,13 +0,0 @@ -.env.shared filter=git-crypt-l1 diff=git-crypt-l1 - -.env.ci filter=git-crypt-l2 diff=git-crypt-l2 -.env.ci-app filter=git-crypt-l2 diff=git-crypt-l2 -.env.staging filter=git-crypt-l2 diff=git-crypt-l2 -.env.production-ro filter=git-crypt-l2 diff=git-crypt-l2 - -.env.production filter=git-crypt-l3 diff=git-crypt-l3 -.env.migrator filter=git-crypt-l3 diff=git-crypt-l3 -infra/.env.production filter=git-crypt-l3 diff=git-crypt-l3 - -internal/.env.ci filter=git-crypt-l2 diff=git-crypt-l2 -internal/standup-bot/.env.production filter=git-crypt-l3 diff=git-crypt-l3 diff --git a/.gitignore b/.gitignore index ed06c2322..f3a1c8def 100644 --- a/.gitignore +++ b/.gitignore @@ -53,7 +53,18 @@ node_modules /.kotlin/ .env -!.env.**.example + +# Local secrets. +.env.shared +.env.ci +.env.ci-app +.env.staging +.env.production +.env.production-ro +.env.migrator +infra/.env.production +internal/.env.ci +internal/standup-bot/.env.production # Ignore the static folder, it will be generated in the build process for production use. **/static/* diff --git a/README.md b/README.md index 181d7a58f..829614ca0 100644 --- a/README.md +++ b/README.md @@ -76,8 +76,7 @@ This repository is a monorepo that contains many different pieces of Codebloom, - Our internal tools (e.g. custom Ink CLI scripts & our internal standup bot) are currently being written in [Rust](https://rust-lang.org/) and [TypeScript](https://typescriptlang.org) - [Goto `internal/`](./internal/) - [View detailed documentation](./internal/README.md) -- Our secrets across all environments which are decryped with [git-crypt](https://github.com/AGWA/git-crypt). - - [Goto `example.env`](./example.env) +- Environment secrets live in local env files generated from Azure. - [View detailed documentation](./docs/local/SECRET.md) ## Setup diff --git a/docs/local/SECRET.md b/docs/local/SECRET.md index c49b71dd4..ba8c711c2 100644 --- a/docs/local/SECRET.md +++ b/docs/local/SECRET.md @@ -1,49 +1,19 @@ -# Prerequisites +# Secrets -Please ensure that you install the following (homebrew is a recommendation but not a requirement): +Local environment files come from Azure. Git does not store them. -1. Install `gpg` +[Setup](./SETUP.md) covers the rest of local setup. -```bash -brew install gpg -``` +These files stay on your machine: -1. Install `git-crypt` - -```bash -brew install git-crypt -``` - -# New Codebloom Developer (needs access) - -If you don't have access to environment secrets yet, you need to generate a public GPG key and add it to your GitHub profile. If you know what you are doing, you can choose to do so manually. Else, Codebloom has a script you can run to do it for you instead. Please run: - -``` -just git-crypt-generate-key -``` - -After getting access, -from your main branch: -run: - -``` -git pull -``` - -then run: - -``` -git-crypt unlock -``` - -and follow the instructions inside the script. - -# Existing Codebloom Developer (has access) - -Once the new developer has generated a key, please run: - -``` -just git-crypt-add-user -``` - -and follow the instructions inside the script. +- `.env` +- `.env.shared` +- `.env.ci` +- `.env.ci-app` +- `.env.staging` +- `.env.production` +- `.env.production-ro` +- `.env.migrator` +- `infra/.env.production` +- `internal/.env.ci` +- `internal/standup-bot/.env.production` diff --git a/docs/local/SETUP.md b/docs/local/SETUP.md index 837e96530..618eb1ee5 100644 --- a/docs/local/SETUP.md +++ b/docs/local/SETUP.md @@ -196,7 +196,6 @@ You can feel free to use any viewer you want, but we would recommend [DataGrip]( # Secrets -You can speed up the setup process by making a copy of `.env.example` to `.env`. -You will also find explanations and documentation about how to source the value for each key. +Local `.env` comes from Azure. If there is a key specific to an environment (such as `CI` or `staging` environment), please consult the tech docs within the `CI` group. diff --git a/example.env.ci b/example.env.ci deleted file mode 100644 index 920274448..000000000 --- a/example.env.ci +++ /dev/null @@ -1,34 +0,0 @@ -# Secrets that will be loaded inside of GitHub Actions -# See .env.example for explanations for the env values that have no explanations here - -# So we can force a specific timezone on Github Actions -TZ= - -# Used in the CI/CD pipeline. The Docker PAT is used to push up to Docker Hub. -DOCKER_HUB_PAT= - -# The Digital Ocean PAT and App ID are used to trigger a redeployment after pushing a new `latest` tag up to Docker Hub. -DIGITAL_OCEAN_PAT= -DIGITAL_OCEAN_APP_ID= - -# Used to run CI commands. Must be a fine grained personal access token. -# https://github.com/peter-evans/slash-command-dispatch?tab=readme-ov-file#token -GH_PAT= - -# Used for Notion workflows, such as confirming ticket ID to PR descriptions & commit messages -NOTION_SECRET= -# Notion task database ID (the token must have access to the given database) -NOTION_TASK_DB_ID= - -# Used for Qodo AI agent -OPENAI_API_KEY= - -# Code coverage tools -# Codecov is deprecated -CODECOV_TOKEN= -SONAR_TOKEN= - -# used to report the result of e2e tests -DISCORD_TOKEN= -DISCORD_GUILD_ID= -DISCORD_CHANNEL_ID= diff --git a/example.env.ci-app b/example.env.ci-app deleted file mode 100644 index 7747580ec..000000000 --- a/example.env.ci-app +++ /dev/null @@ -1,40 +0,0 @@ -# Secrets that will be loaded inside of GitHub Actions WHEN RUNNING A BACKEND INSTANCE. -# See .env.example for explanations for the env values that have no explanations here - -DISCORD_CLIENT_ID= -DISCORD_CLIENT_SECRET= - -ENABLE_DOCUMENTATION= - -GH_USERNAME= -GH_PASSWORD= - -DISCORD_CLIENT_ID= -DISCORD_CLIENT_SECRET= -DISCORD_TOKEN= - -DISCORD_PATINA_GUILD_ID= -DISCORD_PATINA_LEETCODE_CHANNEL_ID= - -DISCORD_REPORTING_GUILD_ID= -DISCORD_REPORTING_CHANNEL_ID= - -DISCORD_REPORTING_LOG_GUILD_ID= -DISCORD_REPORTING_LOG_CHANNEL_ID= - -GH_EMAIL_HOST= -GH_EMAIL_PORT= -GH_EMAIL_TYPE= -GH_EMAIL_USERNAME= -GH_EMAIL_PASSWORD= - -CODEBLOOM_EMAIL_HOST= -CODEBLOOM_EMAIL_PORT= -CODEBLOOM_EMAIL_TYPE= -CODEBLOOM_EMAIL_USERNAME= -CODEBLOOM_EMAIL_PASSWORD= - -ACTUATOR_USERNAME= -ACTUATOR_PASSWORD= - -REDIS_URL= diff --git a/example.env.migrator b/example.env.migrator deleted file mode 100644 index bbd7a3e84..000000000 --- a/example.env.migrator +++ /dev/null @@ -1,4 +0,0 @@ -DATABASE_HOST= -DATABASE_PASSWORD= -DATABASE_PORT= -DATABASE_USER= diff --git a/example.env.production b/example.env.production deleted file mode 100644 index b2c21ed81..000000000 --- a/example.env.production +++ /dev/null @@ -1,44 +0,0 @@ -# Used in production environment on DigitalOcean -# See .env.example for explanations for the env values that have no explanations here - -DATABASE_HOST= -DATABASE_NAME= -DATABASE_PASSWORD= -DATABASE_PORT= -DATABASE_USER= -DISCORD_CLIENT_ID= -DISCORD_CLIENT_SECRET= -ENABLE_DOCUMENTATION= -GH_USERNAME= -GH_PASSWORD= -DISCORD_TOKEN= -DISCORD_PATINA_GUILD_ID= -DISCORD_PATINA_LEETCODE_CHANNEL_ID= -DISCORD_REPORTING_GUILD_ID= -DISCORD_REPORTING_CHANNEL_ID= -DISCORD_REPORTING_LOG_GUILD_ID= -DISCORD_REPORTING_LOG_CHANNEL_ID= -GH_EMAIL_HOST= -GH_EMAIL_PORT= -GH_EMAIL_TYPE= -GH_EMAIL_USERNAME= -GH_EMAIL_PASSWORD= -CODEBLOOM_EMAIL_HOST= -CODEBLOOM_EMAIL_PORT= -CODEBLOOM_EMAIL_TYPE= -CODEBLOOM_EMAIL_USERNAME= -CODEBLOOM_EMAIL_PASSWORD= -ACTUATOR_USERNAME= -ACTUATOR_PASSWORD= -# So we can force a specific timezone on our production server. -TZ= -SECRET_KEY= -SERVER_URL= -REDIS_URL= -LOKI_URL= -LOKI_USERNAME= -LOKI_PASSWORD= -LOKI_SERVER_DOMAIN= -LOKI_BATCH_SIZE= -LOKI_BATCH_TIMEOUT_MS= - diff --git a/example.env.production-ro b/example.env.production-ro deleted file mode 100644 index 41e40dba5..000000000 --- a/example.env.production-ro +++ /dev/null @@ -1,7 +0,0 @@ -# used in ci to scan the database schema table. - -DATABASE_HOST= -DATABASE_PORT= -DATABASE_NAME= -DATABASE_USER= -DATABASE_PASSWORD= diff --git a/example.env.staging b/example.env.staging deleted file mode 100644 index 99312928a..000000000 --- a/example.env.staging +++ /dev/null @@ -1,71 +0,0 @@ -# Secrets that will be set inside of GitHub Actions under the `staging` environment -# NOTE: We re-use the same environment secrets for our staging application on DigitalOcean, for the sake of simplicity -# see .env.example for explanations for the env values that don't have any explanations here. - -DATABASE_HOST= -DATABASE_NAME= -DATABASE_PASSWORD= -DATABASE_PORT= -DATABASE_USER= - -ENABLE_DOCUMENTATION= - -GH_USERNAME= -GH_PASSWORD= - -DISCORD_CLIENT_ID= -DISCORD_CLIENT_SECRET= -DISCORD_TOKEN= - -DISCORD_PATINA_GUILD_ID= -DISCORD_PATINA_LEETCODE_CHANNEL_ID= - -DISCORD_REPORTING_GUILD_ID= -DISCORD_REPORTING_CHANNEL_ID= - -DISCORD_REPORTING_LOG_GUILD_ID= -DISCORD_REPORTING_LOG_CHANNEL_ID= - -GH_EMAIL_HOST= -GH_EMAIL_PORT= -GH_EMAIL_TYPE= -GH_EMAIL_USERNAME= -GH_EMAIL_PASSWORD= - -CODEBLOOM_EMAIL_HOST= -CODEBLOOM_EMAIL_PORT= -CODEBLOOM_EMAIL_TYPE= -CODEBLOOM_EMAIL_USERNAME= -CODEBLOOM_EMAIL_PASSWORD= - -ACTUATOR_USERNAME= -ACTUATOR_PASSWORD= - -# Force our backend server / GitHub Action to use a specific timezone -TZ= - -SECRET_KEY= - -# These values are not used inside of the application code, but rather the GitHub Action to -# upload images to Docker Hub and programmatically interact with / re-deploy on DigitalCean -DOCKER_HUB_PAT= -DIGITAL_OCEAN_PAT= -DIGITAL_OCEAN_APP_ID= - -# used by the frontend to load certain feature flags. -# looks for the string literal "true" -VITE_STAGING=true - -# Redis URL -REDIS_URL= - -# for logs -LOKI_URL= -LOKI_USERNAME= -LOKI_PASSWORD= -# used to fill in `app` label -LOKI_SERVER_DOMAIN= -# batch config for log fwd performance -LOKI_BATCH_SIZE=100 -LOKI_BATCH_TIMEOUT_MS=5000 - diff --git a/infra/.env.production b/infra/.env.production deleted file mode 100644 index 648471ad0..000000000 Binary files a/infra/.env.production and /dev/null differ diff --git a/infra/.env.production.example b/infra/.env.production.example deleted file mode 100644 index 68634fafd..000000000 --- a/infra/.env.production.example +++ /dev/null @@ -1,8 +0,0 @@ -# staging and production database are on the same instance. -# check wiki for details. -DATABASE_HOST=localhost -STAGING_DATABASE_NAME=staging-db-name -PRODUCTION_DATABASE_NAME=prod-db-name -DATABASE_PASSWORD=dbpassword123 -DATABASE_PORT=25060 -DATABASE_USER=postgres diff --git a/internal/.env.ci b/internal/.env.ci deleted file mode 100644 index 38c6ad364..000000000 Binary files a/internal/.env.ci and /dev/null differ diff --git a/internal/example.env.ci b/internal/example.env.ci deleted file mode 100644 index 2254b7d9a..000000000 --- a/internal/example.env.ci +++ /dev/null @@ -1,7 +0,0 @@ -# wip, documentation is currently sparse -# will be updated soon - -COOLIFY_BEARER_AUTH= -COOLIFY_SERVER_URL= -COOLIFY_PROJECT_UUID= -COOLIFY_SERVER_UUID= diff --git a/internal/leetcode-auth-stealer-service/.env.example b/internal/leetcode-auth-stealer-service/.env.example deleted file mode 100644 index 7bec44997..000000000 --- a/internal/leetcode-auth-stealer-service/.env.example +++ /dev/null @@ -1,10 +0,0 @@ -GRPC_HOST=0.0.0.0 -GRPC_PORT=50051 - -HTTP_HOST=0.0.0.0 -HTTP_PORT=8081 # 8080 is codebloom's main svc, will have issues during local dev - -AUTH_TIMEOUT_SECONDS=60 - -# can ignore this on local, auto set in k8s -VERSION= diff --git a/internal/standup-bot/.env.production b/internal/standup-bot/.env.production deleted file mode 100644 index b52b24741..000000000 Binary files a/internal/standup-bot/.env.production and /dev/null differ diff --git a/internal/standup-bot/README.md b/internal/standup-bot/README.md index 8636ca1ef..8ef1828bb 100644 --- a/internal/standup-bot/README.md +++ b/internal/standup-bot/README.md @@ -9,10 +9,8 @@ Codebloom Standup Bot is an internal application written in [Rust](https://rust- ### Run -1. Create `.env` -1. Copy everything from `example.env` to `.env` -1. Fill out your `.env` file -1. Simply run `cargo run` to compile & run the binary. +1. Put the Azure-generated `.env` in this directory. +1. Run `cargo run` to compile and run the binary. `DISCORD_ROLE_ID` is required and must be an unsigned 64-bit integer. It selects the role mentioned in standup messages and the members eligible for end-of-day diff --git a/internal/standup-bot/example.env b/internal/standup-bot/example.env deleted file mode 100644 index 24b73a5c4..000000000 --- a/internal/standup-bot/example.env +++ /dev/null @@ -1,14 +0,0 @@ -DISCORD_CLIENT_ID= -DISCORD_CLIENT_SECRET= -DISCORD_TOKEN= - -# Point to guild and channel to send standup messages. -DISCORD_GUILD_ID= -DISCORD_CHANNEL_ID= -# Role to mention and select for end-of-day reminders. -DISCORD_ROLE_ID= - -REDIS_URI= - -# Leave unset locally. -ENVIRONMENT= diff --git a/internal/standup-bot/example.env.production b/internal/standup-bot/example.env.production deleted file mode 100644 index f5b3e5e53..000000000 --- a/internal/standup-bot/example.env.production +++ /dev/null @@ -1,13 +0,0 @@ -DISCORD_CLIENT_ID= -DISCORD_CLIENT_SECRET= -DISCORD_TOKEN= - -# Point to guild and channel to send standup messages. -DISCORD_GUILD_ID= -DISCORD_CHANNEL_ID= -# Role to mention and select for end-of-day reminders. -DISCORD_ROLE_ID= - -REDIS_URI= - -ENVIRONMENT=production