guardicore/monkey

Invalid configurations can be exported in the UI

Offen

#3.703 geöffnet am 15.09.2023

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (752 Forks)batch import
BugComplexity: MediumHelp wantedImpact: LowUI

Repository-Metriken

Stars
 (6.250 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Describe the bug

While an invalid configuration can't be submitted through the UI, it can be exported.

Trying to import that configuration in the UI isn't allowed, so it could be frustrating for a user who didn't realise that some values were invalid while exporting.

To Reproduce

Steps to reproduce the behavior:

  1. Run Island
  2. Add invalid configuration value somewhere
  3. Try submitting and see warning box
  4. Export and check the exported configuration for invalid value

Expected behavior

Don't allow exporting configuration if some values are invalid.

Screenshots

  1. Added invalid IP to configuration image

  2. Export modal works normally, but a warning is shown on the configuration page image

  3. Warning box image

  4. Exported configuration image

Contributor Guide