Skip to content

Add support for mirror registries behind mutual TLS - #72

Open
416e64726579 wants to merge 1 commit into
hashicorp:mainfrom
416e64726579:feature/mtls-mirror-support
Open

Add support for mirror registries behind mutual TLS#72
416e64726579 wants to merge 1 commit into
hashicorp:mainfrom
416e64726579:feature/mtls-mirror-support

Conversation

@416e64726579

Copy link
Copy Markdown

Description

This PR introduces an enhancement by adding mutual TLS (mTLS) support for service host mirroring. This feature has been requested in hashicorp/terraform#32110

Background: some companies have internal policy to place any services behind mutual TLS which makes it hardly possible to use private registries such as JFrog, so that https://jfrog.com/help/r/jfrog-artifactory-documentation/use-terraform-module-registries is not feasible to make use of since Terraform currently doesn't support specifying connections with client TLS authentication. These changes are going to address this shortage and have been successfully tested internally. Note the patch is for the latest released version tag i.e. 0.1.1 and not the main branch.

Key Changes:

mTLS Support: Implemented mTLS support for service host mirroring, allowing secure, authenticated connections to mirrored service endpoints.
Configuration Options: Added configuration settings to enable and manage mTLS for specific services, including specifying client certificates and CA bundles.
Error Handling Improvements: Enhanced error handling to provide better feedback when mTLS connections fail, making debugging easier.
Backward Compatibility: This update is backward compatible. Non-mTLS connections will continue to function as before unless mTLS is explicitly enabled.

Testing plan

Tests are added for the newly introduced interface HostCredentialsExtended related code.

External links

hashicorp/terraform#32110

@416e64726579
416e64726579 requested a review from a team as a code owner August 30, 2024 14:35
@hashicorp-cla-app

hashicorp-cla-app Bot commented Aug 30, 2024

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@416e64726579

Copy link
Copy Markdown
Author

Hi there,

Could anybody from the team comment on whether there are any plans to extend this library to support mTLS connections? Maybe outside this PR? Both Terraform and OpenTofu might benefit from it.

@416e64726579

Copy link
Copy Markdown
Author

Hi, apologies for the ping again but I'd really appreciate some feedback if it's being considered to add mTLS support with or without this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant