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

Fix handling error response during gmp authentication in gsad #1700

Merged
merged 7 commits into from Oct 18, 2019
Merged

Fix handling error response during gmp authentication in gsad #1700

merged 7 commits into from Oct 18, 2019

Conversation

bjoernricks
Copy link
Member

@bjoernricks bjoernricks commented Oct 17, 2019

Handle errors while trying to authenticate against gvmd more carefully.

Checklist:

When a user has a session and it is not possible to connect to manager
return a 4xx or 5xx http response. Update manager_connection function to
return more specific error codes.
Change the meaning of the return values to be consistent with
gmp_authenticate.
If an unknown error occurs during authentication don't request
re-authentication in GSA. This allows to show an error instead of
invalidating the user session.
Handle all error cases from manager_connect in handle_system_report
function. This allows to return a more specific error message.
Return all error codes from authenticate_gmp and create specific http
error responses.
Copy link
Member

@timopollmeier timopollmeier left a comment

Choose a reason for hiding this comment

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

I found a typo in handle_system_report but besides that it looks okay to me.

gsad/src/gsad_http_handler.c Outdated Show resolved Hide resolved
Co-Authored-By: Timo Pollmeier <timo.pollmeier@greenbone.net>
@bjoernricks bjoernricks merged commit 58abfa3 into greenbone:gsa-9.0 Oct 18, 2019
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.

None yet

2 participants