Page MenuHomeVyOS Platform

System users migration can lead to inaccessible shell
Open, HighPublicBUG

Description

In 1.3 and newer we do not allow to create users that already exist in the system and have UID < 1000 (https://github.com/vyos/vyos-1x/blob/e29c53bc1d66ed50aaca6f1fc39888c6d5779c9b/src/conf_mode/system-login.py#L106).

However, this was possible in 1.2 and such users migrate to the new config.boot during an update.

During boot, such config.boot file cannot be applied and none of the users are added to the system. So, it is not possible to log in.
We need to fix the migration to avoid this situation.

Details

Difficulty level
Normal (likely a few hours)
Version
1.3.0, 1.4-rolling-202203020319
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Stricter validation
Issue type
Bug (incorrect behavior)