You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[MWRAPPER-153] only-mvnw.cmd fails when FIPS mode is enabled on Windows hosts #318
Under {}Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\FipsAlgorithmPolicy{}, set Enabled to {}1{}.
Run only-mvnw.cmd
Caveat
The FIPS check works with Powershell 5, not Powershell 7. It looks like the new PowerShell does not respect the OS configuration as well. So if the script is run within the new PowerShell, it would succeed due to –or thanks to– this problem.
Here's a background. I am a security manager in a company, and my devs came to me saying that the hardening measures blocks their workflow. That's how I mat the maven wrapper. I checked the code, found the issue, updated MD5 with SHA256 and made sue this workaround is documented and communicated within the team.
But this is not a unique issue. I believe many devs around the world can face this issue with a trivial fix. So, it is a better decision to make it a permanent solution than a workaround.
Activity
jira-importer commentedon Oct 28, 2024
Zafer Balkan commented
Created PR for the trivial solution: #157
jira-importer commentedon Oct 30, 2024
Zafer Balkan commented
Here's a background. I am a security manager in a company, and my devs came to me saying that the hardening measures blocks their workflow. That's how I mat the maven wrapper. I checked the code, found the issue, updated MD5 with SHA256 and made sue this workaround is documented and communicated within the team.
But this is not a unique issue. I believe many devs around the world can face this issue with a trivial fix. So, it is a better decision to make it a permanent solution than a workaround.