All Projects → puppetlabs → relay-core

puppetlabs / relay-core

Licence: Apache-2.0 license
Kubernetes-based execution engine

Programming Languages

go
31211 projects - #10 most used programming language

Labels

Projects that are alternatives of or similar to relay-core

Django Graphql Auth
Django registration and authentication with GraphQL.
Stars: ✭ 200 (+1233.33%)
Mutual labels:  relay
graphql-compose-relay
No description or website provided.
Stars: ✭ 29 (+93.33%)
Mutual labels:  relay
srtrelay
SRT relay server for distributing media streams to multiple clients.
Stars: ✭ 81 (+440%)
Mutual labels:  relay
Rescript Relay
Use Relay with ReasonML.
Stars: ✭ 214 (+1326.67%)
Mutual labels:  relay
EuNet
Peer to peer network solution for multiplayer games.
Stars: ✭ 109 (+626.67%)
Mutual labels:  relay
relay-helpers
Helpers to simplify and enhance Relay (https://facebook.github.io/relay/)
Stars: ✭ 19 (+26.67%)
Mutual labels:  relay
Graphql.js
A Simple and Isomorphic GraphQL Client for JavaScript
Stars: ✭ 2,206 (+14606.67%)
Mutual labels:  relay
Three-Factor-Security-Door
What do you get when you mix a Raspberry Pi, a MySQL database, an RFID reader, an LCD touchscreen, a relay switch, an electronic door strike and a Twilio SMS account?
Stars: ✭ 49 (+226.67%)
Mutual labels:  relay
universal-react-relay-starter-kit
A starter kit for React in combination with Relay including a GraphQL server, server side rendering, code splitting, i18n, SEO.
Stars: ✭ 14 (-6.67%)
Mutual labels:  relay
azure-relay-dotnet
☁️ .NET Standard client library for Azure Relay Hybrid Connections
Stars: ✭ 35 (+133.33%)
Mutual labels:  relay
Awesome Relay
Awesome resources for Relay
Stars: ✭ 246 (+1540%)
Mutual labels:  relay
btc-relay-solidity
Bitcoin Light Client on Ethereum
Stars: ✭ 30 (+100%)
Mutual labels:  relay
Relay.swift
Relay for GraphQL, ported to Swift and SwiftUI
Stars: ✭ 58 (+286.67%)
Mutual labels:  relay
Relay Compiler Language Typescript
A language plugin for Relay that adds TypeScript support, including emitting type definitions.
Stars: ✭ 201 (+1240%)
Mutual labels:  relay
ssocks
sSocks fork for windows support; original: https://sourceforge.net/projects/ssocks/
Stars: ✭ 141 (+840%)
Mutual labels:  relay
Relay Workshop
Material for my Relay Workshop
Stars: ✭ 197 (+1213.33%)
Mutual labels:  relay
react-relay-example
Example project how to use React, Relay and TypeScript
Stars: ✭ 27 (+80%)
Mutual labels:  relay
azure-relay
☁️ Azure Relay service issue tracking and samples
Stars: ✭ 81 (+440%)
Mutual labels:  relay
apollo-federation-relay
A demo of Apollo Federation and global Node resolution
Stars: ✭ 44 (+193.33%)
Mutual labels:  relay
flipper-plugin-relay-devtools
Flipper plugin for Relay devtools
Stars: ✭ 26 (+73.33%)
Mutual labels:  relay

Relay Core

This repository contains a Kubernetes-based execution engine for running workflows or processing webhook triggers.

Installation

kustomize build manifests | kubectl apply -f -
kustomize build examples/install | kubectl apply -f -

Requirements

Components

Operator

The Relay operator is responsible for reconciling the Relay custom resource definitions (CRDs). It is built using controller-runtime, although it does not use a higher-level framework like Kubebuilder or Operator SDK.

The entry point for the operator is in cmd/relay-operator.

Resources

API Version Kind Description
relay.sh/v1beta1 Run Runs the defined workflow using a Tekton pipeline
relay.sh/v1beta1 Tenant Defines event emission and namespace configuration for objects attached to it
relay.sh/v1beta1 WebhookTrigger Creates Knative services with a given container configuration and tenant to handle webhook requests and emit events
relay.sh/v1beta1 Workflow Defines a workflow using the given container configurations and dependencies

Metadata API

The metadata API provides runtime information to a pod running under the supervision of the Relay operator.

The entry point for the metadata API is in cmd/relay-metadata-api.

Endpoints

Requests to the metadata API are always authenticated. In production mode, we use the source IP of the request to look up an annotation containing an encrypted token that grants access to the resources for that pod. Once authenticated, the following endpoints are available:

Method Path Scope Description
GET /conditions Any Resolves any conditions specified in the when clause of a container specification
POST /events Triggers Emits a new event using the configure trigger event sink of the pod's tenant
PUT /outputs/:name Steps Sets the output with the given name
GET /outputs/:step_name/:name Steps Retrieves the value of the output with the given step name and output name
GET /secrets/:name Any Retrieves the value of the secret with the given name
GET /spec Any Retrieves the entire specification associated with this container or a subset of the specification described by the given language (lang) and expression (q) query string parameters
GET /state/:name Any Retrieves the value of the internal state variable with the given name

Testing

To test the metadata API without deploying it in a live environment, you can run it using a sample configuration. A selection of sample configurations are provided in the examples/sample-configs directory.

You can specify a JWT signing key for authenticating requests explicitly using the RELAY_METADATA_API_SAMPLE_HS256_SIGNING_KEY environment variable. If not specified, the metadata API process will generate and print one when it starts up.

For example:

$ go build -o relay-metadata-api ./cmd/relay-metadata-api
$ export RELAY_METADATA_API_SAMPLE_CONFIG_FILES=examples/sample-configs/simple.yaml
$ ./relay-metadata-api &
[...] created new HMAC-SHA256 signing key     key=[...]
[...] generated JWT for step                  run-id=1234 step-name=foo token=eyJhbGciOiJIUzI1NiJ9.[...]
[...] listening for metadata connections      addr=0.0.0.0:7000
$ curl -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.[...]' http://localhost:7000/spec | jq .
{
  "value": {
    "aws": {
      "accessKeyID": "AKIASAMPLEKEY",
      "secretAccessKey": "6bkpuV9fF3LX1Yo79OpfTwsw8wt5wsVLGTPJjDTu"
    },
    "foo": "bar"
  },
  "unresolvable": {},
  "complete": true
}

Contributing

See CONTRIBUTING.md for more information on how to contribute to this project.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].