-
Notifications
You must be signed in to change notification settings - Fork 89
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
[BUG] Revoking key didn't actually revoke it #2795
Comments
I can confirm that rafiki.money is running on version 1.0.0-alpha.14. I tried reproducing this on rafiki.money, but did not test with web monetization extension. I created few developer keys and checked jwks.json. For me, UI showed exactly the same thing that jwks.json showed. |
Are above keys showing up in database for mentioned wallet address? They're not showing up in UI for me (UI part could be a caching issue, I'll check again). I couldn't reproduce it again either as I mentioned, but there's a chance it can happen again. Update: confirmed jwks.json returns keys that are not shown in the rafiki.money UI (even after clearing cache). Screenshots as shown in issue description. |
I could reproduce that behavior with the extension and a payment pointer from test wallet (rafiki.money). I then fired up the Rafiki localenv (alpha 15, EDIT: same with alpha 14),
I wonder if something fails during key revocation in test wallet, i.e. whether the Admin API call to Rafiki is done correctly. @Tymmmy @rico191013 @dragosp1011 |
We will check this out @sabineschaller |
Looking at the screenshot with the response from |
Very well spotted @raducristianpopa. You are right. I can add a check to make sure they are unique. But I don't think that solves the issue unless the extension creates new keys every time. Because otherwise, a key is revoked but still existing in Rafiki and it won't let you add it again. EDIT: Also, something still seems to be wrong with the revoking because the keys should just not show up in the |
Found the issue on the test wallet with @rico191013 yesterday: whenever an user tries to upload the same public key to the same or to another wallet address, they will see an error - Screen.Recording.2024-07-31.at.12.37.43.PM.mov |
This is being fixed here |
Bug Report
Describe the bug
Revoking key from https://rafiki.money was no longer causing API calls to fail. Following were working fine after key being revoked:
To Reproduce
This was resolved for me after I changed key-pair (but can occur again). As you can see in screenshots below, jwks.json still has the keys, but UI (and API request in website) don't have any keys.
Expected behavior
All API calls relying on key should fail with above errors.
Desktop (please complete the following information):
Screenshots
The text was updated successfully, but these errors were encountered: