security/acme-client: add world4you DNS API, closes #3722

This commit is contained in:
Frank Wall
2023-12-30 16:42:03 +01:00
parent de900c2c57
commit 0caa6d7a3a
4 changed files with 68 additions and 0 deletions
+2
View File
@@ -9,9 +9,11 @@ Plugin Changelog
================
3.20
Added:
* add Bunny DNS API
* add support for DNSExit
* add World4You DNS API (#3722)
3.19
@@ -1656,4 +1656,19 @@
<label>Password</label>
<type>password</type>
</field>
<field>
<label>World4You</label>
<type>header</type>
<style>table_dns table_dns_world4you</style>
</field>
<field>
<id>validation.dns_world4you_username</id>
<label>User</label>
<type>text</type>
</field>
<field>
<id>validation.dns_world4you_password</id>
<label>Password</label>
<type>password</type>
</field>
</form>
@@ -0,0 +1,44 @@
<?php
/*
* Copyright (C) 2023 Frank Wall
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
* OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
namespace OPNsense\AcmeClient\LeValidation;
use OPNsense\AcmeClient\LeValidationInterface;
use OPNsense\Core\Config;
/**
* World4You DNS API
* @package OPNsense\AcmeClient
*/
class DnsWorld4you extends Base implements LeValidationInterface
{
public function prepare()
{
$this->acme_env['WORLD4YOU_USERNAME'] = (string)$this->config->dns_world4you_username;
$this->acme_env['WORLD4YOU_PASSWORD'] = (string)$this->config->dns_world4you_password;
}
}
@@ -509,6 +509,7 @@
<dns_variomedia>Variomedia.de</dns_variomedia>
<dns_vscale>Vscale</dns_vscale>
<dns_vultr>Vultr</dns_vultr>
<dns_world4you>World4You</dns_world4you>
<dns_yandex>Yandex PDD</dns_yandex>
<dns_zilore>Zilore</dns_zilore>
<dns_zone>Zone.eu</dns_zone>
@@ -1172,6 +1173,12 @@
<dns_regru_password type="TextField">
<Required>N</Required>
</dns_regru_password>
<dns_world4you_username type="TextField">
<Required>N</Required>
</dns_world4you_username>
<dns_world4you_password type="TextField">
<Required>N</Required>
</dns_world4you_password>
</validation>
</validations>
<actions>