GithubHelp home page GithubHelp logo

isabella232 / firewall-logger-agent Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tritondatacenter/firewall-logger-agent

0.0 0.0 0.0 182 KB

Userland cloud firewall logging daemon

License: Mozilla Public License 2.0

Makefile 3.26% Rust 82.97% Shell 13.77%

firewall-logger-agent's Introduction

This repository is part of the Joyent Triton project. See the contribution guidelines and general documentation at the main Triton project page.

Triton Firewall Logger Agent

The firewall-logger-agent (cfwlogd) is a userland daemon that is responsible for translating firewall events into newline separated json logs. It does so by attaching to the kernel device found at /dev/ipfev on a SmartOS system and reading in a buffer of bytes. Cfwlogd is then responsible for parsing the buffer into cloud firewall (cfw) logs that will be serialized out to disk. It is then the job of hermes to upload these logs into the customer's manta storage.

For more information see rfd-163

Development

In order to build firewall-logger-agent you will need a development zone that has rust 1.33. The component is built by a 2019Q4 image but it is also possible to use 2018Q4 which is an LTS release and also contains rust 1.33.

Debug build

This will build a debug build with less optimization but faster build times.

cargo build

Release build

This will build a release build that generally takes much longer to compile but results in much faster code. This is what is actually deployed. It's worth noting that .cargo/config and Cargo.toml include some extra options such as requiring frame pointers and including debug symbols which are applied in this mode.

cargo build --release

Test

To run the included tests run the following from the top level directory:

cargo test

One can also run just the individual tests per crate in the workspace by first changing into the subcrate's directory.

Documentation

Docs can be generated by running:

cargo doc

Linting / Formatting

This project is using the standard rust style guidelines and one should run the following to have formatting applied automatically:

cargo fmt

It's also nice to run the rust clippy tool which will catch a bunch of lints and common mistakes that generally improve the rust code.

cargo clippy

License

"Triton Firewall Logger" is licensed under the Mozilla Public License version 2.0. See the file LICENSE.

firewall-logger-agent's People

Contributors

papertigers avatar trentm avatar cburroughs avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.