I have developed two Netflix DGS GraphQL Microservices and Apollo Gateway on top of these two microservices to make them as an federated graphql. I have a client application that is trying to query both the graphql microservices. And both microservices have a unique API key. How do we assign API key for multiple microservices either from client or Apollo server ? When client queries for more than one microservices with API key, there is a chance of ignoring API key by server. Is there any best practices to handle API key management?
Querying GraphQL Microservice with API key?
485 Views Asked by Stella At
1
There are 1 best solutions below
Related Questions in GRAPHQL
- How to define Relay fragment for GraphQLList of GraphQLObjectType?
- relayjs: Attempted to add an ID already in GraphQLSegment:
- Authorization in GraphQL servers
- How does graphql-java library execute Relay requests?
- GraphQL or REST
- relayjs and graphql error: Error: "Node" expects field "id"
- unable to render nested props from Github's GraphQL
- Single-Page App Sharing Relay Variables
- Relay and ReactJS give an error when connecting to Github's GraphQL
- Why does Relay need a mutation id to reconcile GraphQL mutations?
- GraphQL mutation operation in single transaction
- Documenting GraphQL short-hand model
- How to build a GraphQL API on top of a Django/Elasticsearch/MySQL backend?
- How to get all user model with GraphQL
- How to fetch data with apollo and react native
Related Questions in APOLLO-SERVER
- Keep two values in sync when data changes
- In Apollo GraphQL, how do I setup a resolver to not loop values?
- Apollo: Required Shape of Server Response?
- GraphQL redirect when resolver throws error
- How to design the following resolver for GraphQL server?
- function with parameters inside an object
- Setting up auth0 with apollo server
- Apollo GraphQL: How to Set Up Secure Websockets?
- Apollo GraphQL: Setting Port for HTTPBatchedNetworkInterface?
- How do I represent Neo4j relationship properties in my Graphql Schema?
- Apollo resetStore is not working in Angular client
- How to run nodejs with apollo graphql server
- GraphQL nested query arguments?
- How to debug my really slow resolver connected to Firebase Realtime Database?
- Graphql playground stuck at loading when accessing my server in heroku
Related Questions in APOLLO-GATEWAY
- Mutation validation ids in input for entities from another service. GraphQL Apollo Federation
- Mutation between two microservices on Apollo Federation
- Apollo federation: Field/resolver that returns entities from two separate services that implement an interface
- Multiple ApolloServers needed to implement a gateway connecting to REST APIs?
- Apollo Federation (Gateway): how to send different "keys" to different implementing microservices?
- Apollo Federation: A valid schema couldn't be composed. The following composition errors were found: Syntax Error: Unexpected character: U+0130
- graphql federation -- gateway isn't forwarding RESPONSE headers
- How to achieve Asynchronous mutations using Apollo Gateway
- how to use apollo federation gateway with middleware
- Apollo - How to add a dynamic header for subgraph
- Authentication service with Apollo Gateway
- apollo-federation validate input field in another subgraph
- A valid schema couldn't be composed. The following composition errors were found in @apollo/gateway
- How do I apply a graphql-middleware to my Apollo Federation?
- Enable GraphQL subscriptions on Apollo Gateway server
Related Questions in NETFLIX-DGS
- Dataloader is using only recent context
- com.netflix.graphql.dgs:graphql-dgs-client version compatibility with spring boot 3.x
- How implements agregation function SUM in QueryDsl
- Graphql Inner and Left Join
- Propagate data from parent to data data loader DGS netflix
- In graphql what is difference between a `type query` and `extend type query`?
- Kotlin extensions for GraphQL
- Graphql : Get parent's parent source - getSource() in graphql java
- Netflix DGS Subscriptions
- Controller in DGS Netflix Graphql
- How to create a DGS GraphQL Subscription to an ActiveMQ Topic
- Dataloader for attributes that are not at top level does not work
- Netflix DGS - Connecting generated class foreign-key mapping
- How to avoid returning null in Apollo Federation GraphQL
- Generating projection using graphql file for DGS client
Related Questions in GRAPHQL-FEDERATION
- graphene federation causing dependency issue
- Spring Graphql Resolvers
- GraphQL Federation: How To Consume, Not Extend
- graphql federation -- gateway isn't forwarding RESPONSE headers
- GraphQL Federation: Is it possible to have multiple service contribute to a list/array result?
- query result composition problem in graphQL gateway
- Apollo Server Federation with graphql-shield
- Graphql federation vs schema stitching. When to pick one over the other
- Field can only be defined once graphql
- Federated GraphQL schema validation
- GraphQL Playground bootloop (Nestjs)
- How to use nest js guard with GraphQL file upload mutation?
- Graphql Federation: JS Testing Framwork
- Querying GraphQL Microservice with API key?
- cannot POST /graphql (404) error when running e2e test in jest (GraphQL Federation)
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Apollo Gateway has
buildServiceproperty which you can use to modify request behavior using standard callbacks likewillSendRequest.Using
willSendRequestyou can match service url and append API key accordingly:This way you can create some map where you'll have all services with its api keys listed, and then you'll be able to match url and api key in
willSendRequestcallback in a simple way.