From 5cdf8863a2bcfce59abe688af3bb3943200a68b2 Mon Sep 17 00:00:00 2001 From: Cryolitia PukNgae Date: Fri, 9 Aug 2024 15:33:43 +0700 Subject: [PATCH] project trans wkd initialize --- .gitattributes | 1 + .github/workflows/update.yml | 42 ++++++++++++++++++ .well-known/Makefile | 7 --- .well-known/make.py | 16 +++++++ .../hu/6wtzep7o6y4bd6o11t9e9a4a1emuz4o7 | Bin 922 -> 0 bytes .well-known/openpgpkey/aosc.io/policy | 1 - .../hu/yoshewjxwxj3dtezbu34waxgwahxoo4n | Bin 915 -> 0 bytes .../openpgpkey/coelacanthus.moe/policy | 1 - .../hu/c8qotknqrqdr8hjc1mrkreibakfwd1bs | Bin 932 -> 0 bytes .well-known/openpgpkey/gmail.com/policy | 1 - .../hu/6wtzep7o6y4bd6o11t9e9a4a1emuz4o7 | Bin 921 -> 0 bytes .well-known/openpgpkey/outlook.com/policy | 1 - CNAME | 2 +- Makefile | 11 ++--- index.html | 28 ------------ staffs.json | 11 +++++ 16 files changed, 77 insertions(+), 45 deletions(-) create mode 100644 .gitattributes create mode 100644 .github/workflows/update.yml delete mode 100644 .well-known/Makefile create mode 100755 .well-known/make.py delete mode 100644 .well-known/openpgpkey/aosc.io/hu/6wtzep7o6y4bd6o11t9e9a4a1emuz4o7 delete mode 100644 .well-known/openpgpkey/aosc.io/policy delete mode 100644 .well-known/openpgpkey/coelacanthus.moe/hu/yoshewjxwxj3dtezbu34waxgwahxoo4n delete mode 100644 .well-known/openpgpkey/coelacanthus.moe/policy delete mode 100644 .well-known/openpgpkey/gmail.com/hu/c8qotknqrqdr8hjc1mrkreibakfwd1bs delete mode 100644 .well-known/openpgpkey/gmail.com/policy delete mode 100644 .well-known/openpgpkey/outlook.com/hu/6wtzep7o6y4bd6o11t9e9a4a1emuz4o7 delete mode 100644 .well-known/openpgpkey/outlook.com/policy delete mode 100644 index.html create mode 100644 staffs.json diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..4cb5761 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +index.html linguist-generated diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml new file mode 100644 index 0000000..841125a --- /dev/null +++ b/.github/workflows/update.yml @@ -0,0 +1,42 @@ +name: "Update" +on: + workflow_dispatch: + push: + branches: + - main + - master + +permissions: + contents: write + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/magic-nix-cache-action@main + + - name: Checkout + uses: actions/checkout@v4 + with: + show-progress: false + + - name: Setup Git + run: | + git config --global user.name "$GITHUB_ACTOR" + git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com" + git show -s + + - name: Update OpenPGP + run: | + make + + - name: Commit change + continue-on-error: true + run: | + set +e + + git add . + git status + git commit -m "openpgp: update at $(date +'%Y-%m-%dT%H:%M:%S')" + git push diff --git a/.well-known/Makefile b/.well-known/Makefile deleted file mode 100644 index 9fce375..0000000 --- a/.well-known/Makefile +++ /dev/null @@ -1,7 +0,0 @@ - -.PHONY: generate-WKD -generate-WKD: - # Using official tool again because gpg will only fetch one uid via WKD - gpg --list-options show-only-fpr-mbox -k "@coelacanthus.moe" | $$(gpgconf --list-dirs libexecdir)/gpg-wks-client -v --install-key - # Not use official tool for it only export one uid - #gpg --no-armor --export i@coelacanthus.moe > openpgpkey/coelacanthus.moe/hu/yoshewjxwxj3dtezbu34waxgwahxoo4n diff --git a/.well-known/make.py b/.well-known/make.py new file mode 100755 index 0000000..6f7b582 --- /dev/null +++ b/.well-known/make.py @@ -0,0 +1,16 @@ +#! /usr/bin/env nix-shell +#! nix-shell -i python3 -p "python3.withPackages (ps: with ps; [ ])" -p gnupg + +import sys +import json +import os + +if __name__ == "__main__": + with open(sys.argv[1]) as f: + data = json.load(f) + print(data) + for key, value in data.items(): + for fingerprint in value: + os.system(f"gpg --recv-keys {fingerprint}") + os.system(f"pwd") + os.system(f"gpg --list-options show-only-fpr-mbox -k {fingerprint} | gpg-wks-client -v --install-key") diff --git a/.well-known/openpgpkey/aosc.io/hu/6wtzep7o6y4bd6o11t9e9a4a1emuz4o7 b/.well-known/openpgpkey/aosc.io/hu/6wtzep7o6y4bd6o11t9e9a4a1emuz4o7 deleted file mode 100644 index 12d21eaba43877105dc156386f4b1bc1a4a9e4bf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 922 zcmbPX%#!eK-3BpEZ8k<0##`?EjEw9Kvlu2Xp0j_V(VhL_zXYC!2c@uuUHfz9!x~k7 zvD9T3G#j_*I;ZBO7MG+d_+*wUXt?DUDLDEEJ8LS~B{ zK;Bw&dh#K||2(r* z=Dqw%=BxXkU%!3di`&iEF=f`XQuT!m(`E%EKIPhB0djPb5EnSkriU`Jf+Edw!91C3 zlPzmDJ1_+8Zme0??Z(Eq>0qFvbKaWg7EC1?%#0lD2$%B^cKJ=@;NJIuk>TuS?Ul92t7m)%78_YLr^X zS6FZ};dAtEa2gR~Xe?7;kpxDMEKsr7&Zn=Jl|K5gjMrqwqe!i3gn)o{cx^xt6ZTJypv;Qnx?-Q)Vn9!!JYE@ZC1*QciQa z+!HmULjzlt+B6L_Z#DCN=9LRr%8N*vu11UuPpo%atmkZv_D=XDE3Ylh**vvK*Jkd{ xlU?omHj4dy9m4S6U7R8AX-%r^>ksnproUoOPZ2!U+LG{got=`fPE|nyD*(qzU5@|& diff --git a/.well-known/openpgpkey/aosc.io/policy b/.well-known/openpgpkey/aosc.io/policy deleted file mode 100644 index 4c343ff..0000000 --- a/.well-known/openpgpkey/aosc.io/policy +++ /dev/null @@ -1 +0,0 @@ -# Policy flags for domain aosc.io diff --git a/.well-known/openpgpkey/coelacanthus.moe/hu/yoshewjxwxj3dtezbu34waxgwahxoo4n b/.well-known/openpgpkey/coelacanthus.moe/hu/yoshewjxwxj3dtezbu34waxgwahxoo4n deleted file mode 100644 index 67659ea92c5d28049d094e88a7e97128cc1c1934..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 915 zcmbPX%#!eK-3BpEZ8k<0##`?EjEw9Kvlu2Xp0j_V(VhL_zXYC!2c@uuUHfz9!x~k7 zvD9T3G#j@lI_Ib6Bqk^3m1L9_E7)W@BqQ>8GqHF*7oVDYA6x?WsLH>Hg1?2kd1R(O^-TY|G?V`_i{Gj}`IP+WQiGh-H~lPr&r=6fIG0>! zWLS07-rZ8-!s24(&JGRc3?+VTm3x~DN+TXlep2{yUl8vOkiXZLp!)l#)vC4oq&#Oo zNPcx%>c*cv@&Z@CMjfvD{4}op)xC_LwjFgW5F-a@nbMzUIql-}--MN^N;bxJ0 zEdPtwJ-$AtGA@N_c%R!f&y$CF>X~xqCj}p`o_xsgKhJEHc`v_``Re}X*KgnV;&wB3 zOqunpRDEH?v{?a(Pq}tjfE=A9#08G5>7k6QpxClpFi+;%WXqb(4h%uN8*A2eyRk8D zIvD8aoVVt=1yhLzGb0B(!sR@KU49cexc5C^WH|ezX4R_wOZy*s-S7TgepO4hB0C}V zHe>ddp9}H=MYbXV=FUsRvDeU7ww=ayMELI;^3!L5oK z+&c}-PAJ~)^|<%-kV1E`-<(;ZdKxP>M}}T?b$!UK8l~3p6&Bn~_#C|(oJPbL8p{+| zB!ST*3sfw&^XcnlrH?)=<29M_IHvPSMEW{YRwiKJse=3l6WJTe$k3@%Y8tYbS(Qs_ z;z6f{XXA}}uB9t-Pu22|)a_6Ilo`v&@XOFOe7B9dl+&Cp_e9O;(7;xuHci9KTg|+m zdF29@@*p5Gay%Rpk%495$+Qv{E-wj{h=XQw2rQ&o__3IN4@TWtUU diff --git a/.well-known/openpgpkey/coelacanthus.moe/policy b/.well-known/openpgpkey/coelacanthus.moe/policy deleted file mode 100644 index fb523a5..0000000 --- a/.well-known/openpgpkey/coelacanthus.moe/policy +++ /dev/null @@ -1 +0,0 @@ -# Policy flags for domain coelacanthus.moe diff --git a/.well-known/openpgpkey/gmail.com/hu/c8qotknqrqdr8hjc1mrkreibakfwd1bs b/.well-known/openpgpkey/gmail.com/hu/c8qotknqrqdr8hjc1mrkreibakfwd1bs deleted file mode 100644 index 645a64f7b715e96dca21df65fe6d2f98307285c9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 932 zcmbPX%#!eK-3BpEZ8k<0##`?EjEw9Kvlu2Xp0j_V(VhL_zXYC!2c@uuUHfz9!x~k7 zvD9T3G#j^A`DB*rD0t-OrI(i~X!s@OrYhv;DFh@I7Z>Cgm1rv1IOnJ4Bqk^3m1L9_ zd!$x4q~|7P=IABo=h}5lV-XhPVz3iaWa-q~Q+s&Q{hucf*vpE3k>D$?s7PjIO4-6a zk4c)5m6OY(%N zUvQi1wASiY{vDuzSYLt~5I?O}t=%W(Ir~BKtJ6|9{_K$#xcW8faMkChaqX|}W&E`5 zsAG`;dPa>&S^=kj5-%#A0ePnQII^QV7c(;4EOL+KfAPA<*XLBmr7#WebGznw@-R<5 zQ||nv;N#Vk4;lXFnXNMK zZz8*V-vdU5vrlSPt=hk||Do6Y?%(BCwPY)@6H;$8W^ehqATLm4`*Mc=Y2UZ6Q8IfZ zrc~(?ky@-i`3e6;^_kn}NSk+VnPnq%kO>mps;I%e)4=S6;_Y6KdtVPJbO-y*nI)>H zv0`&%=v7zOhuo@BY8_u;!Oeuv(YwKEM~tDdOo2rb7(KE;#bP_3zFt=P=)*EzlNpa= zI-f+OuQO$30tTKc$Zs%_y`hW@ojRqaA&Z$+xuhl@bXs^e-l*qVx+3>fE&oW}{`60o zv5XAA3|+%_+o(%9&FOMa)Qk=dY*lL0G|ar!%=?*FE?_AyB5ArBF)}={-fgj-vo+c~ z;ghVqwlrt+)FNG*xjRpGweQ;~_V;xN!+&>ihPbCSsj{y>$iJKZiak9=@K|e0!rOIr LO2Rr-1qrMGdI({% diff --git a/.well-known/openpgpkey/gmail.com/policy b/.well-known/openpgpkey/gmail.com/policy deleted file mode 100644 index c381bdf..0000000 --- a/.well-known/openpgpkey/gmail.com/policy +++ /dev/null @@ -1 +0,0 @@ -# Policy flags for domain gmail.com diff --git a/.well-known/openpgpkey/outlook.com/hu/6wtzep7o6y4bd6o11t9e9a4a1emuz4o7 b/.well-known/openpgpkey/outlook.com/hu/6wtzep7o6y4bd6o11t9e9a4a1emuz4o7 deleted file mode 100644 index 85f1a3b357fc94ec9e7e393f9482fd391e03ef29..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 921 zcmbPX%#!eK-3BpEZ8k<0##`?EjEw9Kvlu2Xp0j_V(VhL_zXYC!2c@uuUHfz9!x~k7 zvD9T3G#j_5JLjk7Bqk^3m1L9_E7&9>@f`9?OLFq_v-OhmbL~3ju?UNCF}N|wF*1oa zFiA6VbMta>@^EmovoJHUi*j*ta5FKpiZL-WGO%)Td6XO%Q)KDX+f#dZ(*2(&57^6! zev#lSuBb?6WlHA#c#DCHQvfD1(U6hh|LN2V^%}eT0$1KR;5Fy+zlXP!f9i5N*6%#I zD)E+yr4u8=>-*Z-dhBzWYV=a}&+VG$$-_MLOu6%uf{#~EK4kcxXST|`mtV zhM?VzHS4BW>Qf zWtNT5K_*CWtD*+?P6M+Oinn_`?tML^&>ieIXO^g*#){36p;uj9A9AZksdapX1ve8u zNACtFATfr3kBAzRr}D2^e^)Aiu#x_J%St zbn29vhAd`Q<&v6s&}re>c%z5AM_wfrM>`_n&V#xgSeGIR~!ZKE#bG^fiwQ8PL; zuvMu|(=hW^Gw)|!xqzj-h@|Oi#K`c(dbh=T&emw}gio^a+R~iOQ;T$M=I%V%)xK|| s*x%P74FBE58RDMSq{_bjApdUqEB5ph!DFp032)cgDGBRT6(q0%066bpH~;_u diff --git a/.well-known/openpgpkey/outlook.com/policy b/.well-known/openpgpkey/outlook.com/policy deleted file mode 100644 index 9476725..0000000 --- a/.well-known/openpgpkey/outlook.com/policy +++ /dev/null @@ -1 +0,0 @@ -# Policy flags for domain outlook.com diff --git a/CNAME b/CNAME index 157a3a2..58fa0fd 100644 --- a/CNAME +++ b/CNAME @@ -1 +1 @@ -openpgpkey.coelacanthus.moe +openpgpkey.project-trans.org diff --git a/Makefile b/Makefile index eec6c25..f7ee930 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,14 @@ -MAKE = make -RM = rm -rf +all: clean index.html generate-WKD .PHONY: generate-WKD generate-WKD: - $(MAKE) -C .well-known generate-WKD + mkdir -p ./.well-known/openpgpkey + cd ./.well-known && ./make.py ../staffs.json index.html: index.md - pandoc -c style.css --self-contained index.md -o index.html --to=html5 --metadata title="Web Key Directory of Coelacanthus" -V lang=en-US + nix run nixpkgs#pandoc -- -c style.css --embed-resources --standalone index.md -o index.html --to=html5 --metadata title="Web Key Directory of Project Trans" -V lang=en-US .PHONY: clean clean: - $(RM) index.html + rm -rf index.html + rm -rf ./.well-known/openpgpkey diff --git a/index.html b/index.html deleted file mode 100644 index df5af0e..0000000 --- a/index.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - Web Key Directory of Coelacanthus - - - - - -
-

Web Key Directory of Coelacanthus

-
- - - diff --git a/staffs.json b/staffs.json new file mode 100644 index 0000000..ee7bdc5 --- /dev/null +++ b/staffs.json @@ -0,0 +1,11 @@ +{ + "CoelacanthusHex": [ + "892ebc7dc392dff9c9c03f1d15f4180e73787863" + ], + "Cryolitia": [ + "1c3c6547538d7152310c0eea84dd0c0130a54df7" + ], + "saeziae": [ + "cedba39e576bc6c21b71a64825e82bbea32bd476" + ] +}