Page MenuHomePhabricator

Add IP range / CIDR utilities to libphutil
ClosedPublic

Authored by epriestley on Dec 23 2014, 11:55 PM.
Tags
None
Referenced Files
F18849097: D11043.diff
Thu, Oct 30, 7:44 AM
F18777394: D11043.id26546.diff
Sat, Oct 11, 2:39 AM
F18720610: D11043.id.diff
Sep 29 2025, 7:28 PM
F18704513: D11043.diff
Sep 28 2025, 7:53 AM
F18627795: D11043.diff
Sep 16 2025, 4:48 AM
F18621918: D11043.id26520.diff
Sep 15 2025, 9:55 AM
F18598223: D11043.diff
Sep 13 2025, 4:36 AM
F18504544: D11043.id.diff
Sep 4 2025, 11:52 PM
Subscribers

Details

Summary

Ref T6706. Ref T2783.

  • In the long run, I want to allow authentication artifacts to be restricted to specific IP ranges (for example, a bot's Conduit token might only work if the bot is on the corporate network).
  • Right now, I want to require HTTPS only for calls from outside the Phacility network. Calls between boxes get to use HTTP so we don't have to deal with the SSL for now / maybe ever.
Test Plan

Wrote a pile of test coverage.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Add IP range / CIDR utilities to libphutil.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
btrahan edited edge metadata.
This revision is now accepted and ready to land.Dec 30 2014, 12:05 AM
This revision was automatically updated to reflect the committed changes.