authorityFilter

Description

Select exchange according to hostname and a port

Evaluation scope

Evaluation scope defines the timing where this filter will be applied.

{.alert .alert-info} ::: onAuthorityReceived This scope denotes the moment fluxzy is aware the destination authority. In a regular proxy connection, it will occur the moment where fluxzy parsed the CONNECT request. :::

YAML configuration name

authorityFilter

Settings

The following table describes the customizable properties available for this filter:

{.property-table .property-table-filter} ::: | Property | Type | Description | DefaultValue | | :------- | :------- | :------- | -------- | | port | int32 | The remote port | 0 | | pattern | string | The string pattern to search | | <<<<<<< HEAD | operation | exact | contains | startsWith | endsWith | regex | The search operation performed | 0 |

| operation | exact | contains | startsWith | endsWith | regex | The search operation performed | exact |

b5d51bd2a3f1870beb9607eaba46ac93d959bb15 | caseSensitive | boolean | true if the Search should be case sensitive | false | | inverted | boolean | Negate the filter result | false | :::

Example of usage

The following examples apply a comment to the filtered exchange

Select only request from host fluxzy.io at port 8080.

rules:
- filter:
    typeKind: AuthorityFilter
    port: 8080
    description: Authority (Host and port)
    pattern: fluxzy.io
    operation: Exact
  actions:
  - typeKind: ApplyCommentAction
    comment: filter was applied

Select any exchanges going to a subdomain of google.com at port 443.

rules:
- filter:
    typeKind: AuthorityFilter
    port: 443
    description: Authority (Host and port)
    pattern: google.com
    operation: EndsWith
  actions:
  - typeKind: ApplyCommentAction
    comment: filter was applied

.NET reference

View definition of AuthorityFilter for .NET integration.

See also

The following filters are related to this filter: