Skip to content

Commit bfd90d2

Browse files
committed
security/acme-client: post-merge fixes for opnsense#4824
1 parent 0d641df commit bfd90d2

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

security/acme-client/src/opnsense/mvc/app/controllers/OPNsense/AcmeClient/forms/dialogValidation.xml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,7 +1230,7 @@
12301230
<type>text</type>
12311231
</field>
12321232
<field>
1233-
<label>selectel</label>
1233+
<label>Selectel</label>
12341234
<type>header</type>
12351235
<style>table_dns table_dns_selectel</style>
12361236
</field>
@@ -1242,8 +1242,7 @@
12421242
<field>
12431243
<id>validation.dns_sl_apiver</id>
12441244
<label>API Version</label>
1245-
<type>text</type>
1246-
<help>Available Values: V2</help>
1245+
<type>dropdown</type>
12471246
</field>
12481247
<field>
12491248
<id>validation.dns_sl_token_lifetime</id>
@@ -1255,7 +1254,7 @@
12551254
<id>validation.dns_sl_account_id</id>
12561255
<label>Account ID</label>
12571256
<type>text</type>
1258-
<help>Account number, can be seen in the upper right corner on the provider's website</help>
1257+
<help>The account number can be found on the Selectel control panel</help>
12591258
</field>
12601259
<field>
12611260
<id>validation.dns_sl_project_name</id>
@@ -1266,7 +1265,7 @@
12661265
<id>validation.dns_sl_login_name</id>
12671266
<label>Service username</label>
12681267
<type>text</type>
1269-
<help>Service username, can be seen in the control panel</help>
1268+
<help>The service username can be found in the Selectel control panel</help>
12701269
</field>
12711270
<field>
12721271
<id>validation.dns_sl_password</id>

security/acme-client/src/opnsense/mvc/app/library/OPNsense/AcmeClient/LeValidation/DnsSelectel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function prepare()
4242
{
4343
$this->acme_env['SL_Key'] = (string)$this->config->dns_sl_key;
4444
$this->acme_env['SL_Ver'] = (string)$this->config->dns_sl_apiver;
45-
$this->acme_env['SL_Expire'] = (string)$this->config->dns_slv2_token_lifetime;
45+
$this->acme_env['SL_Expire'] = (string)$this->config->dns_sl_token_lifetime;
4646
$this->acme_env['SL_Login_ID'] = (string)$this->config->dns_sl_account_id;
4747
$this->acme_env['SL_Project_Name'] = (string)$this->config->dns_sl_project_name;
4848
$this->acme_env['SL_Login_Name'] = (string)$this->config->dns_sl_login_name;

security/acme-client/src/opnsense/mvc/app/models/OPNsense/AcmeClient/AcmeClient.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,8 +1056,12 @@
10561056
<dns_sl_key type="TextField">
10571057
<Required>N</Required>
10581058
</dns_sl_key>
1059-
<dns_sl_apiver type="TextField">
1059+
<dns_sl_apiver type="OptionField">
10601060
<Required>N</Required>
1061+
<OptionValues>
1062+
<v1>API version 1 (deprecated)</v1>
1063+
<v2>API version 2</v2>
1064+
</OptionValues>
10611065
</dns_sl_apiver>
10621066
<dns_sl_token_lifetime type="TextField">
10631067
<Required>N</Required>

0 commit comments

Comments
 (0)