-
Notifications
You must be signed in to change notification settings - Fork 13
Removing quoted timestamps from v2 reader #1113
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
Conversation
git-reader/app.py
Outdated
| for signature in metadata["signatures"]: | ||
| x5u = signature["x5u"] | ||
| rewritten_x5u = f"{request.url.scheme}://{request.url.netloc}/{API_PREFIX}cert-chains/{parsed.path.lstrip('/')}" | ||
| signature["x5u"] = rewritten_x5u |
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.
Good catch!
We are sure that /v2 will support signatures
And we are pretty sure that we won't run git-export on old servers.
So, here we can assume that we only care about signatures
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.
So you're saying we can probably drop lines 625-626? Or do you wanna keep both for now?
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.
I would drop if metadata["signatures"] is not None:
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.
Ah, can do. I was being extra paranoid.
142de58 to
b5ec7de
Compare
…annotated path params
git-reader/app.py
Outdated
| for signature in metadata["signatures"]: | ||
| x5u = signature["x5u"] | ||
| rewritten_x5u = f"{request.url.scheme}://{request.url.netloc}/{API_PREFIX}cert-chains/{parsed.path.lstrip('/')}" | ||
| signature["x5u"] = rewritten_x5u |
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.
I would drop if metadata["signatures"] is not None:
git-reader will not use quoted timestamps.
We will be updating the client accordingly.
Also adding URI rewrite logic for
signatureslist.See #1104