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:
Ad Schellevis 2024-09-10 20:35:21 +02:00
parent fb9cb1e4ca
commit 72472c37be
2 changed files with 9 additions and 0 deletions

View File

@ -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();

View File

@ -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