Skip to content

fix: Keep session on quota 403 and gate tunnel create - #171

Merged
mattdjenkinson merged 1 commit into
mainfrom
fix/quota-create-logout-and-ux
Jul 23, 2026
Merged

fix: Keep session on quota 403 and gate tunnel create#171
mattdjenkinson merged 1 commit into
mainfrom
fix/quota-create-logout-and-ux

Conversation

@mattdjenkinson

@mattdjenkinson mattdjenkinson commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Creating a tunnel when a project was at HTTPProxy quota returned a 403 from Milo admission. We treated every 403 as an auth failure, cleared the session, and sent people back to login with no useful error. That matches app#170.

This keeps the session on non-auth 403s, shows when the project is out of tunnel quota, and links to the portal quotas page so people can free capacity or get help from there.

Key behaviors:

  • Kube auth logout only on 401; quota and RBAC 403s stay as normal errors
  • AllowanceBuckets for HTTPProxies and ConnectorAdvertisements gate Add New / Create
  • Quota callout with portal link; disabled Add New uses a hover tooltip
  • Full-screen overlays no longer leave a 32px gap on Windows/Linux (macOS titlebar offset only)

Also stops promoting warn! logs to Sentry events so expected operational noise (including quota) does not open issues.

Fixes #170

Quota admission returns 403 Forbidden, which we treated as auth
failure and logged the user out. Only treat 401 as auth now, surface
quota limits in the UI, and skip the macOS titlebar offset on Windows
and Linux overlays.
@mattdjenkinson
mattdjenkinson marked this pull request as ready for review July 23, 2026 16:08
@mattdjenkinson
mattdjenkinson merged commit bf438cd into main Jul 23, 2026
6 of 7 checks passed
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.

Unable to Create Tunnel – Returned to Login Screen After Adding Tunnel

2 participants