Skip to content

Swanctl error when PSK contains curly braces #1631

@mamengoni

Description

@mamengoni

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    verifiedAll test cases were verified successfully

    Type

    Projects

    Status

    Verified

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions