Skip to content

Add option/setting to suppress erase operation #2435

Open

Description

@becm

Feature description

Static credentials (tokens) in automated contexts are normally valid until changed explicitly.
Transient failures should not lead to erase, especially as restore requires manual interaction.

Implementing this in a central place would be preferable to modifying each provider.

Activity

  1. added
    enhancement
    on Sep 6, 2026
  2. becm commented on Sep 15, 2026

    @becm
    ContributorAuthor

    Most Providers seem to use a plain copy (or bad re-implementation) of

    • GetServiceName
    • StoreCredentialAsync
    • EraseCredentialAsync

    as already present in GitCredentialManager.HostProvider, which could be extended and used as a shared base class.

  3. becm commented on Oct 24, 2026

    @becm
    ContributorAuthor

    The Git credential doc for the ephemeral flag indicates to not store (and I'd say also not erase) those credential types.

    With the respective extension to GitResponse being present in GCM v3, this could be used as a trigger.
    We'd still need a way to mark (or derive) the condition for credentials to be treated in this kind of way:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions