sbom-operator icon indicating copy to clipboard operation
sbom-operator copied to clipboard

Feature discussion: AWS Lambda SBOM generation

Open outofcoffee opened this issue 2 years ago • 6 comments

Hello - thank you for starting this project - it has saved me from attempting to build the same thing! ❤️

Would you be open to a contribution to allow SBOM generation from AWS Lambda functions?

Broadly, something like:

  1. Use the AWS Lambda Go SDK to call the GetFunction operation, to obtain the Code.Location URL
  2. Fetch the Lambda's function code from the URL to a local temporary dir; this is generally a ZIP file
  3. Invoke Syft on the local code package
  4. (Tidy up?)

This would enable use of this tool in an environment in which there is a mix of Kubernetes workloads and serverless ones.

I wanted to guage your interest in whether this aligns with your project goals, before contributing a PR.

outofcoffee avatar Apr 14 '22 12:04 outofcoffee

Hi, yes, this seems to be a valueable feature. I haven't any experience with AWS Lambda, but the approach seems comprehensible to me.

You can do a PR for that, and then we can discuss more in detail about the changes, but the concept looks well.

ckotzbauer avatar Apr 15 '22 08:04 ckotzbauer

I started a refactoring in a feature-branch to allow other scan-items than containerImages. Maybe this could be a good entry-point for this feature. https://github.com/ckotzbauer/sbom-operator/tree/feature/scan-item

ckotzbauer avatar Apr 21 '22 06:04 ckotzbauer

Thanks @ckotzbauer. I should have some time to look at this soon. I know that branch is old now - is that commit merged into main or does the branch need a rebase?

outofcoffee avatar Jun 16 '22 19:06 outofcoffee

The branch needs a rebase

ckotzbauer avatar Jun 17 '22 05:06 ckotzbauer

This issue is stale because it has been open 90 days with no activity. Remove stale label with /remove-lifecycle stale or comment or this will be closed in 5 days.

github-actions[bot] avatar Sep 16 '22 00:09 github-actions[bot]

@outofcoffee Do you still work on this?

ckotzbauer avatar Sep 16 '22 05:09 ckotzbauer

This issue is stale because it has been open 90 days with no activity. Remove stale label with /remove-lifecycle stale or comment or this will be closed in 5 days.

github-actions[bot] avatar Dec 17 '22 00:12 github-actions[bot]