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

Frontend Get User-Flow Errors API exposes technical details #4100

Open
4 of 5 tasks
OskarsPakers opened this issue Sep 15, 2024 · 0 comments
Open
4 of 5 tasks

Frontend Get User-Flow Errors API exposes technical details #4100

OskarsPakers opened this issue Sep 15, 2024 · 0 comments
Labels
bug Something is not working.

Comments

@OskarsPakers
Copy link

Preflight checklist

Ory Network Project

No response

Describe the bug

When there are errors during the login flow, e.g. connectivity isseus to the database, error response might contain technical details such as IP addresses. It is frontend API hence all details visible/accisible to the user.

Reproducing the bug

Easiest way to reproduce is stopping database after flow is started and choose authentication provider.

{
"error": {
"code": 500,
"status": "Internal Server Error",
"message": "FATAL: terminating connection due to administrator command (SQLSTATE 57P01)"
}
}

If there are issues in connecting to openid provider it might as well return IP addresses e.g.

{
"id": "86699ea5-8293-4f3f-80e3-f71265444714",
"error": {
"code": 500,
"status": "Internal Server Error",
"message": "unable to fetch records: write failed: write tcp 127.0.0.1:50556->127.0.0.1:5432: write: broken pipe"
},
"created_at": "2024-09-06T09:09:39.895651Z",
"updated_at": "2024-09-06T09:09:39.895651Z"
}

Relevant log output

No response

Relevant configuration

No response

Version

v1.2.0

On which operating system are you observing this issue?

Windows

In which environment are you deploying?

Docker Compose

Additional Context

No response

@OskarsPakers OskarsPakers added the bug Something is not working. label Sep 15, 2024
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

No branches or pull requests

1 participant