Skip to content

Only allow measurements to be fetched with plain HTTP from localhost / loopback device#13

Merged
0x416e746f6e merged 2 commits intomainfrom
peg/fix-12
Apr 17, 2026
Merged

Only allow measurements to be fetched with plain HTTP from localhost / loopback device#13
0x416e746f6e merged 2 commits intomainfrom
peg/fix-12

Conversation

@ameba23
Copy link
Copy Markdown
Collaborator

@ameba23 ameba23 commented Mar 30, 2026

Closes #12

When fetching a measurement policy via a given URL, this adds a check enforcing that HTTPS must be used unless the URL is localhost or the loopback device.

@ameba23 ameba23 changed the title Only allow measurements to be fetch with plain HTTP from localhost / loopback device Only allow measurements to be fetched with plain HTTP from localhost / loopback device Mar 30, 2026
Comment thread crates/attestation/src/measurements.rs Outdated
Co-authored-by: Anton <anton@northernforest.nl>
@0x416e746f6e 0x416e746f6e merged commit 32a3cca into main Apr 17, 2026
2 checks passed
@0x416e746f6e 0x416e746f6e deleted the peg/fix-12 branch April 17, 2026 13:14
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.

In MeasurementPolicy::from_file_or_url only allow HTTP on the loopback addresses

2 participants