Skip to content

Antivir-Related Get-Request support #296

@Vaphen

Description

@Vaphen

Kaspersky Antivir blocks first message of event streams with default settings - Get-Request should be supported
We recently started to incorporate Featurehub into our product and noticed that some of our customers had problems with their antivirus software. I picked Kaspersky as an example, but there are several tickets regarding similar issues with sse and different antivirus software.

Using kaspersky, the first SSE message is always held back until the second message arrives. Only then, both of them are passed to the client. For featurehub, this can take up to ~60 sec. Every website that depends on configuration from featurehub is therefore unusable.

This can be reproduced with activated Kaspersky Internet Security by opening the service's URL (.../features/default/...). For reproduction, you can download a demo version here for free.

Firefox, Chrome, and Safari, as well as simple curl requests, are affected since the antivirus blocks the messages on the network layer.

Because this is a general problem using featurehub on an enduser's browser, an alternative should be offered.
I haven't found any documentation about getting the configuration of featurehub without using an event-stream. If this is already possible, please share a link to the documentation.

Provide a GET-endpoint to fetch the environment configurations
My idea was to provide a simple GET-endpoint that returns a JSON value with the configuration, similar to the features-message. The event-stream can then be used as an additional feature for live updates if needed.

If you have any other ideas, I would be happy to discuss possible alternatives.

Alternatives
Having different anti-virus companies change their inspection strategy seems impossible to me. Therefore, I think a solution must be provided on the side of featurehub.

Additional context
I've tested that Kaspersky blocks (or better: buffers) the first message of all Event-Streams. Depending on the use-case, this may be no big issue but with live configuration, this is a major problem.
For reproduction: this issue only occurs if an external event source is called. If the event source is hosted on your own machine (127.0.0.1), Kaspersky won't intervene.
For windows, the setting causing the issue is the following (sorry, only got a german version). After disabling the checkbox, everything works fine again.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions