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

Interfaces for SCTs, feedback wanted #3467

Merged
merged 14 commits into from
Mar 22, 2017
Merged

Conversation

alex
Copy link
Member

@alex alex commented Mar 20, 2017

Refs #3461

@mention-bot
Copy link

@alex, thanks for your PR! By analyzing the history of the files in this pull request, we identified @reaperhulk, @intgr and @queenp to be potential reviewers.

@alex
Copy link
Member Author

alex commented Mar 20, 2017

@reaperhulk important question, should this be a bare-class, or an ABC+builder like RevokedCertificate.

@reaperhulk
Copy link
Member

What does it look like to build an SCT with just the bare class?

@alex
Copy link
Member Author

alex commented Mar 20, 2017 via email

@reaperhulk
Copy link
Member

I think anything with signatures should have a builder 👍

@alex
Copy link
Member Author

alex commented Mar 20, 2017 via email


:type: bytes

An opaque identifier, indicating which log this SCT is from.
Copy link

@eranmes eranmes Mar 21, 2017

Choose a reason for hiding this comment

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

Nit: Mention this is the hash of the log's public key? Or could refer to the RFC.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good call.


:type: :class:`datetime.datetime`

A naïve datetime representing the timestamp at which the log asserts
Copy link

Choose a reason for hiding this comment

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

The timestamps from logs are always in UTC. Not sure how it affects this field, if at all.

Copy link
Member Author

Choose a reason for hiding this comment

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

@reaperhulk what do you think? The not_before and not_after on x.509 certs are naive datetimes, do you remember why we did that? Is it because python is bad and didn't have a cheap way to give us a UTC tzinfo?

Copy link
Member

Choose a reason for hiding this comment

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

That is exactly why.

Copy link
Member

Choose a reason for hiding this comment

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

We document that as stating they're naïve datetimes representing UTC in the x509 docs.

@alex
Copy link
Member Author

alex commented Mar 21, 2017 via email

@alex alex changed the title Stub API for SCTs, feedback wanted Interfaces for SCTs, feedback wanted Mar 21, 2017
SignedCertificateTimestamps (SCTs) are small cryptographically signed
assertions that the specified certificate has been submitted to a
Certificate Transparency Log, and that it will be part of the public log
within some time period.
Copy link
Member

Choose a reason for hiding this comment

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

Is the acceptable time period something each log decides?

@alex
Copy link
Member Author

alex commented Mar 21, 2017 via email

@reaperhulk
Copy link
Member

Yes please

@alex
Copy link
Member Author

alex commented Mar 21, 2017

Jenkins, retest this please.

@reaperhulk reaperhulk merged commit bca951e into pyca:master Mar 22, 2017
@alex alex deleted the stub-sct-api branch March 22, 2017 13:17
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants