Code Monkey home page Code Monkey logo

cloudguard's Introduction

CloudGuard

The CloudGuard is the background assistant to LiftCrane. It is there to index the clusters, keep logs of actions towards them and assist in security scoped to the projects.

Environment Variables

Database

The CloudGuard currently uses PostgreSQL, setup the following variables to make it work. Also make sure the PostgreSQL has the database up and running. It will be populated once the Cloudguard starts up.

  • CLOUDGUARD_POSTGRES_HOST
  • CLOUDGUARD_POSTGRES_PORT
  • CLOUDGUARD_POSTGRES_USERNAME
  • CLOUDGUARD_POSTGRES_PASSWORD
  • CLOUDGUARD_POSTGRES_DATABASE

Azure

  • CLOUDGUARD_AKS_CLIENT_ID - The applications client ID if AKS API is needed
  • CLOUDGUARD_AKS_SECRET - The secret attached to the client ID
  • CLOUDGUARD_AKS_SUBSCRIPTION - The subscription in AKS being used for the clusters
  • CLOUDGUARD_AKS_RESOURCE_GROUP - The resource group where the AKS clusters will be stored

LDAP

Cloudguard supports LDAP, to setup please provide the following environment variables

  • CLOUDGUARD_LDAP_USERNAME - A service account to do lookups
  • CLOUDGUARD_LDAP_PASSWORD - A service account password
  • CLOUDGUARD_LDAP_NAMESPACE - Where to do the lookup, for instance "ou=Internal,ou=Users,o=myorg"
  • CLOUDGUARD_LDAP_ORGANIZATION - Which organization, for instance "ou=Users,o=myorg"
  • CLOUDGUARD_LDAP_URL - The URL where LDAP is located

Setting up a Kubernetes Project for Cloudguard

The CloudGuard tries to find namespaces associated with a project through a label called 'cloudguard-project', this must exist in the namespace for the cloudguard to know it's a valid project namespace. Example cloudguard-project=kron-project.

Roles decorator

´@projectRoles´ before an endpoint will make sure the user has the proper role for the endpoint, this requires the projectformatname to be present so the system knows which project is being addressed. To fully use this decorator the projectRolesGuard is needed.

´@projectRoles['edit', 'admin']´ for instance will give access to users having the edit or admin role to an endpoint.

cloudguard's People

Contributors

undrium avatar

Stargazers

Rikard Liljesand avatar

Watchers

James Cloos avatar  avatar

Forkers

rliljesand

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.