Implement basic security policy on daemon remote routes

This commit is contained in:
Dane Everitt 2017-01-27 16:34:46 -05:00
parent 9087feec4f
commit 4b0197f2be
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
5 changed files with 74 additions and 6 deletions

View file

@ -30,7 +30,7 @@ class DaemonRoutes
{
public function map(Router $router)
{
$router->group(['prefix' => 'daemon'], function () use ($router) {
$router->group(['prefix' => 'daemon', 'middleware' => 'daemon'], function () use ($router) {
$router->get('services', [
'as' => 'daemon.services',
'uses' => 'Daemon\ServiceController@list',

View file

@ -42,11 +42,6 @@ class RemoteRoutes
'uses' => 'Remote\RemoteController@postInstall',
]);
$router->post('event', [
'as' => 'remote.event',
'uses' => 'Remote\RemoteController@event',
]);
$router->get('configuration/{token}', [
'as' => 'remote.configuration',
'uses' => 'Remote\RemoteController@getConfiguration',