Giter VIP home page Giter VIP logo

gevulot's Introduction

image

Gevulot — a PostgreSQL proxy for masking sensitive data

Gvulot (Hebrew: גְּבוּלוֹת, lit. "Borders")

Gevulot is a TCP proxy that sits between your PostgreSQL database and client and proxies data back and forth. It listens to all messages sent from database to the client and provides a mechanism for users to modify data in-transit and before received by the client. The main purpose of Gevulot is to mask personally identifiable information sent to clients.

image

Usage

To start the Gevulot:

gevulot

(by default it will load gevulot.toml from the current directory)

If you need to specify config path:

gevulot --config=/path/to/config.toml

For help:

gevulot --help

Architecture

CSP view:

image

Dispatcher

Dispatcher is responsible for processing messages from a database to a client and vice versa. PostgreSQL protocol has deterministic message flow except when it doesn't :(

Following messages can arrive at any time:

  • NoticeResponse
  • ParameterStatus
  • NotificationResponse

To simplify the logic we use 2 parallel processing routines: one handles normal deterministic flow and another one — async out-of-order flow.

image

Configuration File Reference

Gevolut uses TOML format for its config.

Here is an example:

listen = "0.0.0.0:4242"
database-url = "postgres://localhost/hired_dev"

The listen field (mandatory)

Sets local address and port on which Gevolut will listen for client connections.

NB: UNIX sockets are not supported yet.

Example: listen = "0.0.0.0:4242"

The database-url field (mandatory)

Sets URL to use to connect to the database. Gevulot requires access to the proxied database to load metadata (i.e., OID mapping).

NB: If a client attempt to connect to a different database than specified here, the proxy will return an error.

Example: database-url = "postgres://localhost/hired_dev"

gevulot's People

Contributors

ddiachkov avatar

Watchers

 avatar

Forkers

bitless

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.