mirror of
https://github.com/opnsense/plugins.git
synced 2026-02-03 20:40:37 -05:00
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:
parent
7f9d050f6b
commit
be54b431da
3 changed files with 11 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue