DefGuard / defguard

Enterprise, fast, secure VPN & SSO platform with hardware keys, 2FA/MFA
https://defguard.net
Other
744 stars 22 forks source link

Special characters for device are validated during edit, but not on creation #579

Open orlovmyk opened 3 months ago

orlovmyk commented 3 months ago

Describe the bug Validation for special characters on UI is done only on device creation, but not on edit tab. By the way defguard works with devices with special characters. My use case for this is to have ip in brackets for sever I can know what's ip is that.

To Reproduce Steps to reproduce the behavior:

  1. Login to defguard, create new location if you don't have one (otherwise it's not possible to create device)
  2. Create new device with name "ovh(1.1.1.1)"
  3. Try to change name for this device
  4. You are unable to save it with name "ovh(1.1.1.1"

Expected behavior Depends on resolution of this bug. Either I can save confugration either special chars are not allowed global wide. Version information

Screenshots

Screenshot 2024-03-10 at 10 15 21 Screenshot 2024-03-10 at 10 15 30 Screenshot 2024-03-10 at 10 15 36

Additional context My guess is better to have underscores, square and round brackets enabled for device name, it's very useful