Page MenuHomeVyOS Platform

openvpn: tls auth-key accepted in site-to-site mode but never rendered
In progress, HighPublicBUG

Description

tls auth-key passes verify in site-to-site mode, but the template emits tls-auth only for client and server modes.

Location
data/templates/openvpn/server.conf.j2:198-204

src/conf_mode/interfaces_openvpn.py:452-454, :478-479, :961-968

Problem
tls-auth emitted only for mode client/server; key file is written but unused; tls role never consulted.

Impact
Control-channel HMAC silently absent.

Suggested fix
Render tls-auth <file> <0|1> using tls role in site-to-site; or reject auth-key there.

Details

Version
rolling
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

natali-rs1985 changed the task status from Open to In progress.
natali-rs1985 claimed this task.
natali-rs1985 triaged this task as High priority.