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

OSDOCS-10211: eBPF flow rule filtering #74622

Merged
merged 1 commit into from
May 29, 2024

Conversation

skrthomas
Copy link
Contributor

@skrthomas skrthomas commented Apr 12, 2024

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Apr 12, 2024
@openshift-ci-robot
Copy link

openshift-ci-robot commented Apr 12, 2024

@skrthomas: This pull request references OSDOCS-10211 which is a valid jira issue.

In response to this:

Version(s):

Issue:

https://issues.redhat.com/browse/OSDOCS-10211
Link to docs preview:

QE review:

  • QE has approved this change.

Additional information:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Apr 12, 2024
@skrthomas skrthomas force-pushed the OSDOCS-10211 branch 2 times, most recently from a9015cb to eda4bc1 Compare April 19, 2024 21:18
@openshift-ci openshift-ci bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Apr 19, 2024
@skrthomas skrthomas force-pushed the OSDOCS-10211 branch 6 times, most recently from b7871c6 to f9d7c83 Compare April 24, 2024 19:31
@openshift-ci-robot
Copy link

openshift-ci-robot commented Apr 24, 2024

@skrthomas
Copy link
Contributor Author

@msherif1234 can you PTAL at this first draft?

@skrthomas skrthomas force-pushed the OSDOCS-10211 branch 4 times, most recently from 9c05572 to 5b83ad2 Compare April 25, 2024 17:35
:_mod-docs-content-type: PROCEDURE
[id="network-observability-filtering-ebpf-rule_{context}"]
= Filtering eBPF flow data with rules
You can configure the `FlowCollector` to filter eBPF flows using rules as a method to control the flow of packets cached in eBPF's flows table based on certain configuration.

Choose a reason for hiding this comment

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

its worth mention its single global rule not rules :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Amoghrd
Copy link

Amoghrd commented May 16, 2024

Sample looks weird in preview
Screenshot 2024-05-16 at 10 53 59 AM

@skrthomas
Copy link
Contributor Author

@Amoghrd oo, thanks, it looks like I put "====" instead of "----" around my [sample,yaml] box by mistake. I just fixed this.

@skrthomas skrthomas force-pushed the OSDOCS-10211 branch 2 times, most recently from 058fc1c to a8093b6 Compare May 20, 2024 19:49
@Amoghrd
Copy link

Amoghrd commented May 20, 2024

/label qe-approved

@openshift-ci openshift-ci bot added the qe-approved Signifies that QE has signed off on this PR label May 20, 2024
@openshift-ci-robot
Copy link

openshift-ci-robot commented May 20, 2024

@skrthomas skrthomas added the peer-review-needed Signifies that the peer review team needs to review this PR label May 20, 2024
@jneczypor
Copy link
Contributor

/label peer-review-in-progress

@openshift-ci openshift-ci bot added the peer-review-in-progress Signifies that the peer review team is reviewing this PR label May 20, 2024
Copy link
Contributor

@jneczypor jneczypor left a comment

Choose a reason for hiding this comment

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

This is a really great PR! I've added some thoughts (most are just suggestions for simplifying the language a bit). I'm onboarding to peer review, so @michaelryanpeter will follow after me with his review. Thanks for your patience!

modules/network-observability-ebpf-rule-flow-filter.adoc Outdated Show resolved Hide resolved
modules/network-observability-filtering-ebpf-rule.adoc Outdated Show resolved Hide resolved
modules/network-observability-filtering-ebpf-rule.adoc Outdated Show resolved Hide resolved
modules/network-observability-filtering-ebpf-rule.adoc Outdated Show resolved Hide resolved
modules/network-observability-filtering-ebpf-rule.adoc Outdated Show resolved Hide resolved
modules/network-observability-flow-filter-parameters.adoc Outdated Show resolved Hide resolved
modules/network-observability-ebpf-rule-flow-filter.adoc Outdated Show resolved Hide resolved
= eBPF flow rule filter
You can use rule-based filtering to control the volume of packets cached in the eBPF flow table. For example, a filter can specify that only packets coming from port 100 should be recorded. Then all packets which do not match the filter are not cached and only the ones that match are cached.

== How ingress and egress traffic filtering works
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
== How ingress and egress traffic filtering works
== Ingress and egress traffic filtering

I tried to eliminate "How" based on the IBM quick reference guide.

Copy link
Contributor

@michaelryanpeter michaelryanpeter left a comment

Choose a reason for hiding this comment

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

Other than the anchor ids and context variable for your module headings, nothing besides a few style nits and supporting suggestions for clarity/minimalism.

Great job!
/label peer-review-done
/remove-label peer-review-in-progress
/remove-label peer-review-needed

