Skip to content

add unix domain socket path length validation#6160

Merged
rudrakhp merged 1 commit intoenvoyproxy:mainfrom
mukeshmahato17:udslenvalid
May 25, 2025
Merged

add unix domain socket path length validation#6160
rudrakhp merged 1 commit intoenvoyproxy:mainfrom
mukeshmahato17:udslenvalid

Conversation

@mukeshmahato17
Copy link
Contributor

What type of PR is this?
This PR adds validation to limit Unix domain socket path length to 108 characters, which is the standard limit across Unix systems. This limitation exists for historical reasons related to the kernel's mbuf (memory buffer) data structure in early BSD implementations.

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #6150

Release Notes: Yes

Signed-off-by: mukeshmahato17 <mukeshmahato1089@gmail.com>
@mukeshmahato17 mukeshmahato17 requested a review from a team as a code owner May 22, 2025 16:57
Copy link
Contributor

@arkodg arkodg left a comment

Choose a reason for hiding this comment

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

LGTM thanks !

@arkodg arkodg requested review from a team May 22, 2025 17:06
@codecov
Copy link

codecov bot commented May 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.47%. Comparing base (36651e7) to head (93e70e8).
Report is 12 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6160      +/-   ##
==========================================
- Coverage   70.52%   70.47%   -0.05%     
==========================================
  Files         219      219              
  Lines       36342    36345       +3     
==========================================
- Hits        25629    25615      -14     
- Misses       9192     9203      +11     
- Partials     1521     1527       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mukeshmahato17
Copy link
Contributor Author

mukeshmahato17 commented May 24, 2025

hey @arkodg the TestEGUpgrade test failed in CI during the upgrade sequence with resource cleanup operations, while the Envoy shutdown portion passes successfully (might be). Could you please re-run the test?

@arkodg
Copy link
Contributor

arkodg commented May 24, 2025

/retest

@rudrakhp rudrakhp merged commit f497360 into envoyproxy:main May 25, 2025
47 of 48 checks passed
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