security/acme-client: add support for Aurora DNS API

This commit is contained in:
Frank Wall
2024-01-11 00:27:11 +01:00
parent cd327d04b2
commit 2ce4b5ca38
4 changed files with 70 additions and 1 deletions
+3
View File
@@ -14,6 +14,9 @@ NOTE: This is a new major release with backwards-incompatible changes.
Downgrade to older releases is not supported. Be sure to create a
full backup and include /var/etc/acme-client.
Added:
* add Aurora DNS API
Changed:
* use a dedicated acme.sh runtime directory for every cert (#3127)
@@ -1702,4 +1702,19 @@
<label>Password</label>
<type>password</type>
</field>
</form>
<field>
<label>Aurora (PCextreme/Versio)</label>
<type>header</type>
<style>table_dns table_dns_aurora</style>
</field>
<field>
<id>validation.dns_aurora_key</id>
<label>Key</label>
<type>text</type>
</field>
<field>
<id>validation.dns_aurora_secret</id>
<label>Secret</label>
<type>password</type>
</field>
</form>
@@ -0,0 +1,44 @@
<?php
/*
* Copyright (C) 2024 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;
/**
* Aurora API
* @package OPNsense\AcmeClient
*/
class DnsAurora extends Base implements LeValidationInterface
{
public function prepare()
{
$this->acme_env['AURORA_Key'] = (string)$this->config->dns_aurora_key;
$this->acme_env['AURORA_Secret'] = (string)$this->config->dns_aurora_secret;
}
}
@@ -426,6 +426,7 @@
<dns_ali>aliyun.com</dns_ali>
<dns_kas>All-Inkl.com</dns_kas>
<dns_arvan>ArvanCloud</dns_arvan>
<dns_aurora>Aurora (PCextreme/Versio)</dns_aurora>
<dns_autodns>AutoDNS (InterNetX)</dns_autodns>
<dns_aws>AWS Route 53</dns_aws>
<dns_azure>Azure DNS</dns_azure>
@@ -1195,6 +1196,12 @@
<dns_world4you_password type="TextField">
<Required>N</Required>
</dns_world4you_password>
<dns_aurora_key type="TextField">
<Required>N</Required>
</dns_aurora_key>
<dns_aurora_secret type="TextField">
<Required>N</Required>
</dns_aurora_secret>
</validation>
</validations>
<actions>