security/acme-client: fix 2FA support in Synology deployhook, closes #3627

This commit is contained in:
Frank Wall
2023-12-30 17:10:48 +01:00
parent 2aed162fa6
commit a087b1a135
4 changed files with 18 additions and 1 deletions
+3
View File
@@ -15,6 +15,9 @@ Added:
* add support for DNSExit
* add World4You DNS API (#3722)
Fixed:
* fix 2FA support in Synology deployhook (#3627)
Removed:
* remove automation: Highwinds CDN (#3626)
@@ -219,6 +219,12 @@
<type>text</type>
<help>If Synology DSM has OTP enabled, then the device ID has to be provided so that no OTP is required when running the automation.</help>
</field>
<field>
<id>action.acme_synology_dsm_devicename</id>
<label>Device Name</label>
<type>text</type>
<help>If Synology DSM has OTP enabled, then the device name has to be provided so that no OTP is required when running the automation.</help>
</field>
<field>
<id>action.acme_synology_dsm_create</id>
<label>Create certificates</label>
@@ -48,7 +48,10 @@ class AcmeSynologyDsm extends Base implements LeAutomationInterface
$this->acme_env['SYNO_Create'] = (string)$this->config->acme_synology_dsm_create;
}
if (!empty((string)$this->config->acme_synology_dsm_deviceid)) {
$this->acme_env['SYNO_DID'] = (string)$this->config->acme_synology_dsm_deviceid;
$this->acme_env['SYNO_Device_ID'] = (string)$this->config->acme_synology_dsm_deviceid;
}
if (!empty((string)$this->config->acme_synology_dsm_devicename)) {
$this->acme_env['SYNO_Device_Name'] = (string)$this->config->acme_synology_dsm_devicename;
}
$this->acme_args[] = '--deploy-hook synology_dsm';
return true;
@@ -1380,6 +1380,11 @@
<mask>/^.{1,1024}$/u</mask>
<ValidationMessage>Should be a string between 1 and 1024 characters.</ValidationMessage>
</acme_synology_dsm_deviceid>
<acme_synology_dsm_devicename type="TextField">
<Required>N</Required>
<mask>/^.{1,1024}$/u</mask>
<ValidationMessage>Should be a string between 1 and 1024 characters.</ValidationMessage>
</acme_synology_dsm_devicename>
<acme_fritzbox_url type="TextField">
<Required>N</Required>
<mask>/^.{1,1024}$/u</mask>