modules/network-observability-ebpf-rule-flow-filter.adoc Outdated Show resolved Hide resolved
modules/network-observability-ebpf-rule-flow-filter.adoc Outdated Show resolved Hide resolved
modules/network-observability-filtering-ebpf-rule.adoc Outdated Show resolved Hide resolved
| DestPorts defines the destination ports to filter flows by. To filter a single port, set a single port as an integer value, for example `destPorts: 80`. To filter a range of ports, use a "start-end" range in string format, for example `destPorts: "80-100"`.

| `icmpType`
| Defines the ICMP type to filter flows by.
Copy link
Contributor

Choose a reason for hiding this comment

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

Note, while I agree with this suggestion based on my ear, if it is more accurate to use "flows by", the ISG specifies that it is not only okay but preferable to end a sentence with a preposition if it is the simplest way to convey the meaning. https://www.ibm.com/docs/en/ibm-style?topic=grammar-prepositions

@openshift-ci openshift-ci bot added peer-review-done Signifies that the peer review team has reviewed this PR and removed peer-review-in-progress Signifies that the peer review team is reviewing this PR peer-review-needed Signifies that the peer review team needs to review this PR labels May 21, 2024
@openshift-ci-robot
Copy link

openshift-ci-robot commented May 29, 2024

@skrthomas: This pull request references OSDOCS-10211 which is a valid jira issue.

In response to this:

Version(s):

Merge to only the no-1.6 branch - no cherrypicks are required.
This PR is part of an experiment for simplifying merges for asynchronous content, and I will open one PR against main to incorporate all of the Network Observability 1.6 content just before its GA
Issue:

https://issues.redhat.com/browse/OSDOCS-10211
Link to docs preview:

eBPF flow filter rule: https://74622--ocpdocs-pr.netlify.app/openshift-enterprise/latest/observability/network_observability/observing-network-traffic.html#network-observability-ebpf-flow-rule-filter_nw-observe-network-traffic

Flow filter configuration parameters: https://74622--ocpdocs-pr.netlify.app/openshift-enterprise/latest/observability/network_observability/observing-network-traffic.html#network-observability-flowcollector-flowfilter-parameters_nw-observe-network-traffic

Filtering eBPF flow data with rules: https://74622--ocpdocs-pr.netlify.app/openshift-enterprise/latest/observability/network_observability/observing-network-traffic.html#network-observability-filtering-ebpf-rule_nw-observe-network-traffic

Scheduling Network Observability resources: https://74622--ocpdocs-pr.netlify.app/openshift-enterprise/latest/observability/network_observability/network-observability-scheduling-resources
QE review:

  • QE has approved this change.

Additional information:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

Copy link

openshift-ci bot commented May 29, 2024

@skrthomas: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@skrthomas skrthomas added the merge-review-needed Signifies that the merge review team needs to review this PR label May 29, 2024
@skrthomas skrthomas added this to the Continuous Release milestone May 29, 2024
@openshift-ci-robot
Copy link

openshift-ci-robot commented May 29, 2024

@skrthomas: This pull request references OSDOCS-10211 which is a valid jira issue.

In response to this:

Version(s):

Merge to only the no-1.6 branch - no cherrypicks are required.
This PR is part of an experiment for simplifying merges for asynchronous content, and I will open one PR against main to incorporate all of the Network Observability 1.6 content just before its GA
Issue:

https://issues.redhat.com/browse/OSDOCS-10211
Link to docs preview:

eBPF flow filter rule: https://74622--ocpdocs-pr.netlify.app/openshift-enterprise/latest/observability/network_observability/observing-network-traffic.html#network-observability-ebpf-flow-rule-filter_nw-observe-network-traffic

Flow filter configuration parameters: https://74622--ocpdocs-pr.netlify.app/openshift-enterprise/latest/observability/network_observability/observing-network-traffic.html#network-observability-flowcollector-flowfilter-parameters_nw-observe-network-traffic

Filtering eBPF flow data with rules: https://74622--ocpdocs-pr.netlify.app/openshift-enterprise/latest/observability/network_observability/observing-network-traffic.html#network-observability-filtering-ebpf-rule_nw-observe-network-traffic

Scheduling Network Observability resources: https://74622--ocpdocs-pr.netlify.app/openshift-enterprise/latest/observability/network_observability/network-observability-scheduling-resources
QE review:

  • QE has approved this change.

Additional information:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@mburke5678 mburke5678 added merge-review-in-progress Signifies that the merge review team is reviewing this PR and removed merge-review-in-progress Signifies that the merge review team is reviewing this PR merge-review-needed Signifies that the merge review team needs to review this PR labels May 29, 2024
@mburke5678 mburke5678 merged commit 964cfde into openshift:no-1.6 May 29, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. peer-review-done Signifies that the peer review team has reviewed this PR qe-approved Signifies that QE has signed off on this PR size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants