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

repo: Do not use naive datetimes with tuf API #513

Merged
merged 2 commits into from
Jan 15, 2025

Conversation

jku
Copy link
Member

@jku jku commented Jan 15, 2025

The datetime format is not really part of TUF API but we meddle in in the client internals to do the "valid X days from now" test... so need to match the used datetime format.

Fixes #512

I've tested this in jku/tuf-demo#122: seems to work ok -- I'll also modify tuf-demo so that we see it work after merge

The datetime format is not really part of TUF API but we meddle in
in the client internals to do the "valid X days from now" test...
so need to match the used datetime format.
@jku jku requested a review from kommendorkapten as a code owner January 15, 2025 12:16
@jku jku marked this pull request as draft January 15, 2025 12:17
@jku
Copy link
Member Author

jku commented Jan 15, 2025

e2e tests could probably cover this... but I'd like to get this fix released soon: I'm marking this draft so I can include the version bump right here.

@kommendorkapten
Copy link
Member

Looks good. Do you know what was the breaking change that introduced this?

@jku jku marked this pull request as ready for review January 15, 2025 12:26
@jku
Copy link
Member Author

jku commented Jan 15, 2025

Looks good. Do you know what was the breaking change that introduced this?

Yes: the python-tuf public API did not change in the upgrade I did but tuf-on-ci-test-client script (used in test-repository actions) tweaks one thing python-tuf client internals... that one thing is expiry which now needs to be in UTC not "naive" datetime.

@jku jku merged commit fffb59f into theupdateframework:main Jan 15, 2025
11 checks passed
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.

Use of naive datetime
2 participants