GithubHelp home page GithubHelp logo

ysawa0 / envoylint Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 1.0 29.92 MB

envoylint.com takes an Envoy config and validates it for you.

Home Page: https://envoylint.com

License: Apache License 2.0

JavaScript 70.44% HTML 6.14% CSS 5.00% Python 10.37% Shell 1.18% Makefile 2.51% Dockerfile 4.36%
envoyproxy servicemesh serverless aws-lambda envoy

envoylint's Introduction

envoylint

Netlify Status

envoylint.com takes an Envoy config and validates it for you.

Frontend

The frontend is a static React site deployed via Netlify. Netlify is synced to this repo.

The site calls the Lamba backend to do the config validation.

Run locally:

cd frontend
yarn install
yarn start

Backend

Deployed via Serverless Framework to AWS Lambda.

Each Lambda calls an Envoy binary in validate mode to check a config. The binary is stored in a Lambda Layer.

There is a Lambda Layer for each Envoy version.

Deploy to AWS

cd backend
npm install -g serverless
sls plugin install -n serverless-python-requirements
sls deploy --stage dev

How to get Envoy binary for Lambda Layer

docker run envoyproxy/envoy:v1.17.1
docker cp $(docker ps -q):/usr/local/bin/envoy .
# Convinence script can be used to the same effect:
# sh get_envoy_binary.sh 1.17.1

How to build config_load_check_tool for Lambda

Spin up a EC2 instance using Amazon Linux (t3a.xlarge or larger recommended for manageable build time and enough memory)

Then run

sudo yum update -y; sudo yum install git tmux -y; git clone https://github.com/envoyproxy/envoy.git
sudo amazon-linux-extras install docker -y; sudo service docker start; sudo usermod -a -G docker ec2-user
sudo yum groupinstall "Development Tools" -y

# Log out then log back in to apply usermod

cd envoy; tmux new; ./ci/run_envoy_docker.sh 'tail -f /dev/null'

# Docker exec into CI container then run
git clone https://github.com/envoyproxy/envoy.git; cd envoy
bazel build //test/tools/config_load_check:config_load_check_tool

envoylint's People

Contributors

ysawa0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

mertdaver

envoylint's Issues

Use envoy-contrib image

Feature request from a user:

One feature suggestion: since Envoy 1.20 the project now releases envoy-contrib images, which have a different set of extensions enabled. It would be great if the tool could validate also envoy-contrib configuration. It might even be a one-line fix if you don’t want separate validation for contrib and non-contrib images: just replace envoy image with envoy-contrib image, because envoy image is a subset of envoy-contrib image.

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.