jenkinsci / jenkinsci/ec2-plugin
[JENKINS-74907] Plugin allows non compliant keys, disabling SSL and allowing self signed certificate in FIPS mode
- Dominant language
- Java
- Stars
- 292
- Forks
- 709
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 4
Description
When configuring a Windows AMI, the plugin allows:
- self signed certificate
- disabling TLS while using a password
We should inform the user in a `FormValidation` that those fields can not be enabled when running in FIPS mode and don't allow saving them.
We should also validate that the host key and the private key use FIPS compliant key size.
---
Originally reported by jmdesprez, imported from: Plugin allows non compliant keys, disabling SSL and allowing self signed certificate in FIPS mode
Raw content of original issue
When configuring a Windows AMI, the plugin allows:
- self signed certificate
- disabling TLS while using a password
We should inform the user in a `FormValidation` that those fields can not be enabled when running in FIPS mode and don't allow saving them.
We should also validate that the host key and the private key use FIPS compliant key size.
Contributor guide
Research direction
Start at the Windows AMI configuration handling in the ec2-plugin and trace the FormValidation entry points for the certificate, TLS, host-key, and private-key fields. Done means FIPS-mode validation reports invalid settings and prevents saving non-compliant configurations, including keys with non-compliant sizes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, java
- Domain
- cloud, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100