1 of 35

Matt Rutkowski, IBM

CycloneDX 1.5 Conceptual Formulation

Mapping Tekton-based CI/CD Pipelines, Tasks, Resources and Triggers

2 of 35

Goals

2

      • Represent a modern CI/CD Pipeline and Runtime using Formulation schema
        • CD Foundation’s Tekton as the target (CDX “Executor”)
          • Map Tekton Pipelines to CDX “Formulation”
          • Map Tekton Tasks to to CDX “Task”
        • Considerations:
            • OpenSSF Frsca project based on Tekton: as a “reference implementation” of SLSA Level 3 Spec.
            • Kubeflow project also builds ML models with Tekton

​

      • Assure “Executor” (a.k.a. pipeline “Runner”) and its stack can be fully represented
        • Including:
          • Kubernetes and all “resource” specifications and configurations
          • Spiffe/Spire components and configurations

​

      • Assure Event-Trigger-Task model is represented
        • Clear Trigger (manual, automated) for each “CDX Task”
          • Event (with auditable identities and data) that “pulled” (or fired) the Trigger

​

3 of 35

© 2023 IBM Corporation

3

Tekton Background

​

4 of 35

Tekton�CI/CD Pipelines for Kubernetes

  • Active, vibrant, and welcoming community
      • Contributors from IBM, Google, Red Hat, Cloudbees, Pivotal and more …
      • Projects written in Go
  • Projects
    • Pipeline - API, Workflows (core)
    • Triggers - create Tekton resources in reaction of events
    • Chains - manage your supply chain security in Tekton
    • Catalog - shareable task definition
    • Dashboard - web UI for Tekton
    • CLI - command-line to interact with pipeline

​

  • Downstream usage

​

​

Kubernetes

Pipeline

Task

step

I

O

Task

step

step

I

O

Task

step

O

I

Task

step

step

O

I

Pipeline

Resource

Pipeline

Resource

Pipeline

Resource

Task

step

I

O

PipelineRun

4

5 of 35

Tekton resources – How it Works!

5

Pipeline

PipelineRun

(parameters)

TaskRun

TaskRun

TaskRun

TaskRun

(parameters)

Pipelines declare PipelineResources and a Directed Acyclic Graph (DAG) of conditional Tasks comprised of sequential steps

PipelineResource

PipelineResource

PipelineResource

  • git
  • pullRequest
  • Image
  • storage
  • cluster

PipelineRuns run Pipelines by binding PipelineResource instances and running TaskRun instances

Binds

Task

step

I

O

Task

step

step

I

O

Task

step

O

I

Task

step

step

O

I

Pipeline

Resource

Pipeline

Resource

Pipeline

Resource

Task

step

I

O

Runs

Runs

Creates

Creates

Workspace

(dedicated)

Workspace

(shareable)

Trigger

  • EventListener

Event

Sources

Event

  • type

”Jobs” (create/run instances)

6 of 35

Tekton Pipeline Example - Generalized Microservice Build Pipeline

6

e.g., NodeJS, Python, Java Containers

finalize-runtime-with-function

runtime-git

git

app-image

image

clone-runtime-repo-to-workspace

build-microservice

Pipeline

build-workspace

Workspace

clone-app-repo-to-workspace

<language-specific-tasks>

Task GitHub

Configured Via parameters

task-build-archive

  • NodeJS
  • Python
  • Java

Task runtime env.

Configured Via parameters

OCI Container

Task build params

Configured via params.

  • NodeJS 12, 14, etc.
  • Python 2, 3, 3ai, etc.
  • Java 8, 11, etc.

OCI Container

Artifactory

Base Runtime

images / versions

Microservice

Application or Function

Task artifact and catalog repo. Service

Configured via parameters

Task that can dynamically

“switch” between different

task language “branches”

Git Trigger

  • e.g., Pull Request (PR)
    • GitHub Webhook
    • Kubernetes Event

7 of 35

Even Single-Language Pipelines are not sequences - Java Pipeline

7

