Skip to content

[batch/ui] Improved timeout error messages - #15620

Open
grohli wants to merge 3 commits into
hail-is:mainfrom
grohli:improved-timeout-error-messages
Open

[batch/ui] Improved timeout error messages#15620
grohli wants to merge 3 commits into
hail-is:mainfrom
grohli:improved-timeout-error-messages

Conversation

@grohli

@grohli grohli commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Change Description

Users are meant to receive an informative error message if they attempt to use Hail while their account has been marked as inactive. Currently, the intended error message does not make its way to users for a variety of reasons (for example, users are attempting to use Hail in a session id-based setting like a Jupyter notebook, or the error message is swallowed by other auth checks we make along the way).

This PR adds explicit inactive user checks for i) login id and hail identity id and ii) session id, whereby we're now able to handle and raise appropriate errors if a user is inactive.

Security Assessment

  • This change potentially impacts the Hail Batch instance as deployed by Broad Institute in GCP

Impact Rating

  • This change has a low security impact

Impact Description

This PR adds new auth checks specific to inactive users. However, nothing has been removed from our already existing checks (relating to get_userinfo()), and users should still be subject to the same authentication scrutiny as before.

Appsec Review

  • Required: The impact has been assessed and approved by appsec

@grohli
grohli requested a review from a team as a code owner July 31, 2026 16:14
Comment thread gear/gear/auth.py
if err.status == 401:
body = getattr(err, 'body', None)
if body:
raise web.HTTPUnauthorized(text=body)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Note to self: make this inactive-specific through some means (rather than just showing every 401)

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.

1 participant