security/acme-client: Add support for Timeweb Cloud DNS API (#5149)

This commit is contained in:
GutierrezJeremy 2026-01-20 12:08:44 +01:00 committed by GitHub
parent e71e18d4a9
commit 0ec3d04843
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 59 additions and 0 deletions

View file

@ -1333,6 +1333,16 @@
<label>Password</label>
<type>password</type>
</field>
<field>
<label>Timeweb Cloud DNS</label>
<type>header</type>
<style>table_dns table_dns_timeweb</style>
</field>
<field>
<id>validation.dns_timeweb_token</id>
<label>Timeweb Cloud API Token</label>
<type>text</type>
</field>
<field>
<label>Transip</label>
<type>header</type>

View file

@ -0,0 +1,45 @@
<?php
/*
* Copyright (C) 2026 Jeremy Gutierrez
* 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;
/**
* Timeweb Cloud DNS API
* @package OPNsense\AcmeClient
*/
class DnsTimeweb extends Base implements LeValidationInterface
{
public function prepare()
{
$this->acme_env['TW_Token'] = (string)$this->config->dns_timeweb_token;
}
}

View file

@ -523,6 +523,7 @@
<dns_servercow>Servercow</dns_servercow>
<dns_simply>Simply.com</dns_simply>
<dns_technitium>Technitium</dns_technitium>
<dns_timeweb>Timeweb Cloud</dns_timeweb>
<dns_transip>Transip</dns_transip>
<dns_udr>united-domains Reselling</dns_udr>
<dns_unoeuro>UnoEuro</dns_unoeuro>
@ -1117,6 +1118,9 @@
<dns_transip_key type="TextField">
<Required>N</Required>
</dns_transip_key>
<dns_timeweb_token type="TextField">
<Required>N</Required>
</dns_timeweb_token>
<dns_udr_user type="TextField">
<Required>N</Required>
</dns_udr_user>