puppetlabs / puppetlabs/puppetlabs-java_ks
truststore is not idempotent for chain pem certificates
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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