Skip to content

cargo logout does nothing when using libsecret #16955

@nazar-pc

Description

@nazar-pc

Problem

cargo logout doesn't seem to do anything when libsecret is used

Steps

  1. Log in with this in the configuration
    [registry]
    global-credential-providers = ["cargo:libsecret"]
    
  2. Note cargo-registry:crates-io entry being created with the token in the password field
  3. Run cargo logout
  4. Observe no output printed by the command, cargo-registry:crates-io is still present with the same token/password

Possible Solution(s)

cargo logout should print logout status and actually do something when libsecret is used

Notes

No response

Version

cargo 1.95.0 (f2d3ce0bd 2026-03-21)
release: 1.95.0
commit-hash: f2d3ce0bd7f24a49f8f72d9000448f8838c4e850
commit-date: 2026-03-21
host: x86_64-unknown-linux-gnu
libgit2: 1.9.2 (sys:0.20.4 vendored)
libcurl: 8.15.0-DEV (sys:0.4.83+curl-8.15.0 vendored ssl:OpenSSL/3.5.4)
ssl: OpenSSL 3.5.4 30 Sep 2025
os: Ubuntu 24.4.0 (noble) [64-bit]

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-credential-providerArea: credential provider for storing and retreiving credentialsC-bugCategory: bugS-triageStatus: This issue is waiting on initial triage.

    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