Skip to content

Teach neon_local and the regression test suite to use authorized requests in compute_ctl #11316

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tristan957 opened this issue Mar 19, 2025 · 0 comments · Fixed by #11490
Closed
Labels
a/test Area: related to testing c/compute Component: compute, excluding postgres itself m/good_first_issue Moment: when doing your first Neon contributions

Comments

@tristan957
Copy link
Member

The regression test suite does not pass an authorization bearer token when making requests. Without it, regression tests would fail if we removed the hacks to currently bypass the checks. neon_local will need to generate a JWKS for the compute to use and pass it through compute_ctl_config. This is a bit of work because currently a spec.json file is the just the compute spec and doesn't have any room for a compute_ctl_config key.

We really need to just teach neon_local to be more like the control plane and operate as an HTTP server. compute_ctl could talk to it just like production. Alternatively, let's just open source the control plane and make our lives so much easier 🙃

@tristan957 tristan957 added a/test Area: related to testing c/compute Component: compute, excluding postgres itself labels Mar 19, 2025
tristan957 added a commit that referenced this issue Mar 19, 2025
We will require authorization in production. We need to skip in testing
builds for now because regression tests would fail. See
#11316 for more information.

Signed-off-by: Tristan Partin <[email protected]>
@tristan957 tristan957 added the m/good_first_issue Moment: when doing your first Neon contributions label Mar 19, 2025
tristan957 added a commit that referenced this issue Apr 1, 2025
We will require authorization in production. We need to skip in testing
builds for now because regression tests would fail. See
#11316 for more information.

Signed-off-by: Tristan Partin <[email protected]>
github-merge-queue bot pushed a commit that referenced this issue Apr 3, 2025
We will require authorization in production. We need to skip in testing
builds for now because regression tests would fail. See
#11316 for more information.

Signed-off-by: Tristan Partin <[email protected]>

Signed-off-by: Tristan Partin <[email protected]>
Bodobolero pushed a commit that referenced this issue Apr 9, 2025
We will require authorization in production. We need to skip in testing
builds for now because regression tests would fail. See
#11316 for more information.

Signed-off-by: Tristan Partin <[email protected]>

Signed-off-by: Tristan Partin <[email protected]>
github-merge-queue bot pushed a commit that referenced this issue Apr 15, 2025
)

This allows us to remove hacks in the compute_ctl authorization
middleware which allowed for bypasses of auth checks.

Fixes: #11316

Signed-off-by: Tristan Partin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a/test Area: related to testing c/compute Component: compute, excluding postgres itself m/good_first_issue Moment: when doing your first Neon contributions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant