Git Product home page Git Product logo

vault's Issues

Assignment to entry in nil map

Hi, Thanks for a great package

I have an issue when running getSecrets() on nodejs

INFO[0000] TRACE_ENABLED=false
INFO[0000] TRACE_PREFIX=vault
INFO[0000] VAULT_ROLE=secret-readonly
INFO[0000] GCLOUD_PROJECT=xxxx
INFO[0000] FUNCTION_IDENTITY=vault-user-svc-account@xxx.iam.gserviceaccount.com
DEBU[0000] Successfully created IAM client
DEBU[0001] Successfully generated signed JWT
DEBU[0004] Successfully logged into Vault with auth/gcp/login
DEBU[0004] secret, err := GetSecret(c, secrets/data/api/api-customer-feedback/env)
panic: assignment to entry in nil map

goroutine 17 [running, locked to thread]:
github.com/teamsnap/vault-key/pkg/vault.(*vault).getSecrets(0xc000280200, 0x0, 0x0, 0xc000280258, 0xc000038180, 0x1, 0x4, 0x0, 0x0)
	/Users/stevenaldinger/go/pkg/mod/github.com/teamsnap/vault-key/pkg/[email protected]/vault.go:76 +0x22e
github.com/teamsnap/vault-key/pkg/vault.Loot(0xc0000ba210, 0x2e, 0x2e, 0xc00006ce30, 0x1078081c5, 0xc000082060)
	/Users/stevenaldinger/go/pkg/mod/github.com/teamsnap/vault-key/pkg/[email protected]/vault.go:43 +0x190
main.GetSecrets(0x1040152c0, 0x0)
	/Users/stevenaldinger/Development/github/teamsnap/vault-key/build/package/nodejs/main.go:14 +0x47
main._cgoexpwrap_e70b38f9d402_GetSecrets(0x1040152c0, 0x0)
	_cgo_gotypes.go:71 +0x64

is it related to this issue? hashicorp/vault#5640
Thanks @stevenaldinger !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.