Skip to content

gatekeeper: support credential refresh for rotating secrets #300

@dpup

Description

@dpup

Problem

Gatekeeper fetches all credentials once at startup (loadCredentials in New()). For env and static sources this is fine, but aws-secretsmanager credentials won't pick up rotations until the process restarts. This is a silent footgun for long-running deployments.

Proposed solution

Add an optional refresh_interval to CredentialConfig (or globally in config). When set, the gatekeeper periodically re-fetches the credential and updates the proxy via SetCredentialWithGrant.

The daemon already has a refresh mechanism for CLI-managed credentials (internal/daemon/refresh.go) — the gatekeeper equivalent would be simpler since there are no per-run contexts.

Workarounds

Restart the gatekeeper process to pick up rotated values. This is documented in a code comment but not in user-facing docs.

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions