Homec4science

Add IP range / CIDR utilities to libphutil

Authored by epriestley <git@epriestley.com> on Dec 30 2014, 01:17.

Description

Add IP range / CIDR utilities to libphutil

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.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T6706, T2783

Differential Revision: https://secure.phabricator.com/D11043

Details

Committed
epriestley <git@epriestley.com>Dec 30 2014, 01:17
Pushed
aubortMar 17 2017, 12:03
Parents
rPHU92aefeccc0fd: Check daemon piddir writability before forking in daemons
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHUbbc4b860710f: Add IP range / CIDR utilities to libphutil (authored by epriestley <git@epriestley.com>).Dec 30 2014, 01:17