Skip to content

LITE-33682 Ensure certs temp folders are created once#122

Merged
arnaugiralt merged 1 commit intomasterfrom
LITE-33682-ensure-certs-temp-folders-are-created-once
Mar 2, 2026
Merged

LITE-33682 Ensure certs temp folders are created once#122
arnaugiralt merged 1 commit intomasterfrom
LITE-33682-ensure-certs-temp-folders-are-created-once

Conversation

@jonatrios
Copy link
Copy Markdown
Contributor

No description provided.

@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request modifies the certificate file management in EgressProxyClient to reuse certificate files across multiple client instances instead of creating new temporary files each time. The change aims to optimize file system operations by writing certificate files only once per unique certificate content.

Changes:

  • Replaced _create_temp_cert_file with _create_cert_file that uses fixed filenames in the temp directory
  • Added caching logic to check if file exists with same content before rewriting
  • Updated tests to verify the new deterministic file path behavior and file reuse across multiple client instances

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 10 comments.

File Description
connect/eaas/core/egress_proxy.py Implements new _create_cert_file method with fixed filenames and content-based caching logic
tests/connect/eaas/core/test_egress_proxy.py Updates existing tests and adds new tests for deterministic paths, write-once behavior, content change detection, and cross-client file reuse

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@arnaugiralt arnaugiralt merged commit e6feead into master Mar 2, 2026
16 checks passed
@arnaugiralt arnaugiralt deleted the LITE-33682-ensure-certs-temp-folders-are-created-once branch March 2, 2026 20:41
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