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

[Project-scoped API tokens] should be accessible from project settings #6263

Open
webknjaz opened this issue Jul 25, 2019 · 2 comments
Open
Labels
feature request needs discussion a product management/policy issue maintainers and users should discuss tokens Issues relating to API tokens

Comments

@webknjaz
Copy link
Member

What's the problem this feature will solve?

I think that it'd be convenient if I could see a list of tokens having access to the chosen project page. Even ones created by someone else.
This'd result in better visibility of the security aspects of managing the project.

Describe the solution you'd like

I'm thinking of one of these pages:

It'd look like:

[ Create a new token ] <-- links to https://pypi.org/manage/account/token with a project pre-selected

* token1 (created by you) [ Revoke ]
* token2 (created by some_maintainer) [~Revoke~] <-- not sure whether owner should be able to revoke this
* to...3 (created by some_maintainer_2) [~Revoke~]  <-- maybe even mostly hide their names if created by someone else

[ Create a new token ] <-- links to https://pypi.org/manage/account/token with a project pre-selected

Additional context

N/A

@brainwane brainwane added the needs discussion a product management/policy issue maintainers and users should discuss label Jul 25, 2019
@brainwane
Copy link
Contributor

Thanks for your note and for the feature idea of displaying an inventory, somewhere within project settings, of project-scoped API tokens, viewable by project owners (and maybe maintainers).

Right now I think this is out of scope for the OTF-funded security work on our development roadmap -- we need to be pretty frugal with scope for this to make sure we get through all our milestones.

But I think that the creation of a token would probably go into the audit log in #5863. So that would help with the visibility concern.

@di di added the tokens Issues relating to API tokens label Jul 29, 2019
@brainwane
Copy link
Contributor

If someone makes a pull request to implement this, please ping @nlhkabu to ask her to review it. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request needs discussion a product management/policy issue maintainers and users should discuss tokens Issues relating to API tokens
Projects
None yet
Development

No branches or pull requests

4 participants