Skip to main content

Envoy Proxy control-plane written in Python

Project description

sovereign

Mission statement

This project implements a JSON control-plane based on the envoy data-plane-api

The purpose of sovereign is to supply downstream envoy proxies with dynamic configuration.

Mechanism of Operation

Sovereign allows you to define templates that represent each resource type provided by Envoy. For example, clusters, routes, listeners, secrets, extension_configs, etc.

In order to enrich the templates with data, Sovereign has ways of polling data out-of-band which it then includes as variables that can be accessed within the templates.

This allows Sovereign to provide configuration to Envoy that changes over time depending on the data sources, without needing to redeploy the control-plane.

Sovereign provides some built-in ways of polling data (such as over HTTP, or on-disk) but also exposes extension points, allowing you to write your own plugins in Python.

Support

Submit new issues here

If you're unable to submit an issue on Bitbucket, send an email to vsyrakis@atlassian.com

Release

See [RELEASE.md]

Roadmap

  • Performance improvements
  • Data persistence
  • Push API (versus polling)
  • Client for Sovereign
  • gRPC

Requirements

  • Python 3.8+

Installation

pip install sovereign

Documentation

Read the docs here!

Local development

Requirements

  • uv
  • Docker
  • Docker-compose

Installing dependencies for dev

Dependencies and creation of virtualenv is handled by uv

uv sync
uv venv activate
uv run <command>

Running locally

Running the test env

make run

Running the test env daemonized

make run-daemon

Pylint

make lint

Unit tests

make unit

Acceptance tests

make run-daemon acceptance

Contributors

Pull requests, issues and comments welcome. For pull requests:

  • Add tests for new features and bug fixes
  • Follow the existing style
  • Separate unrelated changes into multiple pull requests

See the existing issues for things to start contributing.

For bigger changes, make sure you start a discussion first by creating an issue and explaining the intended change.

Atlassian requires contributors to sign a Contributor License Agreement, known as a CLA. This serves as a record stating that the contributor is entitled to contribute the code/documentation/translation to the project and is willing to have it used in distributions and derivative works (or is willing to transfer ownership).

Prior to accepting your contributions we ask that you please follow the appropriate link below to digitally sign the CLA. The Corporate CLA is for those who are contributing as a member of an organization and the individual CLA is for those contributing as an individual.

License

Copyright (c) 2018 Atlassian and others. Apache 2.0 licensed, see LICENSE.txt file.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sovereign-1.0.0b208.tar.gz (133.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sovereign-1.0.0b208-py3-none-any.whl (163.5 kB view details)

Uploaded Python 3

File details

Details for the file sovereign-1.0.0b208.tar.gz.

File metadata

  • Download URL: sovereign-1.0.0b208.tar.gz
  • Upload date:
  • Size: 133.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for sovereign-1.0.0b208.tar.gz
Algorithm Hash digest
SHA256 6034341951d5974d19cce6bf392244e3e9798168e4774c2b4771200ec44dea63
MD5 0ec62470feb688785645dbfe7d979286
BLAKE2b-256 83ebc25102a7fdf571793ee0c6f08e24aa70c0034510fe13c62d4fab3c11d928

See more details on using hashes here.

File details

Details for the file sovereign-1.0.0b208-py3-none-any.whl.

File metadata

  • Download URL: sovereign-1.0.0b208-py3-none-any.whl
  • Upload date:
  • Size: 163.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for sovereign-1.0.0b208-py3-none-any.whl
Algorithm Hash digest
SHA256 b069923e60c62ee9ed373e742eb020213be788f2261503044f29c0923398877c
MD5 fcef2ce85380b6282926c6c19b14b20f
BLAKE2b-256 3600cbcd6bc9661d56ae4c59c90a135917552e6e4f07a2fca2c3b058b9d5ba3e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page