mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 22:30:54 +01:00
[PR #553] [MERGED] Do not enable TLS certificate revocation checks by default #621
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/553
Author: @bioball
Created: 6/27/2024
Status: ✅ Merged
Merged: 6/28/2024
Merged by: @bioball
Base:
main← Head:soft-fail-ocsp📝 Commits (3)
1940627Make OCSP checks soft-failb13b970Do not check revocation status by defaulta181385Fix two issues📊 Changes
6 files changed (+36 additions, -77 deletions)
View changed files
📝
pkl-cli/pkl-cli.gradle.kts(+1 -37)📝
pkl-commons-cli/src/main/kotlin/org/pkl/commons/cli/CliCommand.kt(+13 -1)📝
pkl-commons-cli/src/main/kotlin/org/pkl/commons/cli/CliMain.kt(+0 -4)📝
pkl-commons-cli/src/main/resources/org/pkl/commons/cli/PklCARoots.pem(+0 -0)📝
pkl-core/src/main/java/org/pkl/core/http/JdkHttpClient.java(+20 -34)📝
pkl-core/src/main/java/org/pkl/core/runtime/ModuleCache.java(+2 -1)📄 Description
This addresses an issue where network requests may fail if cert revocation checks error, which may occur due to availability issues, or due to lack of internet access.
This changes the HTTP client to not check revocation on TLS certificates by default.
Users of the Java client can enable this by setting Java property
com.sun.net.ssl.checkRevocationtotrue.Users of the native executables will not perform revocation checks.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.