Skip to content

Commit

Permalink
add vault kubernetes support
Browse files Browse the repository at this point in the history
  • Loading branch information
HeavyHorst committed Oct 14, 2019
1 parent f0fa9d8 commit e668c03
Show file tree
Hide file tree
Showing 285 changed files with 63,580 additions and 14,637 deletions.
4 changes: 2 additions & 2 deletions docs/content/config/configuration-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,11 @@ See the example configuration to see how global default values can be set for in
- **node(string):**
- The backend node.
- **auth_type(string):**
- The vault authentication type. (token, approle, app-id, userpass, github, cert)
- The vault authentication type. (token, approle, app-id, userpass, github, cert, kubernetes)
- **auth_token(string):**
- The vault authentication token. Only used with auth_type=token or github.
- **role_id(string):**
- The vault app role. Only used with auth_type=approle.
- The vault app role. Only used with auth_type=approle and kubernetes.
- **secret_id(string):**
- The vault secret id. Only used with auth_type=approle.
- **app_id(string):**
Expand Down
10 changes: 2 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ module github.com/HeavyHorst/remco
go 1.12

require (
contrib.go.opencensus.io/exporter/ocagent v0.4.3 // indirect
contrib.go.opencensus.io/exporter/ocagent v0.6.0 // indirect
github.com/Azure/azure-sdk-for-go v25.0.0+incompatible // indirect
github.com/Azure/go-autorest v11.4.0+incompatible // indirect
github.com/BurntSushi/toml v0.3.1
github.com/HeavyHorst/consul-template v0.17.0
github.com/HeavyHorst/easykv v1.2.2
github.com/HeavyHorst/easykv v1.2.4
github.com/HeavyHorst/memkv v1.0.1
github.com/HeavyHorst/pongo2 v3.3.0+incompatible
github.com/SAP/go-hdb v0.13.2 // indirect
Expand Down Expand Up @@ -46,12 +46,10 @@ require (
github.com/gogo/protobuf v1.2.0 // indirect
github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef // indirect
github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf // indirect
github.com/googleapis/gax-go v2.0.2+incompatible // indirect
github.com/gorhill/cronexpr v0.0.0-20180427100037-88b0669f7d75 // indirect
github.com/gorilla/websocket v1.4.0 // indirect
github.com/grpc-ecosystem/go-grpc-middleware v1.0.0 // indirect
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
github.com/grpc-ecosystem/grpc-gateway v1.7.0 // indirect
github.com/hashicorp/consul v1.4.2 // indirect
github.com/hashicorp/consul-template v0.19.5
github.com/hashicorp/go-gatedio v0.0.0-20151013192243-8b8de1022221 // indirect
Expand Down Expand Up @@ -116,10 +114,6 @@ require (
github.com/x-cray/logrus-prefixed-formatter v0.5.2
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 // indirect
go.etcd.io/bbolt v1.3.2 // indirect
golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3 // indirect
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c // indirect
google.golang.org/api v0.1.0 // indirect
google.golang.org/grpc v1.18.0 // indirect
gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d // indirect
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127
gopkg.in/gorethink/gorethink.v4 v4.1.0 // indirect
Expand Down
124 changes: 87 additions & 37 deletions go.sum

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions pkg/backends/vault.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type VaultConfig struct {
Node string

// The vault authentication type.
// (token, approle, app-id, userpass, github, cert)
// (token, approle, app-id, userpass, github, cert, kubernetes)
AuthType string `toml:"auth_type"`

// The vault app ID.
Expand All @@ -33,7 +33,7 @@ type VaultConfig struct {
UserID string `toml:"user_id"`

// The vault RoleID.
// Only used with auth_type=approle.
// Only used with auth_type=approle and kubernetes.
RoleID string `toml:"role_id"`
// The vault SecretID.
// Only used with auth_type=approle.
Expand All @@ -44,7 +44,7 @@ type VaultConfig struct {
// The password for the userpass authentication.
Password string

// The vault authentication token. Only used with auth_type=token or github.
// The vault authentication token. Only used with auth_type=token and github.
AuthToken string `toml:"auth_token"`

ClientCert string `toml:"client_cert"`
Expand Down
9 changes: 9 additions & 0 deletions vendor/github.com/HeavyHorst/easykv/vault/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion vendor/github.com/golang/protobuf/proto/decode.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 63 additions & 0 deletions vendor/github.com/golang/protobuf/proto/deprecated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion vendor/github.com/golang/protobuf/proto/equal.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

78 changes: 71 additions & 7 deletions vendor/github.com/golang/protobuf/proto/extensions.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 12 additions & 26 deletions vendor/github.com/golang/protobuf/proto/lib.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e668c03

Please sign in to comment.