Skip to content
This repository was archived by the owner on Mar 8, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Go
secrethub-proxy
secrethub-http-proxy
*.exe
*.exe~
*.dll
Expand Down
12 changes: 5 additions & 7 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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"
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
build:
go build ./cmd/secrethub-proxy
go build ./cmd/secrethub-http-proxy
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down Expand Up @@ -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)
}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down