pg_durable icon indicating copy to clipboard operation
pg_durable copied to clipboard

Clarify that df.http() allowlist does not govern arbitrary SQL extensions

Open oborchers opened this issue 5 months ago • 0 comments

Summary

The docs describe the security model for df.http(), but some wording can be read as database-wide outbound HTTP protection.

In practice, the allowlist/blocklist appears to apply to pg_durable's built-in df.http() activity. It does not govern arbitrary SQL functions or extensions that a SQL workflow node can execute, such as a separately installed HTTP-capable Postgres extension.

Docs Checked

Tested against current main at 11ac64e3adb64c14386be5c737b3a3806d873fc4.

docs/http-security.md is mostly scoped to df.http(), which is good.

However, USER_GUIDE.md and docs/spec-security-model.md contain broader language around outbound HTTP restrictions and say that the restrictions cannot be bypassed by any database user, including superusers. That can be read as stronger than the actual boundary if SQL workflow nodes can call other installed SQL extensions.

I did not find docs clarifying that df.http() controls are specific to the pg_durable HTTP activity and are not a database-wide network egress policy.

Why This Matters

A user may reasonably infer that enabling pg_durable's HTTP allowlist means workflow SQL cannot make HTTP calls except through approved df.http() destinations.

But SQL nodes can execute SQL functions available to the workflow role. If an administrator installs an HTTP-capable extension such as postgres-http, then a SQL node may be able to call that extension independently of df.http() allowlist checks.

That is not necessarily a pg_durable bug. It is an important security boundary that should be explicit.

Suggested Clarification

The docs could say something like:

The df.http() allowlist/blocklist applies only to pg_durable's built-in HTTP activity. It does not restrict arbitrary SQL functions, user-defined functions, or third-party Postgres extensions that the workflow role is allowed to execute. Database administrators should manage extension installation, function privileges, and network egress separately.

This would make the model clearer without implying that pg_durable can police every possible SQL extension.

oborchers avatar Jun 07 '26 13:06 oborchers