Tasks customized for Java packages and Maven / Gradle tooling

APP_JAVA_VERSION

clone-java-app-source

Task

clone-app-repo-to-workspace

Task

clone-runtime-repo-to-workspace

clone-java-runtime-source

Task

task-install-npm-packages

install-java-packages

Task

task-set-env-vars

finalize-runtime-with-function

DOCKERFILE

Condition

is-java-runtime

detect-runtimes

Task

create-jar-with-maven

create-jar-with-maven

runtime-git

git

app-image

image

Task

build-runtime-with-gradle

build-runtime-with-gradle

MAVEN_BUILD_OUTPUT_PATH

BUILD_CONFIG_PATH

Task

build-shared-class-cache

build-shared-class-cache

shared-workspace

Workspace

PersistentVolumeClaim

OW_RUNTIME_DEBUG

OW_RUNTIME_PLATFORM

OW_ACTION_NAME

OW_ACTION_CODE

OW_ACTION_MAIN

OW_ACTION_BINARY

OW_HTTP_METHODS

OW_ACTION_RAW

8 of 35

Polyglot CI/CD pipeline workflows easily become a directed graph

8

clone-nodejs-runtime-source

Task

install-npm-packages

Task

build-archive-node

Task

clone-nodejs-app-source

Task

build--app-image-node

Task

build-app-image-java

Task

clone-java-app-source

Task

clone-java-runtime-source

Task

create-jar-with-maven

Task

build-runtime-with-gradle

Task

build-shared-class-cache

Task

finalize-image-with-function

Task

runtime-git

Pipeline

Resource

git

app-image

Pipeline

Resource

image

build-polyglot-app

Pipeline

clone-java-app-source

Task

clone-app-repos-to-workspace

Task

dependency-git

Pipeline

Resource

git

clone-app-dependent-repos-to-workspace

Task

has-nodej

clone-XXX-language

Task

all-languages-built

has-java

9 of 35

Pipeline/Task Runtime Environment - Capturing the Tekton Stack

9

Cluster

Cluster

tekton-pipeline

Observes

spire

tekton-chains

Compute Infrastructure (Hardware, Bare Metal, Virtual Machines, etc.)

​

Includes Tekton “Chains” & OpenSSF Frsca Spire components that would need to be captured for SLSA3 BOMs

Groups/Users�(Identities)

(Pods)

10 of 35

© 2023 IBM Corporation

10

v1.5 Formulation Proposal

​

11 of 35

Proposal: Adopt Patterns for Referential Resource Types in Formula

11

