-
-
Notifications
You must be signed in to change notification settings - Fork 226
Closed
Description
Perhaps related to #115, we find that signatures produced on itsdangerous 0.24 are incompatible with 1.1. For example:
$ pip-run -q itsdangerous==0.24 -- -c "import itsdangerous; print(itsdangerous.Signer(b'secret-key').sign(b'my string').decode('ascii'))"
my string.wh6tMHxLgJqB6oY1uT73iMlyrOA
$ echo 'my string.wh6tMHxLgJqB6oY1uT73iMlyrOA' | pip-run -q itsdangerous==1.1 -- -c "import itsdangerous, sys; print(itsdangerous.Signer('secret-key').unsign(sys.stdin.read()))"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/pip-run-0f22xq6u/itsdangerous/signer.py", line 169, in unsign
raise BadSignature("Signature %r does not match" % sig, payload=value)
itsdangerous.exc.BadSignature: Signature b'wh6tMHxLgJqB6oY1uT73iMlyrOA\n' does not match
Additionally, the engineer reports that
the expiration time is encoded and decoded differently [between versions]
This incompatibility has led our engineers to believe that it's necessary to upgrade all clients and producers simultaneously.
Is this incompatibility by design? Is there an approach that would allow the various signers/verifiers to use different versions of itsdangerous?
Metadata
Metadata
Assignees
Labels
No labels