Closed Bug 1632996 Opened 5 years ago Closed 4 years ago

Phabricator emails: use a security group instead of username check to authorize API endpoints

Categories

(Conduit :: Phabricator, defect, P3)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mhentges, Assigned: mhentges)

Details

(Keywords: conduit-triaged)

Attachments

(1 file)

When authorizing for the email endpoint, we currently just assert that the user's name is email-bot.
DKL mentioned in review that a security group could be a good solution.

The benefits of a security group are:

  • No more username string matching
  • Admins would be able to call the endpoint to debug issues without having to masquerade as email-bot.
  • We could simplify the local development environment: right now, there's logic to remove the email-bot authorization step in local development, but that makes testing security a little harder. Instead, using security groups and adding a dummy user accordingly could make it cleaner.
Keywords: conduit-triaged
Priority: -- → P3
Summary: Phabricator emails: use a security group instead of user check to authorize → Phabricator emails: use a security group instead of user check to authorize API endpoints
Summary: Phabricator emails: use a security group instead of user check to authorize API endpoints → Phabricator emails: use a security group instead of username check to authorize API endpoints
Assignee: nobody → mhentges
Status: NEW → ASSIGNED

To improve debuggability in dev, qa, and prod, we allow users
other than "email-bot" to access the API.

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: