aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2019-06-10 18:16:03 -0300
committerEuAndreh <eu@euandre.org>2019-06-10 18:16:03 -0300
commitb65f805566854f3735ffe5dd1b2c5d765ad694ec (patch)
tree90fa1e738b5325d894cf4f665de7d0332d2d7555
parentAdd filename to logs.txt output (diff)
downloadserver-b65f805566854f3735ffe5dd1b2c5d765ad694ec.tar.gz
server-b65f805566854f3735ffe5dd1b2c5d765ad694ec.tar.xz
Trust commited key
-rw-r--r--TODOs.org2
-rwxr-xr-xscripts/ci/mail.sh3
2 files changed, 4 insertions, 1 deletions
diff --git a/TODOs.org b/TODOs.org
index 96fbebe..058a353 100644
--- a/TODOs.org
+++ b/TODOs.org
@@ -231,6 +231,8 @@ Maybe rsync the contents of the Borg repository into S3. Should I restore backup
Can it do key rotation?
** TODO Can the =setup.sh= and =provision.sh= scripts be run inside a chroot or a NixOS contained environment?
Right now they can't simply be a derivation because =setup.sh= needs access to the disk and =provision.sh= needs to access the internet.
+** TODO Is there a way to commit the /signed/ public key?
+This way it would remove the need of using the =--always-trust= option of =gpg=.
** DONE How to dynamically handle Floating IPs?
CLOSED: [2019-06-10 Mon 08:59]
Right now the current Floating IP defined in =.envrc= was created manually in DigitalOcean's web UI and copied from it to the environment variable.
diff --git a/scripts/ci/mail.sh b/scripts/ci/mail.sh
index 8236373..2796606 100755
--- a/scripts/ci/mail.sh
+++ b/scripts/ci/mail.sh
@@ -37,7 +37,8 @@ EOF
)
tail -n +1 ./logs/*.txt > "${ATTACHMENT_PATH}"
-gpg -r "${GPG_TO}" \
+gpg --always-trust \
+ -r "${GPG_TO}" \
-e "${ATTACHMENT_PATH}"
curl "${MAILGUN_URL}" \