Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add grpc-web gateways for REST access to Journal and Shard APIs #400

Merged
merged 3 commits into from
Sep 23, 2024

Commits on Sep 16, 2024

  1. Configuration menu
    Copy the full SHA
    10db5fa View commit details
    Browse the repository at this point in the history
  2. add grpc-web gateways for REST access to Journal and Shard APIs

    Use the `github.com/grpc-ecosystem/grpc-gateway` project to
    automatically generate REST handlers for portions of the Journals
    and Shards gRPC services.
    
    Also implement a CORS wrapper with configurable allowed origins.
    Together these changes allow Gazette brokers and consumers to be
    directly queried by browsers in cross-origin contexts.
    
    Note that REST handlers automatically forward `Authorization: Bearer`
    tokens into their corresponding gRPC handlers, so authorization checks
    "just work".
    jgraettinger committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    90f91e3 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2024

  1. allow consumers to wrap the net.Listener to customize handling

    Allow consumers applications to provide a function which wraps around a
    raw net.Listener and a loaded *tls.Config, returning another
    net.Listener, in order to customize the manner in which net.Conn
    instances are accepted and built.
    jgraettinger committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    fc97491 View commit details
    Browse the repository at this point in the history