Skip to content

feature request: Add descriptive name or description field when creating a token #7

@allenbiehl

Description

@allenbiehl

Currently when creating a token there is no way to distinguish one token from another.

Tokens for 'root':
    5tnQ7btn
        restrictions:
            allowed=pkg_read
            expires=1784190537
    DbpHGb3t
        restrictions:
            allowed=pkg_read
            expires=1784189689
    gRBCMCCw
        restrictions:
            allowed=pkg_read
            expires=1784190540

Can you please add an additional field called name, which would allow us to easily differentiate one token from another. This would provide similar functionality as github / gitlab when creating PATs.

devpi token-create --name cicd --user root --allowed pkg_read,upload
devpi token-create --name guest --user root --allowed pkg_read

Tokens for 'root':
    5tnQ7btn
        name: cicd
        restrictions:
            allowed=pkg_read,upload
            expires=1784190537
    DbpHGb3t
        name: guest-2024
        restrictions:
            allowed=pkg_read
            expires=1721119055
    gRBCMCCw
        name: guest-2025
        restrictions:
            allowed=pkg_read
            expires=1784190540

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions