release: on branch version-2.11#3324
Merged
dariuszkuc merged 1 commit intoversion-2.11from Nov 4, 2025
Merged
Conversation
✅ Docs preview has no changesThe preview was not built because there were no changes. Build ID: d93abcae2877af370453f5b4 |
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
40f576a to
22c2a09
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to version-2.11, this PR will be updated.
Releases
@apollo/composition@2.11.4
Patch Changes
Automatically propagate authorization requirements from implementing type to interface in the supergraph. (#3325)
Authorization requirements now automatically propagate from implementing types to interfaces during composition. Direct auth specifications on interfaces are no longer allowed. Interface access requires satisfying ALL implementing types' requirements (
ANDrule), with these requirements included in the supergraph for backward compatibility with older routers.Fix transitive auth requirements on
@requiresand@fromcontext(#3325)Adds new
postMergeValidationcheck to ensure that all fields that depends on data from other parts of the supergraph through@requiresand/or@fromContextdirectives explicitly specify matching@authenticated,@requiresScopesand/or@policyauth requirements, e.g.Restrict usage of auth directives on interfaces (#3325)
Restricts usage of
@authenticated,@policyand@requiresScopesfrom being applied on interfaces, interface objects and their fields.GraphQL spec currently does not define any interface inheritance rules and developers have to explicitly redefine all interface fields on their implementations. At runtime, GraphQL servers cannot return abstract types and always return concrete output types. Due to the above, applying auth directives on the interfaces may lead to unexpected runtime behavior as they won't have any effect at runtime.
Stricter merge rules for @requiresScopes and @Policy (#3325)
Current merge policies for
@authenticated,@requiresScopesand@policywere inconsistent.If a shared field uses the same authorization directives across subgraphs, composition merges them using
ORlogic. However, if a shared field uses different authorization directives across subgraphs composition merges them usingANDlogic. This simplified schema evolution, but weakened security requirements. Therefore, the behavior has been changed to always applyANDlogic to authorization directives applied to the same field across subgraphs.Since
@policyand@requiresScopesvalues represent boolean conditions in Disjunctive Normal Form, we can merge them conjunctively to get the final auth requirements. For example:This algorithm also deduplicates redundant requirements, e.g.
Updated dependencies [
d221ac04c3ee00a3c7a671d9d56e2cfa36943b49,7730c03e128be6754b9e40c086d5cb5c4685ac66,4bda3a498eba36e187dfd9ae673eca12d3f3502c,f3ab499eaf62b1a1c0f08b838d2cbde5accb303a,6adbf7e86927de969aedab665b6a3a8dbf3a6095,2a20dc38dfc40e0b618d5cc826f18a19ddb91aff]:@apollo/gateway@2.11.4
Patch Changes
d221ac04c3ee00a3c7a671d9d56e2cfa36943b49,7730c03e128be6754b9e40c086d5cb5c4685ac66,4bda3a498eba36e187dfd9ae673eca12d3f3502c,f3ab499eaf62b1a1c0f08b838d2cbde5accb303a,6adbf7e86927de969aedab665b6a3a8dbf3a6095,2a20dc38dfc40e0b618d5cc826f18a19ddb91aff]:@apollo/federation-internals@2.11.4
Patch Changes
Automatically propagate authorization requirements from implementing type to interface in the supergraph. (#3325)
Authorization requirements now automatically propagate from implementing types to interfaces during composition. Direct auth specifications on interfaces are no longer allowed. Interface access requires satisfying ALL implementing types' requirements (
ANDrule), with these requirements included in the supergraph for backward compatibility with older routers.Fix transitive auth requirements on
@requiresand@fromcontext(#3325)Adds new
postMergeValidationcheck to ensure that all fields that depends on data from other parts of the supergraph through@requiresand/or@fromContextdirectives explicitly specify matching@authenticated,@requiresScopesand/or@policyauth requirements, e.g.Fixed demand control validations (#3314)
Updated
@cost/@listSizevalidations to use correct federation spec to look them up in the schema.Restrict usage of auth directives on interfaces (#3325)
Restricts usage of
@authenticated,@policyand@requiresScopesfrom being applied on interfaces, interface objects and their fields.GraphQL spec currently does not define any interface inheritance rules and developers have to explicitly redefine all interface fields on their implementations. At runtime, GraphQL servers cannot return abstract types and always return concrete output types. Due to the above, applying auth directives on the interfaces may lead to unexpected runtime behavior as they won't have any effect at runtime.
Stricter merge rules for @requiresScopes and @Policy (#3325)
Current merge policies for
@authenticated,@requiresScopesand@policywere inconsistent.If a shared field uses the same authorization directives across subgraphs, composition merges them using
ORlogic. However, if a shared field uses different authorization directives across subgraphs composition merges them usingANDlogic. This simplified schema evolution, but weakened security requirements. Therefore, the behavior has been changed to always applyANDlogic to authorization directives applied to the same field across subgraphs.Since
@policyand@requiresScopesvalues represent boolean conditions in Disjunctive Normal Form, we can merge them conjunctively to get the final auth requirements. For example:This algorithm also deduplicates redundant requirements, e.g.
@apollo/query-graphs@2.11.4
Patch Changes
Fixes a bug where query planning may unexpectedly error due to attempting to generate a plan where a
@shareablemutation field is called more than once across multiple subgraphs. (#3304) (#3304)Updated dependencies [
d221ac04c3ee00a3c7a671d9d56e2cfa36943b49,7730c03e128be6754b9e40c086d5cb5c4685ac66,4bda3a498eba36e187dfd9ae673eca12d3f3502c,6adbf7e86927de969aedab665b6a3a8dbf3a6095,2a20dc38dfc40e0b618d5cc826f18a19ddb91aff]:@apollo/query-planner@2.11.4
Patch Changes
Fixes a bug where query planning may unexpectedly error due to attempting to generate a plan where a
@shareablemutation field is called more than once across multiple subgraphs. (#3304) (#3304)Updated dependencies [
d221ac04c3ee00a3c7a671d9d56e2cfa36943b49,7730c03e128be6754b9e40c086d5cb5c4685ac66,4bda3a498eba36e187dfd9ae673eca12d3f3502c,f3ab499eaf62b1a1c0f08b838d2cbde5accb303a,6adbf7e86927de969aedab665b6a3a8dbf3a6095,2a20dc38dfc40e0b618d5cc826f18a19ddb91aff]:@apollo/subgraph@2.11.4
Patch Changes
d221ac04c3ee00a3c7a671d9d56e2cfa36943b49,7730c03e128be6754b9e40c086d5cb5c4685ac66,4bda3a498eba36e187dfd9ae673eca12d3f3502c,6adbf7e86927de969aedab665b6a3a8dbf3a6095,2a20dc38dfc40e0b618d5cc826f18a19ddb91aff]:apollo-federation-integration-testsuite@2.11.4