-
-
Notifications
You must be signed in to change notification settings - Fork 608
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
crl-storer: check number before uploading #7065
Conversation
There's s3 object locking which on the surface seems like an interesting way to make this action atomic, but alas
|
This looks good. Have you filed a ticket to get the appropriate permissions (get) added to the crl-storeer's IAM role in AWS? We should make sure that's finished before we merge, otherwise this will fail on deploy. |
Good point, thank you for the reminder! I'd forgotten that we moved from a world-readable to behind-cloudfront model. I've filed IN-9559 for this. |
IN-9559 has confirmed that the crl-storer does have Read access to the storage bucket. I'm cleaning up merge conflicts and then sending for re-review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good with one small nit.
Have the crl-storer download the previous CRL from S3, parse it, and compare its number against the about-to-be-uploaded CRL. This is not an atomic operation, so it is not a 100% guarantee, but it is still a useful safety check to prevent accidentally uploading CRL shards whose CRL Numbers are not strictly increasing.
Part of #6456
DO NOT MERGE until IN-9559 is resolved