-
Notifications
You must be signed in to change notification settings - Fork 31
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
Slsa charts bypass #153
Slsa charts bypass #153
Conversation
pkg/regsync/generateconfig.go
Outdated
|
||
file, err := os.Open(path.SlsaYamlFile) | ||
if err != nil { | ||
return nil, nil // backward version compatibility |
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.
Shouldn't this be an error?
pkg/path/path.go
Outdated
@@ -50,12 +63,15 @@ const ( | |||
// RepositoryLogosDir is a directory on your Staging/Live branch that contains the files with the logos of each chart | |||
RepositoryLogosDir = "assets/logos" | |||
|
|||
// RepositoryStAte file is a file to hold the current status of the released and developed assets versions | |||
// RepositoryStateFile file is a file to hold the current status of the released and developed assets versions |
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.
// RepositoryStateFile file is a file to hold the current status of the released and developed assets versions | |
// RepositoryStateFile is a file to hold the current status of the released and developed assets versions |
pkg/regsync/generateconfig.go
Outdated
|
||
file, err := os.Open(path.SlsaYamlFile) | ||
if err != nil { | ||
return nil, nil // backward version compatibility |
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.
return nil, nil // backward version compatibility | |
return nil, err // backward version compatibility |
Long story short:
Charts that have images supporting SLSA must no longer be synced from:
docker hub -> primer registry.
Solution
On the charts repository, there will be a new file called
slsa.yaml
; see: rancher/charts#4760The chart owners will update this file with the new slsa compliant images.
We bypass the
regsync process
for the prime registry for all these images.