Merge pull request #5544 from olofvndrhr/master

security/acme-client: Add GCore DNS Provider
This commit is contained in:
Frank Wall
2026-09-07 13:52:44 +02:00
committed by GitHub
3 changed files with 58 additions and 0 deletions
@@ -2093,4 +2093,14 @@
<type>text</type>
<help><![CDATA[The full server URL, for example https://technitium:5380. The port number is optional.<br/><div class="text-info"><b>NOTE: </b>Remove the trailing / if it is present.</div>]]></help>
</field>
<field>
<label>GCore Managed DNS</label>
<type>header</type>
<style>table_dns table_dns_gcore</style>
</field>
<field>
<id>validation.dns_gcore_token</id>
<label>API Token</label>
<type>text</type>
</field>
</form>
@@ -0,0 +1,44 @@
<?php
/*
* Copyright (C) 2026 Ivan Schaller
* 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;
/**
* GCore Managed DNS API
* @package OPNsense\AcmeClient
*/
class DnsGCore extends Base implements LeValidationInterface
{
public function prepare()
{
$this->acme_env['GCORE_Key'] = (string)$this->config->dns_gcore_token;
}
}
@@ -471,6 +471,7 @@
<dns_gandi_livedns>Gandi LiveDNS</dns_gandi_livedns>
<dns_gd>GoDaddy.com</dns_gd>
<dns_gcloud>Google Cloud DNS</dns_gcloud>
<dns_gcore>GCore Managed DNS</dns_gcore>
<dns_googledomains>Google Domains</dns_googledomains>
<dns_gdnsdk>GratisDNS.dk</dns_gdnsdk>
<dns_hetzner>Hetzner</dns_hetzner>
@@ -734,6 +735,9 @@
<dns_gcloud_key type="TextField">
<Required>N</Required>
</dns_gcloud_key>
<dns_gcore_token type="TextField">
<Required>N</Required>
</dns_gcore_token>
<dns_googledomains_access_token type="TextField">
<Required>N</Required>
</dns_googledomains_access_token>