From 80e8e73f9f240bcd665a2217ceac1787d0931b3e Mon Sep 17 00:00:00 2001 From: Karmanyaah Malhotra Date: Tue, 3 Nov 2020 00:09:12 -0500 Subject: [PATCH 1/4] Add Gitlab proof support --- keyoxidizer.sh | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/keyoxidizer.sh b/keyoxidizer.sh index af52763..2f26475 100755 --- a/keyoxidizer.sh +++ b/keyoxidizer.sh @@ -165,6 +165,22 @@ github() fi } +gitlab() { + fingerPrint=$(cat keyoxidizer.fingerprint) + + echo -e "Log into your GitLab instance (like gitlab.com account) and create a new project with a name of your choosing and the project slug set to 'gitlab_proof'." + echo -e "Set the project description to: " + echo -e "[Verifying my OpenPGP key: openpgp4fpr:$fingerPrint]" + + read -p "Have completed this step (y/N): " keyoxidizer_response + if [ "$keyoxidizer_response" == "y" ]; then + read -p "Enter the full url of the repo you created (ex: https://gitlab.example.com/USERNAME/gitlab_proof): " keyoxidizer_url + addNotation $keyoxidizer_url + else + echo -e "Exiting" + fi +} + twitter() { fingerPrint=`cat keyoxidizer.fingerprint` @@ -189,9 +205,10 @@ addProof() echo -e "1. DNS/Domain" echo -e "2. Gitea" echo -e "3. Github" - echo -e "4. Mastadon" - echo -e "5. Twitter" - echo -e "6. Reddit" + echo -e "4. Gitlab" + echo -e "5. Mastadon" + echo -e "6. Twitter" + echo -e "7. Reddit" echo -e "Enter 'q' to quit to main menu" read keyoxidizer_proof @@ -206,12 +223,15 @@ addProof() github ;; 4) - mastodon + gitlab ;; 5) - twitter + mastodon ;; 6) + twitter + ;; + 7) reddit ;; q) From 4b1ba4514fc11a829b3788da7e830b1ca8e7d333 Mon Sep 17 00:00:00 2001 From: Karmanyaah Malhotra Date: Tue, 3 Nov 2020 02:29:34 -0500 Subject: [PATCH 2/4] Added Hackernews support --- keyoxidizer.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/keyoxidizer.sh b/keyoxidizer.sh index 2f26475..70bea43 100755 --- a/keyoxidizer.sh +++ b/keyoxidizer.sh @@ -198,6 +198,23 @@ twitter() fi } +hackernews() +{ + fingerPrint=`cat keyoxidizer.fingerprint` + + echo -e "Log into hackernews and click on your username." + echo -e "Add the following lines to your about:" + echo -e "This is an OpenPGP proof that connects my OpenPGP key to this Hackernews account. For details check out https://keyoxide.org/guides/openpgp-proofs\n\n[Verifying my OpenPGP key: openpgp4fpr:$fingerPrint]" + + read -p "Have completed this step (y/N): " keyoxidizer_response + if [ "$keyoxidizer_response" == "y" ]; then + read -p "Enter your Hackernews username here: " hackernews_username + addNotation "https://news.ycombinator.com/user?id=$hackernews_username" + else + echo -e "Exiting" + fi +} + addProof() { existingKey @@ -209,6 +226,7 @@ addProof() echo -e "5. Mastadon" echo -e "6. Twitter" echo -e "7. Reddit" + echo -e "8. Hackernews" echo -e "Enter 'q' to quit to main menu" read keyoxidizer_proof @@ -234,6 +252,9 @@ addProof() 7) reddit ;; + 8) + hackernews + ;; q) break ;; From b02b0f742f20ca291955dfa858b33d5b5581b946 Mon Sep 17 00:00:00 2001 From: Karmanyaah Malhotra Date: Wed, 4 Nov 2020 18:34:38 -0500 Subject: [PATCH 3/4] Add dev.to proof support --- keyoxidizer.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/keyoxidizer.sh b/keyoxidizer.sh index 70bea43..20e4a02 100755 --- a/keyoxidizer.sh +++ b/keyoxidizer.sh @@ -215,6 +215,23 @@ hackernews() fi } +devto() +{ + fingerPrint=`cat keyoxidizer.fingerprint` + + read -p "Enter your dev.to username: " keyoxidizer_username + echo -e "Log into your dev.to account and create a new post with the following text:" + echo -e "This is an OpenPGP proof that connects [my OpenPGP key](https://keyoxide.org/$fingerPrint) to [this dev.to account](https://dev.to/$keyoxidizer_username). For details check out https://keyoxide.org/guides/openpgp-proofs\n\n[Verifying my OpenPGP key: openpgp4fpr:$fingerPrint]" + + read -p "Have completed this step (y/N): " keyoxidizer_response + if [ "$keyoxidizer_response" == "y" ]; then + read -p "Enter the full url of the post you created (ex: https://dev.to/USERNAME/POST_TITLE): " keyoxidizer_url + addNotation $keyoxidizer_url + else + echo -e "Exiting" + fi +} + addProof() { existingKey @@ -227,6 +244,7 @@ addProof() echo -e "6. Twitter" echo -e "7. Reddit" echo -e "8. Hackernews" + echo -e "9. dev.to" echo -e "Enter 'q' to quit to main menu" read keyoxidizer_proof @@ -255,6 +273,9 @@ addProof() 8) hackernews ;; + 9) + devto + ;; q) break ;; From 9a044677ea2fb17b195de69099a8b31cb2a01e85 Mon Sep 17 00:00:00 2001 From: Karmanyaah Malhotra Date: Wed, 4 Nov 2020 18:36:02 -0500 Subject: [PATCH 4/4] Add new services to readme --- readme.org | 3 +++ 1 file changed, 3 insertions(+) diff --git a/readme.org b/readme.org index 069a0c0..d987055 100644 --- a/readme.org +++ b/readme.org @@ -31,9 +31,12 @@ chmod +x ./keyoxidizer.sh - Domain/DNS (note: sometimes DNS records take some time to update) - Gitea - Github +- Gitlab - Mastodon - Twitter - Reddit +- Hackernews +- dev.to * Roadmap - Incrementally add support for adding proofs to the [[https://keyoxide.org/guides][the different platforms]]. They will be listed under the [[Supported Platforms]] sections.