-
Notifications
You must be signed in to change notification settings - Fork 2
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
Implement Scanner for GCP Artifact Registry Scanning #63
Draft
Collinbrown95
wants to merge
80
commits into
main
Choose a base branch
from
feat-trivy
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
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
…cking in for the day
- test rustworkx for in-memory graph creation - misc. python boilerplate
- semantics are to get the unique vertices for all subgraphs associated with a list of endpoints
- pass json encoder to publishToNats function
… updater and graphql api
…to see which iteration is resulting. Will retry tomorrow with fresh history. - next sub to gcp pub/sub and extract information - note not sure how to have a pass here as there's no push for no vulnerabilities... Also will need to isolate image to one registered with product.
…and viewing cloud function logs, will rename files to be image name rather than occurance_id in next iteration
…o get note, but not super useful - need to combine google doc references in artifact-registry-cloud-function-init.sh together to get to work - moving to git-leaks, will come back after a quick win.
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.
Closes #62
The Artifact Registry, if configured, will scan containers on push to the registry. We're going to use this, along with a cloud function/ pubsub to push these scan results from the various (registered) projects to the Observatory's GCS (as seen in this tutorial. When there's a change to the Observatory GCS, (or rather whenever there is an addition if we're putting time limits on storage, and auto-removing), it will trigger another google pubsub to push results to Observatory's scanner which parses the payload into the form (checkPasses, metadata) and saves into the database via API.
Issues encountered at the moment:
We can easily get the vulnerability Artifact Registry occurrence summary for the project with
Or just one image with:
, but using cloud function, so using google grafeas API which seems to be less flexible, and would like to somehow include the container image name in the cloud function, or have a simple summary. (or maybe just the most recent tag as it pulls all occurrences over)