csc/Hanlon — pull request #294 by tjmcs (2014-12-16 22:43:56+00:00)
Title: Fixes #293 (Users should be able to specify values for the Hanlon subnet)

This pull request Adds a new `hanlon_subnets` parameter to the Hanlon server configuration (and uses that parameter to determine if a RESTful request submitted by a user against the Hanlon server is from the Hanlon subnet). This parameter is assumed to be a comma-separated list of the subnets over which certain "restricted" RESTful requests are allowed (obtaining a list of images, for example, or obtaining the boot script for a particular node). An example of how this parameter might appear in the Hanlon server configuration file is something like the following:
```yaml
hanlon_subnets: 192.168.11.0/24,192.168.78.0/24
```
the value shown above would allow such requests from any machine on the `192.168.11.0/24` and `192.168.78.0/24` subnets; requests originating from any other subnet are refused. The default value set for this parameter will be the subnets for all of the interfaces defined in the Hanlon server (except for the loopback interface). This value can, of course, be overridden by simply editing the `web/config/hanlon_server.config` file once it is created.