You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Format specifiers for IETF system hostname and password #435
As discussed in #326, generation of parts of factory-config are a bit opaque to users. An improvement would be to introduce a more declarative syntax:
/system/hostname: Support %-specifiers. We should probably support at least:
%i: OS ID (from /etc/os-release). infix on vanilla builds,
%h: Default hostname (DEFAULT_HOSTNAME from /etc/os-release). infix on vanilla builds,
%m: NIC specific part of base MAC, e.g., c0:ff:ee translated to c0-ff-ee
/system/authentication/user/password: Augment model to allow the literal factory-default or similar. This would indicate that the device's factory password, whatever it may be, should be used.
There has been requests for supporting yescrypt (#447), and similar, so updating the password hash pattern in ietf-system for $y$ will open up for also carrying a string like factory-default as well.
This would make it easier to support static factory-configs. For well-known products the interfaces and default network configuration can be hard coded.
Outstanding issue(s):
NETCONF SSH host key
OpenSSH host key (not managed by Infix currently)
The former is generated every boot for factory-config and failure-config, which is a bit unnecessary. The "genkey" created is referenced by the "default-key" in "ietf-netconf-server:netconf-server", so it could possibly be generated to a file in /cfg/ssl/ instead at first boot, like the HTTPS certs, and sourced from there when "genkey" public or private key are missing, and wiped like everything else on factory reset.
Activity
confd: add support for $factory$ password hash
confd: add support for hostname format specifiers
confd: add support for $factory$ password hash
confd: add support for hostname format specifiers
confd: refactor netconf hostkey generation
confd: add support for $factory$ password hash
confd: add support for hostname format specifiers
confd: refactor netconf hostkey generation
confd: add support for $factory$ password hash
confd: add support for hostname format specifiers
confd: refactor netconf hostkey generation
confd: refactor netconf hostkey generation
confd: refactor netconf hostkey generation
confd: add support for hostname format specifiers
confd: refactor netconf hostkey generation
confd: add support for $factory$ password hash