Skip to content

Skip HTTP proxy in base class for TCP-only extensions#130

Merged
whummer merged 11 commits intomainfrom
fix/tcp-only-base-class
Feb 27, 2026
Merged

Skip HTTP proxy in base class for TCP-only extensions#130
whummer merged 11 commits intomainfrom
fix/tcp-only-base-class

Conversation

@whummer
Copy link
Member

@whummer whummer commented Feb 27, 2026

Skip HTTP proxy in base class for TCP-only extensions. This PR addresses a TODO that was added as a temporary workaround for the ParadeDB extension in a previous PR.

@whummer whummer changed the title Fix/tcp only base class Skip HTTP proxy in base class for TCP-only extensions Feb 27, 2026
@whummer whummer force-pushed the fix/tcp-only-base-class branch from 0c1a0d2 to 902c003 Compare February 27, 2026 13:30
@whummer whummer marked this pull request as ready for review February 27, 2026 15:03
@whummer whummer requested a review from purcell as a code owner February 27, 2026 15:03
Copy link
Contributor

@purcell purcell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a small suggestion, but otherwise it looks reasonable to me!

whummer and others added 8 commits February 27, 2026 22:48
Add Lambda resource matching in the proxy handler (FunctionName/ARN-based)
and comprehensive integration tests covering basic proxying, read-only mode,
and resource name pattern matching.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
When all container ports are TCP-only and no host restriction is set,
the base class now skips setting up the catch-all HTTP proxy that would
intercept all requests. This moves the logic from ParadeDB's override
into ProxiedDockerContainerExtension directly.

Also temporarily rewrites localstack-extensions-utils dependencies to
git+https for CI testing of the utils change across all extensions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The utils package imports from localstack at runtime (docker.py), so it
must be a runtime dependency, not just a dev/test extra. Without this,
installing utils via git ref in CI fails with ModuleNotFoundError.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Moving localstack to runtime deps broke the utils CI venv setup.
Revert to keeping it in dev/test extras where it was before — the
paradedb CI issue is unrelated to this.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
localstack 4.14.0 no longer depends on localstack-core, making it a
thin CLI wrapper. The framework code (localstack.config, localstack.utils
etc.) now requires localstack-core explicitly. Update all dev/test
dependencies accordingly.

Also add WireMock extension to the extensions table in the root README.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
PostgreSQL may not be ready to accept queries immediately after the TCP
port becomes reachable (Docker port forwarding opens the port before
PostgreSQL finishes initialization). Retry the connection to handle this
timing window.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Steve Purcell <steve@sanityinc.com>
@whummer whummer force-pushed the fix/tcp-only-base-class branch from c94ee6e to 2d9d625 Compare February 27, 2026 21:48
@whummer whummer force-pushed the fix/tcp-only-base-class branch from 4eff2bb to 8605b94 Compare February 27, 2026 22:25
@whummer whummer merged commit ada44e2 into main Feb 27, 2026
5 checks passed
@whummer whummer deleted the fix/tcp-only-base-class branch February 27, 2026 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants