| commit | dd103c17a76b6dc456918bf609a083f457b75c54 | [log] [tgz] |
|---|---|---|
| author | Roger Tawa <[email protected]> | Tue Aug 22 18:56:49 2023 |
| committer | GitHub <[email protected]> | Tue Aug 22 18:56:49 2023 |
| tree | 8c50a145fcf82f21c0d0f34d12e591132c0e4b49 | |
| parent | 8d5118720805fdce0dd3ee2999c964501de4532c [diff] |
Delay per request. (#101) Add ability to specify a response delay per request. For text and file requests, the body to be scanned needs to have the string "delay=x" where x is the delay in seconds. For print requests, the URL should have a parameter of the form "delay=x". To test, run the demo agent as follows: agent --user --queued Run the demo client as follows (sends two requests, one whose response is delayed 7 seconds, the other not delyaed): browser --user --threaded "allow delay=7" "block" Test print use cases with chrome. This commit includes some tiddying up of the output in the demo agent. It also includes a fix in the demo client that assumed responses were sent in the same order as the requests. Co-authored-by: Roger Tawa <[email protected]>
The Google Chrome Content Analysis Connector provides an official mechanism allowing Data Loss Prevention (DLP) agents to more deeply integrate their services with Google Chrome.
DLP agents are background processes on managed computers that allow enterprises to monitor locally running applications for data exfiltration events. They can allow/block these activities based on customer defined DLP policies.
This repository contains the SDK that DLP agents may use to become service providers for the Google Chrome Content Analysis Connector. The code that must be compiled and linked into the content analysis agent is located in the agent subdirectory.
A demo implementation of a service provider is located in the demo subdirectory.
The code that must be compiled and linked into Google Chrome is located in the browser subdirectory.
The Protocol Buffer serialization format is used to serialize messages between the browser and the agent. The protobuf definitions used can be found in the proto subdirectory.
This SDK depends on Google Protocol Buffers version 3.18 or later. It may be installed from Google's download page for your developement platform. It may also be installed using a package manager.
The included prepare_build scripts use the Microsoft vcpkg package manager to install protobuf. vcpkg is available on all supported platforms.
The following must be installed on the computer before building the demo:
realpath shell tool, available in the coreutils package. In Debian-based distributions use sudo apt intall coreutils. In Red Hat distributions use sudo yum install coreutils.brew install cmake coreutils pkg-config googletest or an equivalent setupFirst get things ready by installing required dependencies:
$SDK_DIR/prepare_build <build-dir>
where <build-dir> is the path to a directory where the demo will be built. By default, if no argument is provided, a directory named build will be created in the project root. Any output within the build/ directory will be ignored by version control.
prepare_build performs the following steps:
To build the demo run the command cmake --build <build-dir>.
To build the protocol buffer targets run the command cmake --build <build-dir> --target proto