- Notifications
You must be signed in to change notification settings - Fork1.1k
feat(coderd): add retention policy configuration#21021
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Conversation
Add `RetentionConfig` with server flags for configuring data retention:- `--global-retention`: default policy for all retention settings- `--audit-logs-retention`: retention for audit log entries- `--connection-logs-retention`: retention for connection logs- `--api-keys-retention`: retention for expired API keys (default 7d)Updates#20743
75a0de4 tob5e66faCompare
mtojek left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
wait a sec, is it only deployment config, or are you going to use these options soon? if the plan is to continue after some time, maybe park these changes in a side branch. Otherwise the commit message will be confusing.
Uh oh!
There was an error while loading.Please reload this page.
mafredri commentedDec 1, 2025
mtojek left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks for context 👍 👍
Add configurable retention policy for audit logs. The DeleteOldAuditLogsquery excludes deprecated connection events (connect, disconnect, open,close) which are handled separately by DeleteOldAuditLogConnectionEvents.Falls back to global retention if audit logs retention is unset.Disabled (0) by default.Depends on#21021Updates#20743
Uh oh!
There was an error while loading.Please reload this page.
Add
RetentionConfigwith server flags for configuring data retention:--global-retention: default policy for all retention settings--audit-logs-retention: retention for audit log entries--connection-logs-retention: retention for connection logs--api-keys-retention: retention for expired API keys (default 7d)Note: AI Bridge already has retention flags which are kept separate from
RetentionConfig, which only affects corecoderd.Updates#20743