Commit 4dd276a
authored
Version Packages (#7609)
This PR was opened by the [Changesets
release](https://github.com/changesets/action) 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 main, this PR will
be updated.
# Releases
## @apollo/[email protected]
### Patch Changes
- [#7604](#7604)
[`aeb511c7d`](aeb511c)
Thanks [@renovate](https://github.com/apps/renovate)! - Update
`graphql-http` dependency
-
[`0adaf80d1`](0adaf80)
Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Address
Content Security Policy issues
The previous implementation of CSP nonces within the landing pages did
not take full advantage of the security benefit of using them. Nonces
should only be used once per request, whereas Apollo Server was
generating one nonce and reusing it for the lifetime of the instance.
The reuse of nonces degrades the security benefit of using them but does
not pose a security risk on its own. The CSP provides a defense-in-depth
measure against a _potential_ XSS, so in the absence of a _known_ XSS
vulnerability there is likely no risk to the user.
The mentioned fix also coincidentally addresses an issue with using
crypto functions on startup within Cloudflare Workers. Crypto functions
are now called during requests only, which resolves the error that
Cloudflare Workers were facing. A recent change introduced a
`precomputedNonce` configuration option to mitigate this issue, but it
was an incorrect approach given the nature of CSP nonces. This
configuration option is now deprecated and should not be used for any
reason since it suffers from the previously mentioned issue of reusing
nonces.
Additionally, this change adds other applicable CSPs for the scripts,
styles, images, manifest, and iframes that the landing pages load.
A final consequence of this change is an extension of the
`renderLandingPage` plugin hook. This hook can now return an object with
an `html` property which returns a `Promise<string>` in addition to a
`string` (which was the only option before).
- Updated dependencies
\[[`0adaf80d1`](0adaf80)]:
- @apollo/[email protected]
## @apollo/[email protected]
### Patch Changes
-
[`0adaf80d1`](0adaf80)
Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Address
Content Security Policy issues
The previous implementation of CSP nonces within the landing pages did
not take full advantage of the security benefit of using them. Nonces
should only be used once per request, whereas Apollo Server was
generating one nonce and reusing it for the lifetime of the instance.
The reuse of nonces degrades the security benefit of using them but does
not pose a security risk on its own. The CSP provides a defense-in-depth
measure against a _potential_ XSS, so in the absence of a _known_ XSS
vulnerability there is likely no risk to the user.
The mentioned fix also coincidentally addresses an issue with using
crypto functions on startup within Cloudflare Workers. Crypto functions
are now called during requests only, which resolves the error that
Cloudflare Workers were facing. A recent change introduced a
`precomputedNonce` configuration option to mitigate this issue, but it
was an incorrect approach given the nature of CSP nonces. This
configuration option is now deprecated and should not be used for any
reason since it suffers from the previously mentioned issue of reusing
nonces.
Additionally, this change adds other applicable CSPs for the scripts,
styles, images, manifest, and iframes that the landing pages load.
A final consequence of this change is an extension of the
`renderLandingPage` plugin hook. This hook can now return an object with
an `html` property which returns a `Promise<string>` in addition to a
`string` (which was the only option before).
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>1 parent 0adaf80 commit 4dd276a
File tree
7 files changed
+40
-26
lines changed- .changeset
- packages
- integration-testsuite
- server
7 files changed
+40
-26
lines changedThis file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
3 | 22 | | |
4 | 23 | | |
5 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
3 | 17 | | |
4 | 18 | | |
5 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments