puppetlabs / puppetlabs/puppetlabs-java_ks

truststore is not idempotent for chain pem certificates

Open
#455 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

community
Dominant language
Ruby
Stars
34
Forks
97
Avg merge
1h 22m
Merged PRs (30d)
1

Description

Describe the Bug

Consider

java_ks { "$cert_alias:$truststore_path":
ensure => latest,
certificate => $cert_path_unique,
trustcacerts => true,
password => $truststore_passwd
}

If $cert_path_unique is a pem file which contains an intermediate and a leaf certificate then puppet outputs the following every run
Java_ks[jREDACTED]/ensure: ensure changed 'present' to 'latest'

Expected Behavior

Puppet should be idempotent

Environment

  • Version [e.g. 5.0.0]
  • Platform [e.g. puppet 8 rhel 8]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the java_ks resource and reproduce the report with a PEM file containing an intermediate and leaf certificate, using the module's keytool and openssl workflow. Confirm the behavior across repeated runs; done means the first run applies the certificate and subsequent runs report no ensure change.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, ruby
Domain
devops, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.