40 releases

0.30.15 Nov 18, 2024
0.30.10 Aug 28, 2024
0.30.7 Jul 3, 2024
0.29.10 Mar 12, 2024
0.1.13 Nov 15, 2022

#384 in HTTP server

Download history 7/week @ 2024-08-12 127/week @ 2024-08-19 145/week @ 2024-08-26 183/week @ 2024-09-16 16/week @ 2024-09-23 8/week @ 2024-09-30 2/week @ 2024-10-28 149/week @ 2024-11-18 5/week @ 2024-11-25

154 downloads per month

MIT license

55KB
1.5K SLoC


GraphQL for Platform Teams
Home · Docs · Issues · Slack

Overview

Gain instant monitoring and protection into GraphQL APIs. Unblock platform teams and accelerate GraphQL adoption. Inigo's platform integration offers GraphQL Security, Analytics, Rate-limiting, Access Control and more.

This package is the Inigo plugin for the Apollo Rust Router

Integration

  1. Import the Inigo library in your Cargo.toml
[dependencies]
inigo-rs = "0.30.10"
  1. Register the plugin
use apollo_router::register_plugin;
use inigo_rs::registry::InigoRegistry;
use inigo_rs::Middleware;

register_plugin!("inigo", "middleware", Middleware);

fn main() {
    // Initialize the Inigo Registry and start the Apollo Router
    match InigoRegistry::new(None).and(apollo_router::main()) {
        Ok(_) => {}
        Err(e) => {
            eprintln!("{}", e);
            std::process::exit(1);
        }
    }
}
  1. Configure the plugin
plugins:
  inigo.middleware:
    token: "your-inigo-service-token"
  1. Placed a copy of Inigo lib file in the docker and set this env variable. For example:
INIGO_LIB_PATH=/inigo-linux-amd64.so

Documentation

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

License

Distributed under the MIT License.

Dependencies

~194MB
~4M SLoC