Add 'readonly_ips' option, to allow readonly access for certain IPs when 'private' option is enabled.
[?]
Sep 22, 2017, 11:36 AM
HPGWVEFKM3DYLNLPMWLZI5VZXURUSVJ4FM2DPJCPR5HBOEQPASQQCDependencies
- [2]
NX5BM2OIMachine status page: Show disabled machines and some machine stats - [3]
BPT4WJ7URemove Persona support - [4]
J5UVLXOK* Start of a basic Catalyst web interface. - [5]
UAPS46BQ - [6]
HK32XC42 - [7]
2DHE2ZAKAllow Hydra to run as a private instance by requiring a login. - [*]
SMM4HQTP* Put actions related to builds under /build (e.g. /log/<buildid>
Change contents
- edit in src/lib/Hydra/Controller/Root.pm at line 15[2.10][9.0]
use List::MoreUtils qw{any}; - replacement in src/lib/Hydra/Controller/Root.pm at line 24
return $c->request->path eq "google-login" ||my $hostname = $c->request->headers->header('X-Forwarded-For') || $c->request->hostname;my $readonly_ips = $c->config->{readonly_ips} // "";my $whitelisted = any { $_ == $hostname } split(/,/, $readonly_ips);return $whitelisted ||$c->request->path eq "google-login" ||