-
Notifications
You must be signed in to change notification settings - Fork 220
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
Do not leak internal database ids in the API #1001
Comments
Hey, I have a question. For example, instead of: It could be: Please correct me if i'm wrong |
How about VCID and purl in public urls ? This would make the URLs independent of database deletion/re-creation, if it so happens. Also, multiple instances will be very explicit about which vulnerability/package they're pointing at by just looking at the url. EDIT: Just realized VCID is based on UUID so this might not be as good. |
IMHO we should use the natural keys of each model: vcid and purl |
As I can infer from the discussion, is it okay to reference the URLs via the natural key instead of UUID. This means that the natural key is a different entity other than the primary key right? |
I checked, and this problem still exists. If you are willing to work on a solution, I would like to take up the case. |
@Mohit-majumdar sure, feel free to work on this issue |
@Mohit-majumdar we would want to use either a natural key (may be VCID or package_url) or a UUID |
@pombredanne @TG1999 after reviewing the source code, it seems that replacing the Record IDs with UUIDs (generated using the UUID module, specifically UUID4) would be more efficient by Python scripting, rather than relying on a manual process. Would it be okay for me to start working on this issue? |
Hey is the issue still there, I would like to work on this issue by replacing internal IDs with PURLs |
I've sent a PR for this- PTAL! |
In this we have URLs such as
that leak internal record ids/primary keys.
We should provide either a GUID or a natural key instead.
The text was updated successfully, but these errors were encountered: