Skip to content

Adding secret_refresh_interval and secret_refresh_scatter to the config template #39072

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions pkg/config/config_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -887,6 +887,24 @@ api_key:
# secret_backend_config:
# <KEY_1>: <VALUE_1>

## @param secret_refresh_interval - integer - optional
## @env DD_SECRET_REFRESH_INTERVAL - integer - optional
##
## `secret_refresh_interval` is the interval (in seconds) at which api/app key secrets are refreshed.
## For more information see: https://docs.datadoghq.com/agent/configuration/secrets-management/#refreshing-apiapp-keys-at-runtime
##
#
# secret_refresh_interval: 3600

## @param secret_refresh_scatter - boolean - optional
## @env DD_SECRET_REFRESH_SCATTER - boolean - optional
##
## `secret_refresh_scatter`, if set to true, will randomize the first secret refresh. `secret_refresh_interval` needs to be set
## for this to take effect. This prevents a fleet of Agents from having a deployment where they refresh their secrets at the same time.
## For more information see: https://docs.datadoghq.com/agent/configuration/secrets-management/#refreshing-apiapp-keys-at-runtime
##
# secret_refresh_scatter: true

## @param secret_backend_command - string - optional
## @env DD_SECRET_BACKEND_COMMAND - string - optional
## `secret_backend_command` is the path to your custom script to execute to fetch secrets.
Expand Down