-
Notifications
You must be signed in to change notification settings - Fork 153
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
Populate SourceInformation.DocumentRef in collectors #1847
Merged
kodiakhq
merged 16 commits into
guacsec:main
from
nchelluri:nchelluri/add-set-blob-key-flag-to-all-collectors
Apr 23, 2024
Merged
Populate SourceInformation.DocumentRef in collectors #1847
kodiakhq
merged 16 commits into
guacsec:main
from
nchelluri:nchelluri/add-set-blob-key-flag-to-all-collectors
Apr 23, 2024
Conversation
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
nchelluri
commented
Apr 16, 2024
nchelluri
force-pushed
the
nchelluri/add-set-blob-key-flag-to-all-collectors
branch
from
April 16, 2024 19:12
9c495b6
to
4f71a4a
Compare
pxp928
approved these changes
Apr 17, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good! Thanks
Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev>
- This clears up a go-staticcheck warning Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev>
Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev>
- This clears up a nilness analyzer warning Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev>
- This clears up a go-staticcheck warning Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev>
- This clears up up a go-staticcheck warning Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev>
- TODO: GitHub Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev>
Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev>
Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev>
Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev>
- Since we now have the DocumentRef field, there is no reason to gate its usage, and this simplifies the CLI command code. Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev>
- I forgot to include the DocumentRef values in my want docs. Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev>
- Since we no longer branch based on whether or not we want to store blob keys (we always do it), the getDocRef() methods have become funcs instead. Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev>
Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev>
Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev>
nchelluri
force-pushed
the
nchelluri/add-set-blob-key-flag-to-all-collectors
branch
from
April 22, 2024 13:51
e114cf3
to
1dc9ced
Compare
- This allows me to stop repeating a call with a comment explaining it multiple time throughout the collector code. It's very minor change. Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev>
lumjjb
approved these changes
Apr 23, 2024
arorasoham9
pushed a commit
to arorasoham9/guac
that referenced
this pull request
May 17, 2024
* Add store-blob-url CLI flag to all collectors Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev> * Import package only once in file - This clears up a go-staticcheck warning Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev> * Make use of setBlobURL flag in all collectors Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev> * Remove impossible conditional clause - This clears up a nilness analyzer warning Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev> * Import package only once in file - This clears up a go-staticcheck warning Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev> * Tweak error message to not end with punctuation - This clears up up a go-staticcheck warning Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev> * Add test for collector storeBlobURL flags - TODO: GitHub Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev> * Fix typo in filename Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev> * Add some TODOs to the GitHub collector test. Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev> * Rename flag more appropriately Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev> * Always set DocumentRef to blob key - Since we now have the DocumentRef field, there is no reason to gate its usage, and this simplifies the CLI command code. Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev> * Fix broken tests (minor) - I forgot to include the DocumentRef values in my want docs. Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev> * Minor refactor - Since we no longer branch based on whether or not we want to store blob keys (we always do it), the getDocRef() methods have become funcs instead. Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev> * Fix S3 collected doc Source field Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev> * Fix SourceInformation assertion Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev> * Create helper wrapper func to aid readability - This allows me to stop repeating a call with a comment explaining it multiple time throughout the collector code. It's very minor change. Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev> --------- Signed-off-by: Narsimham Chelluri (Narsa) <narsa@kusari.dev> Signed-off-by: Soham Arora <arorasoham9@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of the PR
Fixes #1846
PR Checklist
-s
flag togit commit
.make generate
has been runmake generate
has been runcollectsub
protobuf has been changed,make proto
has been run