
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
www.commemorateforus.life/nlachfr/bifrost
Advanced tools
This project is still in alpha: APIs should be considered unstable and likely to change.
Bifrost is a reflective protobuf router and reverse proxy. It uses your protobuf definitions for dynamically generating the gateway and is able to check input based on user-defined rules (see protoc-gen-cel-validate for more details regarding rules).
It features :
gRPC, gRPC-web and connect protocols (binding and proxying)For installing bifrost, you can simply run the go install:
$ go install github.com/nlachfr/bifrost/cmd/bifrost
The binary will be placed in your $GOBIN location.
In order to use the gateway, you must provided a configuration file. It will allows you to :
All the configuration fields are specified in the bifrost.gateway.Configuration message specification.
servers:
- listen:
- 127.0.0.1:8888
upstreams:
'*':
address: https://demo.connect.build
protocol: grpc
files:
sources:
- proto/*.proto
imports:
- "."
validate:
rule:
servicerules:
buf.connect.demo.eliza.v1.ElizaService:
rule:
programs:
- expr: 'attribute_context.request.headers["ok"] == "ok"'
connect.ping.v1.PingService:
rule:
programs:
- expr: 'attribute_context.request.headers["ok"] == "ok"'
$ bifrost -config ./config.yml
FAQs
Unknown package
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.