This repository has been archived by the owner on Jun 14, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add random GUID talk to all hashes, simplify commands
In addition the hashing, which might still be concerning since knowing your sponsors' emails and sponsored accounts might still allow to reconstruct the hash, adding a random, per-install GUID completely removes this possibility. The new Session handles these environment variables so we don't even incur any I/O down the road from the analyzer: * SPONSORLINK_INSTALLATION: a GUID created if not already present (can be cleared by the user at any time to completely change all future hashes as needed), used for salting all hashes. * SPONSORLINK_TOKEN: an access token used to invoke the SponsorLink API to sign the manifest hashes. This is done only to allow integrity verification at analyzer/check time. Since the hashes are now effectively irreproducible by the server, all the server would do is sign the JWT received in the `/sign` endpoint with the corresponding private key, but otherwise the JWT remains intact (only the expiration date is set from the server-side too when signing). Related to devlooped/SponsorLink#31
- Loading branch information
Showing
16 changed files
with
755 additions
and
308 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.