-
Notifications
You must be signed in to change notification settings - Fork 16
Add support for an ISO 8601 timezone compliant token expiration date-timestamp #171
Comments
Confirming I see the same:
|
the Flask 2.0 update requires the use of timezone-aware datetimes, so if thje client can't grok them then that would be the root cause here. It looks like the format is %Y-%m-%dT%H:%M:%S.%fZ but should be %Y-%m-%dT%H:%M:%S.%f%zZ. it might make sense for this to be a server-side fix - I'm assuming that right now the client just uses the datetimes from the server as gospel without any timezone considerations (which is 😬 if clients are in different timezones to the server), so converting them to server local time and making them naive datetimes would preserve the current behaviour |
Of the open QA issues, only freedomofpress/securedrop-client#1414 mentions an explicit server version, and that was 2.1.0 prod. Given that @rocodes and I explicitly used 2.2.0-rc1 during review of freedomofpress/securedrop-client#1415, makes sense it's the first time we're encountering it. Let's make sure to include server versions in the test reports we file. |
Cool, filed issue mentioned above server-side. |
When we opened the QA issue, it was assumed that we would test against the latest version of SecureDrop. Now that there is an rc out for SecureDrop, the QA test plan has been updated to test against the latest rc (right now it's 2.2.0-rc1). However, I think it is fine to release the 0.6.0 client before testing against every single rc version of the server. This issue helps with making sure there are no breaking changes on the server, but it is not specific to the 0.6.0 release of the client. |
I have reasons to think that it is preferable that we favor writing the UTC offset as For clarity: I don't think this is exclusif of supporting the |
Description
In order to support the server adding timezone information to the token expiration timestamp, the SDK needs to update
securedrop-sdk/sdclientapi/__init__.py
Line 251 in 9b70550
For background info, see freedomofpress/securedrop#6256. If the Journalist API begins sending timezone info without any update to the SDK, the following issue will occur when you start the
securedrop-client
:And the error log:
The text was updated successfully, but these errors were encountered: