Skip to content

feat: tokens #4380

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

Merged
merged 17 commits into from
Oct 6, 2022
Merged

feat: tokens #4380

merged 17 commits into from
Oct 6, 2022

Conversation

f0ssel
Copy link
Contributor

@f0ssel f0ssel commented Oct 5, 2022

Closes #3692

@f0ssel f0ssel marked this pull request as ready for review October 5, 2022 20:59
@f0ssel f0ssel requested a review from a team as a code owner October 5, 2022 20:59
@f0ssel f0ssel requested review from Kira-Pilot and Emyrk and removed request for a team October 5, 2022 20:59
@f0ssel f0ssel marked this pull request as draft October 6, 2022 14:38
@f0ssel f0ssel marked this pull request as ready for review October 6, 2022 17:01
@f0ssel f0ssel requested review from bpmct and a team and removed request for Emyrk October 6, 2022 17:01
Copy link
Member

@bpmct bpmct left a comment

Choose a reason for hiding this comment

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

Are "machine key" and "personal access token" interchangeable?

I prefer PAT / "token", but don't have strong feelings either way, especially if the behaviors are the same. The main rationale is I haven't seen "machine key" used commonly in software like this, but 🤷🏼

@coadler
Copy link
Contributor

coadler commented Oct 6, 2022

I find "machine key" a bit confusing as we have machine keys in Tailscale as well.

@f0ssel
Copy link
Contributor Author

f0ssel commented Oct 6, 2022

machine key is programmer codename 100% - it's because the data model is an api key with the login type "machine". I can change this to whatever makes the most sense for product.

In v1 we used coder tokens and also call the api key flag in the CLI for v2 --token. Can we call it just coder tokens again? PAT doesn't really mean anything to me personally.

@f0ssel f0ssel requested a review from bpmct October 6, 2022 18:32
@f0ssel f0ssel changed the title feat: machine keys feat: tokens Oct 6, 2022
@bpmct
Copy link
Member

bpmct commented Oct 6, 2022

Tokens makes sense to me!

@f0ssel f0ssel requested a review from kylecarbs October 6, 2022 18:41
Copy link
Member

@deansheather deansheather left a comment

Choose a reason for hiding this comment

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

Looks fine but you still say "machine token" in a lot of places. Also, using both "api key" and "token" and "key" and "session token" for the same thing is confusing and we should just stick to one where possible IMO

@f0ssel f0ssel enabled auto-merge (squash) October 6, 2022 18:57
@f0ssel f0ssel merged commit f5df548 into main Oct 6, 2022
@f0ssel f0ssel deleted the f0ssel/machine-keys branch October 6, 2022 19:02
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

Successfully merging this pull request may close these issues.

Create long-lived tokens for CI/CD/automation (or tokens for a specific duration)
5 participants