Skip to content

[JENKINS-5420] Password parameters are stored as plain text in jobs' config and builds' history (patch provided) #19283

Closed

Description

@jenkins-infra-bot

Password parameters are stored as plain text in jobs' config and builds' history. They are accessible in:

  • /config.xml
  • /builds//build.xml

Cf. attached patches to fix that:

  • PasswordParameterDefinition now inherits from SimpleParameterDefinition rather than StringParameterDefinition and uses a Secret to store the default password rather than a string.
  • PasswordParameterValue now inherits from ParameterValue rather than StringParameterValue and uses Secret to store the password rather than a string.
  • Backward compatibility kept.

Originally reported by rseguy, imported from: Password parameters are stored as plain text in jobs' config and builds' history (patch provided)
  • status: Closed
  • priority: Critical
  • component(s): core
  • resolution: Fixed
  • resolved: 2010-01-29T15:31:18+00:00
  • votes: 0
  • watchers: 0
  • imported: 2025-11-24
Raw content of original issue

Password parameters are stored as plain text in jobs' config and builds' history. They are accessible in:

  • <job>/config.xml
  • <job>/builds/<date>/build.xml

Cf. attached patches to fix that:

  • PasswordParameterDefinition now inherits from SimpleParameterDefinition rather than StringParameterDefinition and uses a Secret to store the default password rather than a string.
  • PasswordParameterValue now inherits from ParameterValue rather than StringParameterValue and uses Secret to store the password rather than a string.
  • Backward compatibility kept.
2 attachments

Activity

  1. jenkins-infra-bot commented on Jan 29, 2010

    @jenkins-infra-bot
    Author
    scm_issue_link:
    • Original comment link
    • Raw content of original comment:

      Code changed in hudson User: : kohsuke Path: trunk/hudson/main/core/src/main/java/hudson/model/PasswordParameterDefinition.java trunk/hudson/main/core/src/main/java/hudson/model/PasswordParameterValue.java trunk/www/changelog.html http://jenkins-ci.org/commit/26736 Log: [FIXED JENKINS-5420] in 1.344 Password parameter on the disk should be encrypted.

    Code changed in hudson
    User: : kohsuke
    Path:
    trunk/hudson/main/core/src/main/java/hudson/model/PasswordParameterDefinition.java
    trunk/hudson/main/core/src/main/java/hudson/model/PasswordParameterValue.java
    trunk/www/changelog.html
    http://jenkins-ci.org/commit/26736
    Log:
    [FIXED JENKINS-5420] in 1.344 Password parameter on the disk should be encrypted.

  2. removed
    bugFor changelog: Minor bug. Will be listed after features
    on Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions