gocardless / theatre

GoCardless' collection of Kubernetes extensions
MIT License
23 stars 17 forks source link

Allow config of theatre-secrets debug and timeout #234

Closed benwh closed 3 years ago

benwh commented 3 years ago

7cdd17b: Allow config of theatre-secrets debug and timeout

Provide new flags for the vault-manager binary that allow us to decide whether the --debug flag is passed and the --vault-http-timeout flag can be set, when invoking the theatre-secrets wrapper.

This allows us to temporarily enable debug logging in order to determine the durations of requests to Vault, as well as bump up the timeout if required.

3ffe458: Add debug logging to theatre-secrets

This allows us to flip debug logging on and see how long our requests are taking, and whether they're close to timing out.

Debug logging is a bit odd here. The logr API doesn't actually include a Debug() function, you need to use V-levels, and the interaction with Zap is described here.

benwh commented 3 years ago

This has been deployed to compute-lab with the debug flag enabled on the statefulset.