Skip to content

Coder API tokens are automatically generated somehow #5935

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

Closed
Tracked by #6110
Kira-Pilot opened this issue Jan 31, 2023 · 2 comments
Closed
Tracked by #6110

Coder API tokens are automatically generated somehow #5935

Kira-Pilot opened this issue Jan 31, 2023 · 2 comments
Assignees
Labels
s1 Bugs that break core workflows. Only humans may set this.

Comments

@Kira-Pilot
Copy link
Member

Kira-Pilot commented Jan 31, 2023

Coder tokens can be created through the CLI:
coder tokens create

I tried this for the first time today and created one new token.

When I ran coder tokens list, I was surprised to see not only the token I had created, but 3 additional tokens, all made within the last few days:
Screen Shot 2023-01-31 at 1 18 07 PM

I did not make the first three and would like to know how they were generated.

Note: I tried generating 1 new token after opening this issue and now I have 6 tokens in my list. So perhaps we're making multiple per request?

@Kira-Pilot Kira-Pilot mentioned this issue Feb 8, 2023
7 tasks
@MichaelGerhart
Copy link

Just to add to this, IIRC Me as a coder admin could see other people's tokens showing up when I viewed them in my own account profile.

If I created a token as local admin, logged out and logged into my OIDC account that has owner permissions, the new admin tokens showed up for my profile.

@bpmct bpmct added bug s1 Bugs that break core workflows. Only humans may set this. labels Feb 9, 2023
@Kira-Pilot
Copy link
Member Author

This was indeed a permissions misunderstanding: owners can see all tokens but members cannot. I don't believe this is a bug so closing for now. @MichaelGerhart if this behavior isn't ideal for you, feel free to open another ticket and we'll happily triage as a feature request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s1 Bugs that break core workflows. Only humans may set this.
Projects
None yet
Development

No branches or pull requests

4 participants