From 10272a8d176ddd665d597f58853c3ecfd5325749 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 4 Apr 2020 03:52:24 -0400 Subject: [PATCH 1/4] docs: add note about disabling uniqueness checks --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 9e1296b..13e43e7 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,11 @@ If the public key is already on the server, you may also specify it as an argume $ ssh root@server sshcommand acl-add cmd progrium ~/.ssh/id_rsa.pub +By default, key names and fingerprints must be unique. Both of these checks can be disabled by setting the following environment variables to `false`: + + export SSHCOMMAND_CHECK_DUPLICATE_FINGERPRINT="false" + export SSHCOMMAND_CHECK_DUPLICATE_NAME="false" + Now anywhere with the private key you can easily run: $ ssh cmd@server From de557deee57c7924e07d4ad617aed95d88a84c50 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 5 Apr 2020 14:31:51 -0400 Subject: [PATCH 2/4] refactor: avoid writing acl-add key to temporary file Closes #37 --- sshcommand | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sshcommand b/sshcommand index c874cf1..edfbf71 100755 --- a/sshcommand +++ b/sshcommand @@ -137,9 +137,7 @@ sshcommand-acl-add() { fi if [[ -z "$KEY_FILE" ]]; then - KEY_FILE=$(mktemp) - KEY=$(tee "$KEY_FILE") - trap 'rm -f "$KEY_FILE"' INT EXIT + KEY=$(cat) else KEY=$(cat "$KEY_FILE") fi From 3698559a9fe6d2d4b2bd47921a1f0107d1b5945b Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Wed, 6 May 2020 00:27:38 -0400 Subject: [PATCH 3/4] feat: release packages for focal --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 5ab14f5..dc5cc0f 100644 --- a/Makefile +++ b/Makefile @@ -146,6 +146,7 @@ release-packagecloud: release-packagecloud-deb: build/deb/$(NAME)_$(VERSION)_amd64.deb package_cloud push $(PACKAGECLOUD_REPOSITORY)/ubuntu/xenial build/deb/$(NAME)_$(VERSION)_amd64.deb package_cloud push $(PACKAGECLOUD_REPOSITORY)/ubuntu/bionic build/deb/$(NAME)_$(VERSION)_amd64.deb + package_cloud push $(PACKAGECLOUD_REPOSITORY)/ubuntu/focal build/deb/$(NAME)_$(VERSION)_amd64.deb package_cloud push $(PACKAGECLOUD_REPOSITORY)/debian/stretch build/deb/$(NAME)_$(VERSION)_amd64.deb package_cloud push $(PACKAGECLOUD_REPOSITORY)/debian/buster build/deb/$(NAME)_$(VERSION)_amd64.deb From 509b021661f265d9cea6b648c8ab9fd8eee925f5 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Wed, 6 May 2020 12:21:03 -0400 Subject: [PATCH 4/4] Release 0.11.0 --- CHANGELOG.md | 10 +++++++++- Makefile | 2 +- package.json | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 82efa56..c0bf2dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,13 @@ All notable changes to this project will be documented in this file. ### Changed +## [0.11.0] - 2020-05-06 + +### Changed + +- @josegonzalez Avoid writing acl-add key to temporary file +- @josegonzalez Release packages for focal + ## [0.10.0] - 2020-04-03 ### Added @@ -134,7 +141,8 @@ All notable changes to this project will be documented in this file. - @michaelshobbs update build image in README - @jvanbaarsen Only add SSH key if it doesn't already exists -[unreleased]: https://github.com/dokku/sshcommand/compare/v0.10.0...HEAD +[unreleased]: https://github.com/dokku/sshcommand/compare/v0.11.0...HEAD +[0.11.0]: https://github.com/dokku/sshcommand/compare/v0.10.0...v0.11.0 [0.10.0]: https://github.com/dokku/sshcommand/compare/v0.9.0...v0.10.0 [0.9.0]: https://github.com/dokku/sshcommand/compare/v0.8.0...v0.9.0 [0.8.0]: https://github.com/dokku/sshcommand/compare/v0.7.0...v0.8.0 diff --git a/Makefile b/Makefile index dc5cc0f..174df3e 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ MAINTAINER_NAME = Jose Diaz-Gonzalez REPOSITORY = sshcommand HARDWARE = $(shell uname -m) SYSTEM_NAME = $(shell uname -s | tr '[:upper:]' '[:lower:]') -BASE_VERSION ?= 0.10.0 +BASE_VERSION ?= 0.11.0 IMAGE_NAME ?= $(MAINTAINER)/$(REPOSITORY) PACKAGECLOUD_REPOSITORY ?= dokku/dokku-betafish diff --git a/package.json b/package.json index aa4f6c1..6f23afa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sshcommand", - "version": "0.10.0", + "version": "0.11.0", "description": "Turn SSH into a thin client specifically for your app", "global": "true", "install": "cp sshcommand /usr/local/bin && chmod +x /usr/local/bin/sshcommand",