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: authenticate to the Nomad web UI via the CLI #10134

Merged
merged 6 commits into from
Mar 10, 2021
Merged

Conversation

tgross
Copy link
Member

@tgross tgross commented Mar 8, 2021

Merge PR for the feature branch inclusive of all work except for the web UI work being done by @backspace in #10066. This PR contains the work previously reviewed in #10066 #10091 #10092 #10095 and #10097.

@tgross tgross requested review from shoenig, backspace and notnoop March 8, 2021 15:48
Base automatically changed from master to main March 8, 2021 19:25
Copy link
Contributor

@backspace backspace left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had one tiny question about wording and I only looked at documentation aspects but 👍 looks good, thanks!

website/content/docs/commands/ui.mdx Outdated Show resolved Hide resolved
tgross added 6 commits March 9, 2021 16:46
The `OneTimeToken` struct is to support the `nomad ui -login` command. This
changeset adds the struct to the Nomad state store.
RPC endpoints for the user-driven APIs (`UpsertOneTimeToken` and
`ExchangeOneTimeToken`) and token expiration (`ExpireOneTimeTokens`).
Includes adding expiration to the periodic core GC job.
Endpoints for requesting and exchanging one-time tokens via the HTTP
API. Includes documentation updates.
Includes swapping the previously documented `-login` flag for `-authenticate`
to align better with Waypoint.
@tgross
Copy link
Member Author

tgross commented Mar 9, 2021

I've rebased this into cleaner commits that can all get rebase-merged to main. Will do that once CI is green.

@tgross tgross merged commit a0aef18 into main Mar 10, 2021
@tgross tgross deleted the f-nomad-ui-login branch March 10, 2021 13:17
backspace added a commit that referenced this pull request Apr 1, 2021
This adds UI support for receiving the one-time token passed via query parameter, as in #10134
and related PRs, and exchanging it for its corresponding secret ID. When this works, it’s mostly
invisible, with a brief flash of the OTT onscreen.

The authentication failure message now suggests the -authenticate flag.

When OTT exchange fails, it shows a whole-page error.

This includes a known UX shortcoming in that the OTT will not disappear from the URL when an
identifier is specified on the command line, like nomad ui -authenticate jobname. The goal is to
address that shortcoming in a forthcoming pull request.
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants