Skip to content

fix: avoid password validation in 802.1x config for station mode#8

Merged
marcellorinaldo merged 1 commit intodevelopfrom
fix-8021x-password-validation
Aug 26, 2025
Merged

fix: avoid password validation in 802.1x config for station mode#8
marcellorinaldo merged 1 commit intodevelopfrom
fix-8021x-password-validation

Conversation

@marcellorinaldo
Copy link
Copy Markdown
Member

@marcellorinaldo marcellorinaldo commented Aug 26, 2025

This PR disables the usage of the PasswordStrengthVerificationService for the password field in the wireless 802.1x configuration.

Like for the standard station mode, this station mode should not check password requirements since decided by the system administrator.

Related Issue: Resolves the issue:

  1. Setup a device with a wlan interface, edit a snapshot_0.xml that does not contain the configuration for the wlan interface
  2. Start Kura, from Security section set the PasswordStrength to 12 min characters
  3. Configure the WiFi interface to be in station mode, WAN, DHCP enabled. Do not configure the 802.1x tab
  4. Apply the changes, logs show that the password does not meet requirements

The error is not relative to the password configured from the Wireless tab, but it is the one of the 802.1x that by default is set to Placeholder. Like for the other station modes, there should be no verification on the password requirements.

Description of the solution adopted: N/A.

Screenshots: N/A.

Manual Tests: Set log level to debug for the org.eclipse.kura.web.server.net2 logger from the log4j configuration file. Perform the following tests:

Test 1 (connect to AP)

  1. Setup a device with a WiFi interface and edit the snapshot 0 to not contain any wireless configuration
  2. Start Kura and from Security -> PasswordStrength set min password length to 12
  3. From Network, configure the wireless interface in station mode to connect to an AP
  4. Apply, no errors appear in log, device is connected

Test 2 (connect to AP with WPA enterprise security)

  1. Setup a device with a WiFi interface and edit the snapshot 0 to not contain any wireless configuration
  2. Start Kura and from Security -> PasswordStrength set min password length to 12
  3. From Network, configure the wireless interface in station mode to connect to an AP with WPA3-enterprise security
  4. Configure the 802.1x tab accordingly
  5. Apply, no errors appear in log, device is connected

Any side note on the changes made: N/A.

Signed-off-by: Marcello Rinaldo Martina <martina.marcello.rinaldo@outlook.com>
@sonarqubecloud
Copy link
Copy Markdown

@marcellorinaldo marcellorinaldo marked this pull request as ready for review August 26, 2025 12:17
@marcellorinaldo marcellorinaldo merged commit 09f9f18 into develop Aug 26, 2025
7 checks passed
@marcellorinaldo marcellorinaldo deleted the fix-8021x-password-validation branch August 26, 2025 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants