Skip to content

Conversation

@alexcottner
Copy link
Contributor

@alexcottner alexcottner commented Dec 19, 2025

git-reader will not use quoted timestamps.
We will be updating the client accordingly.
Also adding URI rewrite logic for signatures list.
See #1104

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
Copy link
Contributor

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

Copy link
Contributor Author

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?

Copy link
Contributor

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:

Copy link
Contributor Author

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.

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
Copy link
Contributor

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:

@alexcottner alexcottner merged commit 6f89554 into main Dec 22, 2025
11 checks passed
@alexcottner alexcottner deleted the v2-no-quotes branch December 22, 2025 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants