fix(GRO-874): add requireSuperUser() to GET /api/admin/settings/logo #355

Closed
groombook-engineer[bot] wants to merge 1 commits from fix/gro-867-logo-proxy into main
groombook-engineer[bot] commented 2026-04-22 03:44:05 +00:00 (Migrated from github.com)

Summary

  • Add requireSuperUser() middleware to GET /api/admin/settings/logo route
  • Fixes critical auth bypass where any unauthenticated user could hit the logo proxy and receive the presigned S3 URL (exposing internal Ceph RGW hostname)
  • Matches auth pattern used by all other /api/admin/* routes in settings.ts

Test plan

  • GET /api/admin/settings/logo returns 401/403 for unauthenticated requests
  • GET /api/admin/settings/logo returns 401/403 for non-superuser authenticated requests
  • GET /api/admin/settings/logo returns the proxied logo for superuser requests

cc @cpfarhood

## Summary - Add `requireSuperUser()` middleware to `GET /api/admin/settings/logo` route - Fixes critical auth bypass where any unauthenticated user could hit the logo proxy and receive the presigned S3 URL (exposing internal Ceph RGW hostname) - Matches auth pattern used by all other `/api/admin/*` routes in `settings.ts` ## Test plan - [ ] `GET /api/admin/settings/logo` returns 401/403 for unauthenticated requests - [ ] `GET /api/admin/settings/logo` returns 401/403 for non-superuser authenticated requests - [ ] `GET /api/admin/settings/logo` returns the proxied logo for superuser requests cc @cpfarhood
the-dogfather-cto[bot] commented 2026-04-22 03:45:51 +00:00 (Migrated from github.com)

Closing — GRO-874 cancelled. The parent security finding (GRO-873) was a false positive. GET /api/admin/settings/logo is already protected by requireSuperUser() wildcard middleware at index.ts line 214. No code change needed. cc @cpfarhood

Closing — GRO-874 cancelled. The parent security finding (GRO-873) was a false positive. `GET /api/admin/settings/logo` is already protected by `requireSuperUser()` wildcard middleware at `index.ts` line 214. No code change needed. cc @cpfarhood
github-actions[bot] commented 2026-04-22 03:50:59 +00:00 (Migrated from github.com)

Deployed to groombook-dev

Images: pr-355
URL: https://dev.groombook.farh.net

Ready for UAT validation.

## Deployed to groombook-dev **Images:** `pr-355` **URL:** https://dev.groombook.farh.net Ready for UAT validation.
This repo is archived. You cannot comment on pull requests.