-
Notifications
You must be signed in to change notification settings - Fork 270
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
feat: redact subgraph errors #6344
base: dev
Are you sure you want to change the base?
Conversation
@Samjin: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/ |
✅ Docs Preview ReadyNo new or changed pages found. |
CI performance tests
|
93f33fe
to
248599c
Compare
Hey @Samjin I didn't take a look at the code yet but I already have some questions reading the description. It looks like you're renaming an existing feature. Is it backward compatible with the existing one ? We can't introduce breaking changes so I just would like to know if you introduced a migration or if you thoughts about backward compatibility and non breaking changes. It would also be great to have a comparison in PR's description to know how it was before and how it would be with your changes (config wise) |
I updated the description. In short, it's a breaking change. The intention to rename the plugin is to make subgraph's override clear. However we could also update to something like this if it has to be backward compatible. include_subgraph_errors:
all: false
redact_extensions_keys:
- "service"
- "exception"
subgraphs:
product: true # propagate error
reviews:
- "service" I do find |
Sorry, I just realized this maybe not a breaking change since it won't allow user to build if they don't update their explicit config. Also, the default behavior is the same as If this is correct, I can update the description later with more migration steps. |
@Samjin Not being able to run the router after upgrading the version without changing the configuration is considered as a breaking change for us |
This breaking change is to update
include_subgraph_errors
toredact_subgraph_errors
with additional blacklist/whitelist capabilities.Note that test cases are not fully updated yet. I'd like to get input from Apollo team regarding the config proposal.
Reasons we need this:
Configs
include_subgraph_errors
in router.yaml. However, it shouldn't affect default behavior as the new change will redact subgraph error message and error extensions by default.Before
After
There is no issue number yet.
Checklist
Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.
Exceptions
Note any exceptions here
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. ↩