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

Support mTLS when exporting IPFIX from FlowAggregator #7081

Open
antoninbas opened this issue Mar 21, 2025 · 0 comments
Open

Support mTLS when exporting IPFIX from FlowAggregator #7081

antoninbas opened this issue Mar 21, 2025 · 0 comments
Assignees
Labels
area/flow-visibility/aggregator Issues or PRs related to Flow Aggregator kind/design Categorizes issue or PR as related to design.

Comments

@antoninbas
Copy link
Contributor

Describe what you are trying to solve
The current FlowAggregator cannot support the case where communications between the FlowAggregator and the external IPFIX collector go over an insecure network.

Describe the solution you have in mind
We propose to support mTLS, as a way to authenticate both the FlowAggregator (exporter) and the external collector.

Describe how your solution impacts user flows
When deploying the FlowAggregator, the following information will need to be provided (if mTLS is desired):

  • CA certificate (as a Secret) to authenticate the server (collector) - by default, system root CAs will be used
  • Private key and certificate (as a TLS Secret) so that the FlowAggregator can authenticate to the server - by default, client authentication will be disabled

There is no plan to support automatic certificate generation (for client cert & CA) at this stage.

Describe the main design/architecture of your solution
When mTLS (or TLS, i.e., without client authentication) is enabled, the required configuration will be passed along to the vmware/go-ipfix library to configure the IPFIX Exporter appropriately. This is already supported by the library, and we already leverage this to provide mTLS support between the Agent (FlowExporter) and the FlowAggregator (collector): https://github.com/vmware/go-ipfix/blob/5987b1a1cfbbdef46646fa1affedcc115d17bea4/pkg/exporter/process.go#L68C6-L79.
Besides adding the new configuration parameters, changes to this repository will be minimal.

Alternative solutions that you considered
N/A

Test plan
Include an e2e test with mTLS between the FlowAggregator and the test ipfix-collector.

@antoninbas antoninbas added area/flow-visibility/aggregator Issues or PRs related to Flow Aggregator kind/design Categorizes issue or PR as related to design. labels Mar 21, 2025
@antoninbas antoninbas self-assigned this Mar 21, 2025
@antoninbas antoninbas added this to the Antrea v2.4 release milestone Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/flow-visibility/aggregator Issues or PRs related to Flow Aggregator kind/design Categorizes issue or PR as related to design.
Projects
None yet
Development

No branches or pull requests

1 participant