-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Mihai Maruseac <mihaimaruseac@google.com>
- Loading branch information
1 parent
857e2af
commit 79bd3d3
Showing
4 changed files
with
146 additions
and
16 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,33 @@ | ||
# Contributing | ||
|
||
We currently do not accept PRs. | ||
Want to contribute? Great! First, read this page (including the small print at | ||
the end). | ||
|
||
### Before you contribute | ||
|
||
Before we can use your code, you must sign the [Google Individual Contributor | ||
License Agreement](https://cla.developers.google.com/about/google-individual) | ||
(CLA), which you can do online. The CLA is necessary mainly because you own the | ||
copyright to your changes, even after your contribution becomes part of our | ||
codebase, so we need your permission to use and distribute your code. We also | ||
need to be sure of various other things: for instance that you'll tell us if you | ||
know that your code infringes on other people's patents. You don't have to sign | ||
the CLA until after you've submitted your code for review and a member has | ||
approved it, but you must do it before we can put your code into our codebase. | ||
|
||
Before you start working on a larger contribution, you should get in touch with | ||
us first through the issue tracker with your idea so that we can help out and | ||
possibly guide you. Coordinating up front makes it much easier to avoid | ||
frustration later on. | ||
|
||
### Code reviews | ||
|
||
All submissions, including submissions by project members, require review. We | ||
use GitHub pull requests for this purpose. | ||
|
||
### The small print | ||
|
||
Contributions made by corporations are covered by a different agreement than the | ||
one above, the [Software Grant and Corporate Contributor License | ||
Agreement](https://cla.developers.google.com/about/google-corporate). | ||
|
||
If you have a question or a feature request, please open an issue on the repository. |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# SLSA for Models | ||
|
||
To protect the supply chain of traditional software against tampering (like in | ||
the [Solarwinds attack][solarwinds]), we can generate [SLSA][slsa] provenance, | ||
for example by using the [SLSA L3 GitHub generator][slsa-generator]. | ||
|
||
This projects shows how we can use the same generator for training models via | ||
GitHub Actions. While most of the ML models are too expensive to train in such a | ||
fashion, this is a proof of concept to prove that _the same traditional software | ||
supply chain protections can be applied to ML_. Future work will involve | ||
covering training ML models that require access to accelerators (i.e., GPUs, | ||
TPUs) or that require multiple hours for training. | ||
|
||
When users download a given version of a model they can also check its | ||
provenance by using [the SLSA verifier][slsa-verifier] repository. This can be | ||
done automatically: for example the model serving pipeline could validate | ||
provenance for all new models before serving them. The verification can also be | ||
done manually, on demand. | ||
|
||
As an additional benefit, having a provenance for a model allows users to react | ||
to vulnerabilities in a training framework: they can quickly determine if a | ||
model needs to be retrained because it was created using the vulnerable version. | ||
|
||
## Usage | ||
|
||
TODO: Display how to run the action in the repo, show an example with images on | ||
how to trigger workflow, show how to run the verifier manually | ||
|
||
## Benchmarking | ||
|
||
TODO: Table discussing performance of generating provenance for models, in | ||
various formats, based on the running the GitHub acctions | ||
|
||
[slsa-generator]: https://github.com/slsa-framework/slsa-github-generator | ||
[solarwinds]: https://www.techtarget.com/whatis/feature/SolarWinds-hack-explained-Everything-you-need-to-know | ||
[slsa]: https://slsa.dev | ||
[slsa-verifier]: https://github.com/slsa-framework/slsa-verifier/ |