mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-18 02:25:05 +00:00
System: Trust: Revocation - add missing CRL changed event
Although the current impact is likely low, when CRL's are updated, they should trigger this event to update the consumers of this information (as it was pre-migration)
This commit is contained in:
parent
fb9cb1e4ca
commit
72472c37be
@ -30,6 +30,7 @@ namespace OPNsense\Trust\Api;
|
||||
|
||||
use OPNsense\Base\ApiControllerBase;
|
||||
use OPNsense\Base\UserException;
|
||||
use OPNsense\Core\Backend;
|
||||
use OPNsense\Core\Config;
|
||||
use OPNsense\Trust\Store as CertStore;
|
||||
|
||||
@ -367,6 +368,7 @@ class CrlController extends ApiControllerBase
|
||||
}
|
||||
}
|
||||
Config::getInstance()->save();
|
||||
(new Backend())->configdRun('system trust crl', true);
|
||||
return ['status' => 'saved'];
|
||||
}
|
||||
}
|
||||
@ -393,6 +395,7 @@ class CrlController extends ApiControllerBase
|
||||
}
|
||||
if (count($to_delete) > 0) {
|
||||
Config::getInstance()->save();
|
||||
(new Backend())->configdRun('system trust crl', true);
|
||||
return ['status' => 'deleted'];
|
||||
} else {
|
||||
Config::getInstance()->unlock();
|
||||
|
||||
@ -133,6 +133,12 @@ parameters:
|
||||
type:script
|
||||
message:configure trust
|
||||
|
||||
[trust.crl]
|
||||
command:/usr/local/sbin/pluginctl -c crl
|
||||
type:script
|
||||
message: trigger CRL changed event
|
||||
|
||||
|
||||
[cpu.stream]
|
||||
command:/usr/local/opnsense/scripts/system/cpu.py
|
||||
parameters:--interval %s
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user