Architecture

Architecture summary of FRSCA.

Diagram of Key Components

frsca-architecture

Provisioning

The environment is provisioned using make setup-frsca which deploys a variety of Cue definitions and Helm charts. The resulting environment contains Tekton, Chains, Spire, Vault, the various Tasks, and Pipeline definitions.

When the infrastructure starts, several components will be defined or running:

  1. Pipelines, Tasks, and Triggers will be defined according to the definition of the environment.
  2. Cert-manager is deployed in the FRSCA setup to allow the various components running inside the cluster to use TLS. In many environments, components like Vault, Spire, and the OCI Registry would be external to the cluster and have a certificate signed by a public authority or the company's internal CA.
  3. Vault is deployed with development settings inside the cluster. In many environments, this would be managed outside of the cluster.
  4. Spire is deployed inside the cluster. This is also typically deployed and managed external to the cluster.
  5. Vault is configured with the transit plugin and a long term signing key to sign images. Authorization is configured to require a valid OIDC credential from Spire. The public signing key is exported from the transit plugin and loaded into tooling that needs to verify image signatures.
  6. Chains is configured to perform signing with Vault and request a Spire credential from the Spire Node.
  7. The Spire Node provides credentials to Chains after verifying the Kubernetes service account and namespace of Chains.
  8. An admission controller is configured to require all containers deployed in the FRSCA cluster have been signed by the team that provisions the cluster.

Pipeline

The following actions occur in a typical pipeline:

  1. A developer commits their code to a Git server. That server will typically require multiple reviewers to permit a merge into the main branch.
  2. A Tekton trigger detects the change and creates a PipelineRun.
  3. The PipelineRun runs one or more TaskRun steps, each of which are monitored by Chains.
  4. TaskRun steps will include SBOM generation and vulnerability scanning.
  5. A TaskRun step pushes the image and associated SBOM to an OCI repository.
  6. Chains creates an attestation of the steps performed in the task run.
  7. Chains signs the image and attestation using credentials from Spire and Vault for the signing.
  8. Chains pushes attestations and signatures to the OCI repository.

Production Recommendations

  1. Production should be hardened per recommendations from CIS and similar organizations.
  2. The admission controller in production should prevent containers from being deployed with privileged access to the host for all user workloads.
  3. The admission controller should also be configured with the public signing key exported from Vault, and require images to be signed with that key.