René's URL Explorer Experiment


Title: feat(coderd/database/dbpurge): add retention for audit logs by mafredri · Pull Request #21025 · coder/coder · GitHub

Open Graph Title: feat(coderd/database/dbpurge): add retention for audit logs by mafredri · Pull Request #21025 · coder/coder

X Title: feat(coderd/database/dbpurge): add retention for audit logs by mafredri · Pull Request #21025 · coder/coder

Description: Secure environments for developers and their agents - feat(coderd/database/dbpurge): add retention for audit logs by mafredri · Pull Request #21025 · coder/coder

Open Graph Description: Add configurable retention policy for audit logs. The DeleteOldAuditLogs query excludes deprecated connection events (connect, disconnect, open, close) which are handled separately by DeleteOldAudi...

X Description: Add configurable retention policy for audit logs. The DeleteOldAuditLogs query excludes deprecated connection events (connect, disconnect, open, close) which are handled separately by DeleteOldAudi...

Opengraph URL: https://github.com/coder/coder/pull/21025

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:ed0b66e6-afc5-c2e6-ba98-6f84c0bff4bc
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA97E:785A9:1B1E961:22605FA:6B014FD9
html-safe-nonce6d2081eca11d2f22258dee0739bb34c367beea5e87ff0bb007b82677ee9c9adf
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTdFOjc4NUE5OjFCMUU5NjE6MjI2MDVGQTo2QjAxNEZEOSIsInZpc2l0b3JfaWQiOiIxOTQ5OTEwMDA0NTEzNDYwMTg1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacfc611c85b01e50b4cf9bf1cb0a9e335c47e86d2792b375e8603c95b22dc75193
hovercard-subject-tagpull_request:3059633367
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/coder/coder/21025/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/55ad360b747fad8c31114c416d50b3ed09c013cec2f2b47fd581d5631d8bdc31/coder/coder/pull/21025
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/55ad360b747fad8c31114c416d50b3ed09c013cec2f2b47fd581d5631d8bdc31/coder/coder/pull/21025
og:image:altAdd configurable retention policy for audit logs. The DeleteOldAuditLogs query excludes deprecated connection events (connect, disconnect, open, close) which are handled separately by DeleteOldAudi...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemafredri
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-cache
go-importgithub.com/coder/coder git https://github.com/coder/coder.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id440752086
octolytics-dimension-repository_nwocoder/coder
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id440752086
octolytics-dimension-repository_network_root_nwocoder/coder
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/coder/coder/pull/21025#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F21025
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F21025
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=coder%2Fcoder
Reloadhttps://github.com/coder/coder/pull/21025
Reloadhttps://github.com/coder/coder/pull/21025
Reloadhttps://github.com/coder/coder/pull/21025
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues320 (320)https://github.com/coder/coder/issues
Pull requests469 (469)https://github.com/coder/coder/pulls
Discussionshttps://github.com/coder/coder/discussions
Actionshttps://github.com/coder/coder/actions
Projectshttps://github.com/coder/coder/projects
Security and quality49 (49)https://github.com/coder/coder/security
Insightshttps://github.com/coder/coder/insights
https://github.com/coder/coder
mafredrihttps://github.com/mafredri
mainhttps://github.com/coder/coder/tree/main
mafredri/feat-coderd-db-retention-policy-3https://github.com/coder/coder/tree/mafredri/feat-coderd-db-retention-policy-3
Conversationhttps://github.com/coder/coder/pull/21025
Commits5 (5)https://github.com/coder/coder/pull/21025/commits
Checkshttps://github.com/coder/coder/pull/21025/checks
Files changedhttps://github.com/coder/coder/pull/21025/files
feat(coderd/database/dbpurge): add retention for audit logshttps://github.com/coder/coder/pull/21025#top
mafredrihttps://github.com/mafredri
mainhttps://github.com/coder/coder/tree/main
mafredri/feat-coderd-db-retention-policy-3https://github.com/coder/coder/tree/mafredri/feat-coderd-db-retention-policy-3
https://github.com/mafredri
mafredrihttps://github.com/mafredri
Dec 1, 2025https://github.com/coder/coder/pull/21025#issue-3681407599
Please reload this pagehttps://github.com/coder/coder/pull/21025
#21021https://github.com/coder/coder/pull/21021
#20743https://github.com/coder/coder/issues/20743
#21021https://github.com/coder/coder/pull/21021
#21022https://github.com/coder/coder/pull/21022
#21025https://github.com/coder/coder/pull/21025
#21037https://github.com/coder/coder/pull/21037
#21038https://github.com/coder/coder/pull/21038
#21039https://github.com/coder/coder/pull/21039
Please reload this pagehttps://github.com/coder/coder/pull/21025
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
mafredrihttps://github.com/mafredri
Dec 1, 2025https://github.com/coder/coder/pull/21025#event-21278587664
feat(coderd): add retention policy configuration #21021 https://github.com/coder/coder/pull/21021
feat(coderd/database/dbpurge): add retention for connection logs #21022 https://github.com/coder/coder/pull/21022
feat(coderd/database/dbpurge): make API keys retention configurable #21037 https://github.com/coder/coder/pull/21037
docs: add data retention documentation #21038 https://github.com/coder/coder/pull/21038
https://github.com/mafredri
mafredrihttps://github.com/mafredri
force-pushedhttps://github.com/coder/coder/compare/07ae5941a2fdc99de2a783eaa70c77339a4a844b..9ca58c3dfbca417b15f96a00d548319e4a9f1b6f
07ae594https://github.com/coder/coder/commit/07ae5941a2fdc99de2a783eaa70c77339a4a844b
9ca58c3https://github.com/coder/coder/commit/9ca58c3dfbca417b15f96a00d548319e4a9f1b6f
Compare https://github.com/coder/coder/compare/07ae5941a2fdc99de2a783eaa70c77339a4a844b..9ca58c3dfbca417b15f96a00d548319e4a9f1b6f
December 1, 2025 18:07https://github.com/coder/coder/pull/21025#event-21283621774
https://github.com/mafredri
mafredrihttps://github.com/mafredri
Dec 1, 2025 https://github.com/coder/coder/pull/21025#ref-pullrequest-3682025711
feat: add retention config for workspace_agent_logs #21039 https://github.com/coder/coder/pull/21039
https://github.com/mafredri
mafredrihttps://github.com/mafredri
December 1, 2025 18:18https://github.com/coder/coder/pull/21025#event-21283900030
https://github.com/mafredri
mafredrihttps://github.com/mafredri
Emyrkhttps://github.com/Emyrk
dannykoppinghttps://github.com/dannykopping
December 1, 2025 18:18https://github.com/coder/coder/pull/21025#event-21283908261
https://github.com/mafredri
mafredrihttps://github.com/mafredri
force-pushedhttps://github.com/coder/coder/compare/782f1f7f12a2cf18ccc4f55fc2a070b74506e692..039afdb4b0d81ce4b4ff3bd807cfbbc042b9bc48
782f1f7https://github.com/coder/coder/commit/782f1f7f12a2cf18ccc4f55fc2a070b74506e692
039afdbhttps://github.com/coder/coder/commit/039afdb4b0d81ce4b4ff3bd807cfbbc042b9bc48
Compare https://github.com/coder/coder/compare/782f1f7f12a2cf18ccc4f55fc2a070b74506e692..039afdb4b0d81ce4b4ff3bd807cfbbc042b9bc48
December 2, 2025 09:59https://github.com/coder/coder/pull/21025#event-21301386531
https://github.com/mafredri
mafredrihttps://github.com/mafredri
force-pushedhttps://github.com/coder/coder/compare/9ca58c3dfbca417b15f96a00d548319e4a9f1b6f..a21395ab9cd0f5787f8bb78a4f2d3793247f505f
9ca58c3https://github.com/coder/coder/commit/9ca58c3dfbca417b15f96a00d548319e4a9f1b6f
a21395ahttps://github.com/coder/coder/commit/a21395ab9cd0f5787f8bb78a4f2d3793247f505f
Compare https://github.com/coder/coder/compare/9ca58c3dfbca417b15f96a00d548319e4a9f1b6f..a21395ab9cd0f5787f8bb78a4f2d3793247f505f
December 2, 2025 10:02https://github.com/coder/coder/pull/21025#event-21301475905
https://github.com/dannykopping
dannykoppinghttps://github.com/dannykopping
Dec 2, 2025 https://github.com/coder/coder/pull/21025#pullrequestreview-3529417527
View reviewed changes https://github.com/coder/coder/pull/21025/files
dannykoppinghttps://github.com/dannykopping
https://github.com/coder/coder/pull/21025#pullrequestreview-3529417527
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/21025
coderd/database/dbpurge/dbpurge.gohttps://github.com/coder/coder/pull/21025/files#diff-eaac7d7f5aebcb16f04bb36e5857d440cdefa8d9fe1c9f710528d96f2abbaa4d
Please reload this pagehttps://github.com/coder/coder/pull/21025
https://github.com/mafredri
mafredrihttps://github.com/mafredri
force-pushedhttps://github.com/coder/coder/compare/a21395ab9cd0f5787f8bb78a4f2d3793247f505f..82f1c2b8ebe6185467c042595940409b0ca8ccbf
a21395ahttps://github.com/coder/coder/commit/a21395ab9cd0f5787f8bb78a4f2d3793247f505f
82f1c2bhttps://github.com/coder/coder/commit/82f1c2b8ebe6185467c042595940409b0ca8ccbf
Compare https://github.com/coder/coder/compare/a21395ab9cd0f5787f8bb78a4f2d3793247f505f..82f1c2b8ebe6185467c042595940409b0ca8ccbf
December 2, 2025 11:37https://github.com/coder/coder/pull/21025#event-21303588897
https://github.com/Emyrk
Emyrkhttps://github.com/Emyrk
Dec 2, 2025 https://github.com/coder/coder/pull/21025#pullrequestreview-3529875812
View reviewed changes https://github.com/coder/coder/pull/21025/files
Emyrkhttps://github.com/Emyrk
https://github.com/coder/coder/pull/21025#pullrequestreview-3529875812
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/21025
https://github.com/mafredri
mafredrihttps://github.com/mafredri
force-pushedhttps://github.com/coder/coder/compare/82f1c2b8ebe6185467c042595940409b0ca8ccbf..2ce8f62a062eaa3c95380c0781b4d857fa62a078
82f1c2bhttps://github.com/coder/coder/commit/82f1c2b8ebe6185467c042595940409b0ca8ccbf
2ce8f62https://github.com/coder/coder/commit/2ce8f62a062eaa3c95380c0781b4d857fa62a078
Compare https://github.com/coder/coder/compare/82f1c2b8ebe6185467c042595940409b0ca8ccbf..2ce8f62a062eaa3c95380c0781b4d857fa62a078
December 2, 2025 12:56https://github.com/coder/coder/pull/21025#event-21305290453
https://github.com/mafredri
mafredrihttps://github.com/mafredri
Dec 2, 2025https://github.com/coder/coder/pull/21025#issuecomment-3601906404
@dannykoppinghttps://github.com/dannykopping
@Emyrkhttps://github.com/Emyrk
Please reload this pagehttps://github.com/coder/coder/pull/21025
https://github.com/mafredri
mafredrihttps://github.com/mafredri
force-pushedhttps://github.com/coder/coder/compare/6433def9ebd7185887c4faba45149c66fa3780ed..d456497a52bc7baa89c775db4638f2c35d5dee26
6433defhttps://github.com/coder/coder/commit/6433def9ebd7185887c4faba45149c66fa3780ed
d456497https://github.com/coder/coder/commit/d456497a52bc7baa89c775db4638f2c35d5dee26
Compare https://github.com/coder/coder/compare/6433def9ebd7185887c4faba45149c66fa3780ed..d456497a52bc7baa89c775db4638f2c35d5dee26
December 2, 2025 14:05https://github.com/coder/coder/pull/21025#event-21306990256
https://github.com/mafredri
mafredrihttps://github.com/mafredri
force-pushedhttps://github.com/coder/coder/compare/2ce8f62a062eaa3c95380c0781b4d857fa62a078..8cb020d0736a280d8deed8c108badaa1553b197d
2ce8f62https://github.com/coder/coder/commit/2ce8f62a062eaa3c95380c0781b4d857fa62a078
8cb020dhttps://github.com/coder/coder/commit/8cb020d0736a280d8deed8c108badaa1553b197d
Compare https://github.com/coder/coder/compare/2ce8f62a062eaa3c95380c0781b4d857fa62a078..8cb020d0736a280d8deed8c108badaa1553b197d
December 2, 2025 14:13https://github.com/coder/coder/pull/21025#event-21307182370
December 2, 2025 14:17https://github.com/coder/coder/pull/21025#event-21307284806
mafredrihttps://github.com/mafredri
December 2, 2025 14:18https://github.com/coder/coder/pull/21025#commits-pushed-b7b586f
https://github.com/mafredri
feat(coderd/database/dbpurge): add retention for audit logshttps://github.com/coder/coder/pull/21025/commits/b7b586ff5d9cc5a669e83397bd98fcbd7bd86d77
b7b586fhttps://github.com/coder/coder/pull/21025/commits/b7b586ff5d9cc5a669e83397bd98fcbd7bd86d77
#21021https://github.com/coder/coder/pull/21021
#20743https://github.com/coder/coder/issues/20743
https://github.com/mafredri
fix: add DeleteOldAuditLogs to dbauthz test suitehttps://github.com/coder/coder/pull/21025/commits/a0ed0427312dfb431384fc9c6aeb618c2d3671cd
a0ed042https://github.com/coder/coder/pull/21025/commits/a0ed0427312dfb431384fc9c6aeb618c2d3671cd
https://github.com/mafredri
test(coderd/database/dbpurge): convert audit logs tests to table-drivenhttps://github.com/coder/coder/pull/21025/commits/6cc2ea9605730ae42e3c97d9907c2ea998537178
6cc2ea9https://github.com/coder/coder/pull/21025/commits/6cc2ea9605730ae42e3c97d9907c2ea998537178
https://github.com/mafredri
chore: remove global retention fallback for audit logshttps://github.com/coder/coder/pull/21025/commits/a30940e429484cdda3aaf77e09ab1b62a2359e80
a30940ehttps://github.com/coder/coder/pull/21025/commits/a30940e429484cdda3aaf77e09ab1b62a2359e80
https://github.com/mafredri
refactor: optimize DeleteOldAuditLogs to use :execrowshttps://github.com/coder/coder/pull/21025/commits/2a45adb091f9f559288cfca007291f48e570e996
2a45adbhttps://github.com/coder/coder/pull/21025/commits/2a45adb091f9f559288cfca007291f48e570e996
https://github.com/mafredri
mafredrihttps://github.com/mafredri
force-pushedhttps://github.com/coder/coder/compare/8cb020d0736a280d8deed8c108badaa1553b197d..2a45adb091f9f559288cfca007291f48e570e996
8cb020dhttps://github.com/coder/coder/commit/8cb020d0736a280d8deed8c108badaa1553b197d
2a45adbhttps://github.com/coder/coder/commit/2a45adb091f9f559288cfca007291f48e570e996
Compare https://github.com/coder/coder/compare/8cb020d0736a280d8deed8c108badaa1553b197d..2a45adb091f9f559288cfca007291f48e570e996
December 2, 2025 14:18https://github.com/coder/coder/pull/21025#event-21307305197
https://github.com/mafredri
mafredrihttps://github.com/mafredri
c85d79bhttps://github.com/coder/coder/commit/c85d79bcdb3acbb98b714592de32b9152cb54b98
Dec 2, 2025https://github.com/coder/coder/pull/21025#event-21308128083
https://github.com/mafredri
mafredrihttps://github.com/mafredri
December 2, 2025 14:50https://github.com/coder/coder/pull/21025#event-21308130345
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Dec 2, 2025https://github.com/coder/coder/pull/21025#event-21308136008
https://github.co/hiddenchars
https://github.com/coder/coder/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F21025
https://github.com/dannykopping
dannykopping https://github.com/dannykopping
https://github.com/coder/coder/pull/21025/files/a21395ab9cd0f5787f8bb78a4f2d3793247f505f
https://github.com/Emyrk
Emyrk https://github.com/Emyrk
https://github.com/coder/coder/pull/21025/files/82f1c2b8ebe6185467c042595940409b0ca8ccbf
Please reload this pagehttps://github.com/coder/coder/pull/21025
https://github.com/mafredri
mafredri https://github.com/mafredri
Please reload this pagehttps://github.com/coder/coder/pull/21025
https://github.com/mafredri
https://github.com/dannykopping
https://github.com/Emyrk
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.