Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

fix(helmet): disable breaking headers #780

Merged
merged 1 commit into from
Jul 6, 2022
Merged

Conversation

JAdshead
Copy link
Contributor

@JAdshead JAdshead commented Jul 6, 2022

Description

Helmet@5 included breaking changes which were initially missed during the update and will have an impact on One App applications:

Breaking: helmet.crossOriginEmbedderPolicy is enabled by default
Breaking: helmet.crossOriginOpenerPolicy is enabled by default
Breaking: helmet.crossOriginResourcePolicy is enabled by default
Breaking: helmet.originAgentCluster is enabled by default

We should consider enabling these to be opt in (non breaking)or defaulting to more restrictive options with an opt out (breaking change)

crossOriginEmbedderPolicy
crossOriginOpenerPolicy
crossOriginResourcePolicy
originAgentCluster

Motivation and Context

Revert breaking changes.

How Has This Been Tested?

Test suite and running with locally served modules.

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation (adding or updating documentation)
  • Dependency update
  • Security update

Checklist:

  • My change requires a change to the documentation and I have updated the documentation accordingly.
  • These changes should be applied to a maintenance branch.
  • This change requires cross browser checks.
  • Performance tests should be ran against the server prior to merging.
  • This change impacts caching for client browsers.
  • This change impacts HTTP headers.
  • This change adds additional environment variable requirements for One App users.
  • I have added the Apache 2.0 license header to any new files created.

What is the Impact to Developers Using One App?

@github-actions
Copy link
Contributor

github-actions bot commented Jul 6, 2022

Size Change: 0 B

Total Size: 681 kB

ℹ️ View Unchanged
Filename Size
./build/app/app.js 165 kB
./build/app/app~vendors.js 386 kB
./build/app/runtime.js 7.07 kB
./build/app/service-worker-client.js 7.26 kB
./build/app/vendors.js 114 kB

compressed-size-action

@JAdshead JAdshead marked this pull request as ready for review July 6, 2022 17:20
@JAdshead JAdshead requested review from a team as code owners July 6, 2022 17:20
@Matthew-Mallimo Matthew-Mallimo requested a review from a team July 6, 2022 17:30
@JAdshead JAdshead merged commit 9cf7b0c into feature/v6 Jul 6, 2022
@JAdshead JAdshead deleted the fix/helmet-headers branch July 6, 2022 18:32
JAdshead added a commit that referenced this pull request Jul 19, 2022
JAdshead added a commit that referenced this pull request Jul 20, 2022
giulianok added a commit that referenced this pull request Sep 2, 2022
* feat(deps): upgrade to react 17

BREAKING CHANGE: Upgrade from React 16 to 17

* feat(server): drop node 12 support

BREAKING CHANGE: minimum supported node version is 16

* test(modules): fix dep resolution error

* chore(release): 6.0.0-rc.0

* chore(bundle-size-action): wider strip-hash capture

* chore(deps): update packages to latest compatible versions

* chore(babel): update packages

* chore(commitlint): update

* chore(rollup-plugins): update

* chore(acorn): uninstall

* chore(babel-preset-amex): update to 4

* chore(body-parser): update

* chore(dev-deps): update

* chore(holocron): update 1.3.0

* chore(redux): update 4.2.0

* chore(core-js): update 3.23.3

* chore(deps): run npm update

* chore(husky): update to 8.x

* chore(chalk): downgrade to non esm version

* chore(webdriverio): update 7.x

* feat(dockerfile): update node version to 16.15.1

* chore(deps): update supertest

* fix(node): set min version 16.15.1

* chore(deps): dedupe

* test(createRequestHtmlFragment): more reliable error message

* chore(jest): upgrade 28.1.2

* fix(helmet): disable breaking headers (#780)

* feat(deps): upgrade to react 17

BREAKING CHANGE: Upgrade from React 16 to 17

* feat(server): drop node 12 support

BREAKING CHANGE: minimum supported node version is 16

* test(modules): fix dep resolution error

* chore(release): 6.0.0-rc.0

* chore(bundle-size-action): wider strip-hash capture

* chore(deps): update packages to latest compatible versions

* chore(babel): update packages

* chore(commitlint): update

* chore(rollup-plugins): update

* chore(acorn): uninstall

* chore(babel-preset-amex): update to 4

* chore(body-parser): update

* chore(dev-deps): update

* chore(holocron): update 1.3.0

* chore(redux): update 4.2.0

* chore(core-js): update 3.23.3

* chore(deps): run npm update

* chore(husky): update to 8.x

* chore(chalk): downgrade to non esm version

* chore(webdriverio): update 7.x

* feat(dockerfile): update node version to 16.15.1

* chore(deps): update supertest

* fix(node): set min version 16.15.1

* chore(deps): dedupe

* test(createRequestHtmlFragment): more reliable error message

* chore(jest): upgrade 28.1.2

* fix(helmet): disable breaking headers (#780)

* chore(changelog): correct 5.15.0

* feat: running app through fastify

* chore: fixing unit tests

* chore: fixed unit testing

* fix: tests

* feat: added rate limiter in metrics api

* chore: minor adjustments

* feat: metrics server fastify migration

* refactor: migrated logging middleware to fastify as plugin

* test: added missing test for coverage

* refactor: added rate limit plugin

* refactor: converted hardcoded route into decorator

* refactor: removed health check middleware

* chore: feedback

Co-authored-by: Jamie King <jamie.king@aexp.com>
Co-authored-by: Jonny Adshead <JAdshead@users.noreply.github.com>
Co-authored-by: Jonathan Adshead <jonathan.adshead@aexp.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants