Skip to content
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

refactor(enginenetx): group by domain's endpoint #1307

Merged
merged 5 commits into from
Sep 26, 2023
Merged

Conversation

bassosimone
Copy link
Contributor

@bassosimone bassosimone commented Sep 26, 2023

There's no point in grouping tactics by "www.example.com" for stats stored on disk and user-provided static policies. By grouping by domain alone, we'll end up with mixed tactics for different ports all being together. Which means that, code that needs to filter, needs to explicitly filter by port. If we used "www.example.com:443" as the group-by key, conversely, we would not need to write specialized filtering code to only get data for the correct port. So, let's do that and let's simplify future code that will need to get tactics known for work for a given domain and port.

Part of ooni/probe#2531

There's no point in using "www.example.com" as the key with policies
for mixed ports when actually we should be using "www.example.com:443"
such that we only group policies for the same port.

This needs to happen both for the data format of the stats stored
to disk and for the user-provided static policy format.

Part of ooni/probe#2531
@bassosimone bassosimone changed the title refactor(enginenetx): organize by domain and endpoint refactor(enginenetx): group by domain's endpoint Sep 26, 2023
@bassosimone bassosimone merged commit 1f7d386 into master Sep 26, 2023
8 checks passed
@bassosimone bassosimone deleted the issue/2531 branch September 26, 2023 13:51
Murphy-OrangeMud pushed a commit to Murphy-OrangeMud/probe-cli that referenced this pull request Feb 13, 2024
There's no point in grouping tactics by "www.example.com" for stats
stored on disk and user-provided static policies. By grouping by domain
alone, we'll end up with mixed tactics for different ports all being
together. Which means that, code that needs to filter, needs to
explicitly filter by port. If we used "www.example.com:443" as the
group-by key, conversely, we would not need to write specialized
filtering code to only get data for the correct port. So, let's do that
and let's simplify future code that will need to get tactics known for
work for a given domain _and_ port.

Part of ooni/probe#2531
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.

1 participant