Skip to content
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

Admin API /schemas endpoint not redirecting to the public API endpoint #2084

Closed
4 of 6 tasks
dnlsndr opened this issue Dec 27, 2021 · 0 comments · Fixed by #2133
Closed
4 of 6 tasks

Admin API /schemas endpoint not redirecting to the public API endpoint #2084

dnlsndr opened this issue Dec 27, 2021 · 0 comments · Fixed by #2133
Labels
bug Something is not working.

Comments

@dnlsndr
Copy link

dnlsndr commented Dec 27, 2021

Preflight checklist

Describe the bug

Curling the /schemas endpoint of the admin API results in a 404 Page not found when it should rather redirect the request to the corresponding public API endpoint. Querying the /schemas/{id} is behaving as expected, redirecting to the public /schemas/{} endpoint, highlighting the underlying inconsistency.

Reproducing the bug

Steps to reproduce:

  1. Follow the Quickstart guide in the Kratos docs.
  2. Once the Quickstart construct is deployed locally, execute curl 0.0.0.0:4433/schemas
  3. Notice that we receive a 404 Page not found
  4. Execute 0.0.0.0:4433/schemas/default
  5. Notice that a correct redirect response is sent

Relevant log output

time=2021-12-26T19:56:24Z level=info msg=completed handling request http_request=map[headers:map[accept:*/* user-agent:curl/7.80.0] host:localhost:8090 method:GET path:/schemas query:<nil> remote:127.0.0.1:40990 scheme:http] http_response=map[headers:map[content-type:text/plain; charset=utf-8 x-content-type-options:nosniff] size:19 status:404 text_status:Not Found took:535.568µs]

(note that this is the log output from a k8s cluster deployment port-forwarding of the admin API)

Relevant configuration

No response

Version

v0.8.0-alpha.3

On which operating system are you observing this issue?

Linux

In which environment are you deploying?

Other

Additional Context

I talked about it with @aeneasr on Slack in the Kratos channel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant