Page MenuHomeVyOS Platform

Upgrade from 1.3.5 fails if ssh public key name has a space in it
Closed, DuplicatePublicBUG

Description

This config is valid in 1.3.5:

user einar {
     authentication {
         public-keys "einar ISNIC ED25519 Key" {
             key AAAA
             type ssh-ed25519
         }
     }
     full-name "Einar B. Halldórsson"
 }

The config migration when upgrading to 1.3.6 strips the quotes so it become this invalid config:

user einar {
     authentication {
         public-keys einar ISNIC ED25519 Key {
             key AAAA
             type ssh-ed25519
         }
     }
     full-name "Einar B. Halldórsson"
 }

I assume the fix would be to replace spaces with underscores or dashes

Details

Version
1.3.6
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

This is a known issue as explained in detail in T4628. You're best choice is to remove the whitespace prior to upgrading. Thanks for reporting this anyways!