From 66e493f7fa410e412e7a4cca20290c8cb23aa762 Mon Sep 17 00:00:00 2001 From: Matthew Ryan Dillon Date: Thu, 10 Oct 2024 12:50:57 -0400 Subject: [PATCH] feat: work vs personal rsa keys --- home/.chezmoiignore.tmpl | 4 + ....age => encrypted_id_rsa_personal.pub.age} | 0 .../encrypted_id_rsa_work.pub.age | 22 ++++++ ... => encrypted_private_id_rsa_personal.age} | 0 .../encrypted_private_id_rsa_work.age | 74 +++++++++++++++++++ home/private_dot_ssh/id_rsa.pub.tmpl | 5 ++ home/private_dot_ssh/private_id_rsa.tmpl | 5 ++ 7 files changed, 110 insertions(+) rename home/private_dot_ssh/{encrypted_id_rsa.pub.age => encrypted_id_rsa_personal.pub.age} (100%) create mode 100644 home/private_dot_ssh/encrypted_id_rsa_work.pub.age rename home/private_dot_ssh/{encrypted_private_id_rsa.age => encrypted_private_id_rsa_personal.age} (100%) create mode 100644 home/private_dot_ssh/encrypted_private_id_rsa_work.age create mode 100644 home/private_dot_ssh/id_rsa.pub.tmpl create mode 100644 home/private_dot_ssh/private_id_rsa.tmpl diff --git a/home/.chezmoiignore.tmpl b/home/.chezmoiignore.tmpl index 12f55a1..73e6a90 100644 --- a/home/.chezmoiignore.tmpl +++ b/home/.chezmoiignore.tmpl @@ -1,3 +1,7 @@ {{- if ne .hosttype "work" }} .zshklaviyo {{- end }} +.ssh/id_rsa_work +.ssh/id_rsa_personal +.ssh/id_rsa_work.pub +.ssh/id_rsa_personal.pub diff --git a/home/private_dot_ssh/encrypted_id_rsa.pub.age b/home/private_dot_ssh/encrypted_id_rsa_personal.pub.age similarity index 100% rename from home/private_dot_ssh/encrypted_id_rsa.pub.age rename to home/private_dot_ssh/encrypted_id_rsa_personal.pub.age diff --git a/home/private_dot_ssh/encrypted_id_rsa_work.pub.age b/home/private_dot_ssh/encrypted_id_rsa_work.pub.age new file mode 100644 index 0000000..06d02f0 --- /dev/null +++ b/home/private_dot_ssh/encrypted_id_rsa_work.pub.age @@ -0,0 +1,22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Wi0zNW +7v4k+nZ+XfWXsQ3+pvAjsInDwvEcjLke/efiXfHEjQ7avsu4iRfApbEWfOazilax +uRPcvXGK30lZKPuaCPjhNmxZm7oh2+jsXSkrirx+rmTx+sLBqU+NXcDp2iZO8Eq8 +ek1MGbyXi9EypJvYMs2eGbHona+YfnvP5ryZBDA8ZAP7qzKLBVrrVUej7NzD3byg +MXxBe8OOjxwhhAB+YK10jegte6SFS2sFIFLEe59kccM0qm40ZJSAOg== +-----END AGE ENCRYPTED FILE----- \ No newline at end of file diff --git a/home/private_dot_ssh/encrypted_private_id_rsa.age b/home/private_dot_ssh/encrypted_private_id_rsa_personal.age similarity index 100% rename from home/private_dot_ssh/encrypted_private_id_rsa.age rename to home/private_dot_ssh/encrypted_private_id_rsa_personal.age diff --git a/home/private_dot_ssh/encrypted_private_id_rsa_work.age b/home/private_dot_ssh/encrypted_private_id_rsa_work.age new file mode 100644 index 0000000..f21fa6f --- /dev/null +++ b/home/private_dot_ssh/encrypted_private_id_rsa_work.age @@ -0,0 +1,74 @@ +-----BEGIN AGE ENCRYPTED FILE----- +YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSA4aVhyNDdpNERyeS9nYkRG +STB2YUV4Rm8yL1VJRGVYZW11MW1iWXlmdWk0CmJWeUNlcEdlNVhMKzduZFNCSFpo +U1lJVzlKZ09OU0lmdytLZ0FtVzZCd2sKLS0tIG5IM0tzclJuTDVWYWVYak9JL3kx +emYwZEhpNTdlbkRyc2VadEtQbGpvZ2MKIfg4lE/XfD3NVUr+q7KfPUL0mxMxf6Jr +vMSe3nySaXOeHep5HCCFNzIW3UUk+sZml0Y3nZNlIm5ZTCbzG0nCT+R4aYzwFUmq +W22IlXNlTd+4KuGS0UODztBivY4dU2LkKsAZFboYD7RYxhKShSygab9TkJJ18tEU +O8Oqewnh4t7cnos0NegazQ0bWcv9k1SFT3AfovBRIqMfBKbn6Lufgy3k5qLPWOs3 +GuWEtr8lHVeHiFo+g3WrKUc1A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hYbQqkZ2+HgkxTwlArDFRNHugHgw6WrW/J+v+u/KQoj3XfBsAlw6X +y6OO9NKNv1SWKThL6DDrfPnJ4xFO+2oEHjOTEGx4np2T4iDlGzVpX+h0xWV29zYg +aql9cZEZkQTAibklvRb4VdIVZk9e58PnXNzrLXUn5HstUBZfedvzKK4kmgLrbj3X +IvWbPHzAn0cs6Bu9alrHVixaDOUxyKFmm/rt8yM3XZwr/tzccukrfWZvrDC7dr4c +jhqYD8+43MNUVss9F4ZSa6uIzXdN7bAH8ncUEALgS/NtZYCIFqma5QPNsyBNHUCv +p2cy0eOjySSzrkHyS4ukmU+PoirK/AQyr/wB1HSJsz7bE96v5wXydVaOw9GmOPJt +RYykh1CQkwmR+X5/WkgH8aZ0GHMPE9bbaAZPb45EKKEk7abUr1qXKBdUXRH2RKN2 +EdEe9EGDriz1nRzg586us0/Vb+obhuzAu5vMt6ujzmXzPcW63+T7QU9uHBVADJXu +GTB0x/wCAou5AFDbeh3XPw19JkySY6GTQURX3turBc6HhrQtJYm7B+ojPfbSdAwy +8Eb6Wo70obbSYQwRT3Rqk86qR1IuGojcwk3zpEIJUxUAK8Nb6aJ/FCiuWyortFY6 +2XtJlrEwP1eJMKs9pN8KUN3Sy5FMa22/QjcrCCrVi4UUtDyweiLaN/SRr4KefAs/ +/a/lWosZwiJ+iGrm14FTQn19RclCoHt7mFWI7y1oFrs55Qpv2N6QSQF8RthqjLnX +uFTQGe0Yr6cuwagNliEl2y9qgAwfC3NEXIXBeV7FP754MAAiVOofNVWj2YWwsqzH ++zkzjiM1gs5x3IuvLkueXrpTBWuRDBL4s5NJ1k2Yf/NjLhyZz5axASiMh5gXgM9c +9vGlxblErsVg4CWeIxWxk5HxCzhMY3S+rTqgWKzqedWOJ98= +-----END AGE ENCRYPTED FILE----- \ No newline at end of file diff --git a/home/private_dot_ssh/id_rsa.pub.tmpl b/home/private_dot_ssh/id_rsa.pub.tmpl new file mode 100644 index 0000000..88f4df2 --- /dev/null +++ b/home/private_dot_ssh/id_rsa.pub.tmpl @@ -0,0 +1,5 @@ +{{- if eq .hosttype "work" -}} +{{ join .chezmoi.sourceDir "private_dot_ssh/encrypted_id_rsa_work.pub.age" | include | decrypt }} +{{- else -}} +{{ join .chezmoi.sourceDir "private_dot_ssh/encrypted_id_rsa_personal.pub.age" | include | decrypt }} +{{- end -}} diff --git a/home/private_dot_ssh/private_id_rsa.tmpl b/home/private_dot_ssh/private_id_rsa.tmpl new file mode 100644 index 0000000..97ee1c3 --- /dev/null +++ b/home/private_dot_ssh/private_id_rsa.tmpl @@ -0,0 +1,5 @@ +{{- if eq .hosttype "work" -}} +{{ join .chezmoi.sourceDir "private_dot_ssh/encrypted_private_id_rsa_work.age" | include | decrypt }} +{{- else -}} +{{ join .chezmoi.sourceDir "private_dot_ssh/encrypted_private_id_rsa_personal.age" | include | decrypt }} +{{- end -}}