You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Secrets-Manager auth: no runtime refresh, and config-service endpoints never load their users #257
Follow-up from #254. auth.from-aws-secretmanager fetches each secret once, at startup (AuthMiddleware::initializeAwsSecretsManager → AwsHelper), and keeps the user list in memory keyed by secret-name.
No rotation without restart. A changed secret (a user added or removed, a new password) takes effect only after a restart. A removed user can log in until then, and successful PBKDF2 checks are also cached for 300 s. Proposal:
an optional refresh: <duration> (or the existing scheduler) that re-fetches in the background and swaps the map atomically;
on a failed fetch, keep the old list and log a warning;
a config-service action to force a re-fetch.
Endpoints created or updated through the config service with from-aws-secretmanager (or a new secret-name) never trigger a fetch, so every login is refused (fails closed). Also, the config-service JSON serialiser (config_manager.cpp, the from-aws-secretmanager block) writes only secret-name and region, so a persisted endpoint loses secret-id, secret-key and init. Proposal: load lazily on create or reload, off the request path, and decide how credentials round-trip (probably env-only).
A config reload does not re-run AuthMiddleware::initialize, so a secret-name added in YAML also needs a restart.
Activity