Skip to content
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

Merged
merged 6 commits into from
Nov 19, 2024
Merged

Conversation

nicholasSUSE
Copy link
Collaborator

@nicholasSUSE nicholasSUSE commented Nov 14, 2024

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#4760

The 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.


file, err := os.Open(path.SlsaYamlFile)
if err != nil {
return nil, nil // backward version compatibility

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// 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


file, err := os.Open(path.SlsaYamlFile)
if err != nil {
return nil, nil // backward version compatibility
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return nil, nil // backward version compatibility
return nil, err // backward version compatibility

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants