Skip to content

NETOBSERV-2609 show tls usage in topology view#1451

Draft
jpinsonneau wants to merge 8 commits into
netobserv:mainfrom
jpinsonneau:2609
Draft

NETOBSERV-2609 show tls usage in topology view#1451
jpinsonneau wants to merge 8 commits into
netobserv:mainfrom
jpinsonneau:2609

Conversation

@jpinsonneau
Copy link
Copy Markdown
Member

@jpinsonneau jpinsonneau commented Apr 22, 2026

Description

Display TLS versions and message types in topology side panel
Also display a lock with a green / yellow / red color showing if the TLS version involved is valid
Add an option to show an open lock when no TLS is involved

image image image image

Dependencies

Based on #1478

Checklist

  • Does the changes in PR need specific configuration or environment set up for testing?
    • if so please describe it in PR description.
  • I have added thorough unit tests for the change.
  • QE requirements (check 1 from the list):
    • Standard QE validation, with pre-merge tests unless stated otherwise.
    • Regression tests only (e.g. refactoring with no user-facing change).
    • No QE (e.g. trivial change with high reviewer's confidence, or per agreement with the QE team).

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Apr 22, 2026

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Apr 22, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign mffiedler for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 22, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: df811931-8e21-43d0-b663-658607a34ed8

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@jpinsonneau jpinsonneau added the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Apr 22, 2026
@github-actions
Copy link
Copy Markdown

New image:

quay.io/netobserv/network-observability-console-plugin:fa4506a

It will expire in two weeks.

To deploy this build, run from the operator repo, assuming the operator is running:

USER=netobserv VERSION=fa4506a make set-plugin-image

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 22, 2026

Codecov Report

❌ Patch coverage is 64.00000% with 18 lines in your changes missing coverage. Please review.
✅ Project coverage is 41.31%. Comparing base (b905ded) to head (a46aa03).
⚠️ Report is 15 commits behind head on main.

Files with missing lines Patch % Lines
pkg/handler/lokiclientmock/tls_matrix_inject.go 65.95% 8 Missing and 8 partials ⚠️
pkg/handler/lokiclientmock/loki_client_mock.go 0.00% 2 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (b905ded) and HEAD (a46aa03). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (b905ded) HEAD (a46aa03)
uitests 1 0
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1451       +/-   ##
===========================================
- Coverage   52.47%   41.31%   -11.16%     
===========================================
  Files         233       46      -187     
  Lines       12438     3340     -9098     
  Branches     1559        0     -1559     
===========================================
- Hits         6527     1380     -5147     
+ Misses       5297     1774     -3523     
+ Partials      614      186      -428     
Flag Coverage Δ
uitests ?
unittests 41.31% <64.00%> (+0.35%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
pkg/config/config.go 47.76% <100.00%> (+0.39%) ⬆️
pkg/handler/lokiclientmock/loki_client_mock.go 0.00% <0.00%> (ø)
pkg/handler/lokiclientmock/tls_matrix_inject.go 65.95% <65.95%> (ø)

... and 188 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jpinsonneau
Copy link
Copy Markdown
Member Author

@jotak can you please share how to generate deprecated TLS traffic ?

I tried some curl using TLS1.2 but the eBPF agents are not capturing it 😞

@github-actions github-actions Bot removed the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Apr 22, 2026
@jpinsonneau jpinsonneau requested a review from jotak April 22, 2026 14:19
jotak added 2 commits May 5, 2026 15:26
- Add 4 new overview panels related to TLS:
  - TLS global usage (traffic with/without TLS)
  - breakdown by version
  - breakdown by group
  - breakdown by cipher suite
- Add new column filter "tls" in manage columns panel
- Fix issues in logQL when querying on arrays: handle looking for field
  presence/absence
- Refactoring: introduce StructuredFlowQuery, an intermediate data structure used before the flow query is entirely serialized for HTTP.
  It allows to keep and manipulate structured filters for complex queries.
- Simplify TLS usage donut to show just TLS vs Other (it's
      easier to achieve with prom metrics)
- Show % of TLS rather than total Pps
- Fix a couple of JS warnings
@jpinsonneau jpinsonneau added the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label May 11, 2026
@github-actions
Copy link
Copy Markdown

New image:

quay.io/netobserv/network-observability-console-plugin:7bdb498

It will expire in two weeks.

To deploy this build, run from the operator repo, assuming the operator is running:

USER=netobserv VERSION=7bdb498 make set-plugin-image

Donut legend will not be dispayed anymore when rendered on small
screens. It's still available as a tooltip though.
Comment thread web/src/api/ipfix.ts Outdated
Comment on lines +62 to +70
if (!metricType) {
return false;
}
return (
metricType === 'Bytes' ||
metricType === 'Packets' ||
metricType === 'PktDropBytes' ||
metricType === 'PktDropPackets'
);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

So, I think the way I'm changing the metrics here won't work that way. It would be a new query to run, with TlsFlows as the metric type

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Sure, let me adapt to the new approach

@jotak
Copy link
Copy Markdown
Member

jotak commented May 11, 2026

In terms of graphical design it looks nice to me!
But the implementation will conflict with other changes that I'm doing, the tldr; is that I changed the approach, instead of adding TLS info into existing metrics, it's now a separate metric to fetch, much like what we're doing with DNS

@github-actions github-actions Bot removed the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label May 11, 2026
jpinsonneau and others added 3 commits May 11, 2026 14:33
* sdk + pf6 migration

* data test ids

* Add some more data-test ids

* PF updates and styling fix

* installDemoLoki & fullscreen issues

* standalone theme

* fix redirect after FlowCollector create

* force update on CR change

* fix cypress

---------

Co-authored-by: Amoghrd <aramesha@redhat.com>
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
Co-authored-by: red-hat-konflux[bot] <126015336+red-hat-konflux[bot]@users.noreply.github.com>
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented May 13, 2026

PR needs rebase.

Details

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.

@jpinsonneau
Copy link
Copy Markdown
Member Author

Refactored based on #1478

Will rebased when merged and cherry picked on PF6 branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants