Skip to content

Vk 2052 add ja5 filter #2309

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

Closed
wants to merge 92 commits into from
Closed

Vk 2052 add ja5 filter #2309

wants to merge 92 commits into from

Conversation

Kutumov
Copy link
Contributor

@Kutumov Kutumov commented Dec 21, 2024

No description provided.

EvgeniiMekhanik and others added 20 commits December 5, 2024 18:43
We decide to use our own implementation (we call it
ja5 hash) for client identification. This patch
implement ja5 hash calculation for http layer.
We decide to use our own implementation (we call it
ja5 hash) for client identification. This patch
implement ja5 hash calculation for http layer.
- Move all ja5 constants to separate header file.
- Change order of fields according to task description.
- Add unit tests.
- Move all ja5h cookie calculations, to handle cases
  when there are several cookie values in one header.
- Handle case when cookie or refer header restored
  from hpack table.
We decide to use our own implementation (we call it
ja5 hash) for client identification. This patch
implement ja5 hash calculation for http layer.
- Move all ja5 constants to separate header file.
- Change order of fields according to task description.
- Add unit tests.
- Move all ja5h cookie calculations, to handle cases
  when there are several cookie values in one header.
- Handle case when cookie or refer header restored
  from hpack table.
Some headers need extra processing in Tempesta FW source
code (we need to set some flags, set some variables and
so on). We usually do it when we during parsing headers,
but when we restore headers from hpack dynamic table we
use special cstate union to save/restore all necessary
information. We should zero all state before processing
next header.
Apply ja5 filter in TLS
@Kutumov Kutumov changed the base branch from master to vk-2052-add-ja5t-config December 23, 2024 15:55
Kutumov and others added 28 commits January 8, 2025 16:40
tls module. Implemented these callbacks in fw.
- fix memory leak during reconfiguration
- several codestyle fixes
Co-authored-by: Alexander Krizhanovsky <ak@tempesta-tech.com>
Deadlock occurs if all slots timestamps are
greater then end_ts.
We decide to use our own implementation (we call it
ja5 hash) for client identification. This patch
implement ja5 hash calculation for http layer.
- Move all ja5 constants to separate header file.
- Change order of fields according to task description.
- Add unit tests.
- Move all ja5h cookie calculations, to handle cases
  when there are several cookie values in one header.
- Handle case when cookie or refer header restored
  from hpack table.
We decide to use our own implementation (we call it
ja5 hash) for client identification. This patch
implement ja5 hash calculation for http layer.
- Move all ja5 constants to separate header file.
- Change order of fields according to task description.
- Add unit tests.
- Move all ja5h cookie calculations, to handle cases
  when there are several cookie values in one header.
- Handle case when cookie or refer header restored
  from hpack table.
@Kutumov Kutumov closed this Jan 9, 2025
@Kutumov Kutumov deleted the vk-2052-add-ja5-filter branch January 9, 2025 09:58
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.

5 participants