-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# [0.15.0] - 2022-08-09 ## ❗ BREAKING ❗ ### CORS: Deprecate newly-added `allow_any_header` option and return to previous behavior ([PR #1480](#1480)) We've re-considered and reverted changes we shipped in the last release with regards to how we handle the [`Access-Control-Request-Headers`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Request-Headers) *request* header and its corresponding [`Access-Control-Allow-Headers`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers) response header. We've reverted to the previous releases' behavior, including the removal of the recently-added `allow_any_header` option. The previous default behavior was to **reflect** the client's `Access-Control-Request-Headers` request header values back in the `Access-Control-Allow-Headers` response header. This previous behavior is in fact a common default behavior in other CORS libraries as well, including the [`cors`](https://npm.im/cors) Node.js package and we think it's worth keeping as it was previously, rather than requiring users to specify `allow_any_header` for the _majority_ of use cases. We believe this to be a safe and secure default that is also more user-friendly. It is not typically necessary to change this default behavior, but if you wish to allow a more specific set of headers, you can disable the default header reflection and specify a list of headers using the `allow_headers` option, which will allow only those headers in negotiating a response: ```yaml title="router.yaml" server: cors: allow_any_origin: true # Including this `allow_headers` isn't typically necessary (can be removed) but # will *restrict* the permitted Access-Control-Allow-Headers response values. allow_headers: - Content-Type - Authorization - x-my-custom-header ``` By [@o0Ignition0o](https://github.com/o0ignition0o) in #1480 ### Reference-counting for the schema string given to plugins ([PR #1462](#1462)) The type of the `supergraph_sdl` field of the `apollo_router::plugin::PluginInit` struct was changed from `String` to `Arc<String>`. This reduces the number of copies of this string we keep in memory, as schemas can get large. By [@SimonSapin](https://github.com/SimonSapin) in #1462 ## 🐛 Fixes ### Update span attributes to be compliant with the opentelemetry for GraphQL specs ([PR #1449](#1449)) Change attribute name `query` to `graphql.document` and `operation_name` to `graphql.operation.name` in spans. By [@bnjjj](https://github.com/bnjjj) in #1449 ### Configuration handling enhancements ([PR #1454](#1454)) Router config handling now: * Allows completely empty configuration without error. * Prevents unknown tags at the root of the configuration from being silently ignored. By [@BrynCooke](https://github.com/bryncooke) in #1454 ## 📚 Documentation ### CORS: Fix trailing slashes, and display defaults ([PR #1471](#1471)) The CORS documentation now displays a valid `origins` configuration (without trailing slash!), and the full configuration section displays its default settings. By [@o0Ignition0o](https://github.com/o0Ignition0o) in #1471 ### Add helm OCI example ([PR #1457](#1457)) Update existing filesystem based example to illustrate how to do the same thing using our OCI stored helm chart. By [@garypen](https://github.com/garypen) in #1457
- Loading branch information
1 parent
1c220d3
commit 1764cd6
Showing
19 changed files
with
116 additions
and
98 deletions.
There are no files selected for viewing
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "apollo-router-benchmarks" | ||
version = "0.14.0" | ||
version = "0.15.0" | ||
authors = ["Apollo Graph, Inc. <[email protected]>"] | ||
edition = "2021" | ||
license = "LicenseRef-ELv2" | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "apollo-router-scaffold" | ||
version = "0.14.0" | ||
version = "0.15.0" | ||
authors = ["Apollo Graph, Inc. <[email protected]>"] | ||
edition = "2021" | ||
license = "Elastic-2.0" | ||
|
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "apollo-router" | ||
version = "0.14.0" | ||
version = "0.15.0" | ||
authors = ["Apollo Graph, Inc. <[email protected]>"] | ||
edition = "2021" | ||
license = "Elastic-2.0" | ||
|
@@ -107,7 +107,7 @@ reqwest = { version = "0.11.11", default-features = false, features = [ | |
"json", | ||
"stream", | ||
] } | ||
router-bridge = { git = "https://github.com/apollographql/federation-rs.git", branch = "geal/defer" } | ||
router-bridge = { git = "https://github.com/apollographql/federation-rs.git", tag = "defer-alpha1" } | ||
schemars = { version = "0.8.10", features = ["url"] } | ||
sha2 = "0.10.2" | ||
serde = { version = "1.0.139", features = ["derive", "rc"] } | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "apollo-spaceport" | ||
version = "0.14.0" | ||
version = "0.15.0" | ||
authors = ["Apollo Graph, Inc. <[email protected]>"] | ||
edition = "2021" | ||
license = "Elastic-2.0" | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.