Skip to content
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

History - Group by Secret #192

Open
yrachelevi opened this issue Nov 1, 2023 · 1 comment
Open

History - Group by Secret #192

yrachelevi opened this issue Nov 1, 2023 · 1 comment
Assignees

Comments

@yrachelevi
Copy link

yrachelevi commented Nov 1, 2023

Today when a secret is found in several versions/ history, it returns different results (all under the same ID) - we would like to group these results and add the data of the versions where the secret has been found

The added data is:

  • count of the occurrences in the history (how many versions are included)
  • First and last version (version identifier and date)
@yrachelevi yrachelevi added this to 2ms Nov 1, 2023
@yrachelevi yrachelevi moved this to Todo in 2ms Nov 1, 2023
@baruchiro baruchiro removed the status in 2ms Feb 12, 2024
@baruchiro baruchiro moved this to Todo in 2ms Feb 12, 2024
@baruchiro baruchiro self-assigned this Feb 29, 2024
@baruchiro baruchiro moved this from Todo to In Progress in 2ms Feb 29, 2024
@baruchiro
Copy link
Contributor

baruchiro commented Feb 29, 2024

Technical Details

Generally work with versions

Today we extract the content from the source and move each content forward to the detector engine. To consider the history, which means that multiple contents are related, there are two options that I can see now:

  1. Change our attitude and consider a document with all its history versions are a connected block to scan.
  2. Revise the results, where different versions are combined under the same result ID, and extract the versions info from there.

I think we should choose the 1st option, from the engineering perspective, to declare and control the versions (and their order) and not send them to the other side of the process and consider them as a source of truth.

The --history flag

All the discussion above is relevant when the --history is enabled. What should we do when the --history is omitted?

Plugins

Assume we will now work with a bunch of versions of the same document, it will be challenging for some plugins.

Git

With Git, we are not reading, using, and scanning the whole version, but we take only the diff.
How should we treat a deleting line or deleting file version?
How will the Detector know the secret was removed?

Action Items

  • I will start with Confluence and with changing the process to scan a bunch of versions.

@baruchiro baruchiro moved this from In Progress to Todo in 2ms Mar 3, 2024
@baruchiro baruchiro moved this from Todo to In Progress in 2ms Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

No branches or pull requests

2 participants