mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
security/acme client: Added support for DDNSS DNS API (#2415)
* Add DDNSS API support
This commit is contained in:
+10
@@ -266,6 +266,16 @@
|
||||
<id>validation.dns_cyon_password</id>
|
||||
<label>Password</label>
|
||||
<type>password</type>
|
||||
</field>
|
||||
<field>
|
||||
<label>DDNSS API</label>
|
||||
<type>header</type>
|
||||
<style>table_dns table_dns_ddnss</style>
|
||||
</field>
|
||||
<field>
|
||||
<id>validation.dns_ddnss_token</id>
|
||||
<label>API Token</label>
|
||||
<type>text</type>
|
||||
</field>
|
||||
<field>
|
||||
<label>DirectAdmin</label>
|
||||
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* Copyright (C) 2021 Marcel Koepfli
|
||||
* 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;
|
||||
|
||||
/**
|
||||
* DDNSS DNS API
|
||||
* @package OPNsense\AcmeClient
|
||||
*/
|
||||
class DnsDdnss extends Base implements LeValidationInterface
|
||||
{
|
||||
public function prepare()
|
||||
{
|
||||
$this->acme_env['DDNSS_Token'] = (string)$this->config->dns_ddnss_token;
|
||||
}
|
||||
}
|
||||
@@ -382,6 +382,7 @@
|
||||
<dns_cx>CloudXNS.com API</dns_cx>
|
||||
<dns_cn>Core-Networks API</dns_cn>
|
||||
<dns_cyon>cyon.ch API</dns_cyon>
|
||||
<dns_ddnss>DDNSS API</dns_ddnss>
|
||||
<dns_desec>deSEC.io API</dns_desec>
|
||||
<dns_dgon>DigitalOcean API</dns_dgon>
|
||||
<dns_da>DirectAdmin API</dns_da>
|
||||
@@ -524,6 +525,9 @@
|
||||
<Required>N</Required>
|
||||
<default>1</default>
|
||||
</dns_da_insecure>
|
||||
<dns_ddnss_token type="TextField">
|
||||
<Required>N</Required>
|
||||
</dns_ddnss_token>
|
||||
<dns_dgon_key type="TextField">
|
||||
<Required>N</Required>
|
||||
</dns_dgon_key>
|
||||
|
||||
Reference in New Issue
Block a user