diff --git a/.ko.yaml b/.ko.yaml index 9322388..cc0429b 100644 --- a/.ko.yaml +++ b/.ko.yaml @@ -7,4 +7,4 @@ builds: ldflags: - -s -w -X github.com/stuttgart-things/machineshop/cmd.version={{.Git.Tag}} - -s -w -X github.com/stuttgart-things/machineshop/cmd.date={{.Date}} - - -s -w -X github.com/stuttgart-things/machineshop/cmd.commit={{.Git.ShortCommit}} \ No newline at end of file + - -s -w -X github.com/stuttgart-things/machineshop/cmd.commit={{.Git.ShortCommit}} diff --git a/README.md b/README.md index 70120eb..62b8a6f 100644 --- a/README.md +++ b/README.md @@ -451,8 +451,14 @@ export VAULT_ADDR=https://≤VAULT_ADDR>[:8200] ```bash export SOPS_AGE_KEY=AGE-... -# or -export SOPS_AGE_KEY_FILE=home/sthings/projects/golang/sops/sops.key +``` + + + +
GET SOPS SECRET VALUE BY PATH + +```bash +machineshop get --system=sops --path=/home/sthings/projects/golang/sops/bla.yaml:password | tail -n +11 ```
@@ -469,13 +475,7 @@ machineshop get --path kubeconfigs/data/dev21:kubeconfig --output file --destina -
GET SOPS SECRET VALUE BY PATH -```bash -machineshop get --system=sops --path=/home/sthings/projects/golang/sops/bla.yaml:password | tail -n +11 -``` - -
## LICENSE diff --git a/cmd/get.go b/cmd/get.go index 4417291..d6995ff 100644 --- a/cmd/get.go +++ b/cmd/get.go @@ -135,7 +135,6 @@ var getCmd = &cobra.Command{ fmt.Println("DECRYPTED FILE: ", string(decryptedFile)) allDecryptedSecrets := kaeffken.CreateSecretsMap(decryptedFile, nil) - log.Info("ALL DECRYPTED SECRETS: ", allDecryptedSecrets) // LOOP OVER ALL DECRYPTED SECRETS var secretValueForGivenKey string diff --git a/tests/infra.yaml b/tests/infra.yaml index 09977ba..7211247 100644 --- a/tests/infra.yaml +++ b/tests/infra.yaml @@ -57,4 +57,4 @@ template: target: kind: HelmRelease name: longhorn - namespace: longhorn-system \ No newline at end of file + namespace: longhorn-system diff --git a/tests/install.yaml b/tests/install.yaml index 69e2c71..bb2b944 100644 --- a/tests/install.yaml +++ b/tests/install.yaml @@ -18,4 +18,4 @@ script: vars: ghVersion: 2.34.0 script: | - echo hello {{ or .ghVersion "2.34.0" }} \ No newline at end of file + echo hello {{ or .ghVersion "2.34.0" }} diff --git a/tests/template-square.yaml b/tests/template-square.yaml index b6ee820..49d2a99 100644 --- a/tests/template-square.yaml +++ b/tests/template-square.yaml @@ -75,4 +75,4 @@ variable "password" { variable "username" { type = string -} \ No newline at end of file +}