GithubHelp home page GithubHelp logo

kafka-ops / capua Goto Github PK

View Code? Open in Web Editor NEW
2.0 0.0 0.0 1.08 MB

A Kafka Policy engine that will help you validate your resources and artefact creations with style

License: MIT License

Open Policy Agent 1.05% ANTLR 19.10% Java 78.83% Shell 1.02%

capua's Introduction

Capua

A Kafka Policy engine that will help you validate your resources and artefact creations with style.

Important: This project is as of now in a very early stage of development, as of now, you can think about it more as of a proof of concept for an early idea.

Please if you have feedback and/or are willing to contribute this project to move further don't hesitate to open issues and/or contact me directly.

capua

Introduction

Have you ever had the problem to make sure the artefacts created in your Kafka deployment are all created according to the defined policies? Many have had and will have.

There exist a few possibilities and methods out there, however all have their pros and cons. With Capua, we intend to create a Policy engine (on the shoulders of known solutions) specialized for Kafka deployments.

As a user of Capua it will be possible for you to:

  • Define, in an easy, proven and known JSON like language, the policies your deployed "things" have to follow. The policy language is based on Rego, the Open Policy Agent language.
  • Verify the resource creation requests in multiple ways such as using a CLI, a Rest API, Container(s), etc.

Existing projects

Right now the project is divided like this:

  • core: The core engine definitions and language parser.
  • cli: The client interface
  • web: The rest api.

Example

$ curl -s --header "Content-Type: application/json" \                                                                    2.7.0
  --request POST \
  --data '{ "topics": [{ "name": "foo", "partitions": 3, "replicationFactor": 1, "config": {} },{ "name": "bar", "partitions": 3, "replicationFactor": 1, "config": {} }]}' \
  http://localhost:8080/policy/validate | jq .
{
  "topics": {
    "bar": {
      "allow": false,
      "deny": true
    },
    "foo": {
      "allow": true,
      "deny": false
    }
  }
}

Disclaimer

This project is currently in active development, contributions, ideas, etc are very much welcome, but please don't use it in production for now.

capua's People

Contributors

purbon avatar

Stargazers

 avatar  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.