oxidecomputer / oxide.rs

The Oxide Rust SDK and CLI
Mozilla Public License 2.0
38 stars 13 forks source link

Would like username / password auth via CLI #722

Open bnaecker opened 3 months ago

bnaecker commented 3 months ago

Target component

Overview

It would be nice to support authentication via username and password in the CLI. The most pressing use-case is for recovery situations, such as accessing Nexus via the technician port proxy to reset an overly-restrictive IP allowlist.

Implementation details

No response

Anything else you would like to add?

No response

david-crespo commented 3 months ago

For reference, here is where it would go:

https://github.com/oxidecomputer/oxide.rs/blob/bcd1e9ba1eb9186db9bc2c0e02542678237ff14c/cli/src/cli_builder.rs#L526

API endpoint:

https://github.com/oxidecomputer/omicron/blob/45ea9dcab4c8154be360f9ac6e4eee22bdb59387/nexus/src/external_api/console_api.rs#L423-L471