Added Simply.com (used to be UnoEuro). There is an open PR in acme.sh DEV branch #3978, that fixes dns for simply, since they removed support for the old UnoEuro REST API (V1) in favour of V2 that uses Basic Auth. (#2888)

security/acme-client: Add Simply.com DNS API
This commit is contained in:
Nikolaj Brinch Jørgensen
2022-07-27 14:54:15 +02:00
committed by GitHub
parent 7d682dd143
commit 472aace939
3 changed files with 67 additions and 0 deletions
@@ -1107,6 +1107,21 @@
<label>User</label>
<type>text</type>
</field>
<field>
<label>Simply.com</label>
<type>header</type>
<style>table_dns table_dns_simply</style>
</field>
<field>
<id>validation.dns_simply_api_key</id>
<label>API Key</label>
<type>text</type>
</field>
<field>
<id>validation.dns_simply_account_name</id>
<label>Account Name</label>
<type>text</type>
</field>
<field>
<label>Vscale</label>
<type>header</type>
@@ -0,0 +1,45 @@
<?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;
/**
* simply DNS API
* @package OPNsense\AcmeClient
*/
class DnsSimply extends Base implements LeValidationInterface
{
public function prepare()
{
$this->acme_env['SIMPLY_ApiKey'] = (string)$this->config->dns_simply_api_key;
$this->acme_env['SIMPLY_AccountName'] = (string)$this->config->dns_simply_account_name;
}
}
@@ -490,6 +490,7 @@
<dns_selectel>selectel.com / selectel.ru domain API</dns_selectel>
<dns_selfhost>Selfhost API</dns_selfhost>
<dns_servercow>Servercow API v1</dns_servercow>
<dns_simply>Simply.com API</dns_simply>
<dns_transip>Transip API</dns_transip>
<dns_unoeuro>UnoEuro API</dns_unoeuro>
<dns_variomedia>Variomedia.de API</dns_variomedia>
@@ -948,6 +949,12 @@
<dns_servercow_password type="TextField">
<Required>N</Required>
</dns_servercow_password>
<dns_simply_api_key type="TextField">
<Required>N</Required>
</dns_simply_api_key>
<dns_simply_account_name type="TextField">
<Required>N</Required>
</dns_simply_account_name>
<dns_transip_username type="TextField">
<Required>N</Required>
</dns_transip_username>