-
Notifications
You must be signed in to change notification settings - Fork 272
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
AWS SigV4 signing for Apollo Connectors #6144
Conversation
✅ Docs Preview ReadyNo new or changed pages found. |
why is this done under the connectors configuration and not under the authentication configuration? We can't duplicate the entire configuration under connectors, that will make a confusing UX. IIRC one of the issues here is that the subgraph name is generated from the source name and other parts from the directive, and that won't make sense for users. So here's a thing that could be done here: extend the router/apollo-router/src/configuration/subgraph.rs Lines 16 to 88 in 871c3c7
That type could then be used to gradually enable plugins to support connectors |
@Geal - all of the connectors settings so far are under The internal subgraph name is a temporary artifact, and not exposed to customers. The current per-source settings, including the ones in this PR, go under the actual name of the subgraph containing the Connector. So rather than a wrapper type, I think However, I'm not sure Presumably any Connectors settings under Another issue this raises is whether a plugin would want to have settings that apply across all connectors, which would require duplicating the pattern for
|
We had some discussion around this, and have a design where the |
Allow AWS SigV4 signing for Apollo Connectors requests. This allows connectors to invoke any AWS service through its HTTP API. Signing options can be configured per Connectors source.
Example configuration:
Other changes:
$context
variable inapply_with_vars
Note that tests are currently failing due to an unrelated dependency issue.
Checklist
Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.
Exceptions
Notes
Footnotes
It may be appropriate to bring upcoming changes to the attention of other (impacted) groups. Please endeavour to do this before seeking PR approval. The mechanism for doing this will vary considerably, so use your judgement as to how and when to do this. ↩
Configuration is an important part of many changes. Where applicable please try to document configuration examples. ↩
Tick whichever testing boxes are applicable. If you are adding Manual Tests, please document the manual testing (extensively) in the Exceptions. ↩