Skip to content

🐛 fix(web-server): use X-Forwarded-Proto header for confirmation link scheme 🚑#9026

Merged
giancarloromeo merged 3 commits intoITISFoundation:masterfrom
giancarloromeo:fix/confirmation-link-https-scheme
Apr 14, 2026
Merged

🐛 fix(web-server): use X-Forwarded-Proto header for confirmation link scheme 🚑#9026
giancarloromeo merged 3 commits intoITISFoundation:masterfrom
giancarloromeo:fix/confirmation-link-https-scheme

Conversation

@giancarloromeo
Copy link
Copy Markdown
Contributor

@giancarloromeo giancarloromeo commented Apr 14, 2026

What do these changes do?

This pull request updates the confirmation link generation logic to correctly respect the X-Forwarded-Proto header, which is important when the service is running behind a proxy (like Traefik).

Important

Confirmation links were composed using the request.scheme and apparently they were removed in some emails.

image

Related issue/s

How to test

cd services/web/server
make install-dev
pytest -vv --pdb tests/unit/with_dbs/03/login/test_login_confirmation_service.py

Dev-ops

No changes.

@giancarloromeo giancarloromeo added this to the Etna milestone Apr 14, 2026
@giancarloromeo giancarloromeo self-assigned this Apr 14, 2026
@giancarloromeo giancarloromeo added the a:webserver webserver's codebase. Assigning the area is particularly useful for bugs label Apr 14, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.90%. Comparing base (7ccd41a) to head (4bd6d47).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9026      +/-   ##
==========================================
- Coverage   83.34%   82.90%   -0.45%     
==========================================
  Files        1633      791     -842     
  Lines       63445    36833   -26612     
  Branches      927      176     -751     
==========================================
- Hits        52878    30535   -22343     
+ Misses      10332     6248    -4084     
+ Partials      235       50     -185     
Flag Coverage Δ
integrationtests 64.09% <33.33%> (+0.01%) ⬆️
unittests 86.01% <100.00%> (+4.23%) ⬆️
Components Coverage Δ
pkg_aws_library ∅ <ø> (∅)
pkg_celery_library ∅ <ø> (∅)
pkg_dask_task_models_library ∅ <ø> (∅)
pkg_models_library ∅ <ø> (∅)
pkg_notifications_library ∅ <ø> (∅)
pkg_postgres_database ∅ <ø> (∅)
pkg_service_integration ∅ <ø> (∅)
pkg_service_library ∅ <ø> (∅)
pkg_settings_library ∅ <ø> (∅)
pkg_simcore_sdk 70.28% <ø> (-15.57%) ⬇️
agent ∅ <ø> (∅)
api_server ∅ <ø> (∅)
autoscaling ∅ <ø> (∅)
catalog ∅ <ø> (∅)
clusters_keeper ∅ <ø> (∅)
dask_sidecar ∅ <ø> (∅)
datcore_adapter ∅ <ø> (∅)
director ∅ <ø> (∅)
director_v2 78.91% <ø> (-12.77%) ⬇️
dynamic_scheduler ∅ <ø> (∅)
dynamic_sidecar 74.48% <ø> (+0.02%) ⬆️
efs_guardian ∅ <ø> (∅)
invitations ∅ <ø> (∅)
payments ∅ <ø> (∅)
resource_usage_tracker ∅ <ø> (∅)
storage ∅ <ø> (∅)
webclient ∅ <ø> (∅)
webserver 86.76% <100.00%> (+12.36%) ⬆️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7ccd41a...4bd6d47. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@giancarloromeo giancarloromeo marked this pull request as ready for review April 14, 2026 08:54
@giancarloromeo giancarloromeo changed the title 🐛 fix(web-server): use X-Forwarded-Proto header for confirmation link scheme 🐛 fix(web-server): use X-Forwarded-Proto header for confirmation link scheme 🚑 Apr 14, 2026
@sonarqubecloud
Copy link
Copy Markdown

@giancarloromeo giancarloromeo enabled auto-merge (squash) April 14, 2026 13:20
@giancarloromeo giancarloromeo merged commit 8311ef8 into ITISFoundation:master Apr 14, 2026
93 of 96 checks passed
giancarloromeo added a commit that referenced this pull request Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a:webserver webserver's codebase. Assigning the area is particularly useful for bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants