Skip to content

Add mutual TLS (mTLS) support with configuration options#23

Merged
dipjyotimetia merged 1 commit intomainfrom
feat/add_support_mtls
Apr 13, 2025
Merged

Add mutual TLS (mTLS) support with configuration options#23
dipjyotimetia merged 1 commit intomainfrom
feat/add_support_mtls

Conversation

@dipjyotimetia
Copy link
Copy Markdown
Owner

@dipjyotimetia dipjyotimetia commented Apr 13, 2025

Summary

Fixes #22

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 💥 Breaking change
  • 📝 Documentation update

Testing

Checklist

  • Self-reviewed code
  • Added/updated tests
  • Updated documentation (if needed)
  • No new warnings generated
  • Dependent changes merged

@github-actions
Copy link
Copy Markdown

Test Summary Report

Summary

  • Total Tests: 18
  • Passed: 18 (100.0%)
  • Failed: 0
  • Skipped: 0
  • Total Duration: 4.28s

Test Status

Status

Test Results

Test Status Duration Details
TestAPIValidator ✅ PASS 0.002s
4 subtests
SubtestStatusDuration
InvalidMethod✅ PASS0.000s
InvalidResponse✅ PASS0.000s
ValidRequest✅ PASS0.000s
ValidResponse✅ PASS0.000s
TestDatabaseConcurrency ✅ PASS 0.020s -
TestDatabaseErrorHandling ✅ PASS 0.010s
2 subtests
SubtestStatusDuration
Detail_handler_database_error✅ PASS0.000s
List_handler_database_error✅ PASS0.000s
TestDatabaseFailure ✅ PASS 0.001s -
TestDatabaseIndexes ✅ PASS 0.010s -
TestGenerateSelfSignedCert ✅ PASS 0.420s -
TestGenerateSelfSignedCert_InvalidPath ✅ PASS 0.000s -
TestGetTargetURL ✅ PASS 0.000s
3 subtests
SubtestStatusDuration
Match_first_route✅ PASS0.000s
Match_second_route✅ PASS0.000s
Use_default_for_non-matching_path✅ PASS0.000s
TestHandleIndex ✅ PASS 0.010s -
TestHandleTransactionDetail ✅ PASS 0.010s
5 subtests
SubtestStatusDuration
Empty_ID✅ PASS0.000s
Get_HTTP_transaction✅ PASS0.000s
Get_WebSocket_transaction✅ PASS0.000s
Invalid_path✅ PASS0.000s
Non-existent_transaction✅ PASS0.000s
TestHandleTransactionsList ✅ PASS 0.010s
11 subtests
SubtestStatusDuration
All_transactions✅ PASS0.001s
Complex_filter✅ PASS0.000s
Filter_by_HTTP_protocol✅ PASS0.000s
Filter_by_URL✅ PASS0.000s
Filter_by_WebSocket_protocol✅ PASS0.000s
Filter_by_method✅ PASS0.001s
Invalid_pagination_params✅ PASS0.000s
Large_pageSize✅ PASS0.000s
Pagination_-_page_1,size_2✅ PASS0.000s
Pagination-_page_2,size_2✅ PASS0.000s
Pagination-_page_3,_size_2✅ PASS0.000s
TestInitialize ✅ PASS 1.260s -
TestLoadConfig ✅ PASS 0.001s
9 subtests
SubtestStatusDuration
Both_recording_and_replay_mode✅ PASS0.000s
Invalid_target_routes_-missing_path_prefix✅ PASS0.000s
Invalid_target_routes-_path_prefix_without_leading_slash✅ PASS0.000s
Missing_HTTP_port✅ PASS0.000s
Missing_target_URL✅ PASS0.000s
TLS_enabled_without_cert✅ PASS0.000s
Valid_TLS_config✅ PASS0.000s
Valid_configuration✅ PASS0.000s
Valid_target_routes✅ PASS0.000s
TestNewUIHandler ✅ PASS 1.220s -
TestNormalizePathForSpec ✅ PASS 0.000s -
TestRegisterRoutes ✅ PASS 0.010s -
TestStartHTTPProxy_PassthroughMode ✅ PASS 1.280s -
TestTrafficRecordStorage ✅ PASS 0.020s
6 subtests
SubtestStatusDuration
QueryByID✅ PASS0.000s
QueryByMethodAndURL✅ PASS0.002s
QueryBySession✅ PASS0.000s
QueryWebSocketByConnectionID✅ PASS0.000s
QueryWebSocketMessagesByDirection✅ PASS0.000s
QueryWebSocketMessagesByType✅ PASS0.000s

Test Durations

Click to expand test durations
Test Duration
TestStartHTTPProxy_PassthroughMode 1.280s █████████████████████████
TestInitialize 1.260s ████████████████████████
TestNewUIHandler 1.220s ███████████████████████
TestGenerateSelfSignedCert 0.420s ████████
TestDatabaseConcurrency 0.020s █
TestTrafficRecordStorage 0.020s █
TestHandleIndex 0.010s █
TestHandleTransactionDetail 0.010s █
TestDatabaseErrorHandling 0.010s █
TestRegisterRoutes 0.010s █
TestDatabaseIndexes 0.010s █
TestHandleTransactionsList 0.010s █
TestAPIValidator 0.002s █
↳ QueryByMethodAndURL 0.002s █
TestLoadConfig 0.001s █

View Workflow Run

Report generated at: 2025-04-13T10:44:38Z

View details for all test jobs

This is a combined report summary. See individual job comments for detailed reports or check the workflow run.

@dipjyotimetia dipjyotimetia merged commit acfb9af into main Apr 13, 2025
4 of 5 checks passed
@dipjyotimetia dipjyotimetia deleted the feat/add_support_mtls branch April 13, 2025 10:45
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.

mtls

1 participant