Skip to content

Optional expiration metadata for credentials with administrative warnings #1043

Description

@loic-AMCS

What feature do you want to see added?

The Jenkins Credentials Plugin currently provides a flexible and generic way to store credentials, but does not include lifecycle-related metadata such as expiration.

I would like to propose adding an optional expiration date field to credentials, along with non-intrusive administrative warnings in the UI.

Proposed behavior:

  • Allow setting an optional expiration date when creating or updating a credential
  • Display a warning in the Jenkins UI when:
    • the expiration date is approaching (configurable threshold)
    • the credential is expired
  • Make this information available as read-only metadata via existing APIs

Design considerations:

  • No enforcement: expired credentials remain usable
  • No change in runtime behavior (lookup, binding, pipelines, etc.)
  • Fully optional and backward compatible
  • No performance impact (UI-level feature only)

Goal:

Provide better visibility for administrators regarding credential lifecycle, without introducing policy enforcement or altering the plugin’s core behavior.

Upstream changes

No response

Are you interested in contributing this feature?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Fields

    No fields configured for Enhancement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions