honeydipper

module
v1.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2020 License: MPL-2.0

README

Honeydipper

CircleCI


Overview

A IFTTT style event-driven, policy-based orchestration system that, is tailored towards SREs and DevOps workflows, and has a pluggable open architecture. The purpose is to fill the gap between the various components used in DevOps operations, to act as an orchestration hub, and to replace the ad-hoc integrations between the components so that the all the integrations can also be composed as code.

The official web site is https://honeydipper.io

The documents and community repo references are also live at https://honeydipper.readthedocs.io/en/latest/

Design

Vision

Engineers often use various systems and components to build and deliver services based on software products. The systems and components need to interact with each other to achieve automation. There are usually integration solutions that when implemented the components and systems can operate seamlessly. However, the integrations are usually created or configured in ad-hoc fashion. When the number of systems/components increases, the number of integrations and complexity of the integrations sometimes become unmanageable. All the systems/components are entangled in a mesh like network (See below graph). A lot of redundant configuration or development work become necessary. It is so hard, sometimes even impossible, to switch from one tool to another.

Systems Ad-hoc Integration Mesh

Our vision is for Honeydipper to act as a central hub forming an ecosystem so that the various systems and components can be plugged in together and the integrations can be composed using rules, workflows and abstracted entities like systems, projects and organizations. With a centralized orchestration, redundant configurations and development work can be reduced or eliminated. With the abstraction layer, The underlying tools and solutions become interchangeable.

Systems orchestrated with Honeydipper

The core of Honeydipper is comprised of an event bus, and a rules/workflow engine. Raw events from various sources are received by corresponding event drivers, and then packaged in a standard format then published to the event bus. The rules/workflow engine picks up the event from the bus, and, based on the rules, triggers the actions or a workflow with multiple actions.

Dipper Daemon

Core Concepts

In order for users to compose the rules, a few abstract concepts are introduced:

  • Driver (Event)
  • Raw Event
  • System (Trigger): an abstract entity that groups dipper events and some configurations, metadata together
  • Dipper Event (DipperMessage): a data structure that contains information that can be used for matching rules and being processed following the rules
  • Rules: if some Dipper Event on some system happens, then start the workflow of actions on certain systems accordingly
  • Features: A feature is a set of functions that can be mapped to a running driver, for example, the eventbus feature is fulfilled by redisqueue driver
  • Services: A service is a group of capabilities the daemon provides to be able to orchestrate the plugged systems through drivers
  • Workflow: Grouping of the actions so they can be processed, sequentially, parallel, etc
  • Dipper Action (DipperMessage): a data structure that contains information that can be used for performing an action
  • System (Responder): an abstract entity that groups dipper actions, configurations, metadata together
  • Raw Action
  • Driver (Action)

As you can see, the items described above follow the order or life cycle stage of the processing of the events into actions. Ideally, anything between the drivers should be composable, while some may tend to focusing on making various systems, Dipper event/actions available, others may want to focus on rules, workflows.

Features
Embracing GitOps

Honeydipper should have little to no local configuration needed to be bootstrapped.  Once bootstrapped, the system should be able to pull configurations from one or more git repo. The benefit is the ease of maintenance of the system and access control automatically provided by git repo(s). The system needs to watch the git repos, one way or another, for changes and reload as needed. For continuous operation, the system should be able to survive when there is a configuration error, and should be able to continue running with an older version of the configuration.

Pluggable Architecture

Drivers make up an important part of the Honeydipper ecosystem. Most of the data mutations and actual work processes are handled by the drivers, including data decryption, internal communication, and interacting with external systems. Honeydipper should be able to extend itself through loading external drivers dynamically, and when configurations change, reload the running drivers hot or cold. There should be an interface for the drivers to delegate work to each other through RPCs.

Abstraction

As mentioned in the concepts, one of Honeydipper's main selling points is abstraction. Events, actions can be defined traditionally using whatever characteristics provided by a driver, but also can be defined as an extension of another event/action with additional or override parameters. Events and actions can be grouped together into systems where data can be shared across. With this abstraction, we can separate the composing of complex workflows from defining low level event/action hook ups. Whenever a low level component changes, the high level workflow doesn't have to change, one only needs to link the abstract events with the new component native events.

More information

Please find the main document index at https://honeydipper.readthedocs.io/en/latest/

To install, See Installation Guide.

For driver developers, please read this guide. Honeydipper driver developer's guide

To get started on developing. See How to setup local test environment.

TODO

  • Python driver library
  • API service
  • Dashboard webapp
  • Auditing/logging driver
  • State persistent driver
  • Repo jailing
  • RBAC

License

Honeydipper is licensed under the MPLv2 License.

Contributing

Thank you for your interest! Please refer to the Code of Conduct for guidance.

Directories

Path Synopsis
cmd
honeydipper
Package honeydipper is an event-driven, rule based orchestration platform tailor towards DevOps and system engineering workflows.
Package honeydipper is an event-driven, rule based orchestration platform tailor towards DevOps and system engineering workflows.
drivers
cmd/datadog-emitter
Package datadog-emitter enables Honeydipper to send metrics to datadog
Package datadog-emitter enables Honeydipper to send metrics to datadog
cmd/gcloud-dataflow
Package gcloud-dataflow enables Honeydipper to create and wait for dataflow jobs.
Package gcloud-dataflow enables Honeydipper to create and wait for dataflow jobs.
cmd/gcloud-kms
Package gcloud-kms enables Honeydipper to use secrets encrypted using gcloud KMS.
Package gcloud-kms enables Honeydipper to use secrets encrypted using gcloud KMS.
cmd/gcloud-storage
Package gcloud-storage enables Honeydipper to fetch gcloud storage bucket and file information
Package gcloud-storage enables Honeydipper to fetch gcloud storage bucket and file information
cmd/gcloud-storage/mocks
Package mock_main is a generated GoMock package.
Package mock_main is a generated GoMock package.
cmd/kubernetes
Package kubernetes enables Honeydipper to interact with Kubernete clusters.
Package kubernetes enables Honeydipper to interact with Kubernete clusters.
cmd/redispubsub
Package redispubsub enables Honeydipper to use redis to broadcast internal messages.
Package redispubsub enables Honeydipper to use redis to broadcast internal messages.
cmd/redisqueue
Package redisqueue enables Honeydipper to use redis queue as an eventbus.
Package redisqueue enables Honeydipper to use redis queue as an eventbus.
cmd/web
Package web enables Honeydipper to make outbound web requests.
Package web enables Honeydipper to make outbound web requests.
cmd/webhook
Package webhook enables Honeydipper to receive incoming webhook requests.
Package webhook enables Honeydipper to receive incoming webhook requests.
internal
config
Package config defines data structure and logic for loading and refreshing configurations for Honeydipper
Package config defines data structure and logic for loading and refreshing configurations for Honeydipper
daemon
Package daemon provides capability to execute the program as a daemon.
Package daemon provides capability to execute the program as a daemon.
workflow/mock_workflow
Package mock_workflow is a generated GoMock package.
Package mock_workflow is a generated GoMock package.
pkg
dipper
Package dipper is a library used for developing drivers for Honeydipper.
Package dipper is a library used for developing drivers for Honeydipper.
dipper/mock_dipper
Package mock_dipper is a generated GoMock package.
Package mock_dipper is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL