mirror of
https://github.com/fosrl/newt.git
synced 2026-03-09 07:12:28 -05:00
[PR #98] [CLOSED] Split mTLS client and CA certificates handling for improved TLS configuration #121
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/fosrl/newt/pull/98
Author: @Pallavikumarimdb
Created: 8/4/2025
Status: ❌ Closed
Base:
dev← Head:feat/Split-mTLS-client-and-CA-certificates📝 Commits (6)
e1ddad0Bump github.com/docker/docker in the prod-patch-updates group9e73aabUpdate flake.nix to 1.4.0a0f0b67Merge pull request #96 from firecat53/main3ccd755Merge pull request #95 from fosrl/dependabot/go_modules/prod-patch-updates-e08645070f151d0e3Stop sending requests when you get a terminated52f89fSplit mTLS client and CA certificates📊 Changes
7 files changed (+300 additions, -36 deletions)
View changed files
📝
README.md(+39 -8)📝
flake.lock(+3 -3)📝
flake.nix(+2 -2)📝
go.mod(+1 -1)📝
go.sum(+2 -2)📝
main.go(+157 -9)📝
websocket/client.go(+96 -11)📄 Description
Community Contribution License Agreement
By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.
Description
This PR introduces a clearer separation between the mTLS client certificate/key and the CA certificate for the Newt service. The previous implementation used a single certificate path for both client authentication and CA verification. This change introduces the following:
--tls-client-cert-file: Path to the client certificate used for mTLS--tls-client-key: Path to the private key associated with the client certificate--tls-client-ca: Path to the CA certificate used to verify the serverChanges made:
How to test?
Testing:
client.key,client.crt, andca.crt.Closes #54
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.