Description
When configuring an IPsec connection, using a Pre-Shared Key (PSK) that contains curly braces {} causes swanctl to fail.
The issue is that the web interface does not report any validation error when saving the configuration. However, when the configuration is applied, swanctl returns an error and the connection does not start correctly.
Steps to reproduce
- Create a new IPsec connection
- Set a PSK containing a curly brace (e.g. test{123} )
- Save/apply the configuration
- Check swanctl --load-all
Expected behavior
- Properly handle PSKs containing curly braces, or
- Validate input in the UI and reject unsupported characters
Actual behavior
- No error shown in the UI
- Swanctl returns an error when loading the configuration
Components
NethSecurity - 8.7.2
Description
When configuring an IPsec connection, using a Pre-Shared Key (PSK) that contains curly braces {} causes swanctl to fail.
The issue is that the web interface does not report any validation error when saving the configuration. However, when the configuration is applied, swanctl returns an error and the connection does not start correctly.
Steps to reproduce
Expected behavior
Actual behavior
Components
NethSecurity - 8.7.2