Goals

  1. Reuse : Encourage “reuse” of references to existing resources (via `bom-ref`) and `dependency` relationships
    • Do not create more places (in the schema) to inline `component‘ or `service` definitions
    • encourage (via schema) use of `refType` (i.e., bom-ref)

​

  • Meaningful External Refs : Adopt use of and improve data within `externalReference` as “the way” to point to dynamic or transient entities in CI/CD processes (e.g., `tool` or `yaml` configurations not in base source code repository)
    • e.g., recent proposal around including `schema` for the data pointed to by the URL

​

  • Reference Choice: Acknowledge that `bom-ref` and `externalReference` often are are paired “choices” (like LicenseChoice) that will be reused heavily in formulation work
    • Perhaps deserves its own type (i.e., `ResourceChoice`)

​

  • v1.6: Shared Schema: Formalize a shared `Resource` schema (abstract) type for use on existing concrete types
    • e.g., component, service and as we create more xBOM types (e.g., model, cipher, etc.)
    • Reduces errors in schema development (e.g., add `pedigree` in one place)

12 of 35

Proposal: `workflow` captures a graph of `tasks` using workflow-specific components/services

12

Workflow is a specialized Task that serves as the entry point for all coordinated tasks

Parallels existing CycloneDX component compositions (i.e., `metadata.component` == `formula.workflow`)

[formulas]

[formulas]

formula

  • components: []component
  • services: []services
  • workflows: []workflow

workflow: task

  • tasks: []task
  • taskDependencies: []dependency

// the graph of tasks

  • workspaces: []workspace

dependency

  • dependsOn

dependency

  • dependsOn

dependency: object

  • ref: refType
  • dependsOn

dependency

  • dependsOn

dependency

  • dependsOn

task: object

  • // See next slide

“workflow” represents the “root” or “orchestration” task (singular).

Note: the term “workflow” is generic and applies to not only CI/CD, but also any other process we may want to capture in xBOMs in the future.

[bom] (root)

  • ...
  • formula: formula

Note: the “tasks” / “taskDependencies” design mirrors existing CycloneDX “component” / “service” arrays (listings) and dependency declarations

Note: we SHOULD constrain the workflow “taskDependencies” schema to only permit “task” type as valid “refType” (i.e., task-only graph composition)

Note: For “array” types, by default, JSON Schema behaves as if the `additionalItems` parameter is set to `true` (link).

TODO: Adjust existing CDX schema

Complete list of transient “components” and “services” (concrete, reusable) resources that host, run, execute or used by workflows or tasks including source code, inputs, outputs and tools.

Effectively anything that partivpates in the workflow

Note: “tasks” are NOT required (may be empty) since a ”workflow” is a specialized task, it can represent a simple, single-task CI/CD/build stage.

13 of 35

v1.5: Proposal: New `component` -> `type` enum values

[formulas]

[formulas]

formula

  • components: []component
  • services: []services
  • workflows: []workflow

Note: “component” should support new “type” enum. values.

Proposed minimum adds:

​

  • "configuration",
    • // includes K8s resource definitions (and downstream definitions from Knative, Tekton, etc.)
  • "tool",
    • // A hardware or software to that was used in a task
    • // Note: Supports early examples where “tools” were special task objects
  • "task", // to designate workflow task “components” type
    • // Note: Could use “container” type for Tekton
  • "repository” (external, resource storage)
    • // define source/target for input/output to tasks e.g., GitHub
  • Others (TBD):
    • “storage” (more generic storage term)
      • “workspace” (in-workflow, ephemeral storage)

​

​

Note: workflows are specialized, orchestration “task” types and all “tasks” have a “bom-ref” so that they can be defined once and reused.

  • (e.g., build matrices may use the same workflow subsets to scan code for example)

Workflows and tasks will use or interact with component types that are familiar to Cloud Native and CI/CD and Cloud Native domain concepts

Note: (TBD): “externalReference” MAY need to mirror some of these “type” enum. values

  • case: when dynamic resources are created or referenced during without a “component” declaration in the “formula”
    • e.g., source/target of inputs/outputs
      • one task creates a “resource” for another task

14 of 35

14

event

  • // See later slide

​

​

task

  • <resourceInstance> type
  • name: string
  • description: string
  • types: <Array> string
  • startTime: string, "date-time”
  • endTime: string, "date-time”
  • steps: <Array> step
  • workspaces: workspace
  • inputs: <Array> input
  • outputs: <Array> output
  • runtimeTopology: <Array> dependency

​

component

  • ...

component

  • ...

step

  • name: string
  • description: string
  • commands: <Array> command
  • properties: <Array> property

Proposal: Task as the granular, reusable modeling unit for workflow

trigger

  • event: event
  • // See later slide

[output]:

  • // See later slide

​

​

[output]:

  • // See later slide

​

​

output:

  • // See later slide

​

​

[output]:

  • // See later slide

​

​

[output]:

  • // See later slide

​

​

input:

  • // See later slide

​

​

Note: The task’s “types” enum indicates what functions are being performed. Current values indicate CI/CD terms:

"enum": [ "lint", "scan",

"merge", "build", "test", "deliver", "deploy", "release", "clean", "other” ]

​

component

  • ...

component

  • ...

workspaces

  • // See later slide

component

  • ...

component

  • ...

runtimeTopology

  • // See later slide

Note: inherited fields from “resourceInstance” object

​

I

O

15 of 35

15

event

  • id: string

// uuid from source domain

  • timestamp: string // time received
  • name: string
  • description: string
  • data: attachment

// e.g., ”encoding": ["base64"]

// ”contentType": [”cloud-event"

  • source: resourceReferenceChoice
  • // from resource (e.g., a service)
  • target: resourceReferenceChoice
  • // to resource e.g., (a component)

​

​

task

  • name: string
  • ...
  • startTime: "date-time”
  • endTime: "date-time”
  • ...

​

Proposal: Event Model: `event`-`trigger`-`task`

trigger

  • <resourceInstance> type
  • type: string, enum
  • event: event
  • condition: object
  • timeActivated: date-time

Multiple events can map to same trigger, multiple triggers can map to same task

Event

Sources

Note: “timestamp” indicates time the event was received by the workflow runtime.

​

The “raw” event data itself likely has its “generated” timestamp which SHOULD NOT be created or tampered with by the receiver.

Note: The trigger’s “type” enum. with values:

\�- “manual”, ”api", ”webhook", ”cron", "other”

​

Note: event “timestamp”, trigger “timeActivated” and task “startTime” and “endtime” values should correlate and represent a time sequence

condition

  • description: string
  • expression: string
  • properties: []property

16 of 35

16

Proposal: `inputType` schema:

Note: the workflow runtime can automatically bring in input resources <or> the task can be allowed to connect to external services and do so as part of its “steps”

input: inputType

  • source: resourceReferenceChoice
  • // from resource (e.g., a database)
  • target: resourceReferenceChoice
  • // to resource e.g., (a workspace)
  • resource: resourceReferenceChoice

// e.g., a “configuration” which can be declared as a local “component” or “externalReference”

  • parameters: []property

// e.g., env. vars.

  • environmentVars: []property OR string
  • data: attachment
  • properties: []property

task

  • name: string
  • description: string
  • startTime: string, "date-time”
  • endTime: string, "date-time”
  • ...

​

Note: Each input is constrained to be on type of input:

"oneOf": [

{"required": ["resource"]},

{"required": ["parameters"]},

{"required": ["environmentVars"]},

{"required": ["data"]}],

​

Represents dynamic resources brought into a task at runtime by executor or task commands

Example: “output” target could be a task workspace that the task can read from.

Example: “output” source could be a GitHub repository (with the source code as data

Note: “output” target could be a task operating system where env. vars. are created or modified.

17 of 35

17

Proposal: `outputType` schema:

task

  • name: string
  • description: string
  • startTime: string, "date-time”
  • endTime: string, "date-time”
  • ...

​

output: outputType

  • type: string, enum
  • source: resourceReferenceChoice

// from resource (e.g., a database)

  • target: resourceReferenceChoice

// to resource e.g., (a workspace)

  • resource: resourceReferenceChoice

// e.g., a “log” described by an

// “externalReference” within its target domain

  • environmentVars: []property OR string
  • data: attachment
  • properties: []property

​

Represents dynamic resources output from a task at runtime by executor or task commands

Note: “output” has a “type” enum. with values:

​

  • “log”, “evidence”, “metrics”, “data”, “other”

Note: Each input is constrained to be on type of input:

"oneOf": [

{"required": ["resource"]},

{"required": ["parameters"]},

{"required": ["environmentVars"]},

{"required": ["data"]}],

​

Example: “output” target could be a a NoSQL database or artifactory

Example: “output” source could be “workspace” the task wrote a file or data to…

Note: the workflow runtime could automatically write output data <or> the task can be allowed to connect to external services and do so as part of its “steps”

TBD: “externalReference” SHOULD mirror these “type” values to ref. their final location.

  • case: dynamically created outputs (e.g., logs, evidence, metrics sent to external resources.

18 of 35

18

task

  • definition: resourceReferenceChoice
  • inputs: []input // ref
  • outputs: []output
  • tools: []tool
  • runtime: runtime

[output]:

  • ...

​

​

Proposal: Concrete resource definitions vs. workflow references

trigger

tool

  • TBD

tool

  • TBD

tool:

runtimeTopology

  • ...

​

​

[formula]

  • components: []component
  • services: []services
  • workflows: []workflow

​

input:

  • ...

​

​

Concrete resource definitions

  • Referenced as transient resources within workflows and tasks
  • Note: MUST have ”bom-ref”
    • for workflow referencing

​

Workflows/Tasks reference resources

  • Internal: ”bom-refs” to reference resource definitions declared in “formula”
  • External: “externalReferences” to resources reposited in external sources

workflow: task

  • type: enum: string
  • tasks: []task
  • taskDependencies: []dependency

// the graph of tasks

Note: Use “components” and “services” lists of resources can also identify CVEs in workflows (as is done today in the same properties in the top-level BOM)

  • "application",
  • "framework",
  • "library",
  • "container",
  • "operating-system",
  • “device",
  • "firmware",
  • "file",
  • "configuration",
  • ”tool",
  • ”task”,
  • “repository”

Reference to the Task’s component or service definition

  • e.g., Tekton task.yaml or workflow.yaml

​

19 of 35

v1.5: Abstract `resourceReferenceChoice`

19

"resourceReferenceChoice": {

"type": "object",

"properties": {

"bom-ref": { "$ref": "#/definitions/refType"},

"externalReference": {"$ref": "#/definitions/externalReference"}

},

"oneOf":[

{"required": ["bom-ref"]},

{"required": ["externalReference"]}

]

}

Enables description of a task’s “runtimeTopology” using dependency graphs constructed from references to existing resource definitions

  • bom-ref: internal reference (declared in SBOM)
  • externalReference: external resource (pointed to by URL)
    • Note: Formulation proposal assumes this type in many instances to support a referential “instance” model

It can also be used to reference source, target resources that interact with task via “inputs” and “outputs”

20 of 35

20

Proposal: Use a `runtimeTopology` to capture task execution environments

Leverage “externalReferences” to runtime platforms/stack components as well as CycloneDX BOMLink to point to their respective BOMs: https://cyclonedx.org/capabilities/bomlink/

Note: BOMLinks are encoded using the `externalReferences` schema object; a second “externalReference”

would link to the component canonical repository/artifactory/catalog (including corporate/private software )

  • This would be align with the Open Container Initiative (OCI) artifactory spec. where BOMs are linked metadata

{

"bomFormat": "CycloneDX",

”specVersion": "1.4”,

"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",

"version": 1,

"components": [{

"type": "library",� "group": "org.example",

"name": "persistence",

“version": "5.2.0",

"externalReferences": [{

"type": "bom",

"url": "urn:cdx:bdd819e6-ee8f-42d7-a4d0-166ff44d51e8/5",

"comment": ”Link to specified BOM, version 5 and bom-ref.",

"hashes": [{

"alg": "SHA-512",

"content": "45c6e3d03ec4207234...”

}]

}]

}]

}

urn:cdx:serialNumber/version#bom-ref

Syntax:

TBD: Perhaps consider adding types that match Cloud Native (CN) and Open Container Initiative (OCI) runtime components? v1.6?

​

For example:

  • “pod”,
  • ”machine",
  • “repository”

Example:

21 of 35

v1.5: Reuse: Referencing resources `resourceReferenceChoice`

21

"resourceReferenceChoice": {

"type": "object",

"properties": {

"bom-ref": { "$ref": "#/definitions/refType"},

"externalReference": {"$ref": "#/definitions/externalReference"}

},

"oneOf":[

{"required": ["bom-ref"]},

{"required": ["externalReference"]}

]

}

Purpose: Encourage dependency graphs to be constructed from references to existing resource definitions

  • bom-ref: internal reference (declared in SBOM)
  • externalReference: external resource (pointed to by URL)
    • Note: assumes “schema” proposal (addition) to v1.5 RFC

​

Formulation Use Case: Compose Runtime Topologies (for Workflows/Tasks)

22 of 35

© 2023 IBM Corporation

22

Examples:

Formulation: Tekton workflow

with Single “Build” Task

23 of 35

v1.5: Usage Example: `input` (TODO)

23

{

"input": {

"resource": {

"bom-ref": "mytask",

"name": "build-config",

"description": "Input for build task",

"type": "configuration",

},

...

}

Schema: for “input” type

{

"$schema": "http://json-schema.org/draft-07/schema#",

"$id": "https://test-polymorphic",

"type": "object",

"required": ["input"],

"properties": {

"input": {

"type": "object",

"properties": {

"resource": {"$ref": "#/definitions/resourceReferenceChoice"},

},

"required": ["resource"]

}

},

...

}

Usage: of “input” type

”type” enum uses new value “configuration"

24 of 35

24

Example: `runtimeTopology` for a Tekton Container runtime on K8s

TBD

25 of 35

© 2023 IBM Corporation

25

(Future)

v1.6 Proposal for using an abstractResourceType

to reduce field duplication

26 of 35

v1.6: Future-Proofing Resources: `abstractResourceType` (proposl)

26

{ "$schema": "http://json-schema.org/draft-07/schema#",

"$id": "https://test-polymorphic",

"type": "object",

"required": ["input"],

"properties": {

...

},

"definitions": {

"abstractResourceType": {

"type": "object",

"properties": {

"bom-ref": {"type": "string"},

"name": {"type": "string"},

"version": {"type": "string"},

"description": {"type": "string"},

"externalReferences": {"type": "string"}

},

"required": ["bom-ref", "name"]

},

"component": {

"allOf": [ {"$ref": "#/definitions/abstractResourceType"}],

"properties": {

"type": {"type": "string",

"enum": ["application", "library", "container",

"operating-system","file", "configuration", ”log”, “tool”]},

"cpe": {"type": "string"},

"bom-ref": {},

"name": {},

"version": {},

"description": {},

"externalReferences": {}

},

"additionalProperties": false

} }

}

“additionalProperties”:false makes “componentType” a concrete type

reusable (abstract) resource base type (extensible) with common `required` fields

Able to declare additional properties (and `required`) for specific concrete type (e.g., `type`, `cpe`, etc.)

Export properties from abstract type (e.g., “name”, “version”, etc.)

“type“ enum SHOULD have additional values for formulation resources

(e.g., “configuration” (input), “log” (output))

concrete `abstractResourceType` for “component” resource types

“type“ enum MAY need to add a “tool” (or “utility”) value.

27 of 35

v1.6: Abstract `resourceChoice`

27

{

"service": {

"allOf": [ {"$ref": "#/definitions/abstractResourceType"}],

"properties": {

"endpoints": {"type": ”object"},

"bom-ref": {},

"name": {},

"version": {},

"description": {},

"externalReferences": {}

},

"additionalProperties": false

},

"machineLearningModel": {

"allOf": [ {"$ref": "#/definitions/abstractResourceType"}],

"properties": {

"modelCard": {"type": "object"},

"bom-ref": {},

"name": {},

"version": {},

"description": {},

"externalReferences": {}

},

"additionalProperties": false

},

}

}

`resourceChoice` allows any one of the concrete types

"resourceChoice": {

"type": "object",

"oneOf": [

{"$ref": "#/definitions/component" },

{"$ref": "#/definitions/service"},

{"$ref": "#/definitions/machineLearningModel"},

( ... }

]

}

Create more concrete resource types each with unique properties:

Note: different properties that are of type `resourceChoice` can further constrain (limit) the valid concrete types for that usage context

Additional properties unique to the concrete type (e.g., `endpoints` for services, `modelCard` for Machine Learning (ML) models, etc.)

Note: A Machine Learning (ML) model type here is just to illustrate what is possible. It may well be that ML models can simply be represented by the existing “component” type with an additional “type” enum. value of “ml-model” or similar.

28 of 35

© 2023 IBM Corporation

28

Early Formulation Example (JSON)

​

29 of 35

Current Draft Formulation High-Level Model

29

Based upon “example1.json”

[sequence]

  • events
  • configurations

[sequence]

  • events
  • configurations

[sequence]

  • events
  • configurations

[bom] (root)

  • ...
  • formulation(s)

[event]

  • input(s)
  • output(s)
  • task(s)
  • dependsOn
  • executor
  • configurations

​

​

[input]

  • components
  • services
  • TBD

[task]

  • steps
  • executed_by // TBD
  • tool(s) // TBD

​

[executor]

  • externalReferences
  • TBD

​

[formulas]

[formulas]

[formula]

  • sequences

component

  • ...

component

  • ...

component

  • ...

component

  • ...

component

  • ...

service

  • ...

[output]

  • components
  • services
  • TBD

component

  • ...

component

  • ...

step

  • [] string
  • TBD

[dependency]

  • TBD

​

​

[configuration]

  • TBD

​

​

[configuration]

  • TBD

​

​

[configuration]

  • TBD

​

​

executed_by ???

tool

  • TBD

component

  • ...

component

  • ...

component

  • ...

component

  • ...

component

  • ...

service

  • ...

30 of 35

Current Draft Formulation Model Details

30

Based upon “example1.json”

[formula]: object

  • bom-ref: refType *
  • name: string
  • description: string
  • properties: <array> [event]
  • sequences: <array> [sequence]

​

[sequence]: object

  • bom-ref: refType *
  • events: <array> [event]
  • configurations: <array> TBD
    • // note: with override

[event]: object

  • bom-ref: refType *
  • name: string
  • description: string
  • started: string // to task
  • completed: string // to task
  • input: <object> // to task
  • output(s): <object> // to task
  • task: array <object>

// array, plural

  • dependsOn: <array> // to task
  • configurations // to task
  • executor: <array> [executor]

// to-task, SHOULD be a component with its own BOM/graph and per-workflow, or per-task

​

​

​

​

[input]: object

  • components: <array> [component] // TBD
  • services: <array> [service] // ???, TBD
  • data: <array> [refType] // jso, yaml, etc.
  • resources: <array> [refType] // Git, DB, etc.

​

[output]: object

  • components: <array> [component]
  • services: <array> [service] // see above

[task]: object

  • bom-ref: refType * // reusable
  • name: string
  • steps: <array> of step
  • executed_by: <object> // executedBy (camel)
  • tool: <object> // component, plural
  • automated: boolean
  • human_required: boolean // redundant

[executor]: object

  • bom-ref: refType * //reusable
  • type: string // Should ref. component
  • name: string
  • externalReferences: <object>

​

​

[bom] (root)

[configuration]: object

  • TBD

​

​

[dependency]: object

  • TBD

​

​

31 of 35

© 2023 IBM Corporation

31

Frsca Background

featuring Tekton Chains and Spire Usage

​

32 of 35

Tekton Chains – Single Task Demo

32

33 of 35

33

Zero-Trust Supply Chains (Frsca + Spire)

34 of 35

34

Road to SLSA3: Non-falsifiable Provenance in Tekton with SPIFFE/SPIRE

35 of 35

Containers Approach - ”Build your own Docker image with everything”

35

Runtime (Container image)

Server Framework or HTTP Server

Output

​

Framework Context

Fx

“App” Libraries

Environment Vars.

Input

​

CaaS Platform

Language Runtime

“Profile” Libraries

(Provider dependent)

“System” Libraries

1

2

3

4

5

6

7

Developers Create a “Full Stack” Runtime image with Function and dependencies “baked in”

Handle Granular logging or monitoring

6

Select base language runtime image

  • Compatible with target cloud’s hardware architecture
  • Typically language communities provide versioned Docker image to select from

1

Install ”Profile” libraries

        • approved by your project

2

Installing Service Framework or Http Server

        • to run your “function” as a service

3

Install “function” + Dependencies into Service Framework

  • Export route to your “function” on provider designated port

4

Configure your own Context

  • Fixed into Environment Variables

5

Manage Concurrency

7

Serverless Platform Invokes Endpoint and Scales Container