Replace go-http-auth with custom basic auth middleware.

Review Request #14918 — Created March 17, 2026 and submitted

Information

rb-gateway
master

Reviewers

The go-http-auth package hasn't been updated in a long time, and isn't
very much code to replace. This change reimplements HTTP Basic auth
using custom middleware, and improves upon it by supporting
bcrypt-encoded passwords.

Ran unit tests.

Summary ID
Replace go-http-auth with custom basic auth middleware.
The `go-http-auth` package hasn't been updated in a long time, and isn't very much code to replace. This change reimplements HTTP Basic auth using custom middleware, and improves upon it by supporting bcrypt-encoded passwords. Testing Done: Ran unit tests.
xwpxvmowprryrqtnnuwwsrvmoooulrkk
Description From Last Updated

In go do we want a blank space before ifs?

maubinmaubin

Same here.

maubinmaubin
maubin
  1. 
      
  2. api/auth.go (Diff revision 1)
     
     
     
    Show all issues

    In go do we want a blank space before ifs?

    1. This is standard go styling.

  3. api/auth.go (Diff revision 1)
     
     
     
    Show all issues

    Same here.

  4. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to master (c1181a9)