Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(general): fix proxy access from git and registry loader #6992

Merged
merged 18 commits into from
Feb 6, 2025

Conversation

maxamel
Copy link
Contributor

@maxamel maxamel commented Feb 4, 2025

User description

This PR intends to fix issues in checkov proxy capabilities. It sets correct proxy attributes for git and tf registry destinations.

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • New and existing tests pass locally with my changes


Generated description

Below is a concise technical summary of the changes proposed in this PR:

Enhances proxy capabilities for git and registry loaders. Modifies environment variable handling, improves logging, and refactors HTTP requests to support proxy usage. Updates the ProxyClient class and adjusts module loading processes in various loaders.

TopicDetails
Proxy Enhancement Improves proxy support for git cloning and registry loading operations
Modified files (4)
  • checkov/common/proxy/proxy_client.py
  • checkov/common/util/env_vars_config.py
  • checkov/common/goget/github/get_git.py
  • checkov/terraform/module_loading/loaders/registry_loader.py
Latest Contributors(2)
UserCommitDate
[email protected]feat-general-add-env-f...January 07, 2025
tsmithv11feat-general-Change-be...January 06, 2025
Logging Improvements Enhances logging across multiple files for better debugging and information
Modified files (5)
  • checkov/terraform/module_loading/loader.py
  • checkov/terraform/module_loading/loaders/git_loader.py
  • checkov/common/goget/github/get_git.py
  • checkov/terraform/module_loading/registry.py
  • checkov/terraform/module_loading/loaders/registry_loader.py
Latest Contributors(2)
UserCommitDate
lirshindalmanfeat-terraform-add-opt...January 01, 2025
gruebelfeat-terraform-support...October 16, 2023
This pull request is reviewed by Baz. Join @maxamel and the rest of your team on (Baz).

@maxamel maxamel changed the title feature(general): fix proxy access from git and registry loader feaא(general): fix proxy access from git and registry loader Feb 5, 2025
@maxamel maxamel changed the title feaא(general): fix proxy access from git and registry loader feat(general): fix proxy access from git and registry loader Feb 5, 2025
@maxamel maxamel marked this pull request as ready for review February 5, 2025 14:03
@maxamel maxamel merged commit 0dc600e into main Feb 6, 2025
47 checks passed
@maxamel maxamel deleted the fix-proxy-access branch February 6, 2025 09:30
Saarett pushed a commit that referenced this pull request Feb 6, 2025
* fix proxy access from git and registry loader

* add more logs for visibility

* add more prints to debug

* replace logs with prints

* add more prints

* replace env_vars with actual env fetching

* add more prints

* add more prints

* add more prints

* add more prints

* add print of module_params

* fix proxy access

* remove unneeded prints

* fix lints

* remove bad logging

* fix logger fields

* remove possible sensitive string

* fix lint

---------

Co-authored-by: Max Amelchenko <[email protected]>
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.

3 participants