Review main Merged

80756[BUGFIX] Replace CSP mutation mode extend by inherit & append

Oliver Hader CR +2 V +2 Normal +167 −55 updated 10/26/23, 08:31

Commit message

MutationMode::Extend has some ambiguity when being invoked
multiple times on modified ancestor source collections.
This change introduces the new MutationMode::InheritOnce,
MutationMode::InheritAgain and MutationMode::Append.

The implicit behavior of MutationMode::Extend changes from the
combination of MutationMode::InheritAgain + MutationMode::Append
to MutationMode::InheritOnce + MutationMode::Append to avoid
side effects with more configurations modifying the policy.

Static mutations loaded from ContentSecurityPolicies.php are
ordered accordoring to the packages dependency hierarchy. That
is the reason, the configuration from ext:core had to be moved
to both ext:backend and ext:frontend.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 7