infix icon indicating copy to clipboard operation
infix copied to clipboard

Configurable TTYs

Open troglobit opened this issue 1 year ago • 1 comments

Background

Customer requirements to disable all unused ports, or in some cases log in without password.

Proposal

Open up the TTY configuration to the user, allowing TTYs to be removed and for a shell to be directly executed, instead of passing through /bin/login. This would also allow us to support automatically setting up TTYs on USB-to-serial converters plugged in to our devices in the future.

Model sketch:

infix-system:system
  ttys
    tty <name>
      bool secure
      string username

Infix default:

"infix-system:system": {
    "ttys": [
        { "device": "console" }
    ]
}

Disabled console:

"infix-system:system": {
    "ttys": []
}

Log in without password:

"infix-system:system": {
    "ttys": [
        {
            "device": "console",
            "secure": false,
            "username": "admin"
        }
    ]
}

troglobit avatar Jul 02 '24 11:07 troglobit

CCB: requested by many customer, not time critical atm. Scheduling for FUTURE.

troglobit avatar Feb 07 '25 13:02 troglobit