Skip to content

pgevents: fix retention_period and disable_cleanup on crdb#46136

Merged
espadolini merged 2 commits intomasterfrom
espadolini/pgevents-crdb-retention
Sep 3, 2024
Merged

pgevents: fix retention_period and disable_cleanup on crdb#46136
espadolini merged 2 commits intomasterfrom
espadolini/pgevents-crdb-retention

Conversation

@espadolini
Copy link
Copy Markdown
Contributor

This PR changes the CRDB row-level TTL configuration in the "pgevents" audit log storage driver to use a count of seconds for the retention_period (rather than using nanoseconds interpreted as microseconds) in such a way that non representable values will result in an error rather than a silent overflow/underflow, and fixes the way we disable row-level TTL (as a result of disable_cleanup).

Fixes #46125

Changelog: fixed retention period handling in the CockroachDB audit log storage backend

@espadolini espadolini requested a review from hugoShaka September 2, 2024 16:42
@github-actions github-actions Bot added audit-log Issues related to Teleports Audit Log size/sm labels Sep 2, 2024
@espadolini espadolini added this pull request to the merge queue Sep 3, 2024
Merged via the queue into master with commit fc405b5 Sep 3, 2024
@espadolini espadolini deleted the espadolini/pgevents-crdb-retention branch September 3, 2024 13:52
@public-teleport-github-review-bot
Copy link
Copy Markdown

@espadolini See the table below for backport results.

Branch Result
branch/v15 Create PR
branch/v16 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

audit-log Issues related to Teleports Audit Log size/sm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pgevents: wrong retention period calculation and no way to disable cleanup on CockroachDB

3 participants