Remove antietcd_ca parameter from mon/antietcd_adapter - it is client_ca

This commit is contained in:
Vitaliy Filippov
2026-07-05 15:36:20 +03:00
parent 76410df0e8
commit c18ddbf255
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ class AntiEtcdAdapter
port: selected[0].port, port: selected[0].port,
cert: config.antietcd_cert, cert: config.antietcd_cert,
key: config.antietcd_key, key: config.antietcd_key,
ca: config.antietcd_ca, ca: config.client_ca,
data: config.antietcd_data_file || ((config.antietcd_data_dir || '/var/lib/vitastor') + '/mon_'+selected[0].port+'.json.gz'), data: config.antietcd_data_file || ((config.antietcd_data_dir || '/var/lib/vitastor') + '/mon_'+selected[0].port+'.json.gz'),
persist_filter: vitastor_persist_filter({ vitastor_prefix: config.etcd_prefix || '/vitastor' }), persist_filter: vitastor_persist_filter({ vitastor_prefix: config.etcd_prefix || '/vitastor' }),
node_id: cluster[selected[0].idx].replace(/^(https?:\/\/)/, ''), // same as in <cluster> below node_id: cluster[selected[0].idx].replace(/^(https?:\/\/)/, ''), // same as in <cluster> below
+1 -1
View File
@@ -68,7 +68,7 @@ class VitastorAuthFilter
async init() async init()
{ {
if (!this.cfg.cert || !this.cfg.key || !this.cfg.osd_ca || !this.cfg.client_cert_auth) if (!this.cfg.cert || !this.cfg.key || !this.cfg.ca || !this.cfg.osd_ca || !this.cfg.client_cert_auth)
{ {
throw new Error('Authenticated Vitastor setups require enabled client_cert_auth, cert, key'+ throw new Error('Authenticated Vitastor setups require enabled client_cert_auth, cert, key'+
' and separate ca (client CA), osd_ca and optionally mon_ca'); ' and separate ca (client CA), osd_ca and optionally mon_ca');