Skip to content

Salsa

Status: Beta

This feature is only in a beta.

Experimental: users report that this component is working, but it needs a broader audience to be battle-tested properly.

Report any issues to the #nais channel on Slack.

What is SLSA

SLSA is short for Supply chain Levels for Software Artifacts pronounced salsa.

It’s a security framework, a check-list of standards and controls to prevent tampering, improve integrity, and secure packages and infrastructure in our projects.

Action

The salsa action generates signed provenance about a build and its related artifacts and dependencies. Provenance is an attestation (a signed "software bill of materials") about a software artifact or collection of artifacts, documenting how an artifact was produced - all in a common format.

The action implements the level 3 requirements of the SLSA Framework (as long as it is run in an ephemeral environment), producing a signed software attestation of your build and dependencies.

The attestation is signed and uploaded to your container registry using cosign and can be verified by the salsa cli or using the cosign verify-attestation command.

Usage

Simply add google-auth action and salsa action to your workflow.

      - name: Authenticate to Google Cloud
        uses: google-github-actions/auth@v0
        with:
          credentials_json: ${{ secrets.SALSA_CREDENTIALS }}

      - name: Provenance, upload and sign attestation
        uses: nais/salsa@v0.1
        with:
          key: ${{ secrets.SALSA_KMS_KEY }}
          docker_pwd: ${{ secrets.GITHUB_TOKEN }

Github Secrets

SALSA_CREDENTIALS and SALSA_KMS_KEY are organization secrets, each GitHub org (nais and navikt) is configured with their own set.

Language support

The action currently supports til following list of languages/build tools

Known limitations

  • No support for projects with internal/private dependencies

You are still able to create a provenance by setting with.dependencies to false

      - name: Provenance, upload and sign attestation
        uses: nais/salsa@v0.1
        with:
          key: ${{ secrets.SALSA_KMS_KEY }}
          docker_pwd: ${{ secrets.GITHUB_TOKEN }}
          dependencies: false

Last update: 2022-12-02
Created: 2022-05-20