Skip to content

revoke PUBLIC execute on clickhouse_raw_query#228

Open
x4m wants to merge 1 commit intoClickHouse:mainfrom
postgredients:fix/revoke-raw-query
Open

revoke PUBLIC execute on clickhouse_raw_query#228
x4m wants to merge 1 commit intoClickHouse:mainfrom
postgredients:fix/revoke-raw-query

Conversation

@x4m
Copy link
Copy Markdown

@x4m x4m commented Apr 28, 2026

clickhouse_raw_query(sql, connstring) lets the caller specify an arbitrary host in the connection string. With the function executable by PUBLIC any database user could reach internal services such as cloud metadata endpoints (169.254.169.254), private APIs, or other hosts on the server network directly from the PostgreSQL process (SSRF).

Revoke PUBLIC execute. Administrators who need ad-hoc raw access should grant the function explicitly to a trusted role.

clickhouse_raw_query(sql, connstring) lets the caller specify an
arbitrary host in the connection string. With the function executable
by PUBLIC any database user could reach internal services such as cloud
metadata endpoints (169.254.169.254), private APIs, or other hosts on
the server network directly from the PostgreSQL process (SSRF).

Revoke PUBLIC execute. Administrators who need ad-hoc raw access
should grant the function explicitly to a trusted role.
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 28, 2026

CLA assistant check
All committers have signed the CLA.

@theory theory self-assigned this May 1, 2026
@theory theory added the quality Quality controls, testing, test coverage label May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

quality Quality controls, testing, test coverage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants