mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
security/acme-client: add support for rage4 DNS API
This commit is contained in:
@@ -22,6 +22,7 @@ Added:
|
||||
* add internetbs.net DNS API
|
||||
* add PointHQ DNS API
|
||||
* add Rackspace DNS API
|
||||
* add rage4 DNS API
|
||||
|
||||
Changed:
|
||||
* use a dedicated acme.sh runtime directory for every cert (#3127)
|
||||
|
||||
+15
@@ -1817,4 +1817,19 @@
|
||||
<label>API Key</label>
|
||||
<type>password</type>
|
||||
</field>
|
||||
<field>
|
||||
<label>rage4</label>
|
||||
<type>header</type>
|
||||
<style>table_dns table_dns_rage4</style>
|
||||
</field>
|
||||
<field>
|
||||
<id>validation.dns_rage4_user</id>
|
||||
<label>Username</label>
|
||||
<type>text</type>
|
||||
</field>
|
||||
<field>
|
||||
<id>validation.dns_rage4_token</id>
|
||||
<label>Token</label>
|
||||
<type>password</type>
|
||||
</field>
|
||||
</form>
|
||||
|
||||
+44
@@ -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;
|
||||
|
||||
/**
|
||||
* rage4 API
|
||||
* @package OPNsense\AcmeClient
|
||||
*/
|
||||
class DnsRage4 extends Base implements LeValidationInterface
|
||||
{
|
||||
public function prepare()
|
||||
{
|
||||
$this->acme_env['RAGE4_TOKEN'] = (string)$this->config->dns_rage4_user;
|
||||
$this->acme_env['RAGE4_USERNAME'] = (string)$this->config->dns_rage4_token;
|
||||
}
|
||||
}
|
||||
@@ -505,6 +505,7 @@
|
||||
<dns_pointhq>PointHQ</dns_pointhq>
|
||||
<dns_porkbun>Porkbun</dns_porkbun>
|
||||
<dns_rackspace>Rackspace</dns_rackspace>
|
||||
<dns_rage4>rage4</dns_rage4>
|
||||
<dns_regru>RegRu</dns_regru>
|
||||
<dns_schlundtech>SchlundTech</dns_schlundtech>
|
||||
<dns_selectel>selectel.com / selectel.ru</dns_selectel>
|
||||
@@ -1251,6 +1252,12 @@
|
||||
<dns_rackspace_key type="TextField">
|
||||
<Required>N</Required>
|
||||
</dns_rackspace_key>
|
||||
<dns_rage4_token type="TextField">
|
||||
<Required>N</Required>
|
||||
</dns_rage4_token>
|
||||
<dns_rage4_user type="TextField">
|
||||
<Required>N</Required>
|
||||
</dns_rage4_user>
|
||||
</validation>
|
||||
</validations>
|
||||
<actions>
|
||||
|
||||
Reference in New Issue
Block a user