Skip to content

Add missing permission checks to internal chunk functions - #10386

Merged
svenklemm merged 1 commit into
mainfrom
sven/perm_check
Aug 3, 2026
Merged

Add missing permission checks to internal chunk functions#10386
svenklemm merged 1 commit into
mainfrom
sven/perm_check

Conversation

@svenklemm

Copy link
Copy Markdown
Member

Several internal chunk functions were missing permission checks:

  • drop_chunk
  • drop_osm_chunk
  • create_compressed_chunk
  • freeze_chunk, unfreeze_chunk
  • hypertable_osm_range_update
  • lock_osm_chunk_dimension_slice

@svenklemm svenklemm added this to the v2.29.1 milestone Aug 3, 2026
@svenklemm svenklemm added the force-auto-backport Automatically backport this PR or fix of this issue, even if it's not marked as "bug" label Aug 3, 2026
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

@Poroma-Banerjee, @kpan2034: please review this pull request.

Powered by pull-review

@codecov

codecov Bot commented Aug 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Several internal chunk functions were missing permission checks:
- drop_chunk
- drop_osm_chunk
- create_compressed_chunk
- freeze_chunk, unfreeze_chunk
- hypertable_osm_range_update
- lock_osm_chunk_dimension_slice
@svenklemm
svenklemm merged commit cb614b3 into main Aug 3, 2026
61 of 63 checks passed
@svenklemm
svenklemm deleted the sven/perm_check branch August 3, 2026 16:00
@surister surister mentioned this pull request Aug 4, 2026
surister pushed a commit that referenced this pull request Aug 4, 2026
# TimescaleDB Changelog

**Please note: When updating your database, you should connect using
`psql` with the `-X` flag to prevent any `.psqlrc` commands from
accidentally triggering the load of a previous TimescaleDB version.**

## 2.29.1 (2026-08-04)

This release contains performance improvements and bug fixes since the
2.29.0 release and fixes for security vulnerabilities (#10360, #10379,
#10386). You can check the [security
advisory](https://github.com/timescale/timescaledb/security/advisories/GHSA-hcfx-29v5-2rcw)
for more information on the vulnerability and the platforms that are
affected. We recommend that you upgrade at the next available
opportunity.

**Bugfixes**
* [#10327](#10327)
Assertion failure in `add_dimension()` when the hypertable argument is
`NULL`
* [#10339](#10339) Fix
crash when deleting from a compressed continuous aggregate source
* [#10340](#10340) Validate
`max_batches` in `compact_chunk()`
* [#10352](#10352) Reset
inherited column and constraint flags on chunks during `attach_chunk()`
* [#10360](#10360) Fix
decompressor crashes with malformed compressed data
* [#10369](#10369) Fix typo
in error message about `MERGE` support on compressed hypertables
* [#10379](#10379) Read
hypertable max time value with an ordered scan
* [#10386](#10386) Add
missing permission checks to internal chunk functions

**Thanks**
* @JoongHyuk-Shin for reporting and fixing `NULL` handling in
`add_dimension()`
* @igor2x for reporting a typo in a `MERGE` support error message
* @mdisec for reporting issues with compressed data validation during
decompression
@timescale-automation timescale-automation added the released-2.29.1 Released in 2.29.1 label Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backported-2.29.x force-auto-backport Automatically backport this PR or fix of this issue, even if it's not marked as "bug" released-2.29.1 Released in 2.29.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants