Skip to content

Commit a4e7971

Browse files
authored
Merge branch 'internetstandards:main' into main
2 parents f604a2d + 078f415 commit a4e7971

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

Changelog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Change Log
22

3-
## 1.10 (in progress)
3+
## 1.10
44

55
_Compared to the latest 1.9 release._
66

@@ -44,6 +44,7 @@ docker network rm internetnl-prod_public-internet
4444
- The API version was updated to version 2.5.0.
4545
- The fields `caa_enabled`, `caa_errors`, `caa_recommendations`, `caa_records`, and `caa_found_on_domain` have been added
4646
([OpenAPI diff](https://github.com/internetstandards/Internet.nl/commit/cdc642c97f3ef00b4ef8ec7ff6ea4c5403c80978#diff-ccabca18cd3cc1ba3dd325e532acccf5d37c7be317a2966209b6e55b968d4890)).
47+
- The API report URL was [updated to use HTTPS](https://github.com/internetstandards/Internet.nl/issues/1704).
4748

4849
## 1.9.3
4950

checks/tasks/shared.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ def aggregate_subreports(subreports, report):
336336
# This is a small hack to allow running CAA along with all other tests in web,
337337
# i.e. once per webserver IP, while it only applies once per target domain.
338338
# Therefore, the tech table is flattened to only include one result, and no server column.
339-
if subreport[test_item]["name"] in ["web_caa", "mail_caa"]:
339+
if subreport[test_item]["name"] == "web_caa":
340340
report[test_item]["tech_data"] = [[row] for row in subtechdata]
341341
continue
342342
elif subreport[test_item]["tech_type"] == "table_multi_col" and isinstance(subtechdata, list):

docker/webserver/nginx_templates/app.conf.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ server {
177177
proxy_cache_key $scheme$host$uri$is_args$args$http_accept_language;
178178

179179
proxy_set_header REMOTE-USER $remote_user;
180+
180181
include /etc/nginx/conf.d/basic_auth.include;
181182
# set proxy_pass argument for 'app' container as variable, this way nginx doesn't fail when 'app' is unresolvable at startup
182183
set $app http://app:8080;
@@ -285,6 +286,7 @@ server {
285286

286287
# pass host for Django's allowed_hosts
287288
proxy_set_header Host $host;
289+
proxy_set_header X-Forwarded-Proto $scheme;
288290

289291
# set proxy_pass argument for 'app' container as variable, this way nginx doesn't fail when 'app' is unresolvable at startup
290292
set $app http://app:8080;

integration_tests/batch/test_batch.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ def test_batch_request(unique_id, register_test_user, test_domain):
120120
assert results_response_data["domains"][test_domain]["status"] == "ok"
121121
assert results_response_data["domains"][test_domain]["scoring"]["percentage"] == TEST_DOMAIN_EXPECTED_SCORE
122122

123+
assert results_response_data["domains"][test_domain]["report"]["url"].startswith(
124+
"https"
125+
), "Report URL should take procotol from request (https)"
126+
123127
# test results page should be publicly accessible
124128
report_url = results_response_data["domains"][test_domain]["report"]["url"]
125129
response = requests.get(report_url, verify=False)

0 commit comments

Comments
 (0)