oxidecomputer / oxidecomputer/oxide.rs

CLI: make it easier to find the config files and the tokens

Open
#1,366 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
Rust
Stars
75
Forks
21
Avg merge
2d 2h
Merged PRs (30d)
19

Description

Target component
  • CLI
  • SDK
  • Something else
  • Not sure
Overview

There used to be a --show-token flag on oxide auth status (added in https://github.com/oxidecomputer/oxide.rs/pull/48). There is not anymore, which means that if I use the CLI to get a token to use in one of the SDKs, the only way I can find out what that token is is to go and find credentials.toml. The location of that file is described in the docs but there is no way in the CLI itself to find out where it is.

I've updated the README for the TS client to explain where the credentials file is, so maybe that is most of the solution, but I think it would also help for someone who is working in the CLI but not looking at the docs to have a way to get to an answer to these questions. Some ideas:

  • a command that prints the location of the config
  • a flag on auth status that prints the tokens
  • flag documentation mention what the default location is, like how --user-config-file below says default: ~/.config/nextest/config.toml or platform equivalent.
Image
Implementation details

No response

Anything else you would like to add?

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the existing oxide auth status command and the --user-config-file help text. Review the linked configuration-file documentation and the prior --show-token change to understand current behavior. Done should provide a clear CLI path to the configuration location and token guidance, with the chosen interface documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.