Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.4.0 #3579

Merged
merged 19 commits into from
Nov 9, 2023
Merged

Release 2.4.0 #3579

merged 19 commits into from
Nov 9, 2023

Conversation

sergei-maertens
Copy link
Member

Closes #3578

Let's see if we can get this properly tested and released without beta's/RC's in between.

Copy link

codecov bot commented Nov 8, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (22f4135) 95.97% compared to head (ffd35b0) 95.97%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3579      +/-   ##
==========================================
- Coverage   95.97%   95.97%   -0.01%     
==========================================
  Files         679      680       +1     
  Lines       21859    21888      +29     
  Branches     2524     2532       +8     
==========================================
+ Hits        20979    21006      +27     
- Misses        610      611       +1     
- Partials      270      271       +1     
Files Coverage Δ
src/openforms/__init__.py 100.00% <100.00%> (ø)
src/openforms/conf/base.py 90.86% <100.00%> (+0.03%) ⬆️
...s/create_csp_form_action_directives_from_config.py 100.00% <100.00%> (ø)
src/openforms/contrib/digid_eherkenning/utils.py 94.11% <90.47%> (-5.89%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sergei-maertens sergei-maertens force-pushed the release/2.4.0-beta.0 branch 3 times, most recently from f21a8ed to ae1956e Compare November 8, 2023 16:57
sergei-maertens and others added 15 commits November 9, 2023 11:24
While only allowing 'self' makes sense if the forms are only hosted on
our own backend, this breaks forms that are embedded on third party
domains. These domains need to be allow-listed in the CORS (and CSRF
trustlist) policy anyway, so we can use the explicit allow list as
a convenience 'automatic' configuration.

If this is not sufficient, at the infrastructure level the environment
variable 'CSP_EXTRA_FORM_ACTION' can be provided to add extra sources,
and as a last resort dynamic configuration through the admin interface
is possible.
This is so the configuration is run automatically on existing instances,
otherwise the lack of form-action directive values combined with our
new setting in 2.4 would prevent DigiD/eHerkenning login or payment,
unless the admins manually re-save the configuration the admin.

This is not manageable if you have many instances.
The amount of get_metadata calls is changed because we directly check the
metadata file now instead of fetching a potentially unconfigured
source.

Additionally, .env overrides for the CSP_FORM_ACTION setting can cause
weird local test failures, so we pin that setting the tests that make
assertions against the response header.
@sergei-maertens sergei-maertens marked this pull request as ready for review November 9, 2023 11:46
@sergei-maertens sergei-maertens merged commit 5282366 into master Nov 9, 2023
21 of 23 checks passed
@sergei-maertens sergei-maertens deleted the release/2.4.0-beta.0 branch November 9, 2023 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prepare release 2.4.0
2 participants