-
Notifications
You must be signed in to change notification settings - Fork 95
Veles custom extractor for aws access key #1568
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
Veles custom extractor for aws access key #1568
Conversation
…ts both filesystem.Extractor and veles.Detector interfaces edit: remove awscredentials ad hoc extractor
|
Note Initially (ref: 1306cce) I attempted a different approach: creating a new |
|
Hello @erikvarga All discussions should be resolved now. Thank you for the support! |
|
Hello @erikvarga I noticed the failing action and I added 462f138 to address the issue. It looks like the secrets were returned in a different order on Windows, which caused the failure. |
…-access-key PiperOrigin-RevId: 838793730
Ah sorry I didn't see this yesterday. We caught this during the internal merge process and ended up adding a similar order ignore clause to the test. |
This PR introduces a custom extractor,
AWS Access Keys, by enabling support for running aveles.Detectoron specific files.Using the
convert.FromVelesDetectorWithRequireit's possible to create a plugin which actually implements both:filesystem.Extractorveles.DetectorThis results into a single plugin for the
osv-scalibrcli users which once created, is duplicated as:veles.Detector: treated like all other detectors and added toveles.NewDetectionEngine(ref: https://github.com/doyensec/osv-scalibr/blob/e13727f50b999d1a1fe037f27f38f0b1f253bec4/extractor/filesystem/secrets/convert/convert.go#L107).filesystem.Extractor(ref: https://github.com/doyensec/osv-scalibr/blob/e13727f50b999d1a1fe037f27f38f0b1f253bec4/extractor/filesystem/secrets/convert/convert.go#L108)