Skip to content

Deprecate cargo publish --token? #15274

Open
@epage

Description

@epage

Problem

#15273 highlighted that cargo publish --token exists. In #15057, we deprecated cargo login <token> to avoid tokens being in shell history (see also #13623).

This is also incomplete: cargo publish supports one-off token authentication but not other methods.

Proposed Solution

Deprecate it

Alternatively, add warnings as we may want to keep this for plumbing purposes.

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-registry-authenticationArea: registry authentication and authorization (authn authz)C-bugCategory: bugCommand-publishS-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions