Home GnuPG

Add IP range / CIDR utilities to libphutil
bbc4b860710fUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

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

Provenance
epriestley <git@epriestley.com>Authored on Dec 30 2014, 1:17 AM
Parents
rPHUTIL92aefeccc0fd: Check daemon piddir writability before forking in daemons
Branches
Unknown
Tags
Unknown

Event Timeline

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