-
Notifications
You must be signed in to change notification settings - Fork 1k
Revert "Return Macaroon
alongside User
in `MacaroonSecurityPolicy…
#15588
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
….identity` (pypi#15581)" This reverts commit 862a451.
Looks like this is failing here, when creating a new project: warehouse/warehouse/forklift/legacy.py Lines 984 to 995 in 5eba9cb
|
And here when uploading a new release to an existing project: warehouse/warehouse/macaroons/caveats/__init__.py Lines 107 to 108 in 862a451
|
(Both with account-wide API tokens) |
Thanks for the ping, sorry for the headache here. I totally forgot about those instance checks; will look into a more complete patch now. (And thanks @webknjaz for triaging on your end!) |
…tyPolicy.identity` (pypi#15581)" (pypi#15588)" This reverts commit 5eba9cb.
Opened #15590 as a draft for this, looking at tests now 🙂 |
* Revert "Revert "Return `Macaroon` alongside `User` in `MacaroonSecurityPolicy.identity` (#15581)" (#15588)" This reverts commit 5eba9cb. * warehouse: add UserTokenContext checks * warehouse: reformat, circular import * tests: coverage * tests: reformat * warehouse: remove UserTokenContext.id Eliminate the line that needed it. * accounts/utils: lintage * test_legacy: backstop behavior Signed-off-by: William Woodruff <[email protected]> * tests/unit: lintage --------- Signed-off-by: William Woodruff <[email protected]>
* Revert "Revert "Return `Macaroon` alongside `User` in `MacaroonSecurityPolicy.identity` (pypi#15581)" (pypi#15588)" This reverts commit 5eba9cb. * warehouse: add UserTokenContext checks * warehouse: reformat, circular import * tests: coverage * tests: reformat * warehouse: remove UserTokenContext.id Eliminate the line that needed it. * accounts/utils: lintage * test_legacy: backstop behavior Signed-off-by: William Woodruff <[email protected]> * tests/unit: lintage --------- Signed-off-by: William Woodruff <[email protected]>
….identity` (#15581)"
This reverts commit 862a451.
I believe this is the cause of #15586 and possibly pypi/support#3740.
cc @facutuesca @woodruffw