Skip to content

Disable TimeoutAcceptor when TSL is enabled#954

Merged
josecelano merged 1 commit intotorrust:developfrom
josecelano:disable-time-acceptor-when-tsl-is-enabled
Aug 7, 2024
Merged

Disable TimeoutAcceptor when TSL is enabled#954
josecelano merged 1 commit intotorrust:developfrom
josecelano:disable-time-acceptor-when-tsl-is-enabled

Conversation

@josecelano
Copy link
Copy Markdown
Member

The TimeoutAcceptor es a custom acceptor for Axum that sets a timeput for making a request after openning a connection.

It does not work when TSL is enabled.

This commit disables it, therefore the app does not have any way to avoid a DDos attacks where clients just open connections without making any request.

@josecelano josecelano added this to the v3.0.0 milestone Jul 5, 2024
@josecelano josecelano self-assigned this Jul 5, 2024
@josecelano josecelano requested a review from da2ce7 July 5, 2024 10:36
@codecov
Copy link
Copy Markdown

codecov bot commented Jul 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.10%. Comparing base (0a04dde) to head (222fa42).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #954      +/-   ##
===========================================
- Coverage    77.14%   77.10%   -0.04%     
===========================================
  Files          185      185              
  Lines        10058    10063       +5     
===========================================
  Hits          7759     7759              
- Misses        2299     2304       +5     

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

@da2ce7
Copy link
Copy Markdown
Contributor

da2ce7 commented Jul 13, 2024

ACK 38bb7cd

@da2ce7 da2ce7 added the Needs Rebase Base Branch has Incompatibilities label Jul 13, 2024
da2ce7 added a commit to da2ce7/torrust-tracker that referenced this pull request Jul 13, 2024
38bb7cd feat: disable TimeoutAcceptor when TSL is enabled (Jose Celano)

Pull request description:

  The TimeoutAcceptor es a custom acceptor for Axum that sets a timeput for making a request after openning a connection.

  It does not work when TSL is enabled.

  This commit disables it, therefore the app does not have any way to avoid a DDos attacks where clients just open connections without making any request.

ACKs for top commit:
  josecelano:
    ACK 38bb7cd
  da2ce7:
    ACK 38bb7cd

Tree-SHA512: 5c46333b7301d7469566df36d8c082ff139e61ff5ade214b6a232b7635f4add0e3a61e4e098e99215306ea2f49c0c5a1d6473777e5282455642f9600c5ac2d4b
The TimeoutAcceptor es a custom acceptor for Axum that sets a timeput
for making a request after openning a connection.

It does not work when TSL is enabled.

This commit disables it, therefore the app does not have any way to
avoid a DDos attacks where clients just open connections without making
any request.
@josecelano josecelano force-pushed the disable-time-acceptor-when-tsl-is-enabled branch from 38bb7cd to 222fa42 Compare August 7, 2024 13:28
@josecelano
Copy link
Copy Markdown
Member Author

ACK 222fa42

@josecelano
Copy link
Copy Markdown
Member Author

ACK 38bb7cd

I forgot to merge this.

@josecelano josecelano merged commit 7ac1556 into torrust:develop Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Rebase Base Branch has Incompatibilities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants