security/acme-client: Add option for global token to TransIP

The TransIP dns api and the acme.sh api for TransIP support the possibility to create a global access token.
With a global access token, the api call to TransIP can be amde from every ip adress.
There is a new button in the client configuration for TransIP, and this will be added to the account configuration file, which is used by acme.sh
This commit is contained in:
Jeroen Kool 2026-01-23 14:52:26 +01:00
parent 7f9d050f6b
commit be54b431da
3 changed files with 11 additions and 0 deletions

View file

@ -1365,6 +1365,12 @@
<type>textbox</type>
<help>Requires the whole key file in a format that is compatible with TransIP.</help>
</field>
<field>
<id>validation.dns_transip_token_global_key</id>
<label>Global key</label>
<type>checkbox</type>
<help>When using a global key, IP whitelisting is disabled.</help>
</field>
<field>
<label>united-domains Reselling</label>
<type>header</type>

View file

@ -50,5 +50,6 @@ class DnsTransip extends Base implements LeValidationInterface
// Add env variables
$this->acme_env['TRANSIP_Username'] = (string)$this->config->dns_transip_username;
$this->acme_env['TRANSIP_Key_File'] = $secret_key_filename;
$this->acme_env['TRANSIP_Token_Global_Key'] = ((string)$this->config->dns_transip_token_global_key === '1') ? 'true' : 'false';
}
}

View file

@ -1118,6 +1118,10 @@
<dns_transip_key type="TextField">
<Required>N</Required>
</dns_transip_key>
<dns_transip_token_global_key type="BooleanField">
<Required>N</Required>
<Default>0</Default>
</dns_transip_token_global_key>
<dns_timeweb_token type="TextField">
<Required>N</Required>
</dns_timeweb_token>