Skip to content

Commit

Permalink
Merge pull request #10 from tonedefdev/rc-2.1.0
Browse files Browse the repository at this point in the history
Version 2.1.0
  • Loading branch information
tonedefdev authored Jun 8, 2022
2 parents 982e416 + 2d1cf37 commit 42be312
Show file tree
Hide file tree
Showing 21 changed files with 1,873 additions and 300 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.15
go-version: ^1.18
id: go

- name: Checkout
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ terraform/.terraform/*
terraform/.terraform.tfstate.lock.info
terraform/terraform.tfstate
terraform/terraform.tfstate.backup
terracreds
terracreds
terracreds.json
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ builds:
- linux
goarch:
- amd64
- arm64
binary: terracreds
archives:
- name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
Expand Down
210 changes: 167 additions & 43 deletions README.md

Large diffs are not rendered by default.

23 changes: 17 additions & 6 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,22 @@ type Azure struct {
// if omitted Terracreds will use the hostname value instead
SecretName string `yaml:"secretName,omitempty"`

// UseMSI (Required) A flag to indicate if the Managed Identity of the Azure VM should be used for authentication
UseMSI bool `yaml:"useMSI,omitempty"`
// SubscriptionId (Required) The subscription ID where the target Key Vault has been created
SubscriptionId string `yaml:"subscriptionId,omitempty"`

// VaultUri (Required) The FQDN of the Azure Key Vault resource
VaultUri string `yaml:"vaultUri,omitempty"`
}

// GCP is the configuration structure for the Goocle Cloud Secret Manager provider
type GCP struct {
// ProjectId (Required) The name of the GCP project where the Secret Manager API has been enabled
ProjectId string `yaml:"projectId,omitempty"`

// SecretId (Optional) The name of the secret to create
SecretId string `yaml:"secretId,omitempty"`
}

// HCVault is the configuration structure for the Hashicorp Vault provider
type HCVault struct {
// EnvironmentTokenName (Required) The name of the environment variable that currently holds
Expand All @@ -48,10 +57,12 @@ type HCVault struct {

// Config struct for terracreds custom configuration
type Config struct {
Logging Logging `yaml:"logging"`
Aws Aws `yaml:"aws,omitempty"`
Azure Azure `yaml:"azure,omitempty"`
HashiVault HCVault `yaml:"hcvault,omitempty"`
Logging Logging `yaml:"logging"`
Aws Aws `yaml:"aws,omitempty"`
Azure Azure `yaml:"azure,omitempty"`
HashiVault HCVault `yaml:"hcvault,omitempty"`
GCP GCP `yaml:"gcp,omitempty"`
Secrets []string `yaml:"secrets,omitempty"`
}

// Logging struct defines the parameters for logging
Expand Down
17 changes: 0 additions & 17 deletions config.yaml

This file was deleted.

68 changes: 60 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,20 +1,72 @@
module github.com/tonedefdev/terracreds

go 1.15
go 1.18

require (
github.com/Azure/azure-sdk-for-go v58.1.0+incompatible
github.com/Azure/go-autorest/autorest/azure/auth v0.5.8
github.com/Azure/go-autorest/autorest/to v0.4.0
github.com/Azure/go-autorest/autorest/validation v0.3.1 // indirect
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0
github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets v0.7.1
github.com/MakeNowJust/heredoc v1.0.0
github.com/aws/aws-sdk-go v1.41.0
github.com/danieljoos/wincred v1.1.0
github.com/fatih/color v1.9.0
github.com/google/go-cmp v0.5.6 // indirect
github.com/hashicorp/vault/api v1.1.1
github.com/urfave/cli/v2 v2.2.0
github.com/zalando/go-keyring v0.1.0
golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40 // indirect
gopkg.in/yaml.v2 v2.3.0
gopkg.in/yaml.v2 v2.4.0
)

require (
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 // indirect
github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect
github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.5.0 // indirect
github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // indirect
github.com/golang-jwt/jwt v3.2.1+incompatible // indirect
github.com/google/uuid v1.1.2 // indirect
github.com/kylelemons/godebug v1.1.0 // indirect
github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect
)

require (
cloud.google.com/go v0.100.2 // indirect
cloud.google.com/go/compute v1.5.0 // indirect
cloud.google.com/go/iam v0.3.0 // indirect
cloud.google.com/go/secretmanager v1.4.0
github.com/cenkalti/backoff/v3 v3.0.0 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d // indirect
github.com/godbus/dbus v4.1.0+incompatible // indirect
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/golang/snappy v0.0.3 // indirect
github.com/google/go-cmp v0.5.7 // indirect
github.com/googleapis/gax-go/v2 v2.2.0 // indirect
github.com/hashicorp/errwrap v1.0.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.1 // indirect
github.com/hashicorp/go-multierror v1.1.0 // indirect
github.com/hashicorp/go-retryablehttp v0.6.6 // indirect
github.com/hashicorp/go-rootcerts v1.0.2 // indirect
github.com/hashicorp/go-sockaddr v1.0.2 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/hashicorp/vault/sdk v0.2.1 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/mattn/go-colorable v0.1.6 // indirect
github.com/mattn/go-isatty v0.0.12 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mitchellh/mapstructure v1.3.2 // indirect
github.com/pierrec/lz4 v2.5.2+incompatible // indirect
github.com/russross/blackfriday/v2 v2.0.1 // indirect
github.com/ryanuber/go-glob v1.0.0 // indirect
github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect
go.opencensus.io v0.23.0 // indirect
golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e // indirect
golang.org/x/net v0.0.0-20220531201128-c960675eff93 // indirect
golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a // indirect
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/time v0.0.0-20200416051211-89c76fbcd5d1 // indirect
google.golang.org/api v0.74.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20220602131408-e326c6e8e9c8
google.golang.org/grpc v1.46.2 // indirect
google.golang.org/protobuf v1.28.0 // indirect
gopkg.in/square/go-jose.v2 v2.5.1 // indirect
)
Loading

0 comments on commit 42be312

Please sign in to comment.