security/acme-client: add support for All-Inkl.com domain API, closes #1130

This commit is contained in:
Frank Wall
2020-10-06 22:38:36 +02:00
parent c73274fc64
commit ff2eba73db
4 changed files with 81 additions and 0 deletions
+1
View File
@@ -14,6 +14,7 @@ Added:
* add new OOP backend to improve reliability and maintainability (#1398)
* add status for accounts to backend and WebGUI
* add button to manually trigger account registration
* add support for All-Inkl.com domain API (#1130)
* add plugin changelog
Fixed:
@@ -1161,4 +1161,24 @@
<label>API Password</label>
<type>password</type>
</field>
<field>
<label>All-Inkl.com domain API</label>
<type>header</type>
<style>table_dns table_dns_kas</style>
</field>
<field>
<id>validation.dns_kas_login</id>
<label>KAS Login</label>
<type>text</type>
</field>
<field>
<id>validation.dns_kas_authdata</id>
<label>KAS Authdata</label>
<type>text</type>
</field>
<field>
<id>validation.dns_kas_authtype</id>
<label>KAS Authtype</label>
<type>dropdown</type>
</field>
</form>
@@ -0,0 +1,46 @@
<?php
/*
* Copyright (C) 2020 Frank Wall
* All rights reserved.
*
* 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;
/**
* All-Inkl.com domain API
* @package OPNsense\AcmeClient
*/
class DnsKas extends Base implements LeValidationInterface
{
public function prepare()
{
$this->acme_env['KAS_Login'] = (string)$this->config->dns_kas_login;
$this->acme_env['KAS_Authdata'] = (string)$this->config->dns_kas_authdata;
$this->acme_env['KAS_Authtype'] = (string)$this->config->dns_kas_authtype;
}
}
@@ -372,6 +372,7 @@
<dns_acmeproxy>Acmeproxy API</dns_acmeproxy>
<dns_ad>Alwaysdata.com API</dns_ad>
<dns_ali>aliyun.com API</dns_ali>
<dns_kas>All-Inkl.com domain API</dns_kas>
<dns_arvan>ArvanCloud API</dns_arvan>
<dns_autodns>AutoDNS (InterNetX) API</dns_autodns>
<dns_aws>AWS Route 53</dns_aws>
@@ -921,6 +922,19 @@
<dns_1984hosting_password type="TextField">
<Required>N</Required>
</dns_1984hosting_password>
<dns_kas_login type="TextField">
<Required>N</Required>
</dns_kas_login>
<dns_kas_authdata type="TextField">
<Required>N</Required>
</dns_kas_authdata>
<dns_kas_authtype type="OptionField">
<Required>N</Required>
<default>sha1</default>
<OptionValues>
<sha1>SHA1</sha1>
</OptionValues>
</dns_kas_authtype>
</validation>
</validations>
<actions>