From 81fe1fc5859376b939d945382131618824490887 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sun, 9 May 2021 00:24:09 +0300 Subject: [PATCH] Get the SSH private keys from Keepass. --- Makefile | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8d4203c..b466d7a 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ ansible-local = ansible localhost -c local -i localhost, -e "ansible_python_inte all: binaries vendored generated vendored: .config/pythonrc.py .bash_completion.d/aws .bash_completion.d/docker-compose .bash_completion.d/docker-machine.bash .bash_completion.d/docker-machine.bash .bash_completion.d/molecule Documents/bin/rabbitmqadmin -generated: .ssh/config .bash_completion.d/helm .bash_completion.d/kops .bash_completion.d/kubectl .bash_completion.d/kompose .bash_completion.d/minikube .bash_completion.d/pipenv .bash_completion.d/pandoc .bash_completion.d/skaffold .bash_completion.d/rabbitmqadmin .ssh/localhost .ssh/localhost.pub .ssh/authorized_keys .bash_completion.d/minishift .bash_completion.d/oc .bash_completion.d/poetry .bashrc.private +generated: .ssh/config .bash_completion.d/helm .bash_completion.d/kops .bash_completion.d/kubectl .bash_completion.d/kompose .bash_completion.d/minikube .bash_completion.d/pipenv .bash_completion.d/pandoc .bash_completion.d/skaffold .bash_completion.d/rabbitmqadmin .ssh/localhost .ssh/localhost.pub .ssh/authorized_keys .bash_completion.d/minishift .bash_completion.d/oc .bash_completion.d/poetry .bashrc.private Documents/github_ed25519 Documents/gitlab_fdo Documents/TopTal/gitlab_toptal Documents/Shore/shore_rsa Documents/Shore/gitlab_ed25519 Documents/Shore/shore_ecdsa Documents/Shore/shore_ed25519 binaries: $(DESTDIR)/share/bfg/bfg.jar $(DESTDIR)/bin/rke $(DESTDIR)/bin/docker-machine $(DESTDIR)/bin/packer $(DESTDIR)/bin/terraform $(DESTDIR)/bin/vault $(DESTDIR)/bin/kubectl $(DESTDIR)/bin/kops $(DESTDIR)/bin/kompose $(DESTDIR)/bin/minikube $(DESTDIR)/bin/docker-machine-driver-kvm2 $(DESTDIR)/bin/kustomize $(DESTDIR)/bin/pack $(DESTDIR)/bin/skaffold $(DESTDIR)/bin/minishift $(DESTDIR)/bin/oc $(DESTDIR)/bin/docker-machine-driver-kvm $(DESTDIR)/bin/gomplate $(DESTDIR)/bin/envconsul $(DESTDIR)/bin/helm $(DESTDIR)/bin/hugo @@ -222,3 +222,31 @@ Documents/bin/rabbitmqadmin: .bashrc.private: Documents/Database.kdbx echo "export GITLAB_TOKEN='$$(ph show --field Password 'shore.co.il/GitLab token')'" > '$@' + +Documents/github_ed25519: Documents/Database.kdbx + ph show --field Notes "SSH/$$(basename "$@")" > '$@' + chmod 600 '$@' + +Documents/gitlab_fdo: Documents/Database.kdbx + ph show --field Notes "SSH/$$(basename "$@")" > '$@' + chmod 600 '$@' + +Documents/TopTal/gitlab_toptal: Documents/Database.kdbx + ph show --field Notes "SSH/$$(basename "$@")" > '$@' + chmod 600 '$@' + +Documents/Shore/shore_rsa: Documents/Database.kdbx + ph show --field Notes "SSH/$$(basename "$@")" > '$@' + chmod 600 '$@' + +Documents/Shore/gitlab_ed25519: Documents/Database.kdbx + ph show --field Notes "SSH/$$(basename "$@")" > '$@' + chmod 600 '$@' + +Documents/Shore/shore_ecdsa: Documents/Database.kdbx + ph show --field Notes "SSH/$$(basename "$@")" > '$@' + chmod 600 '$@' + +Documents/Shore/shore_ed25519: Documents/Database.kdbx + ph show --field Notes "SSH/$$(basename "$@")" > '$@' + chmod 600 '$@' -- GitLab