Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI selects arbitrary host from config? #302

Closed
davepacheco opened this issue Jul 20, 2023 · 1 comment
Closed

CLI selects arbitrary host from config? #302

davepacheco opened this issue Jul 20, 2023 · 1 comment

Comments

@davepacheco
Copy link

I have set up two different hosts:

$ oxide auth login --host https://recovery.sys.rack2.eng.oxide.computer/
...
$ oxide auth login --host https://oxide.sys.rack2.eng.oxide.computer/
...

So my config looks like this:

$ sed -e 's#oxide-token-.*#oxide-token-REDACTED#' < ~/.config/oxide/hosts.toml 
["https://recovery.sys.rack2.eng.oxide.computer/"]
token = "oxide-token-REDACTED
user = "4480c242-22d0-446e-ae70-f9c5106eafbb"

["https://oxide.sys.rack2.eng.oxide.computer/"]
token = "oxide-token-REDACTED
user = "73ae178c-e785-4fa6-8848-729b4bc2d9b7"

The CLI seems to pick different hosts to use ... at random?

$ oxide current-user view
success
CurrentUser {
    display_name: "recovery",
    id: 4480c242-22d0-446e-ae70-f9c5106eafbb,
    silo_id: caf88045-911f-4a5f-97b6-4775ecf3e9e4,
    silo_name: Name(
        "recovery",
    ),
}
$ oxide current-user view
success
CurrentUser {
    display_name: "recovery",
    id: 4480c242-22d0-446e-ae70-f9c5106eafbb,
    silo_id: caf88045-911f-4a5f-97b6-4775ecf3e9e4,
    silo_name: Name(
        "recovery",
    ),
}
$ oxide current-user view
success
CurrentUser {
    display_name: "[email protected]",
    id: 73ae178c-e785-4fa6-8848-729b4bc2d9b7,
    silo_id: 9b31b10e-ec32-411b-867f-a755eeacb1e1,
    silo_name: Name(
        "oxide",
    ),
}
$ oxide current-user view
success
CurrentUser {
    display_name: "[email protected]",
    id: 73ae178c-e785-4fa6-8848-729b4bc2d9b7,
    silo_id: 9b31b10e-ec32-411b-867f-a755eeacb1e1,
    silo_name: Name(
        "oxide",
    ),
}
@davepacheco
Copy link
Author

@jgallagher beat me to it: #301.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant