diff --git a/.gitignore b/.gitignore index 077dbe8..a51f29c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ # Go -secrethub-proxy +secrethub-http-proxy *.exe *.exe~ *.dll diff --git a/.goreleaser.yml b/.goreleaser.yml index d8a1524..cf91171 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,8 +1,6 @@ -project_name: secrethub-proxy - builds: - - binary: "{{ .ProjectName }}" - main: ./cmd/secrethub-proxy/main.go + - binary: secrethub-http-proxy + main: ./cmd/secrethub-http-proxy/main.go env: - CGO_ENABLED=0 goos: @@ -26,7 +24,7 @@ dockers: goos: linux goarch: amd64 binaries: - - secrethub-proxy + - secrethub-http-proxy image_templates: - - "secrethubio/proxy:{{ .Version }}" - - "secrethubio/proxy:latest" + - "secrethub/http-proxy:{{ .Version }}" + - "secrethub/http-proxy:latest" diff --git a/Dockerfile b/Dockerfile index 3c1ebe2..5d7b30e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ FROM alpine -COPY secrethub-proxy /usr/bin/secrethub-proxy +COPY secrethub-http-proxy /usr/bin/secrethub-http-proxy RUN apk add --no-cache ca-certificates && update-ca-certificates EXPOSE 8080 -CMD secrethub-proxy -C ${SECRETHUB_CREDENTIAL:-$(cat /secrethub/credential)} -P ${SECRETHUB_CREDENTIAL_PASSPHRASE} -h 0.0.0.0 -p 8080 +CMD secrethub-http-proxy -C ${SECRETHUB_CREDENTIAL:-$(cat /secrethub/credential)} -P ${SECRETHUB_CREDENTIAL_PASSPHRASE} -h 0.0.0.0 -p 8080 diff --git a/Makefile b/Makefile index 9f04ee9..2745b07 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,2 @@ build: - go build ./cmd/secrethub-proxy + go build ./cmd/secrethub-http-proxy diff --git a/cmd/secrethub-proxy/main.go b/cmd/secrethub-http-proxy/main.go similarity index 89% rename from cmd/secrethub-proxy/main.go rename to cmd/secrethub-http-proxy/main.go index 10856df..3c7dcc5 100644 --- a/cmd/secrethub-proxy/main.go +++ b/cmd/secrethub-http-proxy/main.go @@ -8,7 +8,7 @@ import ( "os/signal" "syscall" - "github.com/keylockerbv/secrethub-proxy/pkg/restproxy" + "github.com/keylockerbv/secrethub-http-proxy/pkg/restproxy" "github.com/secrethub/secrethub-go/pkg/secrethub" ) @@ -67,10 +67,10 @@ func gracefulShutdown(proxy restproxy.ClientProxy) { } func exit(err error) { - fmt.Printf("secrethub-proxy: error: %v\n", err) + fmt.Printf("secrethub-http-proxy: error: %v\n", err) os.Exit(1) } func log(message string) { - fmt.Printf("secrethub-proxy: %v\n", message) + fmt.Printf("secrethub-http-proxy: %v\n", message) } diff --git a/go.mod b/go.mod index 39f0d5a..b228807 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/keylockerbv/secrethub-proxy +module github.com/keylockerbv/secrethub-http-proxy require ( github.com/gorilla/mux v1.7.0