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

fix(server): Add missing fields for security reports #865

Merged
merged 2 commits into from
Dec 3, 2020

Conversation

jan-auer
Copy link
Member

@jan-auer jan-auer commented Dec 2, 2020

Adds the fields scheme, failure-mode and test-report that were missing from the Expect-CT security report.
This brings the schema in compliance with the Expect-CT Extension for HTTP draft 8 specification.
This PR addresses the final part of #843 .

@jan-auer jan-auer requested a review from a team December 2, 2020 11:11
Add the missing fields: "scheme", "failure-mode" and "test-report" to
the ExpectCT security report. This brings the schema in compliance with
the Expect-CT Extension for HTTP draft 8 specification.
CHANGELOG.md Show resolved Hide resolved
effective_expiration_date: Option<DateTime<Utc>>,
served_certificate_chain: Option<Vec<String>>,
validated_certificate_chain: Option<Vec<String>>,
scts: Option<Vec<SingleCertificateTimestampRaw>>,
failure_mode: Option<String>,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The failure mode is listed as mandatory in #843, can we make it non-optional or are some browsers actually omitting it?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We went for all fields as optional. I don't think there is a downside to this. When we get a security report we'll collect from it what we can and create an event. Why would we reject a report and not create an event from it when a user agent doesn't send us a particular field?

@jan-auer jan-auer merged commit 6ec9d1c into master Dec 3, 2020
@jan-auer jan-auer deleted the fix/security-fields branch December 3, 2020 14:51
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.

None yet

2 participants