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

Filter chain #155

Draft
wants to merge 20 commits into
base: main
Choose a base branch
from
Draft

Filter chain #155

wants to merge 20 commits into from

Conversation

stoader
Copy link
Contributor

@stoader stoader commented Apr 3, 2023

Description

Expose the list of network filter names and their configuration that is matched when:

  • a listener accept an incoming connection
  • a tcp or http client workload connects to a server workload

This allows code built in top of the ads package to dynamically query and then instantiate the necessary network filters the inbound/outbound traffic should go through.

New API endpoint has been introduced:

  • ListenerProperties.NetworkFilters(...NetworkFilterSelectOption) ([]NetworkFilter, error)
  • ClientProperties.NetworkFilters(...NetworkFilterSelectOption) ([]NetworkFilter, error)

The filter chain is matched based on various properties such as destination port, destination IP, filter type etc which can be provided through the NetworkFilterSelectOption arguments.

Note: in case of ClientProperties.NetworkFilters the destination port and IP is added automatically to the matching criteria as that information is available in the ClientProperties struct.

Type of Change

  • Bug Fix
  • New Feature
  • Breaking Change
  • Refactor
  • Documentation
  • Other (please describe)

@waynz0r waynz0r force-pushed the filter_chain branch 2 times, most recently from 5f07e9c to c25ded8 Compare June 27, 2023 20:43
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