ForgeRock / secret-agent

Generate random Kubernetes secrets and optionally store them in a Cloud Secret Manager
Apache License 2.0
17 stars 20 forks source link

Add property to sac to control the context timeout value #169

Closed lee-baines closed 3 years ago

lee-baines commented 3 years ago

Add a property to the sac to allow a user to alter the context timeout. This timeout is currently set to 40secs.

Referring to the value 40 in generator.go:

func (g *GenConfig) GenKeys(ctx context.Context) error {
keyCtx, cancel := context.WithTimeout(ctx, 40*time.Second)
defer cancel()
This is targeted for after Secret Agent 1.0 release