# Evaluate evidence with AI Source: https://docs.chainloop.dev/api-reference/agentsservice/evaluate-evidence-with-ai https://api.app.chainloop.dev/openapi.yaml post /v1/agents/evaluate-evidence Starts an AI-powered analysis of evidence identified by digest or provided as raw content. Returns an operation ID for polling the result. # Describe an artifact Source: https://docs.chainloop.dev/api-reference/artifactservice/describe-an-artifact https://api.app.chainloop.dev/openapi.yaml get /v1/artifacts/{id} Get detailed information about an artifact by ID, including a paginated list of linked evidence. # List artifacts Source: https://docs.chainloop.dev/api-reference/artifactservice/list-artifacts https://api.app.chainloop.dev/openapi.yaml get /v1/artifacts List artifacts stored in the organization, optionally filtered by project, product, kind, or search term. # Approve an assessment revision Source: https://docs.chainloop.dev/api-reference/assessmentservice/approve-an-assessment-revision https://api.app.chainloop.dev/openapi.yaml post /v1/assessments/revisions/{revision_id}/approve Promote a pending assessment revision to APPROVED. The parent assessment's effective state is refreshed from this revision. # Create an assessment Source: https://docs.chainloop.dev/api-reference/assessmentservice/create-an-assessment https://api.app.chainloop.dev/openapi.yaml post /v1/assessments Create a new security assessment. # Delete an assessment Source: https://docs.chainloop.dev/api-reference/assessmentservice/delete-an-assessment https://api.app.chainloop.dev/openapi.yaml delete /v1/assessments/{id} Delete an assessment. # Get an assessment Source: https://docs.chainloop.dev/api-reference/assessmentservice/get-an-assessment https://api.app.chainloop.dev/openapi.yaml get /v1/assessments/{id} Get detailed information about a specific assessment. # Get assessment summary Source: https://docs.chainloop.dev/api-reference/assessmentservice/get-assessment-summary https://api.app.chainloop.dev/openapi.yaml get /v1/assessments/summary Returns aggregate counts of assessments grouped by status, scoped to a project and optionally a project version. # List assessment revisions Source: https://docs.chainloop.dev/api-reference/assessmentservice/list-assessment-revisions https://api.app.chainloop.dev/openapi.yaml get /v1/assessments/{assessment_id}/revisions List every revision recorded for a single assessment, newest first. # List assessments Source: https://docs.chainloop.dev/api-reference/assessmentservice/list-assessments https://api.app.chainloop.dev/openapi.yaml get /v1/assessments List assessments with optional filters. # List effective assessments for lookups Source: https://docs.chainloop.dev/api-reference/assessmentservice/list-effective-assessments-for-lookups https://api.app.chainloop.dev/openapi.yaml post /v1/assessments/list-effective For each (external_id, identity) lookup of a given finding type, return matching assessments and the precedence-resolved effective status, scoped to a project (and optionally a version). Works with zero findings — queries assessments directly. # Reject an assessment revision Source: https://docs.chainloop.dev/api-reference/assessmentservice/reject-an-assessment-revision https://api.app.chainloop.dev/openapi.yaml post /v1/assessments/revisions/{revision_id}/reject Reject a pending assessment revision. The parent assessment is not modified. # Trigger auto-assessment Source: https://docs.chainloop.dev/api-reference/assessmentservice/trigger-auto-assessment https://api.app.chainloop.dev/openapi.yaml post /v1/assessments/auto Dispatch an AI-powered auto-assessment for a vulnerability finding. # Update an assessment Source: https://docs.chainloop.dev/api-reference/assessmentservice/update-an-assessment https://api.app.chainloop.dev/openapi.yaml put /v1/assessments/{id} Update an existing assessment. # Dispatch a managed workflow scan Source: https://docs.chainloop.dev/api-reference/asyncoperationsservice/dispatch-a-managed-workflow-scan https://api.app.chainloop.dev/openapi.yaml post /v1/operations/dispatch-workflow-scan Re-runs the scan or check associated with a managed workflow. The task is derived from the workflow's template. Returns the AsyncOperation ID the caller can poll. # Get async operation status Source: https://docs.chainloop.dev/api-reference/asyncoperationsservice/get-async-operation-status https://api.app.chainloop.dev/openapi.yaml get /v1/operations/{operation_id} Retrieves the current status and result of an asynchronous operation. # List async operations Source: https://docs.chainloop.dev/api-reference/asyncoperationsservice/list-async-operations https://api.app.chainloop.dev/openapi.yaml get /v1/operations Lists asynchronous operations with optional filters for resource association and status. # Creates and attestation from a piece of content Source: https://docs.chainloop.dev/api-reference/attestationsservice/creates-and-attestation-from-a-piece-of-content https://api.app.chainloop.dev/openapi.yaml post /v1/attestations This endpoint is used to create an attestation for a piece of content, such as a file or a blob. The provided content is stored in the configured storage backend # Get lightweight product compliance summary Source: https://docs.chainloop.dev/api-reference/complianceservice/get-lightweight-product-compliance-summary https://api.app.chainloop.dev/openapi.yaml get /v1/compliance/product/summary Returns per-requirement aggregated status, automation level, scope and pre-computed flags (override / needs-review) plus aggregate project counts for a product version. Excludes policy evaluation payloads, manual evidence, override details and per-project breakdowns — those load on demand via GetProductRequirementComplianceDetail. # Get product-level compliance aggregation Source: https://docs.chainloop.dev/api-reference/complianceservice/get-product-level-compliance-aggregation https://api.app.chainloop.dev/openapi.yaml get /v1/compliance/product Retrieves aggregated compliance data for a product version across all its project versions. Includes per-project evaluation details and overall status using 'worst case wins' logic, filtering out not-applicable requirements. # Get project-level compliance evaluation Source: https://docs.chainloop.dev/api-reference/complianceservice/get-project-level-compliance-evaluation https://api.app.chainloop.dev/openapi.yaml get /v1/compliance/project Retrieves compliance evaluation summary for specific frameworks and project version. Returns per-requirement evaluation details including status, policy evaluations, manual evidence, and overrides. # Get single-requirement product compliance detail Source: https://docs.chainloop.dev/api-reference/complianceservice/get-single-requirement-product-compliance-detail https://api.app.chainloop.dev/openapi.yaml get /v1/compliance/product/requirement Returns the full evaluation payload for a single requirement of a product version: per-project policy evaluations, manual evidence submissions, override details and expired tests. # List a policy evaluation's violations Source: https://docs.chainloop.dev/api-reference/complianceservice/list-a-policy-evaluations-violations https://api.app.chainloop.dev/openapi.yaml get /v1/compliance/policy-evaluations/{policy_evaluation_id}/violations Returns one policy evaluation's violation messages, paginated, in the order the policy reported them. GetEvaluationsForWorkflow reports only violation_count and has_violations, because a single evaluation can carry hundreds of thousands of violations. Evaluations stored before violations had their own rows are served from the legacy inline column, where every violation reports suppressed=false. # Describe a component Source: https://docs.chainloop.dev/api-reference/componentservice/describe-a-component https://api.app.chainloop.dev/openapi.yaml get /v1/components/{id} Returns detailed information about a component and all projects/versions where it appears # List software components Source: https://docs.chainloop.dev/api-reference/componentservice/list-software-components https://api.app.chainloop.dev/openapi.yaml get /v1/components List the software components (SBOM) registered in your organization, optionally filtered by project version or product version. # Summarize components Source: https://docs.chainloop.dev/api-reference/componentservice/summarize-components https://api.app.chainloop.dev/openapi.yaml get /v1/components/summary Return aggregate component counts (total / vulnerable / fixable / exploitable) for a project version. # Download Artifacts from CAS Source: https://docs.chainloop.dev/api-reference/downloadservice/download-artifacts-from-cas https://cp.chainloop.dev/openapi.yaml get /download/{digest} Downloads artifacts stored in the Chainloop Content Addressable Storage (CAS). The artifact is identified by its cryptographic digest, which serves as both the unique identifier and integrity verification mechanism. The endpoint behavior varies based on the client type detected via the Accept header. **Client-Specific Behavior:** - **Browser clients** (Accept contains "text/html"): Receives a user-friendly message with a 1-second delayed redirect using the Refresh header - **CLI/API clients** (other Accept values): Receives immediate 302 redirect via Location header # Create an environment Source: https://docs.chainloop.dev/api-reference/environmentsservice/create-an-environment https://api.app.chainloop.dev/openapi.yaml post /v1/environments Creates a new environment with a name, type, and optional description. # Delete an environment Source: https://docs.chainloop.dev/api-reference/environmentsservice/delete-an-environment https://api.app.chainloop.dev/openapi.yaml delete /v1/environments/{id} Soft-deletes an environment by its ID. The environment will no longer be accessible. # Describe an environment Source: https://docs.chainloop.dev/api-reference/environmentsservice/describe-an-environment https://api.app.chainloop.dev/openapi.yaml get /v1/environments/{id} Retrieves detailed information about an environment by its ID. # List deployment names Source: https://docs.chainloop.dev/api-reference/environmentsservice/list-deployment-names https://api.app.chainloop.dev/openapi.yaml get /v1/deployment-names Returns distinct deployment names with optional filtering by environment, logical environment, and search query. # List deployment records Source: https://docs.chainloop.dev/api-reference/environmentsservice/list-deployment-records https://api.app.chainloop.dev/openapi.yaml get /v1/deployments Retrieves a paginated list of deployment records with optional filtering by environment, project, version, status, artifact kind, and deployment name. # List environments Source: https://docs.chainloop.dev/api-reference/environmentsservice/list-environments https://api.app.chainloop.dev/openapi.yaml get /v1/environments Retrieves a paginated list of environments with optional filtering by name or description. # Record a deployment Source: https://docs.chainloop.dev/api-reference/environmentsservice/record-a-deployment https://api.app.chainloop.dev/openapi.yaml post /v1/deployments Creates or updates a deployment record linking an artifact to an environment. If a record for the same environment and deployment name already exists, it will be updated. # Update an environment Source: https://docs.chainloop.dev/api-reference/environmentsservice/update-an-environment https://api.app.chainloop.dev/openapi.yaml put /v1/environments/{id} Updates an existing environment by ID. Supports updating name, description, and type. # Describe a piece of evidence Source: https://docs.chainloop.dev/api-reference/evidenceservice/describe-a-piece-of-evidence https://api.app.chainloop.dev/openapi.yaml get /v1/evidence/{id} Get detailed information about a specific piece of evidence by its unique identifier. # List pieces of evidence Source: https://docs.chainloop.dev/api-reference/evidenceservice/list-pieces-of-evidence https://api.app.chainloop.dev/openapi.yaml get /v1/evidence List the pieces of evidence registered in your organization, these include SBOMs, vulnerability reports, attestations or more, optionally filtered by project name and project version. # Delete a finding Source: https://docs.chainloop.dev/api-reference/findingservice/delete-a-finding https://api.app.chainloop.dev/openapi.yaml delete /v1/findings/{finding_id} Soft-delete a finding. If the same finding is detected again by a later ingestion, it is re-created as a new row. # Describe a finding Source: https://docs.chainloop.dev/api-reference/findingservice/describe-a-finding https://api.app.chainloop.dev/openapi.yaml get /v1/findings/{finding_id} Get detailed information about a specific security finding. # Ingest SBOM findings Source: https://docs.chainloop.dev/api-reference/findingservice/ingest-sbom-findings https://api.app.chainloop.dev/openapi.yaml post /v1/findings/ingest-sbom Ingest the vulnerabilities embedded in a CycloneDX SBOM evidence as findings bound to a project version. The SBOM is referenced by its CAS digest and must already be attached to the project version. Processing is asynchronous. # List findings Source: https://docs.chainloop.dev/api-reference/findingservice/list-findings https://api.app.chainloop.dev/openapi.yaml get /v1/findings List security findings (vulnerabilities, license violations, etc.) for the current organization, with optional filters. # Summarize findings Source: https://docs.chainloop.dev/api-reference/findingservice/summarize-findings https://api.app.chainloop.dev/openapi.yaml get /v1/findings/summary Return aggregate finding counts (totals, assessment breakdown, unassessed severity × fixable matrix, suggested-action scalars) for the current organization, with optional filters. # Trigger auto-remediation Source: https://docs.chainloop.dev/api-reference/findingservice/trigger-auto-remediation https://api.app.chainloop.dev/openapi.yaml post /v1/findings/auto-remediation Dispatch an AI-powered auto-remediation for a vulnerability finding, creating a PR with the fix. # Update a finding Source: https://docs.chainloop.dev/api-reference/findingservice/update-a-finding https://api.app.chainloop.dev/openapi.yaml put /v1/findings/{finding_id} Transition a finding's lifecycle status. resolution_reason is only accepted when the new status is resolved or rejected and is cleared otherwise. # Create a logical environment Source: https://docs.chainloop.dev/api-reference/logicalenvironmentsservice/create-a-logical-environment https://api.app.chainloop.dev/openapi.yaml post /v1/logical-environments Creates a new logical environment with a name and optional description. # Delete a logical environment Source: https://docs.chainloop.dev/api-reference/logicalenvironmentsservice/delete-a-logical-environment https://api.app.chainloop.dev/openapi.yaml delete /v1/logical-environments/{id} Soft-deletes a logical environment by its ID. The logical environment will no longer be accessible. # Describe a logical environment Source: https://docs.chainloop.dev/api-reference/logicalenvironmentsservice/describe-a-logical-environment https://api.app.chainloop.dev/openapi.yaml get /v1/logical-environments/{id} Retrieves detailed information about a logical environment by its ID. # List logical environments Source: https://docs.chainloop.dev/api-reference/logicalenvironmentsservice/list-logical-environments https://api.app.chainloop.dev/openapi.yaml get /v1/logical-environments Retrieves a paginated list of logical environments with optional filtering by name and description. # Update a logical environment Source: https://docs.chainloop.dev/api-reference/logicalenvironmentsservice/update-a-logical-environment https://api.app.chainloop.dev/openapi.yaml put /v1/logical-environments/{id} Updates an existing logical environment's name and/or description by ID. # Overview Source: https://docs.chainloop.dev/api-reference/overview There are **two main APIs**, one in the controlplane and another in the platform backend. > [!WARNING] > > The following examples are using the available chainloop cloud API endpoints, if you are using a self-hosted instance you will need to replace the endpoints with your own. > [!NOTE] > > Chainloop platform backend API is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). * Chainloop controlplane, i.e `https://api.cp.chainloop.dev`, handles operations on `organizations`, `workflows`, `workflow runs` , `contracts`, `discovery` , … * Chainloop platform backend, i.e `https://api.app.chainloop.dev`, handles operations on `policies`, `policy groups`, `frameworks`, `requirements`, `projects` ## List Available API operations You can use the `buf curl` command to list the available operations for a given API ```bash theme={"dark"} # Controlplane API $ buf curl https://api.cp.chainloop.dev --list-methods --protocol grpc # Platform Backend API $ buf curl https://api.app.chainloop.dev --list-methods --protocol grpc ``` or a web interface such as [grpcUI](https://github.com/fullstorydev/grpcui) or Postman ```bash theme={"dark"} grpcui -rpc-header "Authorization: Bearer $API_TOKEN" api.cp.chainloop.dev:443 ``` ## Calling the API ### Authentication and Authorization The API is currently authenticated via `user` tokens and `api tokens` * user tokens are credentials valid for 24 hours that are generated after logging in the platform or using `chainloop auth login` command. **It is not recommended to use this token for unattended operations because of its ephemerality properties.** * API tokens are credentials with an optional expiration date **associated with an organization** meant to be used for unattended workflows, i.e CI attestations or automation in general. The set of operations that they can perform today is not configurable but this will likely change in the future > [!NOTE] > > Some operations are restricted to only user tokens. We are working on offering a way to configure API tokens permissions in the future, in the meantime, please contact us if there is a specific operation you need to perform that you can't do with an API token. For more information on authentication methods please [read the docs](/reference/api-tokens). To authenticate just use the `Authorization` header with your token of choice, example. ```bash theme={"dark"} buf curl -H "Authorization: Bearer $API_TOKEN" https://api.cp.chainloop.dev/controlplane.v1.APITokenService/List --protocol grpc ``` Additionally, you can **select the user organization explicitly** if you are using a user token (API tokens come already pre-configured with an organization). Otherwise it will pick the configured default organization `chainloop org ls` ```bash theme={"dark"} buf curl -H "Authorization: Bearer $API_TOKEN" \ -H "chainloop-organization: my-org-name" \ https://api.cp.chainloop.dev/controlplane.v1.APITokenService/List --protocol grpc ``` ### API Clients By default, these APIs are exposed as **gRPC** although some of those APIs are exposed as **REST API**, more on that [below](#rest-api). This means that you can leverage any gRPC client to interact with the API. #### buf curl To call the API from the terminal you can use [buf curl](https://buf.build/docs/reference/cli/buf/curl/) ```bash theme={"dark"} # List existing methods buf curl -H "Authorization: Bearer $API_TOKEN" https://api.cp.chainloop.dev --list-methods --protocol grpc # example: call API tokens listing endpoints buf curl -H "Authorization: Bearer $API_TOKEN" -H \ https://api.cp.chainloop.dev/controlplane.v1.APITokenService/List --protocol grpc ``` #### postman or grpcui Use a user interface such as [grpcUI](https://github.com/fullstorydev/grpcui) or Postman ```bash theme={"dark"} grpcui -rpc-header "Authorization: Bearer $API_TOKEN" api.cp.chainloop.dev:443 ``` Or generate your own client by using the proto definitions that can be found [here](https://github.com/chainloop-dev/chainloop/tree/main/app/controlplane/api/controlplane/v1) (only for the controlplane API, for the backend one please ask us) #### Native gRPC client You can compile the proto definitions and use the native gRPC client to interact with the API. **Controlplane API** * Pre-compiled gRPC web typescript clients can be found [here](https://github.com/chainloop-dev/chainloop/tree/main/app/controlplane/api/gen/frontend) * Pre-compiled gRPC go clients can be found [here](https://github.com/chainloop-dev/chainloop/tree/main/app/controlplane/api/controlplane/v1) * If those are not enough you can compile the proto definitions yourself and generate the gRPC client. The source protocol buffer code can be found [here](https://github.com/chainloop-dev/chainloop/tree/main/app/controlplane/api) and you can use the `make api` or `buf generate` commands. **Platform Backend API** We are not exposing the clients publicly yet, if you need them please reach out to us. ## Rest API Currently, we have a limited set of endpoints exposed as REST API but we are planning on exposing more alongside its documentation. Stay tuned and let us know if you are interested in this feature. ### Getting the API Spec > [!NOTE] > > If you are using a self-hosted instance of Chainloop, you can find the pre-configured API spec for your instance in the help menu of your portal web UI. > > ![The help menu in the Chainloop UI with links to the API specs](https://mintcdn.com/chainloop/hibEOkV5XjWISiDa/img/api-spec.png?fit=max\&auto=format\&n=hibEOkV5XjWISiDa\&q=85\&s=c403edb1ccac66d54022034b017395f8) You can download the OpenAPI spec for the REST API in the following URLs: * Portal Spec [https://api.app.chainloop.dev/openapi.yaml](https://api.app.chainloop.dev/openapi.yaml) * Controlplane Spec [https://cp.chainloop.dev/openapi.yaml](https://cp.chainloop.dev/openapi.yaml) > [!TIP] > > You can import the OpenAPI specs into Postman collections to start calling the API endpoints. > > ![OpenAPI Spec](https://mintcdn.com/chainloop/h5-3adbLJmChw086/img/postman-specs.png?fit=max\&auto=format\&n=h5-3adbLJmChw086\&q=85\&s=13227098da963d25016d36176d6e7af6) ### Using the Rest API You can call the API using any REST API client such as Postman or curl like this: ```bash theme={"dark"} # Example of http API endpoint curl https://cp.chainloop.dev/infoz {"loginURL":"https://app.chainloop.dev/login", "version":"0.172.0", "chartVersion":"1.190.0"}% ``` ## MCP Server Chainloop provides a remote MCP server that can be used to interact with Chainloop from your AI clients or agents. Please refer to this [guide](/guides/chainloop-mcp) to learn how to connect to the MCP server. # Create a new policy Source: https://docs.chainloop.dev/api-reference/policyservice/create-a-new-policy https://api.app.chainloop.dev/openapi.yaml post /v1/policies Creates a new policy with the provided definition. The policy will be registered for the organization of the authenticated user. # Get a policy by name Source: https://docs.chainloop.dev/api-reference/policyservice/get-a-policy-by-name https://api.app.chainloop.dev/openapi.yaml get /v1/policies/{policy_name} Retrieves a policy by its name, optionally specifying a particular version by digest. If no digest is provided, the latest version is returned. # Get a policy group by name Source: https://docs.chainloop.dev/api-reference/policyservice/get-a-policy-group-by-name https://api.app.chainloop.dev/openapi.yaml get /v1/groups/{group_name} Retrieves a policy group by its name, optionally specifying a particular version by digest. If no digest is provided, the latest version is returned. # Remove a policy from the list Source: https://docs.chainloop.dev/api-reference/policyservice/remove-a-policy-from-the-list https://api.app.chainloop.dev/openapi.yaml delete /v1/policies/{policy_name} Removes a policy from the listing. The policy will no longer be visible or accessible, but may still exist in the system. # Update an existing policy Source: https://docs.chainloop.dev/api-reference/policyservice/update-an-existing-policy https://api.app.chainloop.dev/openapi.yaml put /v1/policies Updates an existing policy with a new definition. This creates a new version of the policy. # Validate a policy attachment Source: https://docs.chainloop.dev/api-reference/policyservice/validate-a-policy-attachment https://api.app.chainloop.dev/openapi.yaml post /v1/policies/validate Validates a policy attachment by checking its arguments and requirements against the policy definition. # Get product version details Source: https://docs.chainloop.dev/api-reference/productsservice/get-product-version-details https://api.app.chainloop.dev/openapi.yaml get /v1/products/{product_id}/versions/{version_id} Retrieves detailed information about a specific version of a product, including its associated projects and frameworks. # List products Source: https://docs.chainloop.dev/api-reference/productsservice/list-products https://api.app.chainloop.dev/openapi.yaml get /v1/products Retrieves a paginated list of products with optional filtering by name, description, business unit, and project association. Only returns products the user has access to. # List projects Source: https://docs.chainloop.dev/api-reference/projectsservice/list-projects https://api.app.chainloop.dev/openapi.yaml get /v1/projects Retrieves a paginated list of projects with optional filtering by name and description. Only returns projects the user has access to based on RBAC permissions. # Discover private referrer Source: https://docs.chainloop.dev/api-reference/referrerservice/discover-private-referrer https://cp.chainloop.dev/openapi.yaml get /discover/{digest} Returns the referrer item for a given digest in the current organization # Get current user information Source: https://docs.chainloop.dev/api-reference/userservice/get-current-user-information https://api.app.chainloop.dev/openapi.yaml get /v1/users/info Returns information about the currently authenticated user, including personal details and organization memberships. # List workflow templates Source: https://docs.chainloop.dev/api-reference/workflowtemplateservice/list-workflow-templates https://api.app.chainloop.dev/openapi.yaml get /v1/workflow-templates Lists workflow templates visible to the caller: built-in templates plus the authenticated organization's own templates. Available to any organization member. # Changelog Source: https://docs.chainloop.dev/changelog Keep up with the latest releases, improvements, and fixes. **November 6, 2026** v1.152.0 ## Findings that follow through Each finding can now have its own Linear ticket, and the ticket follows the finding until the fix lands. Pull requests get security checks based on the history of your repository, and AI coding sessions show their changes for each pull request. ## One Linear ticket per finding Send each [vulnerability finding](/concepts/vulnerability-management) to the team that fixes it. Each finding now has one [Linear](/concepts/issue-trackers) ticket at most. You can file it by hand or let Chainloop file it for you. **File by hand or automatically.** The finding detail has a **Create Linear issue** action. The Linear notification of a product can also file a ticket for each new finding at or above a minimum severity, with the state, priority and labels that you choose. **The ticket follows the finding.** When a finding is resolved, Chainloop completes its ticket. When a finding is rejected or not affected, Chainloop cancels the ticket. An assessment moves the ticket to a started state. Each change to the assessment or the status adds a comment to the ticket that says what changed and who changed it. **Vulnerability details in the ticket.** The ticket shows the vulnerability description, the CWEs, the CISA KEV flag, the latest assessment, and links to the project, the project version and the finding. Your team does not have to open Chainloop to understand the problem. **Tickets in the findings list.** The findings list has a new **Ticket** column that opens the ticket in Linear. Tickets that you filed from assessments move to their findings. ## Security checks on pull requests (Preview) Chainloop now audits the changes of a pull request against the security history of the repository. The audit starts from the [AI Security Context](/concepts/ai-code-analysis), so each issue that it reports traces back to a past fix in your code. It does not look for generic bugs. The results show in the **Security Checks** section of the [pull request comment](/concepts/ai-code-analysis#regression-checks-on-pull-requests). Chainloop also stores them as SARIF evidence on the `pr-validation` workflow. Security checks are available to selected organizations. Contact us to enable them for yours. ## AI coding sessions for each pull request An [AI coding session](/concepts/ai-coding-sessions) can work on more than one branch, and each branch can have its own pull request. Chainloop now keeps the changes of each branch separately, so a push to one branch no longer replaces the changes of another. **One pull request at a time.** When a session has more than one pull request, the session page shows a selector with the status of each one. The page opens on the newest pull request, and the link keeps the pull request that you select. **Accurate PR comments.** The [pull request comment](/concepts/ai-coding-sessions#pr-correlation) shows only the files and lines of its own pull request, also for stacked pull requests. > [accordion] More Improvements > > * **Repository coverage.** The Security Context of the project Security tab shows how much of the repository history the [AI Code Analysis](/concepts/ai-code-analysis) scanned, also when it found no fixes\\ > > * **Search confirmed fixes.** Search the confirmed fixes by commit subject, summary or commit SHA. The search covers all pages and works together with the class and severity filters\\ > > * **Security Context of any size.** The Security tab loads faster, the confirmed fixes have pages, and very large repositories show their Security Context. The analysis also checks commits with very large diffs, and an incremental scan continues after a model change\\ > > * **Readable fix trend.** The fix trend chart shows only the period that the analysis covered, so the recent quarters no longer shrink to thin bars\\ > > * **AI agents on the Responses API.** Ask Chainloop and the AI agents now use the OpenAI Responses API. See [LLM Support](/reference/llm-support)\\ > > * **Markdown in reasoning notes.** The steps that [Ask Chainloop](/concepts/ask-chainloop) shows while it works now render Markdown\\ > > * **Shareable session list pages.** The AI coding sessions list keeps its page and page size in the URL, so you can share a link to a page and use the browser Back button\\ > > * **Credential name in attestations.** The attestation auth information now includes the [API token](/reference/api-tokens) name, or the OIDC subject of a federated identity, so you can identify the credential without a lookup\\ > > * **Discovery in the current organization.** `chainloop discover`, the `chainloop.discover` [policy builtin](/reference/builtin-functions) and the web UI now search only the current organization. Before, discovery searched every organization of the user\\ > > * **All discovery results in policies.** The `chainloop.discover` builtin now reads all the pages of results, up to 1000 references. It sets `truncated` when it stops before the last page\\ > > * **CLI installs the binary you run.** The install script warns when another `chainloop` binary comes first in your `PATH`, and the upgrade notice gives a command that replaces the binary that you run. See [CLI installation](/cli/installation)\\ > > * **Gateway API settings in the Helm chart.** The self-hosted chart adds Envoy Gateway traffic policies with longer timeouts for uploads and gRPC streams, and optional backend TLS policies\\ > [accordion] Bug Fixes > > * Frontend The **Update** button of the `pr-validation` workflow form is enabled when you change a template input\\ > > * Frontend `pr-validation` workflows no longer show a **Re-scan** option that fails\\ > > * Frontend The Security Context switches from "Analysis in progress" to the results without a page reload\\ > > * Frontend The "Material Type" filter and the evidence viewer support `MSBUILD_LOG` evidence\\ > > * Backend The top workflows chart of SDLC Insights loads faster and no longer counts deleted workflows\\ > > * Backend Chainloop disables Multipath TCP by default to mitigate CVE-2026-98432\\ > > * CLI `chainloop auth login` checks the token with the control plane and fails on an expired token or a token from another instance\\ > > * CLI `chainloop policy develop eval` evaluates policies whose spec has no `kind`\\ > > * CLI Chainloop Trace no longer counts upstream lines as AI edits after a `git rebase`, `git pull` or `git checkout`\\ > > * CLI Chainloop Trace keeps the AI line counts of a session that has not committed yet when another session pushes\\ **October 30, 2026** v1.143.0 ## Your AI, your evidence rules Chainloop now runs its AI features on the model you choose, from Claude on Microsoft Foundry to open models on OpenRouter. Ask Chainloop shows its work while it answers, compliance admins can accept only files as evidence, and Chainloop Trace adds the Pi coding agent. ## Bring your own AI model You decide which model powers Ask Chainloop, the evidence evaluator and the AI agents. Set a model name on your AI provider connection, and Chainloop sends every request to that model. See [LLM Support](/reference/llm-support). **Claude on Microsoft Foundry.** The Anthropic connection accepts a custom endpoint and a model name, so you can use the Claude models that you deploy in [Microsoft Foundry](/reference/llm-support#claude-on-microsoft-foundry). The model name is your Foundry deployment name. **Any OpenAI-compatible model.** The OpenAI connection accepts any model that your endpoint serves. Use open models such as Kimi or GLM on [OpenRouter or another provider](/reference/llm-support#openai-compatible-endpoint), a different OpenAI model, or any Azure OpenAI deployment. When you create the connection, Chainloop checks that the endpoint serves the model. **Replace the managed connection.** Organizations that bring their own key can now [remove the AI connections that Chainloop manages](/reference/llm-support#replace-the-managed-connection). All AI features then use your keys and your models. ## A better Ask Chainloop [Ask Chainloop](/concepts/ask-chainloop) now shows what it does while it works on your question. You can follow its steps and see which data it reads before the answer arrives. **Live activity.** A short note tells you how Ask Chainloop plans to answer. The header then shows the current step, for example "Looking at findings…". **Inspect each step.** Each step names the tool and the data it looks at. Click a step to see its input. When the answer is ready, the activity folds into a "Worked for N seconds" summary that you can open again. ## Accept only files as evidence Auditors need evidence that they can open and verify, and a link does not always give them that. Organization admins can now set **Accepted evidence attachments** to "File Upload only" in the compliance settings. The manual evidence and override forms then hide the link option, and Chainloop rejects new link evidence. A file or a justification is still accepted, and link evidence that exists does not change. See [Compliance Frameworks](/concepts/compliance-frameworks). ## Pi support in Chainloop Trace [Chainloop Trace](/guides/chainloop-trace) now records sessions of the Pi coding agent. Run `chainloop trace init --pi` to install the Pi extension in a repository, or `chainloop trace run --pi` to record a single run. Pi sessions record their prompts, file edits and shell commands, like the other agents. > [accordion] More Improvements > > * **MSBuild logs as evidence.** The new `MSBUILD_LOG` [material type](/concepts/material-types) reads MSBuild binary and text logs, `dotnet build` output and Visual C++ build logs, so a policy can check the compiler warnings of a build\\ > > * **Security analysis in progress.** The project Security tab shows an "Analysis in progress" state while the first [AI Code Analysis](/concepts/ai-code-analysis) run of a new repository works, and it switches to the results when they are ready\\ > > * **Security tab for large repositories.** The Security tab now loads the security context of large repositories. When the context is too large to show, the tab offers a download\\ > > * **Exclude paths from SBOM scans.** The `sbom-generation` workflow template has a new `exclude` input with glob patterns for paths that the scan skips, such as test data or examples\\ > > * **HTML specs in the Context tab.** The Context tab of an [AI coding session](/concepts/ai-coding-sessions) shows HTML specs as rendered pages. Chainloop sanitizes each page and blocks its scripts and network requests\\ > > * **Trace hooks without the CLI.** The Claude Code and Cursor hooks that `chainloop trace init` installs now skip without an error when the Chainloop CLI is not installed\\ > > * **New default CLI endpoints.** The CLI now connects to `cp.chainloop.dev:443` and `cas.chainloop.dev:443` by default\\ > > * **Download links for one artifact.** Evidence download links and CLI artifact transfers now use [CAS](/concepts/cas-backend) tokens that can access only one artifact\\ > > * **CLI plugins removed.** The `chainloop config plugin` commands and the CLI plugin mechanism are removed. The mechanism did not leave preview\\ > > * **Attestation links.** Old `/attestation` links that include a digest now open the workflow run in your organization\\ > [accordion] Bug Fixes > > * Compliance A requirement no longer stays pending after you publish a new revision of it\\ > > * Frontend An expanded security finding shows its full title and description\\ > > * Frontend Expanded table rows, such as evidence on the Policies tab, stay open when the data reloads\\ > > * UX The home page prompts to create a project only to users whose role allows it\\ > > * Backend A project can no longer have two workflows from the same singleton workflow template\\ > > * Backend The managed `secret-scan` workflow uses the allowlist at the repository root when it scans a subdirectory\\ > > * Backend The MCP `get_policy_evaluations` tool returns the latest run of each workflow in a project version\\ > > * CLI Chainloop Trace no longer overcounts Codex tokens, and it reports the cache tokens of Codex and Pi sessions separately\\ > > * CLI Redacted Chainloop Trace sessions keep SSH key fingerprints\\ **October 23, 2026** v1.137.1 ## The context behind AI-written code Chainloop Trace gathers the specs and the skills behind each coding session, now also for Codex. Session scoring and policies grade the session against that context, and the new Lineage tab follows its code to production. Self-hosted installations also get a simpler setup, with one endpoint for the control plane and one for the CAS. ## The context of every session, now with Codex [Chainloop Trace](/guides/chainloop-trace) records the inputs of the code with each session. These are the specs, plans and tasks that the agent worked from, the skills it loaded, and the images pasted into the conversation. Chainloop stores them as evidence of the session, signs them with the transcript, and shows them in the Context tab. See [Capture the Context of a Session](/guides/chainloop-trace#capture-the-context-of-a-session), or read how the [open source session collector](https://chainloop.dev/blog/open-sourcing-ai-session-collector/) captures context. [The context of every session, now with Codex](https://www.tella.tv/video/vid_cmvnyn7k100c007l85nx18e0y/embed?b=0\&title=0\&a=1\&loop=1\&autoPlay=false\&t=0\&muted=1\&wt=0\&o=1) **Codex support.** Chainloop Trace now records Codex sessions. Run `chainloop trace init --codex` to install the Codex hooks in a repository. Codex sessions capture their specs, skills and pasted images like the other agents. They also record token usage, estimated cost, tool calls and per-file attribution, including multi-file patches and shell commands. The session viewer shows the Codex conversation, tool calls and question replies. **Sources in the transcript.** The transcript in the Context tab now shows each captured spec source and image where it entered the conversation, with a preview and a full view. Before, it showed a pointer to the evidence. **Skills for more agents.** Chainloop Trace now also records the skills of OpenCode 2 sessions. ## Session scores and policies grounded in the spec The [AI session score](/concepts/ai-coding-sessions#ai-session-score) now grades a session against what it was asked to do. The scoring run reads the context that Chainloop Trace captured and the code change of the linked pull request. The judges then check scope, alignment, verification and solution quality against the spec. A later instruction from the user still takes precedence over the spec. When a session has no linked pull request or no spec, scoring works as before. See [Grading Against the Spec](/reference/ai-score#grading-against-the-spec). [Session scores and policies grounded in the spec](https://www.tella.tv/video/vid_cmvnz2j5700yt08l5gr565vv8/embed?b=0\&title=0\&a=1\&loop=1\&autoPlay=false\&t=0\&muted=1\&wt=0\&o=1) **Requirement by requirement.** Scoring first lists the requirements in the captured spec. The delivery and verification checklists account for every applicable requirement. A requirement outside the task keeps the reason it is out of scope, and each result cites the lines of code that support it. Click a requirement ID to open it in the spec. **Spec tests are checked.** The verification judge lists each test that the spec asks for and reports it as added, ran, missing or parked. **An explained breakdown.** The Score & Policies tab now shows the requested outcomes, the scope assessments and the verification checks next to the strengths and recommendations. Each one shows how many items passed and how many need attention. Every assessment links to the spec source it cites, and the source opens beside the breakdown at that requirement. **Policy results of the session.** The same tab lists the [policy](/concepts/policies) violations and skip reasons of the session. Click a policy name to open its details. ## Lineage: from a coding session to production (Beta) Every [AI coding session](/concepts/ai-coding-sessions) now has a Lineage tab, available to all users. It follows the code of the session to production, through the pull requests that carry its commits. Each pull request card shows the scans that ran before the merge, and open pull requests now show their scan status too. You can see if anything checked the AI-written code before it shipped. When a session has no merged pull request yet, the tab explains why the path is empty. [Lineage: from a coding session to production](https://www.tella.tv/video/vid_cmvnyth7q00cq02k42y8q0xwe/embed?b=0\&title=0\&a=1\&loop=1\&autoPlay=false\&t=0\&muted=1\&wt=0\&o=1) Watch the full walkthrough, from a session to its deployments and findings: [Chainloop session lineage walkthrough](https://www.tella.tv/video/vid_cmvtgu3th001s08jmbobj8q5s/embed?b=0\&title=0\&a=1\&loop=0\&autoPlay=false\&t=0\&muted=0\&wt=0\&o=1) ## One endpoint for the control plane and one for the CAS Self-hosted installations are simpler to set up. Until now, the control plane and the CAS each had a gRPC port and an HTTP port, so an installation needed four hostnames, four ingresses and separate TLS settings. Now each service serves HTTP, native gRPC and, on the control plane, gRPC-Web from its HTTP port. You need one hostname, one ingress and one certificate per service. **Helm chart.** The chart serves both protocols through one ingress per service, with NGINX and Traefik, and also supports Gateway API. When you configure TLS in the pods, one certificate now covers all traffic of the service. Set `useSharedEndpoints: true` to move the platform's own clients, such as the control plane connection to the CAS and the CLI install defaults, to the shared endpoints. It is off by default. **No change needed to upgrade.** Existing clients and CLI configurations keep working. The legacy gRPC ports stay available during a deprecation period. CAS uploads and downloads on the shared endpoint keep the native gRPC transport, with throughput within 10% of the legacy port. ## More in Chainloop Trace **Line attribution that survives later edits.** `chainloop trace` now decides if each line is AI or human by its content, not by its position. A line keeps its owner when you re-indent it, move it, rename its file, cherry-pick it or rebase it. A line that a human changes counts as human. The AI and human counts of a session now cover only the lines that are still in the pushed code, and the evidence also reports the total lines that the agent generated. When a later commit replaces lines of an earlier session, the next push sends that session again with its new numbers. **Record sessions with no control plane.** Run `chainloop trace init --local` and the repository records its sessions on disk, with no control plane, login or network. On `git push`, the pre-push hook writes each piece of evidence and the unsigned in-toto statement into the trace directory. See [Chainloop Trace](/guides/chainloop-trace). ```yaml .chainloop.yml theme={"dark"} traceStorage: LOCAL tracePath: .git/chainloop-trace traceRequired: false ``` > [accordion] Policy Enhancements > > * **Auto-match rules read structured findings.** [Requirements auto-matching](/concepts/compliance-frameworks#requirements-auto-matching) now judges the structured findings of a policy evaluation, not only the text of its violation messages. Evaluations from before this release keep their result until the platform ingests their run again\\ > > * **Block private network destinations.** Self-hosted installations can now set `backend.policies.blockPrivateTargets` so that server-side policy evaluation refuses HTTP requests to loopback, private, link-local and cloud metadata addresses. It is off by default\\ > > * **Stricter remote references.** In restrictive mode, `http.send` can only reach remote endpoints, and policy script references must use `https` or a local path\\ > [accordion] More Improvements > > * **Search coding sessions.** You can now search the Coding Sessions list by repository, pull request title or pull request number\\ > > * **Grype SARIF viewer.** Grype SARIF reports now show their findings with severity counts, CVE links, package details and fixed versions, with search and sortable columns\\ > > * **All reports of a finding.** The details of a [finding](/concepts/vulnerability-management) now list every linked vulnerability report, in the UI, the CLI and the MCP server\\ > > * **Security Context severity.** Chainloop now calculates the severity of a Security Context fix from its CVSS 3.1 vector, and the severity badge shows the vector in a tooltip. See [AI Code Analysis](/concepts/ai-code-analysis)\\ > > * **Product version applicability in the CLI.** The new `chainloop product version applicability` commands (`describe`, `set`, `reset`, `remove`) manage the framework applicability of a product version and its projects. `attach-framework` and `detach-framework` are deprecated\\ > > * **Filter findings by package.** `chainloop findings list --purl` filters findings by package URL and combines with `--search` and `--project`. The `findings describe` tables now fit the terminal width\\ > > * **Skipped operations.** A scan or other async operation that cannot start because a prerequisite is missing, such as a CAS backend, now ends as skipped, not failed\\ > > * **Incident notifications.** Integration incidents now name the integration type, for example "GitLab integration invalid", and the email subject starts with `[Chainloop]`\\ > > * **More agents in Chainloop Trace.** Chainloop Trace now sees the shell commands that the Cursor agent runs, and parses Pi sessions\\ > > * **MCP authorization page.** The [MCP](/guides/chainloop-mcp) authorization page now looks like the login page\\ > > * **SCM integrations entitlement.** Connecting GitHub and GitLab repositories now has its own plan entitlement. Every plan includes it, and existing connections keep working\\ > [accordion] Bug Fixes > > * Backend Logins through the browser, SAML and MCP now exchange a single-use code instead of putting a token in the callback URL, and artifact downloads keep login tokens out of URLs\\ > > * Backend Managed scans no longer start for an organization with no usable CAS backend\\ > > * Backend The platform no longer loses a review event that arrives while a PR validation run is open\\ > > * Backend Vulnerability rescans now keep the original SBOM names\\ > > * Backend The managed secret scan and the PR scan now redact secret values in their report\\ > > * Backend Only organizations in per-organization billing mode can now manage SAML identity providers\\ > > * Backend Resuming an attestation with a different token now returns a clear client error\\ > > * Backend The Chainloop MCP server now works with the OAuth flow of VS Code\\ > > * Compliance Attaching a framework to a product version no longer clears the applicability exceptions of its projects on the other frameworks\\ > > * Frontend A coding session link that opens before ingestion finishes now waits for the session instead of showing a not-found page\\ > > * Frontend The Context tab shows the front matter of a document as a table\\ > > * Frontend Markdown evidence now renders collapsible sections and HTML image links\\ > > * Frontend The Security Context page no longer offers to enable AI Code Analysis when a project already has the workflow\\ > > * Frontend The pull request comment now shows the Security Checks results and the right Security Context count\\ > > * Frontend Self-hosted installations no longer send product analytics\\ > > * Frontend YAML editors show schema errors again\\ > > * Policies AI coding session redaction no longer replaces values that are not secrets, such as password-field selectors and URIs that run across a line break, so `ai-config-no-secrets` reports fewer false positives\\ > > * CLI `chainloop trace` now reports expired CLI credentials when the session starts, not only at push time\\ > > * CLI `chainloop trace` now records the net code changes of a session when several commits change the same file\\ > > * CLI `chainloop trace` now follows a Claude Code transcript that moved and sees checkouts that the agent works in through shell commands\\ > > * CLI `chainloop attestation add` now accepts GitLab security reports with any observability event\\ > > * CLI Attestation commands no longer print a debug line when the repository has no `.chainloop.yml`\\ **October 9, 2026** v1.126.1 ## The spec and the skills behind every session This release adds a Context tab to AI coding sessions that shows the spec and the skills behind each session, and lets the CLI take the project and the organization of an attestation from `.chainloop.yml`. ## The Context tab: the spec and the skills behind a session The Transcript tab of an [AI coding session](/concepts/ai-coding-sessions) is now the Context tab. It shows what the agent worked from, next to the full transcript. A list on the left groups the spec sources that [`chainloop trace`](/guides/chainloop-trace) captured — tasks, specs and plans, and attachments — and a detail pane on the right shows each one. Markdown shows rendered or raw, Mermaid diagrams show as diagrams, and images show inline. Old links to the Transcript tab still work. ![AI Coding Session Context Tab](https://mintcdn.com/chainloop/jDQcX98hY3hZWcmq/changelog/ai-session-context-tab.png?fit=max\&auto=format\&n=jDQcX98hY3hZWcmq\&q=85\&s=d638eecb21fe3c94bb3e860987b771d6) **Skills used in the session** — `chainloop trace` now stores each skill that the agent used as evidence of the session: its `SKILL.md` and a `.tar.gz` package of the full skill folder. The Context tab lists the skills with how many times the agent, the user and subagents used them, and you can download each package. ![Skills Used in the Session](https://mintcdn.com/chainloop/jDQcX98hY3hZWcmq/changelog/ai-session-skills.png?fit=max\&auto=format\&n=jDQcX98hY3hZWcmq\&q=85\&s=c59859f2f886577203636efc825d2af4) ![Skills Stored as Evidence](https://mintcdn.com/chainloop/jDQcX98hY3hZWcmq/changelog/ai-session-spec-evidence.png?fit=max\&auto=format\&n=jDQcX98hY3hZWcmq\&q=85\&s=a81e3e4e4c70b1c473579bc62e5b164c) **The purpose of each source** — The agent can now give each spec source a role (task, spec, plan or reference), a title and a description. The Context tab uses them to group and name the sources. **Specs captured during the whole session** — The agent now gets a short reminder at each prompt, so it also captures a spec or a plan that comes up later in the session. When a spec source is a local file, the CLI records its current content at push time, so the evidence does not hold a stale copy. **Smaller transcripts** — The CLI replaces the copies of captured spec sources and of pasted images in the transcript with pointers to their evidence, so each file is stored once. ## Project and organization from `.chainloop.yml` The `chainloop attestation` commands now read the repository configuration file, as `chainloop trace` already does. When you do not pass `--project`, `attestation init` uses `projectName` from `.chainloop.yml`. The `init`, `add`, `push`, `status` and `reset` commands use the organization from the file when no `--org` flag or `CHAINLOOP_ORGANIZATION` is set. Flags still take precedence. See [Automatically load the version](/concepts/projects-versions#automatically-load-the-version). ```yaml .chainloop.yml theme={"dark"} organization: my-org projectName: my-project projectVersion: v1.2.0 ``` > [accordion] More Improvements > > * **CLI upgrade notice** — The CLI now tells you when the platform runs a newer version, with the install command and a link to the changelog. It checks at most once a day and never delays a command. See [CLI installation](/cli/installation)\\ > > * **Product API tokens** — The product API token screens now look and work like the project API token screens, and you can create a product token from the organization's API tokens page. See [Product-scoped API tokens](/reference/api-tokens#product-scoped-api-tokens)\\ > > * **Search findings by description** — The vulnerabilities table on the project Security tab now matches the description and the package PURL, not only the finding ID\\ > > * **Needs review badge** — A finding with a risk assessment that waits for approval now shows a "Needs review" badge that links to the review. See [Risk assessments](/concepts/vulnerability-management#risk-assessments)\\ > > * **Markdown in the material viewer** — `.md` and `.mdc` evidence files now render as markdown, with a toggle to show the source\\ > > * **Larger evidence in the viewers** — AI coding session transcripts can now be up to 50MB, and code and report viewers up to 25MB. Browsers now cache evidence downloads, so a viewer opens faster the second time\\ > > * **Faster repeated uploads** — An upload of evidence that is already stored now returns after the first round trip\\ > > * **Pull request comment layout** — The Chainloop pull request comment has a new order: PR validation, AI Session Checks, Security Checks, and a separate Security context section. Each changed file shows a priority badge (P0 to P3) and the invariant to keep\\ > > * **Async operation metrics** — The `/metrics` endpoint now exposes Prometheus metrics for scans, SBOM generation, auto-assessment, AI analysis and other async operations: throughput, duration, queue wait and backlog. See [Prometheus](/guides/prometheus)\\ > > * **Sandbox resources** — Self-hosted installations can now set the requests and limits of the sandbox agent container with `sandbox.kubernetes.resources` in the Helm chart\\ > > * **Plan hint for integrations** — Integrations that your plan does not include now show a plan hint instead of the connect action\\ > > * **Transcript links** — URLs in user prompts are now links, and all links in a transcript open in a new tab\\ > > * **Dark mode favicon** — The browser tab icon is now visible on dark tabs\\ > [accordion] Bug Fixes > > * Backend When keyless signing is configured, the control plane now stores only attestations that are signed with a certificate from a configured certificate authority for the organization of the run. Attestations signed with a cosign key, a KMS key or SignServer are rejected. See [Signing](/reference/signing)\\ > > * Policies The GitLab runner context now matches wildcard protected branches, such as `release/*`\\ > > * Policies The GitLab runner context now keeps approval rules that target all branches, so `pr-review-required` no longer reports missing approvals by mistake\\ > > * Policies The GitLab runner context now uses every protected tag rule that matches a tag\\ > > * Policies GitLab policy messages now name the project by its path, not by its numeric ID\\ > > * Policies On GitLab Free and CE, settings that only GitLab Premium has no longer cause policy violations. See [Runner context](/reference/runner-context)\\ > > * Policies GitHub branch protection reads now retry on rate limits and server errors, and a read error is recorded instead of making a branch look unprotected. See [Branch protection policies](/reference/branch-protection-policies)\\ > > * Policies The secret redaction placeholder is now `[CHAINLOOP_TRACE_REDACTED]`, so the no-secrets policy no longer reports the word "REDACTED" in other content\\ > > * Policies AI coding sessions are now marked as redacted whenever the secret scan runs, also when it finds no secrets\\ > > * CLI `requireTrace: true` blocks the `git push` again when the session upload fails, and the error goes to the trace log\\ > > * CLI `chainloop trace` now supports OpenCode 2\\ > > * CLI `chainloop trace init` now preselects the agents that are already set up in the repository\\ > > * CLI Spec source headers now keep values that contain `#` or `: `\\ > > * CLI GitLab commit verification now works when the CLI runs through the Dagger module\\ > > * CLI The CLI container image now has a writable `/tmp`, so GitLab merge request metadata is collected through the Dagger module\\ > > * CLI `chainloop product api-token create` and `chainloop admin api-token create` now check the `--output` format before they create the token\\ > > * Backend Only organization admins and organization tokens can now apply policies, policy groups, requirements and frameworks\\ > > * Backend Project tokens can no longer apply or delete workflow templates, and members can delete only the contracts of projects where they have a role\\ > > * Backend Recording a deployment now needs write access to the project of the artifact\\ > > * Backend Comment changes are now limited to the organization of the caller\\ > > * Backend Saving a product version with many new projects no longer times out\\ > > * Backend The OpenAI and Anthropic connection checks now confirm that the provider serves the model that the platform uses\\ > > * Frontend Markdown with nested front matter and code blocks now renders as written\\ > > * Frontend Long words in alerts now wrap inside the alert\\ > > * Frontend The Score & Policies tab of a coding session has consistent styling\\ **October 4, 2026** v1.122.1 ## Docker Sandboxes and Security Context on every pull request This release brings Chainloop into Docker Sandboxes, gives the Security Context new charts and a prompt that your coding agent can use on each pull request, and adds a new view for AI coding sessions with a transcript that is easy to follow. ## Chainloop works with Docker Sandboxes Chainloop [partners with Docker](https://chainloop.dev/blog/chainloop-partners-with-docker-sandboxes/). A coding session that runs in a [Docker Sandbox](https://docs.docker.com/ai/sandboxes/) is now recorded as a signed attestation and checked against your policies, and the result shows on the pull request that the session opened. Developers start a session with `sbx run` and the Chainloop kit. Nothing else changes in how they work. ![Chainloop and Docker Partnership](https://mintcdn.com/chainloop/EVOYm9yw94vIDuPD/changelog/docker-sandboxes-partnership.png?fit=max\&auto=format\&n=EVOYm9yw94vIDuPD\&q=85\&s=f0880ef9ba4e1afe2f7706aa79befb53) The `chainloop/sbx-kit-claude` kit runs Claude Code with [`chainloop trace`](/guides/chainloop-trace) already set up. Each session becomes an [AI coding session](/concepts/ai-coding-sessions) in Chainloop. The [built-in policies](/concepts/ai-coding-sessions#built-in-policies) check that only sanctioned agents and allowed MCP servers ran, that the agent ran no dangerous commands, and that no secret leaked. Each policy can be advisory, or it can block the merge. To start, see [How to record AI coding sessions in a Docker Sandbox](/guides/docker-sandboxes). ## Security Context: new charts, filters and an agent prompt on every pull request The [Security Context](/concepts/ai-code-analysis) finds the security fixes in the history of a repository and uses them to predict where the next vulnerability can occur. For the research behind it, read [Predicting the next vulnerability from a codebase's own fix history](https://chainloop.dev/blog/predicting-the-next-vulnerability-from-fix-history/). **Vulnerability classes and fix trend** — Two new charts replace the analysis diagram. A donut shows how the confirmed fixes split by vulnerability class. A quarterly chart shows the flaws that were fixed and the flaws that were introduced, each with a 4-quarter average, so you can see if your fixes keep pace. ![Security Context Trends](https://mintcdn.com/chainloop/EVOYm9yw94vIDuPD/changelog/security-context-trends.png?fit=max\&auto=format\&n=EVOYm9yw94vIDuPD\&q=85\&s=e630d0ee4a09c98d76dabf352ec82557) **Filter and sort the fixes** — Filter the confirmed fixes by severity, vulnerability class and fix status, and search the commit subject, summary and CWE IDs. Click a severity or class badge to filter by that value, or click a column header to sort. The fix details are easier to read: the "Before" and "After" impact cards, and the vulnerable and fixed code, show in red and green. ![Security Context Fix Details](https://mintcdn.com/chainloop/EVOYm9yw94vIDuPD/changelog/security-context-fix-details.png?fit=max\&auto=format\&n=EVOYm9yw94vIDuPD\&q=85\&s=a935143c202bc8779f4518d33163875c) **Pull requests for each commit** — Each commit that introduced a vulnerability now links to its pull request, also when no AI coding session produced it. **An agent prompt on each pull request** — The Security Context note in the Chainloop pull request comment is now a compact table. A new "Invariant to keep" column tells reviewers what this change must not break. The note shows only fixes with high or critical severity, to reduce noise. A collapsed agent prompt below the table gives the same context as a task: copy it into your coding agent, and the agent reviews the change against the past fixes. When the review is complete, the agent posts a comment on the pull request with the result. ![Security Context Agent Prompt](https://mintcdn.com/chainloop/EVOYm9yw94vIDuPD/changelog/security-context-agent-prompt.png?fit=max\&auto=format\&n=EVOYm9yw94vIDuPD\&q=85\&s=d2e37ad99159f50d35eed0b838bafee5) ## A new view for AI coding sessions The details page of an [AI coding session](/concepts/ai-coding-sessions) has a new layout. The header shows the agent, the model, the contributor, the repository and the pull request, with buttons to download the evidence and to open the attestation. The Overview tab shows AI authorship, lines and files changed, duration, and tokens and cost, with a summary of the change and the list of changed files. ![AI Coding Session Details](https://mintcdn.com/chainloop/EVOYm9yw94vIDuPD/changelog/ai-coding-session-details.png?fit=max\&auto=format\&n=EVOYm9yw94vIDuPD\&q=85\&s=a7fac2ba35ce9f6ea3959285c2cf6b8d) **A transcript that is easy to follow** — The Transcript tab shows the prompts and the responses by default. The steps between them collapse into one row that counts them, for example "23 messages, 37 thinking blocks, 143 tool calls". Click the row to expand it. Use the search and the filter to find a part of the session, and open the transcript in full screen. ![AI Coding Session Transcript](https://mintcdn.com/chainloop/EVOYm9yw94vIDuPD/changelog/ai-coding-session-transcript.png?fit=max\&auto=format\&n=EVOYm9yw94vIDuPD\&q=85\&s=b0c248af6d602deeba1e4fc76a2c5ed6) **Tool calls in terminal style** — Tool calls show as compact rows, as in the Claude Code CLI, for example `Bash(...)` or `Edit(...)`. A colored dot shows the status, and errors show in red. Click a row to see the full arguments and output. ![Tool Calls in Terminal Style](https://mintcdn.com/chainloop/EVOYm9yw94vIDuPD/changelog/ai-coding-session-transcript-tool-calls.png?fit=max\&auto=format\&n=EVOYm9yw94vIDuPD\&q=85\&s=de9447ab95a5764bf7a5051cd290df13) **Provenance tab** — When a session has evidence, the new Provenance tab shows the Trust Hub graph of that evidence. **The spec of the session** — [`chainloop trace`](/guides/chainloop-trace) now records the spec that a coding session was built from, such as a ticket, a design document, a prompt or an image. The agent writes each source to a git-ignored folder, and the CLI removes secrets from each file and adds it to the attestation as evidence. > [accordion] More Improvements > > * **Project filter on the AI Governance overview** — Filter the AI Governance Overview page by project. The metrics then include only the sessions of that project\\ > > * **One status for each finding** — When the risk assessments of a finding do not agree, the most severe statement now sets the status: affected, then fixed, then not affected, then under investigation. Findings no longer show a "mixed assessments" state. `chainloop finding list` has the new `--has-conflicting-assessments` and `--needs-review` flags. See [Risk assessments](/concepts/vulnerability-management#risk-assessments)\\ > > * **Workflow run expiration** — Self-hosted installations can now set when unfinished workflow runs expire, with `controlplane.attestations.workflowRunExpirationWindow` and `controlplane.attestations.workflowRunExpirationCheckInterval` in the Helm chart. This helps pipelines that run for more than one hour. The defaults stay at one hour and one minute\\ > > * **Hyphens in annotation names** — Contract annotation names can now contain hyphens, for example `my-annotation`\\ > > * **Commit messages in sessions** — Each commit of an AI coding session now shows its commit message\\ > > * **Faster secret redaction** — The CLI now scans AI coding sessions for secrets in parallel, and scans again only the parts that changed between pushes\\ > > * **Four columns on large screens** — The policies, policy groups, frameworks and integrations lists now show four columns on wide screens\\ > [accordion] Bug Fixes > > * CLI `chainloop trace` now keeps the recorded sessions when you amend a commit\\ > > * CLI `chainloop trace` now finds the transcripts of Claude Code subagents that run in git worktrees\\ > > * CLI `chainloop trace` now uses a valid trigger when a push resets the attestation\\ > > * CLI Long uploads no longer fail because the CAS upload token expires\\ > > * CLI Secret redaction now replaces only the JWT when a JSON escape follows it\\ > > * Backend A draft pull request is now scanned when it is marked ready for review\\ > > * Backend AI coding sessions now link to GitLab merge requests on self-hosted GitLab instances\\ > > * Backend Older merged pull requests now link to their merge commit\\ > > * Backend A project token can now delete only the contracts of its own project\\ > > * Backend When a project leaves a product, the memberships that the project got from the product are removed\\ > > * Backend Sandbox scans stop when the SCM connection fails\\ > > * Backend Creating a workflow from a template now refuses a name that already exists\\ > > * Policies Dollar signs in policy messages now show correctly in the pull request comment\\ > > * Policies The pull request comment no longer shows empty scan names while policies evaluate\\ > > * Frontend Attested binary artifacts now show as linked artifacts in the path to production of a session\\ > > * Frontend Image materials now render, and other binary content is refused\\ > > * Frontend The session transcript is no longer downloaded when the evidence is too large\\ > > * Frontend The "Setup required" badge of a workflow now shows the same in all views\\ > > * Frontend Repository selection is no longer offered when the SCM provider is turned off\\ > > * Frontend Breadcrumbs, tab lists and settings rows now fit narrow screens\\ **September 26, 2026** v1.114.0 ## Security Context posture and pull request checks This release takes the project Security Context further. It now shows how your security posture changes over time and how each fix shipped, and it checks every pull request against the fixes of the past. ## Security Context: posture, provenance and pull request checks The Security Context section on the project **Security** tab, built by [AI Code Security Analysis](/concepts/ai-code-analysis), now shows trends over time. Three new cards show the vulnerabilities introduced, the peak open backlog, and the median exposure window across the scanned history. ![Security Context Posture Stats](https://mintcdn.com/chainloop/GsdSIyTeILSByPn_/changelog/security-context-posture-stats.png?fit=max\&auto=format\&n=GsdSIyTeILSByPn_\&q=85\&s=01fe1c6abb346004015ea87d35b3bf9e) **How each fix shipped** — Each confirmed fix now shows the pull request that landed it and the [AI coding sessions](/concepts/ai-coding-sessions) that produced it. The origin section also names the session that introduced the vulnerability, so a fix reads as "introduced by session X, fixed by session Y". Every commit and file reference links to your SCM. **Checked on every pull request** — The PR scan now compares the changed files with the project's security context. It flags files with a security-fix history, entry points on shared surfaces, and files that past fixes changed. The Chainloop comment lists each file with its past fixes and the invariants they established, so reviewers know what to confirm. The check is advisory and never fails a pull request. Projects without a security context show it under "scans not applied". ![Security Context Pull Request Check](https://mintcdn.com/chainloop/GsdSIyTeILSByPn_/changelog/security-context-pr-check.png?fit=max\&auto=format\&n=GsdSIyTeILSByPn_\&q=85\&s=f3a26b93dabad50db4dc9124b116c095) **Easier to read** — Each vulnerability class has a one-line definition. Exposure windows show in days, weeks, months or years. Every column of the confirmed-fixes table explains what it holds, and long component paths keep the file name visible. **More precise components** — A fix now records only the files that implement it. Files that come with the same commit, such as generated code, lockfiles, string tables or tests, are no longer included. This keeps hot components, shared surfaces and the pull request check focused on the code that matters. The context also belongs to the project now, so it stays the same when you change the project version. > [accordion] More Improvements > > * **Artifact digest verification** — The Artifact CAS now checks that each upload matches its declared SHA256 before it stores it, on every storage backend. Downloads are checked before the first byte goes to the client. Downloads also no longer load the full artifact into memory\\ > > * **Renamed and transferred repositories** — You can now link a project again to a GitHub repository that was renamed or transferred. The hourly reachability check also updates renames and transfers automatically. See [Connect a repository](/guides/connect-repository)\\ > > * **Unreachable repository warning** — The Update Project dialog warns when Chainloop can no longer reach the linked repository. It shows the reason and a link to fix the access\\ > > * **Separate PR validation section** — The Chainloop pull request comment now shows PR metadata checks in their own "PR validation" section. Each section links to the run that attested it\\ > > * **Compliance table of contents on laptops** — The requirements table of contents now appears inline on laptop screens. On narrower layouts, it opens in a left-side sheet\\ > > * **Beta badge** — A "Beta" badge now marks experimental features. It replaces the flask icon\\ > > * **Docker Sandboxes kit on Docker Hub** — The Claude Code kit for [Docker Sandboxes](/guides/docker-sandboxes) is now versioned and published to `docker.io/chainloop/sbx-kit-claude`, with a signature and SLSA provenance. The kit requires a repository that was set up with `chainloop trace init`\\ > > * **Sandbox runtime class** — The self-hosted Helm chart has a new `sandbox.kubernetes.runtimeClassName` value. Set it to run sandboxes in a microVM runtime such as Kata Containers\\ > [accordion] Bug Fixes > > * CLI AI coding sessions are now recorded when the agent edits files in linked git worktrees\\ > > * CLI `chainloop trace init` now shows a different error when you do not belong to any project and when no project accepts a new workflow\\ > > * CLI The Dagger module no longer uses cached attestation results from earlier runs, so each run creates and pushes its own attestation\\ > > * Backend Legacy robot accounts can now operate only on the workflow they are bound to\\ > > * Backend The AI Score alignment judge no longer counts a missing push or pull request as misalignment\\ > > * Contracts Linear attachment links no longer cause false secret violations in AI coding session attestations\\ > > * Frontend In the AI coding session setup panel, the copy button now copies only the lines of the selected step\\ > > * Frontend KPI rows, card grids and sheets now fit the size of their container, not the viewport, so they display correctly next to open panels\\ > > * Frontend The GitHub and GitLab integration sheets now link to the connect-repository guide\\ **September 22, 2026** v1.112.0 ## Required AI coding sessions and Security Context on every project This release turns AI governance from something you observe into something you enforce. Organizations can now require a traced AI coding session on every pull request, the security-fix history AI Code Analysis mines is surfaced directly on each project, and the SDLC Insights dashboard is rebuilt around scope filtering so an org-wide view can be narrowed to a single product or project. ## Require an AI coding session on every pull request A new organization setting requires every pull request to be backed by a [Chainloop Trace](/guides/chainloop-trace) AI coding session. When a pull request correlates to no session, the AI session check fails and the Chainloop comment explains what is missing — so undocumented AI work can be caught at review time rather than after the fact. ![AI Session Enforcement](https://mintcdn.com/chainloop/QxhXQfxRwFPrDTK5/changelog/ai-session-enforcement-comment.png?fit=max\&auto=format\&n=QxhXQfxRwFPrDTK5\&q=85\&s=b87ad73cf6767760d5f75bfb9378c55d) **Turn it on per organization** — The setting lives in a new **AI Coding Sessions** section on the organization settings page. ![AI Coding Sessions Organization Setting](https://mintcdn.com/chainloop/QxhXQfxRwFPrDTK5/changelog/ai-session-enforcement-setting.png?fit=max\&auto=format\&n=QxhXQfxRwFPrDTK5\&q=85\&s=3688a0ccd2d676083d349a19099ccba4) **Bypass when you need to** — The `skip-ai-session` label still exempts a pull request, and adding it now re-publishes the check as successful, unblocking a PR that was already failing. **From prompt to production** — Merge commits are now linked in the graph to the [AI coding sessions](/concepts/ai-coding-sessions) that produced them. Given a production commit you can ask which sessions contributed to it, and given a session you can ask which merge commits it reached — including under squash and rebase merges, where the landed commit never existed on the branch: ```bash theme={"dark"} chainloop discover -d ``` **More accurate session attribution** — A session is no longer credited on later, unrelated commits that happen to touch a file it once edited. Attribution is consumed when a commit lands, so file sets, human-versus-AI line counts and pull request correlation reflect what each session actually did. **Filter sessions by how they ran** — Sessions now record whether they came from the git hooks installed by `chainloop trace init` or from a one-shot `chainloop trace run`, and the session list defaults to the former. See the [AI Sessions quickstart](/ai-sessions) to get started. ## Security Context on every project The security-fix history that [AI Code Security Analysis](/concepts/ai-code-analysis) mines from a repository is now a section of its own on the project **Security** tab. A funnel shows how analyzed commits split into confirmed fixes, inconclusive results and clean commits, and which vulnerability classes those fixes belong to — followed by the full coverage, distribution and outcome breakdown. ![Security Context](https://mintcdn.com/chainloop/QxhXQfxRwFPrDTK5/changelog/security-context-section.png?fit=max\&auto=format\&n=QxhXQfxRwFPrDTK5\&q=85\&s=09996a66fac1d656fb52386e1134ce96) **Every confirmed fix, in full** — Expanding a fix shows what it actually did: a summary, the root cause, the preconditions an attacker would have needed, the impact, and the invariant the fix established — phrased so it reads as a regression check, along with every file the fix touched and how long the vulnerability was exposed before it landed. ![Confirmed Fix Detail](https://mintcdn.com/chainloop/QxhXQfxRwFPrDTK5/changelog/security-context-fix-detail.png?fit=max\&auto=format\&n=QxhXQfxRwFPrDTK5\&q=85\&s=3181e88e398c7993e2f4f1c7853910a4) **A summary on the Security overview** — A Security Context card leads with confirmed fixes and vulnerability classes, the severity mix of those fixes, and how many commits the latest scan covered, on which ref and how long ago. ![Security Context Overview Card](https://mintcdn.com/chainloop/QxhXQfxRwFPrDTK5/changelog/security-context-card.png?fit=max\&auto=format\&n=QxhXQfxRwFPrDTK5\&q=85\&s=2b28648d02f040f719e5018e08d796f9) **One click to enable it** — Projects with no context yet get an **Enable AI Code Analysis** button that opens the create-workflow wizard with the AI Code Analysis template already selected. The button is hidden when it could not succeed, and the whole section is hidden for organizations without AI Code Analysis available. ## SDLC Insights, rebuilt The [SDLC Insights](/concepts/overview) dashboard has a new layout: attention pills for what needs action right now, a KPI row for runs, success rate, open findings and policy pass rate, then open findings by severity, policy gates, workflow status over time, daily run activity and runs by runner type. ![SDLC Insights](https://mintcdn.com/chainloop/QxhXQfxRwFPrDTK5/changelog/sdlc-insights.png?fit=max\&auto=format\&n=QxhXQfxRwFPrDTK5\&q=85\&s=a0b467febb1a95e625e175fdf64717b5) **Scope to what you care about** — A scope filter narrows the dashboard to a business unit, a product or a single project, and the selection is kept in the URL so a scoped view can be shared. Widgets that remain org-wide are tagged as such. **Every number links somewhere** — Attention items and findings callouts link to the filtered findings, workflows or failing runs behind them, with a picker when several projects or runs qualify. Workflow run bars link to the run, and policy gate bars break down per-state workflow counts on hover. ## Choose how vulnerability findings are deduplicated A new organization setting controls the identity behind vulnerability finding fingerprints. **Package** — today's behaviour and still the default — keeps one finding per CVE and package, collapsing copies of the same package that appear in several places. **Package and location** gives every copy the scanner matched its own row, which is what teams with a release gate requiring sign-off on each occurrence need. See [Vulnerability Management](/concepts/vulnerability-management). ![Deduplication Strategy](https://mintcdn.com/chainloop/QxhXQfxRwFPrDTK5/changelog/finding-dedup-setting.png?fit=max\&auto=format\&n=QxhXQfxRwFPrDTK5\&q=85\&s=8861e0a882d9df5d041472bccd87af43) Location comes from data already present in attested evidence, so nothing changes about how you produce SBOMs, and every CLI already in the field works. Switching the setting migrates a project version the next time it is ingested, in either direction — existing sign-offs survive and re-bind to the rows that replace the ones they were written against. On the settings page, "Vulnerability Automation" is now **Vulnerability Management**, holding both the automation matrix and the deduplication strategy. ## A redesigned onboarding New accounts now land in a full-page onboarding wizard with a clearer step progression, and the final step opens onto the three ways to start: record your AI sessions, secure your application, or govern your SDLC — each linking to where that path begins. ![Onboarding Use Cases](https://mintcdn.com/chainloop/QxhXQfxRwFPrDTK5/changelog/onboarding-use-cases.png?fit=max\&auto=format\&n=QxhXQfxRwFPrDTK5\&q=85\&s=c7a2b6ca13f443e14b9ea0f551e8b246) > [accordion] More Improvements > > * **Faster pull request validation** — Approvals, description edits and review-state changes now re-attest pull request info alone instead of re-running every scanner over byte-identical code. A full scan still runs whenever the code itself changes, and the pull request comment stays correct either way. GitLab gets the same treatment, including approval events that were previously dropped\\ > > * **MCP: linked repository in `list_projects`** — The [MCP server](/reference/mcp-server) now returns each project's linked repository — name, host, visibility, reachability and web URL — so questions like "which projects have no repository connected" can be answered in a single call\\ > > * **AI Governance moved up** — The AI Governance section now sits directly under the dashboard items, above Operations, and is flagged as a Labs feature both in the sidebar and on the project tab\\ > > * **Readable tool calls in the session viewer** — Collapsed tool calls in an AI coding session now show the call's own description next to the tool name, instead of a transcript of identical `Bash` pills\\ > > * **A truthful sessions empty state** — The Coding Sessions empty state is rewritten around the shortest path to a first session and now states the actual rule: hand-written commits are not recorded. Steps are selectable and highlight the lines of the setup snippet they map to\\ > > * **Run ID on the run details page** — The workflow run summary shows the short run ID, with the full value in a tooltip and a copy button\\ > > * **Consistent policy counts** — The workflow runs table now counts distinct policies, matching the run details page, instead of counting one entry per evaluated material\\ > > * **Finding locations** — Vulnerability findings can carry the location where a package was matched, shown on the finding row, in the detail sheet and under a risk assessment. `chainloop finding list --severity unknown` is now accepted\\ > > * **Faster Trust Hub graph** — Nodes a tab has already fetched are kept, so re-rooting the graph on a visible node no longer refetches it and its neighbours, and referrer discovery no longer slows down with the number of organizations a caller belongs to\\ > > * **Self-serve sign-up is visible** — The login page no longer reads as existing-customers-only. Creating an account with Google, GitHub or email is spelled out, with booking a demo as the alternative rather than the only route in\\ > [accordion] Bug Fixes > > * AI Sessions Finished sessions are no longer credited on unrelated commits, which previously pulled foreign diffs into a session's evidence and surfaced sessions on pull requests they never touched\\ > > * AI Sessions The AI Session Checks rollup no longer double-counts files and duration when several sessions ran on one pull request\\ > > * Frontend SDLC Insights no longer falls back to a 404 page when a workflow or project referenced by a metric has since been deleted\\ > > * Frontend The user picker in the Add Member dialog scrolls, so results past the fold are reachable\\ > > * Frontend The "Last run" link on the workflows list is colored by the run's actual status instead of always appearing green\\ > > * UX The AI-assisted PRs card has its own empty copy instead of claiming there are no AI coding sessions\\ > > * UX Icons in the empty-state create buttons are aligned with the design system spacing\\ > > * CLI Running an authenticated command with no stored token now says authentication is required rather than that the token expired\\ > > * CLI The CLI documentation URLs point at `/cli`, matching the docs site\\ > > * Backend GitHub installation-token minting retries on transient failures, and in-flight requests are drained before shutdown\\ **September 11, 2026** v1.110.1 ## AI Governance and an open source Chainloop Trace ## AI Governance is now its own section AI coding sessions move out of the Dashboards menu into a top-level **AI Governance** section, with an overview of AI coding metrics and a full sessions list that supports filtering, sorting and pagination. Each session now has its own page at `/sessions/{id}` with a breadcrumb trail, so sessions can be linked, bookmarked and opened in a new tab. Project versions also gain an **AI Governance** tab listing the sessions recorded for that project. Existing dashboard links keep working. ## Complete AI coding session transcripts The session viewer now renders the full conversation as it was recorded: tool calls paired with their results, reasoning blocks, slash-command output, API errors and subagent threads. Previously only user prompts and assistant text were shown, which made stored sessions look incomplete. ## Chainloop Trace is now open source `chainloop trace` — AI coding session capture and attestation for Claude Code, Cursor and opencode — is now part of the open source CLI. `chainloop trace init` installs the git and agent hooks, records per-file and per-line AI attribution, and attests the session on push; `chainloop trace run -- ` does the same for a single agent invocation. Init now also creates the target workflow attached to the AI coding session contract, and the CLI prints a link to the recorded session once it has been attested. See the [Chainloop Trace guide](https://docs.chainloop.dev/guides/chainloop-trace). ## Ask and query your AI security context Four new MCP tools expose the security-fix history that AI Code Security Analysis produces. `describe_security_context` summarizes a project's vulnerability classes, recurring components and scan coverage; `list_security_fingerprints` and `describe_security_fingerprint` drill into individual confirmed fixes with filtering by class, CWE, component, severity and date; and `list_security_contexts` answers the same questions across every project in the organization. Every answer carries scan provenance, and a project that has never been scanned says so explicitly instead of looking clean. ## A contract library in every organization Every organization now ships with a library of ready-to-use org-level contracts. Until now a contract only existed because someone wrote one or because a workflow template rendered a per-workflow copy, so there was nothing to point a hand-made workflow at. ## Workflow templates from the CLI `chainloop workflow create --template ` creates a workflow from a built-in or org-scoped template, with `--every`, `--run-pr` and `--input k=v` to configure it. `workflow describe` and `workflow list --full` surface template details for template-backed workflows, and the new `workflow-template describe` command shows a template's delivery modes, prerequisites, SCM providers and inputs. ## Manage findings from the CLI New `chainloop finding update` and `chainloop finding delete` commands let operators transition a finding's lifecycle status — open, in progress, resolved, rejected — with an optional status detail and resolution reason, or remove it entirely. Previously a finding's status could only change through the assessment pipeline or ingestion auto-close. ## Keyless setup guidance for new workflows Manual workflows in projects linked to a GitHub or GitLab repository now suggest keyless (OIDC) authentication in their empty state, with a link to the provider's guide. Creating an API token remains available as a secondary option, and now opens the project-scoped token sheet directly. ## Richer evidence viewers CycloneDX SBOM materials get a dedicated viewer with a summary header, field-completeness indicators, a searchable and license-filterable components table, and a license distribution that highlights copyleft licenses. AI security context evidence gets its own Details view with scan history, provenance, severity distributions and confirmed fixes, showing each fix's exposure time from introduction to remediation. XML materials are now pretty-printed instead of rendered raw. ## Merge commits in the graph When a pull request is merged, the resulting merge or squash commit is now recorded and attested. A post-merge build attesting on the base branch can be traced back to the pull request — and the AI coding session — that produced it. ## Faster, paginated policy violations Policy evaluations and their violations are now stored and served from their own table and paginated in the UI, instead of being read out of the run's inlined attestation. Workflow runs with large numbers of violations load quickly, and the attestation bundle no longer grows without bound. > [accordion] Fixes > > * **Access control** - Enforced project-scoped permissions on evidence download redirects, contract reads and version-filtered workflow lookups\\ > > * **Integrations** - Guarded integration plugins against server-side request forgery\\ > > * **Policies** - Redacted materials are now evaluated against the content that was actually stored\\ > > * **Policy evaluations** - Removed a quadratic re-ingest that slowed down runs with many evaluations, and violations are now read from the platform when the attestation omits them\\ > > * **Attestation verification** - `attestation verify` now fails when the bundle was never actually verified, and attestations are no longer rejected because of a stale pinned timestamp-authority chain\\ > > * **Workflows** - Unknown workflow ids show a not-found page instead of an error, and hidden workflow templates resolve correctly by id\\ > > * **Projects** - Projects with no workflows show a proper empty state\\ > > * **Organization settings** - Unified organization provisioning so settings reads no longer return not-found\\ > > * **Compliance** - Compliance is recalculated once per assessment batch instead of once per assessment\\ > > * **Findings** - Forced re-ingests no longer re-run finding processing, which could flip existing assessments\\ > > * **Background jobs** - Skipped background dispatch for suspended organizations and made job deduplication consistent across all job types\\ > > * **Managed sandbox** - Bounded sandbox disk usage, made the vulnerability database seed atomic, and extended the token lifetime past long scan windows\\ > > * **AI Code Security Analysis** - Raised the scan budget to two hours, overlapped scan triage with adjudication, and recovered from oversize commit diffs instead of stalling\\ > > * **Ask** - AI coding session links now resolve correctly\\ > > * **Support** - Contact-us actions fall back to email when live chat is not configured\\ > > * **Home** - The create-organization card is only shown to demo users without an organization of their own **September 1, 2026** v1.107.0 ## Rich report viewers and redacted AI coding sessions This release is about reading your evidence rather than just storing it. Four report formats now render as their own domain instead of raw JSON or XML, AI coding session transcripts are scrubbed of secrets before they ever reach storage, and pull request validation now reacts to review decisions with reviewers detected automatically. ## Rich Visualization for Security, Coverage and Mutation Reports Open a piece of evidence and its report is now laid out the way the tool meant it: findings, coverage, mutants. Four formats get their own view — SARIF and Oversecured security scans, JaCoCo coverage, and PIT mutation reports — where before they were a wall of raw JSON or XML, and for Oversecured and PIT no view at all. The raw document is always one click away, and every format is listed in the [material types reference](/concepts/material-types). ![SAST Evidence Viewer](https://mintcdn.com/chainloop/tI4KwF4LvXuHqc4b/changelog/sast-evidence-viewer.png?fit=max\&auto=format\&n=tI4KwF4LvXuHqc4b\&q=85\&s=9d01083399c59f6a3cc248e3806d02cf) **SAST findings** — `SARIF` and `OVERSECURED_JSON` share one view: a tool header with scan target and date, a severity-ordered findings table whose rows expand into rule guidance, tags, CWE and rule references, and code snippets with the matched lines highlighted. Suppressed findings sit in their own collapsed section, and the raw document is always one click away. Severity bands mirror the `sast-sonarqube-sarif` [policy](/reference/policies), so the badge and the policy verdict in the adjacent tab agree. Rule documentation that SonarQube ships as HTML is reconstructed back into paragraphs, headings and syntax-highlighted code examples. **Mutation testing** — `PITEST_XML` reports show mutation score and test strength, with survived and uncovered mutants sorted ahead of killed ones. Each row expands to the test that killed the mutant. ![PIT Mutation Viewer](https://mintcdn.com/chainloop/tI4KwF4LvXuHqc4b/changelog/pitest-mutation-viewer.png?fit=max\&auto=format\&n=tI4KwF4LvXuHqc4b\&q=85\&s=8f6c881daab20b1323f034f6f00eeba2) **Coverage** — `JACOCO_XML` reports show per-counter coverage for the report, with classes listed worst-covered first, expanding to their counter breakdown. ![JaCoCo Coverage Viewer](https://mintcdn.com/chainloop/tI4KwF4LvXuHqc4b/changelog/jacoco-coverage-viewer.png?fit=max\&auto=format\&n=tI4KwF4LvXuHqc4b\&q=85\&s=3d458f14882e201b280f035a855c9002) Detection is deliberately strict: a report in the wrong flavour, or a malformed one that would otherwise render a confident 0%, falls back to the raw view rather than guessing. Expandable rows across the UI are now keyboard-operable. ## Secrets Redacted From AI Coding Sessions [AI coding session](/concepts/ai-coding-sessions) evidence carries the raw conversation transcript, which routinely includes whatever the agent read or printed — credentials included. That content used to be stored in the [CAS](/concepts/cas-backend) verbatim. Secrets are now detected and replaced before the material is stored. The file on disk is left untouched and remains what [policies](/concepts/policies) are evaluated against, so a secret-detection policy still sees what the agent actually captured. A `chainloop.material.redacted` annotation makes the difference between the stored artifact and the local file explicit, and what was redacted is published as annotations carrying the count and the matched rules. A failed scan stops [`chainloop attestation add`](/cli/reference) rather than storing unscanned content; `--skip-secret-redaction` is an explicit opt-out, recorded in the attestation so a policy can reject it. ## Pull Request Validation Reacts to Reviews [PR validation](/guides/pr-policies-control-gate) now follows what reviewers actually do. Approving or dismissing a review re-runs validation, so a check on minimum reviewers settles as soon as the approval lands — previously a review event produced no new attestation, leaving the requirement failing against evidence captured before anyone had approved. Comment-only reviews and review edits are not routed, since they do not settle a reviewer's position. **Reviewers detected automatically** — the pull request evidence Chainloop produces now carries the full reviewer picture without anything to configure: who was requested to review, each reviewer's current review state, and the author's account type. Reviewers are de-duplicated by login and keep their latest decisive state, so a comment-only review can no longer bury an earlier approval. GitHub unions review requests with submitted reviews; GitLab folds in its approvals endpoint. ## New Evidence Types Three new [material types](/concepts/material-types) are attestable as first-class kinds, each validated at craft time instead of being wrapped by hand in a generic `EVIDENCE` payload. **`OVERSECURED_JSON`** — Oversecured mobile (Android/iOS) scan reports, as the whole-scan JSON export. Kept out of auto-detection, so it must be referenced with an explicit `--kind OVERSECURED_JSON` or from a [workflow contract](/concepts/contracts). **`PITEST_XML`** — PIT mutation testing reports in their native XML form. Auto-detected without shadowing JaCoCo, Cobertura or JUnit, and projected to JSON for policy evaluation with each mutation's status preserved verbatim, so a policy can tell `SURVIVED` from `NO_COVERAGE`. **`CHAINLOOP_AI_SECURITY_CONTEXT`** — recurring vulnerability fingerprints mined from a repository's fix history, the attack surfaces they share, ranked risks, and evidence anchors backing each claim. Validated against an embedded, versioned schema. Alongside these, the platform's own material type enum had drifted 15 entries behind the upstream contract. Evidence of any of those kinds previously resolved as unspecified in the workflow run API and was missing from the evidence type filter; all 15 now resolve correctly. The complete set of supported kinds is listed under [built-in material types](/concepts/material-types#built-in-material-types). ## Clearer Onboarding for Built-In and Your Own Scanners Project onboarding now makes the two ways evidence reaches Chainloop explicit, and keeps them apart. [Built-in scans](/reference/scanners) are run by Chainloop itself, server-side against a connected repository, with nothing to add to your pipeline. Everything else is your own scanner pushing [attestations](/get-started/first-attestation) from your CI, with Chainloop setting up the workflow and its contract for you. A **How evidence is collected** panel spells both modes out beside the picker, so choosing a setup is a decision about who runs the scan rather than something to infer from a template name. ![Built-In and Manual Scanner Onboarding](https://mintcdn.com/chainloop/tI4KwF4LvXuHqc4b/changelog/wizard-scanner-onboarding.png?fit=max\&auto=format\&n=tI4KwF4LvXuHqc4b\&q=85\&s=14c76eb64b59c105e97010916c3a0748) **Nothing is enabled for you** — [workflow templates](/concepts/workflow-templates) no longer come pre-selected. Previously built-in templates were switched on by default — and with no repository linked, the manual push family was switched on instead — so a new project onboarded a set of workflows nobody picked. Every template now starts off, and enabling one is a deliberate choice. Run-mode defaults still follow what each enabled template supports, and **AI Governance** is listed first among the categories. **Clear guidance with no repository connected** — templates that cannot be enabled sort to the bottom of their category group and render muted with a badge naming the reason, either **Needs a repository** or **Provider not supported**. Nothing selectable becomes unselectable and no templates are hidden. Organizations with no [repository connection](/guides/connect-repository) also see the wizard's repository step again, rather than being bounced straight to the details step and never shown the connect hint. ## Per-Resource Delete for Declaratively Managed Resources Every kind managed by [`chainloop apply`](/guides/declarative-resource-management) now has a standalone `delete` command with a confirmation prompt — Policy, PolicyGroup, [Framework](/concepts/compliance-frameworks), Requirement, [Contract](/concepts/contracts) and WorkflowTemplate. Deletion is always a soft delete, scoped to a single organization, never touches built-in resources, and fails loudly in non-interactive contexts instead of silently doing nothing. Deleting a contract is refused while a workflow template still references it. This unlocks a consolidation flow: a new `workflow-template list` command plus a report-only comparison that diffs your repository-as-code against what the organization actually holds, printing the exact `delete` command for each resource that exists remotely but is no longer declared. > [accordion] More Improvements > > * **Scanner evidence quick filters split by category** — the evidence tab's catch-all **Vulnerability Reports** filter is replaced by four buckets: SAST, SCA, DAST and Secrets. Artifacts, SBOMs, VEX documents and provenance are unchanged.\\ > > * **New users are guided to create their own organization** — the restricted-account banner now leads with a **Create your organization** action, Home shows a create-organization card while browsing the read-only demo organization, and the organization switcher labels that organization with a **Demo** badge.\\ > > * **API tokens can list compliance frameworks** — [service accounts](/reference/api-tokens) can now read an organization's [frameworks](/concepts/compliance-frameworks), at both organization and project scope. The mutating framework endpoints remain user-only.\\ > > * **Product version details over REST** — `GetProductVersion` is now reachable as a REST GET on a product's version, with OpenAPI documentation. See the [API reference](/reference/api).\\ > > * **Product-scoped artifact downloads** — [CAS](/concepts/cas-backend) mappings can now be scoped to a [product](/concepts/products) as well as a project, so evidence attached to a product-level override is downloadable by product members instead of being unreachable for anyone with [project RBAC](/reference/rbac) enabled.\\ > > * **Faster evidence review actions** — approving, rejecting or resetting a manual evidence submission used to schedule one job per attached project version, so a single click could produce hundreds of jobs. The fan-out is now batched and deduplicated, and evaluations are no longer scheduled for versions the evidence is no longer linked to.\\ > > * **WCAG contrast minimums across both themes** — theme colors were reworked to meet WCAG contrast minimums in light and dark mode. The create-project wizard's vertical stepper is also visible in dark mode, where the upcoming-step circles and their connector previously blended into the sidebar.\\ > > * **Real destinations in notification rows** — [notification](/concepts/notifications) attachment rows show where the notification actually goes — Slack channel, or Linear team plus assignee — instead of repeating the integration name, and name the provider-side workspace rather than the auto-created registration.\\ > > * **Clearer CLI installer output** — the installer no longer labels the pinned CLI version a chart version; it now says what the version actually is.\\ > > * **Vulnerability management gating simplified** — the unused per-organization vulnerability management setting is removed. [Vulnerability management](/concepts/vulnerability-management) is gated by the plan entitlement alone, so an organization that had the setting off gets it enabled if its plan allows.\\ > [accordion] Bug Fixes > > * Compliance Rejecting evidence no longer leaves a stale passing state behind. A rejected override submission sends the override back to **In Review**, and a rejected manual submission drops its requirement back to partial and raises the needs-review flag — previously only surfaced when every sibling submission was rejected too.\\ > > * Frontend [AI coding sessions](/concepts/ai-coding-sessions) attested under any workflow name now appear in the list, which was pinned to the historical `ai-coding-session` name.\\ > > * CLI [`chainloop trace run`](/guides/chainloop-trace) works outside a git repository. Trace state falls back to an out-of-tree directory under the user cache dir, so sessions can be recorded in sandboxes and scratch directories.\\ > > * CLI `chainloop trace` cost estimates for `claude-sonnet-5` were overstated by 50%: the embedded pricing table used Sonnet 4.6 rates.\\ > > * CLI `chainloop policy devel eval` evaluated policies against the redacted copy of a material rather than the file on disk, so a policy hunting for leaked credentials silently saw sanitized input. User annotations now layer on top of the crafter's instead of replacing them.\\ > > * Policies Rego [policy](/concepts/policies) evaluation is bounded by an execution timeout, so a runaway policy can no longer hang an attestation.\\ > > * Frontend The copy button now returns what the viewer displays. Evidence and material JSON viewers copied and downloaded the minified payload while rendering pretty-printed JSON, and the contract tab copied virtualized editor text with no line breaks.\\ > > * Frontend The CVE id stays whole in risk assessments. A full CVSS vector string made the severity badge wide enough to truncate the vulnerability id beside it; only a numeric score renders inline now, with the vector in the tooltip.\\ > > * UX Re-scan is disabled for projects with no linked repository, instead of offering an action that cannot succeed, and the periodic and pull-request delivery hints explain why in a tooltip.\\ > > * UX The orphaned **Review security findings** link is removed from the workflow run details page, where it duplicated the policy enforcement alert directly above it.\\ > > * UX The AI coding session setup snippet includes `--org`, so it works as copied.\\ > > * Backend Creating a [CAS](/concepts/cas-backend) mapping validates that the referenced project exists and belongs to the backend's organization. A mapping written with a project version id instead never matched the download lookup, making the artifact unreachable for roles with project RBAC enabled.\\ > > * Frontend The legacy `/request-access` route now redirects to `/login` instead of falling through to the catch-all, now that sign-up is open.\\ **August 25, 2026** v1.103.4 ## Manual overrides become recorded decisions This release is about accountability and scale. Every piece of manual compliance evidence now comes with a written justification, and the status of a requirement override is a decision a person makes and records rather than something the system infers. Workflow onboarding splits by who actually runs the scan. And the Artifact CAS no longer holds an entire artifact in memory to store it. ## Improvements on Manual Overrides Manual proof of a [compliance requirement](/concepts/compliance-frameworks) is now reviewed one piece at a time. Every submission — whether attached directly to a requirement or gathered under an override — carries its own approval decision, so a reviewer accepts or rejects each item on its merits and an approved sibling still satisfies the check when another is turned down. The override's own status stays a separate, explicit decision on top of them. Each submission also has to say why it counts: manual evidence and overrides require a justification of at least 10 characters, where previously a bare attachment or a ticked checkbox was enough for evidence to land with no explanation at all. The rule is enforced on submission, not just in the form. ![Evidence Justification](https://mintcdn.com/chainloop/TgthvdokG0ewiepq/changelog/evidence-justification.png?fit=max\&auto=format\&n=TgthvdokG0ewiepq\&q=85\&s=783904a68697a62678bf7984fb37822b) **Require evidence attachment** — a new organization setting, off by default, that additionally demands a file or a link on top of the justification. When it is on, the forms mark the attachment field as required and keep submit disabled until one is provided. **Review a manual evidence submission either way** — administrators can now reject a plain manual proof, matching the override evidence flow. The submission is preserved with a **Rejected** badge and its reason, and counts as not submitted for compliance purposes, so an approved sibling still satisfies the check. **A recorded reason on approval, not just rejection** — reviewers state why they accepted a piece of manual evidence as well as why they turned one down, so the audit trail explains the green results too, instead of only the red ones. **New evidence reopens the review** — with the review process enabled, attaching, linking or modifying evidence automatically sends the override or the manual requirement back to **In Review**. A decision never carries over to material the reviewer never saw, and the reset is attributed to Chainloop rather than to whoever touched the evidence. **Authors can withdraw their own submissions** — previously only while a submission was still pending review; once a reviewer had acted, removal needed an administrator. Authors can now delete their own evidence at any review status, and the requirement is re-evaluated when they do. ## Override Status Is a Recorded Decision In the previous release an override's status was derived from its evidence items. That derivation is gone: the status is a decision an administrator makes explicitly, and approving, rejecting or resetting an individual evidence item never changes it. The automatic reset to **In Review** applies only when the review workflow actually applies to the person touching the evidence — they lack write access on the target, or the organization has evidence review enabled. The justification now carries the rationale for every status decision. Accepting an override asks for one just as rejecting does; sending it back to review clears the stored one, since the previous decision no longer applies. The override header shows **Justification** under every status, replacing the rejection-reason-only row, and each decision stays recorded in the override history alongside the evidence approvals it accompanied. ![Override Justification](https://mintcdn.com/chainloop/TgthvdokG0ewiepq/changelog/override-justification.png?fit=max\&auto=format\&n=TgthvdokG0ewiepq\&q=85\&s=bed160ad0acf49c35d2aa58dc993fe33) ## Workflow Onboarding Split by Who Runs the Scan The [workflow template](/concepts/workflow-templates) picker now opens on two tabs, drawn from the template's delivery mode: **Automated by Chainloop** for [scans Chainloop runs itself](/reference/scanners) server-side against a connected repository, and **Manual push from your CI** for workflows your own pipeline pushes attestations to. Each tab explains how its evidence is collected and badges how many workflows your current selection would create. The tabs appear only when both kinds are on offer, so an organization using a single delivery mode keeps the plain list. ![Template Delivery Tabs](https://mintcdn.com/chainloop/TgthvdokG0ewiepq/changelog/template-delivery-tabs.png?fit=max\&auto=format\&n=TgthvdokG0ewiepq\&q=85\&s=0fd6e4e3a2ce803b579e7de03e6c9c39) **Templates grouped by category** — within each tab, templates are grouped under headings with an icon and a one-line description, driven by the template's `chainloop.dev/categories` annotation. Category chips continue to filter across groups. **Unavailable templates stay visible** — a template whose prerequisites are not met is listed but locked, with the reason shown, instead of being dropped. A project with no [linked repository](/guides/connect-repository) can now see what connecting one would unlock. **A steadier create-workflow wizard** — the step order becomes project, then template, then configure, so the template is chosen against an already-resolved repository and picking a project no longer clears your selection. The **Workflow contract configuration** section in workflow editing is retitled **Run configuration**. ## Streaming Uploads to Object-Store CAS Backends The Artifact [CAS](/concepts/cas-backend) buffered an entire artifact in memory before flushing it to the storage backend, so memory grew roughly one-to-one with artifact size and a large upload could take the CAS down mid-stream. S3, S3 access point and Azure Blob backends now advertise a streaming capability and are fed directly from the client stream, keeping peak memory bounded no matter how large the artifact is. OCI backends keep the buffered path, since their push implementation needs the whole layer up front. A backend upload failure is also surfaced as a real internal error now, rather than being misreported as a client disconnect. The download path, including digest verification, is unchanged. > [accordion] More Improvements > > * **AI coding sessions link to their attestation** — the [session](/concepts/ai-coding-sessions) sheet's overview now carries an **Attestation** link to the workflow run behind its latest evidence. The row is omitted while no evidence is linked yet.\\ > > * **Reviewer names in evidence review status** — the review status of a manual evidence submission shows the reviewer's full name instead of falling back to their email address.\\ > > * **Lower CLI memory during attestation init** — the crafter now releases Git packfile descriptors once it has finished reading the repository, instead of holding them open for the lifetime of the process.\\ > [accordion] Bug Fixes > > * Security The GitHub App enrollment callback trusted the installation identifier in GitHub's browser redirect without proving the caller had any authority over it, so an authenticated user could bind another organization's installation to their own and mint repository-scoped tokens against its private repositories. Enrollment now confirms the installation is visible to the person completing the flow. Deployments with `github_app` configured must supply the App's OAuth client credentials and an external URL — see the [GitHub App deployment guide](/guides/deployment/guides/github-app).\\ > > * Compliance Project viewers attaching a *file* to manual evidence or an override got a permission error, surfaced only as "there was an error submitting the evidence". Link and checkbox evidence worked, so it looked intermittent. Anyone who can submit evidence on a project can now upload files for it.\\ > > * Compliance Files attached to product-level overrides and manual evidence were uploaded without a scope, so they were undownloadable for every role subject to project-based access filtering while owners and administrators could still fetch them. Uploads are now scoped to the owning product, and a background job repairs the affected existing attachments.\\ > > * Frontend The findings funnel chart on the project overview and Security tabs could exceed React's update depth and take the page down. Its chart props are now referentially stable, so an unchanged refetch no longer rebuilds the chart.\\ > > * Compliance A requirement whose manual proof had one rejected submission alongside approved ones read as green at the requirement level but amber on the check row, with the header claiming "0 of 1 checks passing". The browser now applies the same rule as the server. The checks counter also respects evidence expiry, so an expired-but-approved proof no longer counts as passing.\\ > > * Frontend The create-project wizard decided whether to show the repository step from GitHub App availability alone, so an organization with only GitLab connected never got the step. It now gates on source control registrations across every provider.\\ > > * Frontend A propagated product-level override always read "Overridden in a different product", even when it came from the product being viewed. The project compliance view now says "Overridden in a product", and the note moves into a tooltip on the header badge.\\ > > * UX Members who cannot manage integrations were shown a connect call to action they had no permission to act on.\\ > > * UX Long manual proof titles in requirement checks were truncated to a single line; they now wrap and expand in full when the check is opened.\\ > > * Policies The policy group sheet duplicated the header border above its inputs section, and the "how to apply" snippets offered a malformed JSON variant alongside the YAML one. The JSON variants are gone and the YAML examples copy cleanly.\\ > > * Frontend Several detail sheets rendered their titles at page-heading size, and the product notifications sheet was noticeably wider than every other configuration sheet. Sheet typography is aligned with the design system, and the CAS backend details sheet no longer shows two close buttons.\\ > > * CLI [Trace](/guides/chainloop-trace) silently pushed attestations to whichever organization an org-scoped API token belonged to, ignoring the `organization` field in `.chainloop.yml`. A mismatch now fails with the conflict named, and pre-push attestation setup failures are logged as warnings instead of debug.\\ > > * CLI A batch of trace fixes: a truncated transcript line no longer fails the attestation and blocks `git push`; `trace run` no longer uninstalls a pre-existing trace setup, losing unpushed AI attribution with it; the generated Git hooks exit cleanly when `chainloop` is not on `PATH`, instead of aborting the commit; and hook installation refuses to overwrite an existing backup of your own hook.\\ > > * CLI With an external CAS backend enabled, attestation push embedded policy evaluations both inline and by reference, so the payload carried them twice and could exceed the control plane's receive limit. The inline copy is dropped once the reference is emitted.\\ **August 14, 2026** v1.103.0 ## A redesigned project creation wizard This release is about the moments where work leaves Chainloop and lands somewhere else. Creating a project is a shorter, clearer path. Compliance evidence gets reviewed item by item instead of all at once. New findings can open Linear tickets on their own, and the remediation pull requests waiting for a human are now visible from the project's Security tab. ## A Redesigned Project Creation Wizard Creating a [project](/concepts/projects-versions) no longer starts with a question about how you want to start. The wizard opens directly on the repository step, and that step is now optional — **Continue without a repo** moves straight on to the details. When no source control provider is connected yet, the step offers explicit **Connect with GitHub** and **Connect with GitLab** buttons instead of a dropdown, so [connecting a repository](/guides/connect-repository) is one click from where you already are. The whole wizard also moves to a two-pane layout: the steps live in a sidebar alongside contextual help explaining what each choice unlocks, with a link to the relevant documentation always in reach. ![Project Creation Wizard](https://mintcdn.com/chainloop/HAz4M-x5yliyz2WP/changelog/project-wizard-layout.png?fit=max\&auto=format\&n=HAz4M-x5yliyz2WP\&q=85\&s=698231b75be018f1bc3bc2c497c19117) ## Evidence-Level Approval for Requirement Overrides When a [compliance requirement](/concepts/compliance-frameworks) is satisfied manually, the override often collects several pieces of evidence from several people. Reviewing it as a single unit meant one questionable attachment forced a verdict on all of them — and rejecting the override discarded what had been submitted. Every evidence item now carries its own approval lifecycle. Evidence attached by someone with write access to the target lands approved; evidence from a project or product viewer arrives pending review. Administrators can approve, reject with a mandatory reason, or reset each item individually, and rejected evidence is kept rather than thrown away, with its reason shown on the badge. The override's own status is derived from its items: any rejected item fails it and carries the reason forward, anything still pending review puts it back in review, and fully approved evidence succeeds it. Administrators can still set the status by hand at any time. The feature is turned on through an organization setting, alongside the existing one that forces approvals. ![Evidence-Level Approval](https://mintcdn.com/chainloop/HAz4M-x5yliyz2WP/changelog/evidence-level-approval.png?fit=max\&auto=format\&n=HAz4M-x5yliyz2WP\&q=85\&s=0358dd03a347287594f286b35412e172) ## New Findings Can Open Linear Tickets [Product notifications](/concepts/notifications) can now route new findings straight into Linear. Pick Linear as the destination, choose the team that should receive the work, and Chainloop opens one ticket per new finding once the notification debounce window closes — no manual triage step in between. Ticket creation is idempotent per finding and team, so a retry or a restart never produces duplicates. This builds on the existing [Linear integration](/concepts/issue-trackers), which already keeps risk assessments and their tickets in sync. ![Linear Tickets for New Findings](https://mintcdn.com/chainloop/HAz4M-x5yliyz2WP/changelog/linear-findings-notifications.png?fit=max\&auto=format\&n=HAz4M-x5yliyz2WP\&q=85\&s=5f28cf3514aa3f3a5d9091dad43f5201) ## Open Remediation Pull Requests at a Glance A project version's Security tab gained an **Open Remediation PRs** card listing every assessment whose [automated remediation](/concepts/vulnerability-management) is currently waiting on a pull request. Each row links to the pull request on GitHub and back to the assessment that produced it, and shows the branch and repository it targets. The card hides itself when nothing is outstanding, so it only appears when there is something to merge. ![Open Remediation PRs](https://mintcdn.com/chainloop/HAz4M-x5yliyz2WP/changelog/open-remediation-prs.png?fit=max\&auto=format\&n=HAz4M-x5yliyz2WP\&q=85\&s=83a72aa6660bd3c30c2c8d123c83f6c1) > [accordion] More Improvements > > * **Per-kind workflow template settings** — the single four-option template visibility select in organization settings becomes two independent toggles, one for Chainloop's built-in templates and one for your custom ones, so each kind can be turned on or off on its own. Existing settings are migrated automatically.\\ > > * **Built-in workflow templates as an entitlement** — access to Chainloop's maintained [built-in templates](/concepts/workflow-templates) is now governed by a plan entitlement, granted per customer on self-hosted deployments. Workflows already created from a built-in template keep running and stay editable.\\ > > * **New evidence list filters** — the evidence API and `chainloop evidence list` gained `--annotation` (repeatable `key=value`, combined with AND), `--created-after` (a date or an RFC3339 timestamp), and `--project-version-latest` to scope results to a project's latest version without naming it. Attestation-level annotations are now searchable alongside material-level ones.\\ > > * **Override policy inputs at attestation time** — `chainloop attestation add --policy-input [:]=` replaces a [policy](/concepts/policies) input declared in the contract for a single run, instead of appending to it like `--policy-input-from-file` does. An optional policy prefix scopes the input to one policy.\\ > > * **Periodic SBOM scans without a repository** — vulnerability scans that read SBOMs already attested in Chainloop need no linked repository, and the Create Workflow sheet now reflects that: choosing SBOMs as the scan source enables periodic delivery on a repository-less project.\\ > > * **Inspect the instance license from the CLI** — `chainloop admin license describe` reports a deployment's license state, the customer it was issued to, and its issue and expiry dates, matching what the Plan & Billing view shows.\\ > > * **Status page moved under settings** — the Status entry in the settings sidebar now lives at `/settings/status` and keeps the settings navigation in place instead of dropping you back to the main sidebar. The old path redirects.\\ > [accordion] Bug Fixes > > * Backend Project-scoped [API tokens](/reference/api-tokens) were minted with two capabilities no project role holds, letting a project administrator create credentials for another project's workflows. Both are withheld now, and the superseded robot account management API has been removed. Rotate project-scoped tokens created before this release.\\ > > * Backend The SAML assertion consumer endpoint now caps its request body and rejects deeply nested XML, so an unauthenticated request can no longer drive the control plane toward exhausting memory.\\ > > * Backend The Security Checks section of a pull request comment could sit at "evaluating" forever even after the scan succeeded. Policy evaluation is retried now, and a run that genuinely never evaluated reports so and tells the reviewer to push a new commit.\\ > > * Backend Pull requests that only delete files reported a scan error instead of skipping the scanners that had nothing to look at.\\ > > * Backend Pull request scans attested against whatever project version the branch was cut from, recreating versions that had already been released or removed. They now attest against the project's latest version.\\ > > * Backend A repository whose source control connection was removed was never reported as unreachable, and its configuration check retried forever. Orphaned repositories are now detected and the project reports unhealthy.\\ > > * Backend "Repository unreachable" incidents stayed open forever when the repository was unlinked from its project or the project was deleted. Both paths clear the incident once nothing monitors the repository any more.\\ > > * Backend Clicking **Approve & Fix** on a pending assessment could start two remediation runs at once. A trigger now returns the run already in progress instead of launching another.\\ > > * Backend [Audit events](/reference/audit-logs) raised by projects, workflows, contracts, groups, memberships, API tokens, invitations, CAS backends, and workflow runs were attributed to `SYSTEM` or dropped entirely. They now carry the real actor, and API token entries carry the token name.\\ > > * Frontend Creating an Azure Blob [CAS backend](/concepts/cas-backend) without naming a container created one literally named "undefined". The container now defaults to `chainloop`, matching the CLI.\\ > > * Frontend A brief control plane hiccup during organization creation or switching could leave the app on a spinner that never resolved. Those reads now retry for a bounded window and then show a recoverable error page with a Refresh action.\\ > > * Frontend Which workflow templates start pre-selected in the project wizard is now driven purely by the template's own default annotation, identical on SaaS and self-hosted. Built-in templates no longer drop off when a custom template is marked as default.\\ > > * CLI Fuzzing reports counted radamsa's per-run seed header as a mutation, inflating the iteration count by one per log and making `radamsa-min-iterations` gates more lenient than intended.\\ > > * CLI Large AccessChk materials could drive the CLI's memory high enough to risk the CI runner being killed during policy evaluation. Parsing is streamed now and oversized verbatim text is omitted; recorded evidence and evaluation results are unchanged.\\ **August 7, 2026** v1.100.0 ## Control over workflow templates and GitHub connections This release is about the connections between Chainloop and the systems around it. Organizations get control over which workflow templates their teams are offered, GitHub App installations become individually manageable connections, repositories that quietly lose access now announce themselves, and a pull request validation run tells you which pull request produced it. ## Choose Which Workflow Templates Your Teams Can Use [Workflow templates](/concepts/workflow-templates) come from two places: the pre-built ones Chainloop ships, and the custom ones your organization applies. Until now every organization was offered both, whether or not that matched how it wants teams to work. A new **Workflow Template Configuration** section in the organization settings puts that decision in your hands. One control, four options — **Disabled** (no templates at all), **Chainloop only**, **Custom only**, or **Enabled** (both). The setting governs every template picker: the project creation wizard, the project edit sheet, and the Create Workflow sheet. When nothing is on offer, the wizard skips its workflows step entirely rather than showing an empty list. Workflows that were already created from a template keep running normally even if that kind of template is later hidden, so tightening the setting never disrupts existing pipelines. ![Workflow Template Configuration](https://mintcdn.com/chainloop/oGy70OudmjyixFDo/changelog/workflow-template-settings.png?fit=max\&auto=format\&n=oGy70OudmjyixFDo\&q=85\&s=630f6c1867d1af7d654b55a1446a88ca) ## Every GitHub App Installation Is Its Own Connection The [GitHub App integration](/concepts/integrations#github) used to register once for an entire organization, no matter how many App installations sat behind it. One broken installation made the whole integration report "all configurations have validation errors", and the only way to fix it was to disconnect every account at once. Each installation is now a connection in its own right — matching how GitLab connections already work. Health checks, validation state, incidents, and removal all apply to a single installation, so a problem with one account no longer masks or breaks the others. Each row carries its own status, its own error message, and its own **Manage access** link pointing at that account on GitHub (including GitHub Enterprise Server). Removing one connection leaves the rest working. Provider health is aggregated per provider, so projects served by a working connection are no longer reported as unhealthy because a different connection is down. Existing organizations are split into per-installation connections automatically — there is nothing to migrate. ![GitHub App Connections](https://mintcdn.com/chainloop/oGy70OudmjyixFDo/changelog/github-app-connections.png?fit=max\&auto=format\&n=oGy70OudmjyixFDo\&q=85\&s=1d4991719a9c42becfd800e9d854cab7) ## Repositories That Lose Access Now Tell You When a [linked repository](/guides/connect-repository) became inaccessible — removed from a GitHub App installation, deleted, renamed, or transferred — the link stayed in place, every dispatched scan failed at credential resolution, and nobody was told why. Chainloop now tracks reachability for each linked repository. A scheduled reconciler compares each [SCM connection's](/guides/repository-integration) live repositories against the ones linked to your projects and marks anything missing as unreachable; the GitHub token flow marks a repository unreachable immediately when it hits an access error, without waiting for the next cycle. It works the same way for GitHub and GitLab. When a repository goes unreachable, an organization incident is raised naming it, the project detail view shows the state with the reason in a tooltip, and managed workflows such as PR validation and auto-remediation stop dispatching scans that could only fail. Recovery is automatic — once access returns, the state flips back and the incident resolves on its own. ![Unreachable Repositories](https://mintcdn.com/chainloop/oGy70OudmjyixFDo/changelog/unreachable-repository.png?fit=max\&auto=format\&n=oGy70OudmjyixFDo\&q=85\&s=f2433da89e23f3aa156c1706fc309abf) ## See the Pull Request Behind a Validation Run A [pull request validation](/guides/pr-policies-control-gate) run now records the pull request that triggered it, and the [workflow run](/concepts/workflows) detail view renders a **Pull Request** row linking straight back to the provider. Arriving at a run from a link or a notification no longer leaves you guessing which change it was checking. Run history is also kept per commit: each commit pushed to a pull request keeps its own validation run, and only re-validating the same commit overwrites in place. ![Pull Request on Workflow Run](https://mintcdn.com/chainloop/oGy70OudmjyixFDo/changelog/run-pull-request-row.png?fit=max\&auto=format\&n=oGy70OudmjyixFDo\&q=85\&s=1452e7f560a9ce695d7906aed46c8c04) > [accordion] More Improvements > > * **Clickable wizard steps** — The project creation wizard's stepper is now navigable: going back always works and keeps drafted values, and jumping ahead is allowed once every step in between is valid\\ > > * **Unlink a repository** — The linked repository control in the Update Project sheet is collapsed by default instead of listing every repository in the organization, and its actions menu now offers **Unlink** alongside "Select another repository"\\ > > * **One path to connect a repository** — The standalone Repositories list has been retired in favor of the project creation flow, so connecting a repository no longer creates projects, workflows, and framework assignments as invisible side effects\\ > > * **Slack thread follow-ups** — The [Slack assistant](/concepts/integrations#slack) now answers untagged follow-up questions in a thread it is already active in, instead of dropping any message that mixed an on-topic request with an off-topic aside\\ > > * **Radamsa report archives** — `chainloop attestation add` accepts a zip or tar archive of radamsa `-M` metadata logs as a single `RADAMSA_REPORT` [material](/concepts/material-types), with the records merged at policy evaluation time so an iteration-count gate sees the total\\ > > * **Audit event on version promotion** — Promoting an existing project version to latest now emits an [audit event](/reference/audit-logs), so systems tracking a project's latest [version](/concepts/projects-versions) stay in sync instead of pointing at the previous one indefinitely\\ > > * **Bash tool attribution in `chainloop trace`** — Changes produced through an AI agent's Bash tool are detected and attributed alongside the other tools\\ > > * **Opus 5 cost reporting** — `chainloop trace` prices Claude Opus 5 sessions correctly instead of falling back to Sonnet rates and undercounting the cost\\ > [accordion] Bug Fixes > > * Backend The OAuth callback error page escapes values supplied by the identity provider, closing a reflected cross-site scripting vector with providers that allow arbitrary email strings\\ > > * Backend Organization security settings can only be changed by an admin or owner of the organization being updated — previously a member of one organization could alter another organization's settings, including policy violation blocking and allowed policy hostnames\\ > > * Backend The OIDC login callback URL is validated against the deployment's declared origins, relative paths, and loopback addresses, so a crafted login link can no longer end the sign-in flow at an arbitrary destination\\ > > * Backend SBOM-mode vulnerability scans no longer fail when a policy fetching a large remote feed is slow, and byte-identical SBOMs in the same scan are only processed once\\ > > * Backend Whitespace-only names are rejected for [products](/concepts/products) and product versions, on both create and rename, instead of producing a blank unidentifiable row in every list and picker\\ > > * Frontend Creating a workflow no longer prompts "You have unsaved changes" after it has already been saved, and the template picker dropdown stays inside the sheet instead of overflowing across the viewport\\ > > * Frontend The workflow template visibility options render their full descriptions — the text following the Chainloop badge was previously dropped\\ **July 31, 2026** v1.98.2 ## Vulnerability scanning without source code This release widens who can get vulnerability scanning and sharpens what reviewers see when they get it. Projects that publish SBOMs but can't share source code now get periodic scanning from the SBOMs themselves, pull request feedback is reorganized so a reviewer can read the verdict without expanding anything, and risk assessments can go from AI proposal to remediation pull request in a single click. ## Vulnerability Scanning Without Source Code [Managed vulnerability scanning](/reference/scanners#vulnerability-scan) previously required source-code access — Chainloop cloned the repository, built an SBOM, and scanned it. Plenty of teams can't grant that access but already push SBOMs as attested evidence. Those projects can now be scanned too. The Vulnerability Scan workflow gains a **source** setting with two options: **Source code** (the existing clone-and-scan behavior, still the default) or **SBOMs**. In SBOM mode Chainloop resolves the project version, picks up its latest attested [CycloneDX and SPDX SBOMs](/concepts/material-types) from your [evidence store](/concepts/cas-backend), and scans each one — no repository access required. Results flow through exactly the same pipeline as before: the SBOM is re-attested alongside its SARIF report, evaluated by your [policies](/concepts/policies), and the findings land in [Vulnerability Management](/concepts/vulnerability-management) where they can be triaged and assessed. Periodic re-scanning works the same way, so an SBOM attested months ago keeps getting checked against newly disclosed CVEs. ![Vulnerability Scanning Without Source Code](https://mintcdn.com/chainloop/pGkKzVHIkIcwdO17/changelog/vulnerability-scan-sbom-source.png?fit=max\&auto=format\&n=pGkKzVHIkIcwdO17\&q=85\&s=a80b7cd63b05036204dd8e4efe0eeec1) ## A Clearer Verdict on Every Pull Request The Chainloop bot comment and the **Chainloop PR Validation** check have been reworked so a reviewer can answer "did this pass?" without expanding a single section. See the [pull request control gate guide](/guides/pr-policies-control-gate) for how these checks fit into branch protection. **Verdicts in the Headings** — Both sections now carry their result in the heading itself — `AI Session Checks — 🟢 87% · ✅ 0 failing` and `Security Checks — ✅ 7 passing`. A section with nothing evaluated, no results, or everything skipped renders no verdict at all rather than claiming a pass, because "no policy ran" and "every policy passed" are different facts. The sections were also renamed from *AI Session Analysis* and *PR Validation* to describe what a reviewer gets rather than the machinery behind it. **Scans That Didn't Run Are Now Visible** — Previously the comment showed only policies from scans that actually ran, so a scan that wasn't applicable to the diff looked identical to one that was never configured. Policy results are now grouped under the scan that produced them, and every scan reports its own verdict: scans judged by no policy surface an expanded warning (usually a misconfigured [contract](/concepts/contracts)), errored scans expand too, and scans that didn't apply collapse into a single "N scans not applied" fold at the bottom. ![A Clearer Verdict on Every Pull Request](https://mintcdn.com/chainloop/pGkKzVHIkIcwdO17/changelog/pr-security-checks.png?fit=max\&auto=format\&n=pGkKzVHIkIcwdO17\&q=85\&s=f54928ab6b6211b1a589cc25b47d7022) **The Same Detail in the Check Output** — The check run summary used to list only the names of failing policies, so arriving from the Checks tab told you what failed but not why. It now renders the same grouped body as the comment — per-scan verdicts, policy messages, and attestation links — from a shared renderer, so the two surfaces can't drift apart. **AI Sessions Collapsed by Default** — A single [AI coding session](/concepts/ai-coding-sessions) used to render fully expanded, pushing everything below it out of view. Every session block is now collapsed; its summary line already carries the score, AI percentage, and policy verdict, and the pull request rollup table stays above the fold. ![AI Sessions Collapsed by Default](https://mintcdn.com/chainloop/pGkKzVHIkIcwdO17/changelog/ai-session-checks-collapsed.png?fit=max\&auto=format\&n=pGkKzVHIkIcwdO17\&q=85\&s=4b6da7e8a32fbeeead3facfc56f0570d) ## Approve and Remediate in One Step [Risk assessment](/concepts/vulnerability-management) cards now give reviewers the full picture before they commit to a decision, and cut a step out of the remediation path. **Approve & Fix** — A new action approves an AI-proposed assessment and immediately opens the remediation pull request, replacing the approve-then-click-Create-PR-fix sequence. It appears only for fixable proposals on projects with a [linked repository](/guides/connect-repository). **Justification Codes Everywhere** — The status badge now shows its justification alongside the status — "Not affected — vulnerable code not present" rather than just "Not affected" — on the pending proposal panel, the pinned assessment card, and the assessment sheet header. **Fix Availability Before You Accept** — Whether a fix exists, what it is, and how feasible it looks are all shown on the pending proposal, so you no longer have to accept a proposal to find out. ## Archives as Named Contract Materials Some tools emit one logical result as a bundle of files — a directory of SARIF reports, a set of fuzzing reports, one report per test mode. Chainloop could already explode such an archive into many materials, but they were given generated names, which meant they couldn't satisfy a [contract's](/concepts/contracts) named material slot or be targeted by a policy selector. That gap is now closed. **Deterministic Names for Exploded Materials** — Pass an archive to `chainloop attestation add` and the entries are sorted by path, the first taking your exact `--name` and the rest `-1`, `-2`, and so on. The first entry fills the required contract slot, and the same archive always produces the same mapping. ```bash theme={"dark"} chainloop attestation add --kind SARIF --name scan-report --value scans.zip # -> scan-report, scan-report-1, scan-report-2, ... ``` **Prefix Policy Selectors** — Material selectors accept a new `match_mode`, so one [policy](/concepts/policies) attachment or [policy group](/concepts/policy-groups) entry can target an entire exploded set instead of naming each material: ```yaml theme={"dark"} policies: materials: - ref: my-policy selector: name: scan-report match_mode: PREFIX # matches scan-report, scan-report-1, ... ``` **The Source Archive Is Attested Too** — The original bundle is recorded as an `EVIDENCE` material and cross-linked with every material derived from it, so the archive you actually uploaded stays traceable in the [attestation](/concepts/attestations). **Dranzer Report Bundles** — `CERTCC_DRANZER` now accepts either a single report or an archive of several. A dranzer run emits one report per test mode, so the whole archive is recorded as one material and policies see the aggregated result plus a per-mode breakdown. ## A More Deliberate Project Setup The [project creation wizard](/get-started/projects/create-project) no longer lets you skip past decisions that are awkward to undo later. **Products Are Now Required** — Every project belongs to a [product](/concepts/products). "Create a new product" is listed first and selected by default, and the Next action stays disabled until you pick or name one — which also closes a gap where you could advance past the step without choosing anything at all. **Pick Your Frameworks Explicitly** — When you create a product, the available [compliance frameworks](/concepts/compliance-frameworks) are listed for individual selection, with Chainloop Best Practices checked by default. Previously every built-in framework was attached implicitly. ![A More Deliberate Project Setup](https://mintcdn.com/chainloop/pGkKzVHIkIcwdO17/changelog/wizard-product-step.png?fit=max\&auto=format\&n=pGkKzVHIkIcwdO17\&q=85\&s=40248b523c9b26d51150fd8d00288d11) > [accordion] More Improvements > > * **Explained disabled Update button** — The edit project sheet now names the workflows blocking submission instead of leaving the button greyed out with no reason\\ > > * **opencode support in AI coding sessions** — The `ai-coding-session` contract accepts opencode alongside the other supported AI agents\\ > [accordion] Bug Fixes > > * Compliance A deleted requirement no longer breaks the entire framework compliance page — soft-deleted requirements are excluded from compliance reads instead of failing them\\ > > * Compliance Product-level overrides that collide on a shared project version are rejected up front, instead of silently creating an inert override; the UI now flags overrides inherited from a different product and warns when an override did not reach every project\\ > > * Compliance Products tracking a project's latest version no longer get stranded on a superseded one — a periodic sweep repairs stale attachments, and every roll-up now recomputes the affected product version's compliance\\ > > * Compliance Onboarding a new project respects the organization's built-in frameworks setting, instead of attaching built-in frameworks to organizations that deactivated them\\ > > * Backend Merging an auto-remediation pull request no longer marks the assessment as fixed — the next scan decides, so a partial bump or a revert can't permanently silence a vulnerability\\ > > * Frontend Requirement and framework edit sheets prefill the Name field from the identifier when no display name is set, fixing "Name is required" errors on a field the user never touched\\ > > * Backend Scans whose project is deleted mid-run complete as skipped rather than failing\\ > > * Backend Losing access to a GitHub repository is treated as a permanent condition instead of being retried indefinitely\\ > > * Backend Per-run usage metrics are retried on transient storage failures instead of being dropped\\ > > * Backend Concurrent vulnerability ingestion no longer deadlocks across jobs\\ **July 29, 2026** v1.97.1 ## Pull request checks and standalone SBOM generation This release extends Chainloop's automated security scanning from periodic runs to every change. Your scanners can now run on each pull request as well as on a schedule, giving reviewers feedback in the pull request itself while keeping every check as auditable evidence. Chainloop can also generate SBOMs for any GitHub or GitLab repository on its own now, and the MCP server gains a workflow-run lookup tool alongside a hardened authorization flow. ## Pull Request Checks Chainloop's [automated scanning](/reference/scanners) no longer runs only on a periodic schedule — it can now run on every change. Configure a project once and Chainloop scans each incoming pull request for infrastructure-as-code misconfigurations, dependency vulnerabilities, leaked secrets, source code flaws, and GitHub Actions workflow changes. There is nothing to add to your CI. When a pull request is opened or updated, Chainloop scans the branch, scopes the analysis to the files that actually changed, and reports back on the pull request itself as a single **Chainloop PR Validation** check plus one consolidated comment. Reviewers get security feedback where they are already working, before the code merges. Every check is also stored as evidence. The scan reports and the pull request metadata are captured as a signed [attestation](/concepts/attestations) in your [evidence store](/concepts/cas-backend), evaluated by the same [policies](/concepts/policies) as the rest of your evidence, and retained for audit — so months later you can still show what was scanned on a given pull request, what it found, and what the verdict was. Works on both GitHub and GitLab. **Periodic, On Every Change, or Both** — Each template-backed [workflow](/concepts/workflow-templates) now has an on/off toggle plus two independent run modes: **run periodically** and **run in PRs**. Enable both and the same scanner gives you scheduled baseline coverage plus per-change feedback; enable just one to pick a side. Templates that support only a single mode keep it locked on, and if you choose neither, the workflow falls back to [manual delivery](/reference/scanners#run-modes) from your CI where the template allows it. **Five Scanners, One Check** — Five [built-in scanners](/reference/scanners) can run in pull requests: SAST Scan, Secret Scan, Vulnerability Scan, IaC Scan, and GitHub Actions Scan. Enable as many as you like — they share a single sandbox run and report into one check, so a PR gets one verdict rather than five. **Zero Setup** — There is no PR validation workflow to create or configure. Enable PR mode on any scanner and Chainloop provisions the underlying validation workflow for the project on its first pull request, deriving the contract from the scanners you opted into. It stays out of the template picker entirely. ![Independent Run Modes](https://mintcdn.com/chainloop/kkI2ORXIYqUSRxXk/changelog/pr-run-modes.png?fit=max\&auto=format\&n=kkI2ORXIYqUSRxXk\&q=85\&s=426e6ed511c6220c0c3dcb48004b111e) **Live Check Status** — The check is published in a running state the moment a scan is dispatched, so a pull request never shows a stale conclusion or an empty check while a scan is in flight. Scans that fail permanently resolve to a neutral state rather than leaving a required check pending forever. ![Five Scanners, One Check](https://mintcdn.com/chainloop/kkI2ORXIYqUSRxXk/changelog/pr-capable-scanners.png?fit=max\&auto=format\&n=kkI2ORXIYqUSRxXk\&q=85\&s=d177e6ccbe1808beb558e821fce14bea) ## Standalone SBOM Generation SBOM generation has been one of the most common requests from our users, and it is now a managed capability in its own right — no longer something you get only as a side effect of vulnerability scanning. Point Chainloop at any GitHub or GitLab repository and it generates a CycloneDX SBOM for you on a schedule, with no CI setup and no tooling to install. Chainloop clones the repository in a sandbox, builds the SBOM with [syft](https://github.com/anchore/syft), and attests it as an [`SBOM_CYCLONEDX_JSON`](/concepts/material-types) material. Because the SBOM lands as regular evidence, the whole [policy](/concepts/policies) library applies to it automatically. The [`sbom-quality` policy group](/concepts/policy-groups) is attached out of the box and checks [NTIA minimum elements](/reference/policies#sbom-ntia), [license coverage](/reference/policies#sbom-with-licenses) and [banned licenses](/reference/policies#sbom-banned-licenses), [banned components](/reference/policies#sbom-banned-components), and [SBOM freshness](/reference/policies#sbom-freshness) — so you get license compliance and completeness verdicts on every generated SBOM without wiring anything up. From there the SBOM behaves like any other evidence: it feeds [compliance frameworks](/concepts/compliance-frameworks) such as the [EU Cyber Resilience Act](/guides/cra), and can be forwarded to tools like [Dependency-Track](/guides/dependency-track). ![Standalone SBOM Generation](https://mintcdn.com/chainloop/kkI2ORXIYqUSRxXk/changelog/sbom-generation.png?fit=max\&auto=format\&n=kkI2ORXIYqUSRxXk\&q=85\&s=993210ad945dc1cd92c66339512cdf0e) ![SBOM Quality Policy Evaluations](https://mintcdn.com/chainloop/kkI2ORXIYqUSRxXk/changelog/sbom-quality-policies.png?fit=max\&auto=format\&n=kkI2ORXIYqUSRxXk\&q=85\&s=de06cc539b7e790f543fae62e0321b23) ## A Safer, More Capable MCP Server The [Chainloop MCP server](/guides/chainloop-mcp) gets both a new tool and a hardened authorization flow — your AI assistant can answer more questions about your supply chain, and connecting it to Chainloop is now an explicit, verifiable decision. **Explicit Consent for MCP Clients** — Connecting an MCP client now requires your approval. The authorization flow shows which client is asking, where the authorization code will be sent, and what access it is requesting — with the redirect host as the primary identity and the client's self-reported name clearly marked unverified. Client registrations are signed and redirect URIs are validated against them, so an authorization code can only ever be delivered to a destination the client registered. ![Explicit Consent for MCP Clients](https://mintcdn.com/chainloop/kkI2ORXIYqUSRxXk/changelog/mcp-oauth-consent.png?fit=max\&auto=format\&n=kkI2ORXIYqUSRxXk\&q=85\&s=70946a22a10cfc46fad4ce1fc188ddb0) Existing access and refresh tokens keep working. MCP clients re-register automatically, so the only change you'll notice is one approval screen per authorization. **Look Up Any Workflow Run** — A new `get_workflow_run` tool fetches a single [workflow run](/concepts/workflows) by its ID or attestation digest. Paste a workflow run URL into your AI assistant and it can pull the run's status, timestamps, project and version context, policy violation summary, CI job link, and contract revision directly — no more guessing from a list. Access is scoped like the rest of the MCP tools: organization-scoped lookup, then a project-level permission check. ![Look Up Any Workflow Run](https://mintcdn.com/chainloop/kkI2ORXIYqUSRxXk/changelog/mcp-get-workflow-run.png?fit=max\&auto=format\&n=kkI2ORXIYqUSRxXk\&q=85\&s=82e121f222d6e8f8a6140ba576bea303) **Scoped Evidence Lookups** — Evidence evaluation through MCP is now consistently scoped to the caller's own projects, closing a gap where a digest could be resolved outside them. > [accordion] More Improvements > > * **Changelog in the help menu** — This changelog is now one click away from anywhere in the app, under the Help (?) menu.\\ > > * **Filter repositories by provider during onboarding** — The repository picker in the [Create Project wizard](/get-started/projects/create-project) gains a GitHub/GitLab filter, matching the one already in the repositories view. Filtering is applied server-side, so pagination and totals stay correct and no API calls are made to providers you filtered out.\\ > > * **GitLab in the "can't find your repository?" hint** — The [linked repositories](/guides/repository-integration) hint now links to GitLab integration settings as well as GitHub access management, depending on which providers your organization has connected.\\ > > * **Clearer manual workflow guidance** — Workflows set to manual delivery now point to the right place to instrument: AI coding session workflows link to [Chainloop Trace](/guides/chainloop-trace) setup, and everything else links to [attestation](/concepts/attestations) documentation.\\ > > * **Checkmarx engine types from SARIF** — Checkmarx One SARIF reports now advertise which engines actually produced their findings — SAST, SCA, IaC, container, or supply chain — so `*-scan-present` [policies](/reference/policies) evaluate a Checkmarx SARIF report and its native JSON equivalent identically.\\ > > * **Remediation PRs can delete files** — [Auto-remediation](/concepts/vulnerability-management#configuring-automation) pull requests can now remove files, not just add and modify them. Yarn zero-install repositories in particular no longer fail remediation, since stale vulnerable tarballs in `.yarn/cache` can be dropped alongside the lockfile update.\\ > > * **VPC-scoped managed CAS access points** — The [managed CAS](/concepts/cas-backend) configuration accepts an optional VPC ID, provisioning each per-tenant S3 access point with a VPC network origin so it is reachable only from inside that VPC.\\ > > * **Longer integration health probes** — [Integration](/concepts/integrations) health checks are now bounded independently of their job deadline, leaving time to record a failure instead of losing the result when a probe times out.\\ > [accordion] Bug Fixes > > * CLI `chainloop trace` now attributes files created or modified by an agent's shell commands to the AI. Previously only Write/Edit tool calls were tracked, so a single large generated file could dominate the line-weighted totals and report 0% AI even when the agent authored everything.\\ > > * CLI PR mode no longer forces `--mark-latest=false`. It only annotates the attestation as a pull request, leaving latest promotion under the explicit control of the `--mark-latest` flag.\\ > > * Frontend The Company SSO sign-in page no longer renders its title, description, error alert, email form, and back link flush against each other.\\ > > * Frontend Editing a project no longer fails with a "workflow template not found" error when the project has a system-managed PR validation workflow.\\ > > * Frontend Canceling an in-flight request — by navigating away, for instance — no longer trips the error boundary or reports a spurious error.\\ > > * UX Pull requests no longer collect duplicate Chainloop bot comments. Concurrent renders of the same comment are now serialized, and duplicates created before the fix are cleaned up automatically on the next render.\\ > > * UX A PR validation result from a superseded commit is no longer published against the current head, so pushing a new commit can't resurrect the previous run's conclusion while its scan is still running.\\ > > * UX The Chainloop Ask "thinking" indicator in [Slack](/concepts/integrations) direct messages now clears once the answer is posted, and DM follow-ups carry conversation history.\\ > > * UX The Slack assistant no longer runs its intent classifier — a billed LLM call — on public-channel messages that don't address it, and no longer posts a public "link your account" reply for them.\\ > > * Compliance Deleting a product or product version now removes the overrides it propagated to attached project versions, so a new product reusing the same project version no longer inherits the deleted product's compliance status.\\ > > * Compliance Requirement evaluation caches are versioned and purged correctly, so removing a project's compliance mapping or a framework mapping no longer leaves stale evaluations behind.\\ > > * Backend Deleting the GitLab connection a repository was imported through now cancels that repository's scans cleanly as a missing source, matching how a removed GitHub App installation already behaved, instead of failing the job.\\ > > * Backend A stale GitHub App installation health probe now recovers on its own instead of leaving the [integration](/concepts/integrations) marked unhealthy.\\ > > * Backend Deleted projects no longer leak [vulnerability findings](/concepts/vulnerability-management) or orphan their risk assessments, and soft-deleted records are consistently excluded from queries.\\ > > * Backend Auto-assessment now matches package URLs that differ only by point release, and resolves the source-repository gate from the finding's own project version.\\ > > * Backend Suspended organizations are now enforced across every surface, not just the ones that checked explicitly.\\ > > * Backend Async operation status and membership caching are now consistently scoped to the caller's projects and resolution path.\\ > > * Backend A NATS reconnect now retries reinitialization instead of leaving the connection in a half-initialized state.\\ **July 16, 2026** v1.95.1 ## GitLab integration and Linear ticket sync This release brings first-class GitLab support to Chainloop — connect a GitLab instance with an access token and get repository onboarding, managed workflows, merge-request validation, automated remediation, and keyless attestation, the same way GitHub already works. Chainloop findings now stay in sync with linked Linear tickets, the Slack assistant knows when to jump in, `chainloop trace` adds an opencode provider, and managed scanning gains a GitHub Actions scanner and a modern secret scanner. ## GitLab Integration GitLab is now a fully supported SCM provider. Connect a GitLab instance the same way as every other integration — register a `gitlab-app` connection with a GitLab host and an access token (personal, group, or service-account) from the Integrations view. The token is validated on registration and backs the full set of SCM capabilities: [repository onboarding](/guides/repository-integration), managed workflows, merge-request validation, automated remediation, webhooks, and [keyless attestation](/guides/gitlab-keyless). See [Connect GitHub & GitLab](/guides/connect-repository) to get started. ![GitLab Integration](https://mintcdn.com/chainloop/Khxa71xIYFqPDp4G/changelog/gitlab-integration.png?fit=max\&auto=format\&n=Khxa71xIYFqPDp4G\&q=85\&s=59e53b85435a31cb870b13c0b2608547) **Onboard GitLab Repositories** — Once a connection is in place, pick a GitLab repository directly in the [Create Project wizard](/get-started/projects/create-project) to link it to a new project. ![Selecting a GitLab repository during project onboarding](https://mintcdn.com/chainloop/Khxa71xIYFqPDp4G/changelog/gitlab-onboarding-repo.png?fit=max\&auto=format\&n=Khxa71xIYFqPDp4G\&q=85\&s=30b040127c0c7e5af9dad8deac5f1813) **Managed Workflows for GitLab** — The project creation wizard and project update sheet now offer managed workflow delivery for GitLab-linked repositories, not just GitHub. ![Managed Workflows for GitLab in the Create Project wizard](https://mintcdn.com/chainloop/Khxa71xIYFqPDp4G/changelog/gitlab-managed-workflows.png?fit=max\&auto=format\&n=Khxa71xIYFqPDp4G\&q=85\&s=76925de52090d198b6a57804cb6f9d63) **Multiple Connections per Organization** — Register several GitLab connections — separate on-prem instances (for example development and production) or distinct tokens for the same host. Each registration is independent, and every repository carries the connection it was imported through. **Dynamic OIDC Trust** — Machine-identity OIDC issuers are derived from your live GitLab connections, so a self-hosted instance connected at runtime becomes a trusted issuer without a redeploy. ## Linear Ticket Sync for Findings Vulnerability [risk assessments](/concepts/vulnerability-management#risk-assessments) can now be connected to [Linear](/concepts/integrations) tickets — and Chainloop keeps those tickets up to date automatically. When a finding with a linked ticket changes — a new assessment is linked, its status is recalculated, an AI revision is approved, or its remediation PR is merged — a background job posts a comment on the ticket describing the change and transitions the ticket's workflow state when the finding crosses a boundary. A fixed [vulnerability finding](/concepts/vulnerability-management) closes the ticket as done, a not-affected verdict cancels it, and reopening a finding reopens the ticket. ![A vulnerability risk assessment linked to a Linear ticket](https://mintcdn.com/chainloop/Khxa71xIYFqPDp4G/changelog/linear-ticket-sync.png?fit=max\&auto=format\&n=Khxa71xIYFqPDp4G\&q=85\&s=0f6c4739b5650e94a0f26866f3f72bbf) ![The assessment mirrored into the linked Linear ticket, now closed as canceled](https://mintcdn.com/chainloop/Khxa71xIYFqPDp4G/changelog/linear-synced-assessment.png?fit=max\&auto=format\&n=Khxa71xIYFqPDp4G\&q=85\&s=d412cea081c087d067dfc982ffbc2df9) Any change to the assessment is reflected in the linked ticket — status changes, comments, and more — so the ticket always mirrors the latest state in Chainloop. ## A Smarter Slack Assistant The [Chainloop Ask](/concepts/ask-chainloop) assistant in [Slack](/concepts/integrations) now decides for itself when a reply is warranted. Direct messages and messages that clearly address the bot always get an answer, while an LLM intent classifier gates ambiguous surfaces — mid-text mentions and untagged thread follow-ups — so the assistant stays helpful without being noisy. ![The Chainloop assistant answering questions in a Slack thread](https://mintcdn.com/chainloop/Khxa71xIYFqPDp4G/changelog/slack-assistant.png?fit=max\&auto=format\&n=Khxa71xIYFqPDp4G\&q=85\&s=ac1ba8d55ff4a75aebdfedf02f532ccd) **Natural Thread Follow-ups** — Once the assistant is active in a thread, it evaluates later untagged replies and continues the conversation, backing off when the thread drifts off topic. **DM Replies in the Main Window** — Direct-message replies now land in the main conversation window instead of a thread, matching how people expect a DM to read. ## opencode Trace Provider [`chainloop trace`](/guides/chainloop-trace) adds opencode as a new AI coding-session trace provider, reaching parity with the existing Claude Code and Cursor providers. Enable it with the `--opencode` flag on `trace init` and `trace run`, and your opencode sessions are captured as signed [AI coding session](/concepts/ai-coding-sessions) evidence — token usage, cost, tool counts, and conversation metrics. ![An opencode coding session traced by Chainloop](https://mintcdn.com/chainloop/Khxa71xIYFqPDp4G/changelog/opencode-session.png?fit=max\&auto=format\&n=Khxa71xIYFqPDp4G\&q=85\&s=57bdc5fd0fbf26f0a087b9b8e6a7c9db) ![Per-session detail for an opencode session showing AI vs human code attribution, cost, and policy results](https://mintcdn.com/chainloop/Khxa71xIYFqPDp4G/changelog/opencode-attribution.png?fit=max\&auto=format\&n=Khxa71xIYFqPDp4G\&q=85\&s=1d6ca983c35cdf35345d7eb5377cbbdb) Sessions run through opencode now show up in your organization's [AI Coding metrics](/concepts/ai-coding-sessions#ai-sessions-dashboard-metrics) alongside every other provider — cost, code attribution, policy results, and more. ![opencode sessions in the AI Coding dashboard harness breakdown](https://mintcdn.com/chainloop/Khxa71xIYFqPDp4G/changelog/opencode-trace.png?fit=max\&auto=format\&n=Khxa71xIYFqPDp4G\&q=85\&s=84c79d479b50ee0062867302af90ea5b) ## Managed Scanning Improvements Chainloop's managed sandbox scanners gained a new scanner and a modern secret-scanning engine. **GitHub Actions Scanning** — [zizmor](https://docs.zizmor.sh), a static analysis tool for GitHub Actions, joins the managed scanners (SAST, vulnerability, secrets, IaC). When a repository is onboarded, rescanned, or manually dispatched, Chainloop runs zizmor against the repository's GitHub Actions workflows in a sandbox and records the SARIF report as an attestation under a new `github-actions-scan` [managed workflow](/concepts/workflow-templates). **Modern Secret Scanning** — Managed secret scanning swaps gitleaks for [betterleaks](https://github.com/betterleaks/betterleaks), a drop-in successor maintained by the original gitleaks authors. Report format and findings are unchanged, so nothing in your existing setup needs to change. > [accordion] More Improvements > > * **Audit Log moved into Settings** — The [audit log](/reference/audit-logs) now lives under a new admin section in Settings alongside Status, replacing its old top-level route and Help-menu entry.\\ > > * **Compliance violations inline** — Evaluation rows in the requirement evaluation sheet are now expandable, showing the underlying [policy](/concepts/policies) violations — typed vulnerability findings as a table, untyped violations as a list — from the corresponding attestation.\\ > > * **Discoverable AI remediation review** — The "awaiting review" state for AI risk assessments is now surfaced across the project UI — vulnerability detail, the Risk Assessments tab, project overview, and workflow run detail — so proposals awaiting review are easy to find and act on.\\ > > * **Policy group icon badge** — Policy evaluations show a compact stack icon badge in place of the `groupName /` text prefix, with the [policy group](/concepts/policy-groups) name in a tooltip and the side panel still one click away.\\ > > * **SCM-specific setup instructions** — The setup guide for manual [workflows](/concepts/workflows) renders the CI snippet, filename, and icon for the linked repository's SCM provider, including a keyless GitLab CI/CD pipeline snippet.\\ > > * **Provider-aware template filtering** — [Workflow templates](/concepts/workflow-templates) can declare the SCM providers they support, so provider-specific scanners (like the GitHub-only zizmor) are only offered for compatible repositories.\\ > > * **Cleaner relinking across providers** — Relinking a project to a repository on a different SCM provider now automatically turns off template-backed workflows that the new provider doesn't support, with a warning before you save.\\ > > * **Fix-feasibility in the Auto-fix tooltip** — The Auto-fix column tooltip in the [vulnerability automation](/concepts/vulnerability-management#configuring-automation) matrix now states the 80% fix-feasibility threshold required to auto-open a fix pull request.\\ > > * **Richer auto-approval audit events** — Auto-approved assessment revisions now record structured context — an auto-approved flag, the effective verdict, and the confidence score — in the [audit log](/reference/audit-logs).\\ > [accordion] Bug Fixes > > * Frontend A provider-agnostic "Connect your first repository" control now appears when no SCM integration is configured, instead of a GitHub-only placeholder.\\ > > * Frontend Opening the requirement evaluation sheet in the compliance view no longer shifts the whole page behind the sheet.\\ > > * Frontend The compliance table of contents no longer jumps to the next framework when you click the last item of the current one.\\ > > * Frontend The Ask Chainloop chat input stays usable while any sheet is open, instead of being trapped behind the sheet's focus lock.\\ > > * Frontend The Create Project wizard validates project and product name uniqueness as you type, surfacing a duplicate name inline instead of as a backend error on submit.\\ > > * Frontend The AI score trend chart on the AI Coding dashboard now renders its top y-axis tick as `100%` instead of clipping it to `00%`.\\ > > * Frontend Container images attested by digest no longer show an invalid pull-by-tag command — the viewer falls back to the pull-by-digest command.\\ > > * Frontend Removed the dead Help Center link from the help menu.\\ > > * CLI opencode Trace now attributes `apply_patch` edits, recording every file a patch touches instead of silently dropping them.\\ > > * Backend Business units, environments, and logical environments now reject whitespace-only names on both create and update.\\ **July 3, 2026** v1.91.0 ## Organization-wide vulnerability automation This release puts you in control of vulnerability automation with organization-wide settings that decide, per severity, whether Chainloop auto-assesses findings, auto-approves verdicts, and opens fix pull requests. Workflow contracts gain "at least one of" material groups, `chainloop apply` becomes a GitOps-ready way to manage your resources — including your own workflow templates — project creation gets a redesigned wizard, and a single Slack workspace can now serve multiple Chainloop organizations. ## Organization-Wide Vulnerability Automation Settings You can now decide exactly how much autonomy the [vulnerability automation](/concepts/vulnerability-management#configuring-automation) pipeline gets. A new **Vulnerability Automation** section in organization settings presents a severity × action matrix — per severity level, toggle whether Chainloop auto-assesses new findings, auto-approves high-confidence AI verdicts, and automatically opens fix pull requests for approved fixable assessments. Existing organizations keep the previous behavior (auto-assess Critical and High, nothing else automated) until they opt in. ![Vulnerability Automation Settings](https://mintcdn.com/chainloop/ftZ0eJSsYJuaipSE/changelog/vulnerability-automation-settings.png?fit=max\&auto=format\&n=ftZ0eJSsYJuaipSE\&q=85\&s=6eb56d401d92b709768f11bf2edf248e) **Worst-First Processing** — Auto-assessment and remediation work is now processed in severity order, so your most dangerous findings are assessed and fixed soonest — a Critical finding jumps ahead of already-queued lower-severity work. **Assessment Status at a Glance** — The vulnerabilities list now shows each finding's effective [risk assessment](/concepts/vulnerability-management#risk-assessments) verdict — Affected, Not Affected, Fixed, or Under Investigation — as a badge next to its severity, linking straight into the underlying assessment. **Traceable Remediation PRs** — Pull requests opened by the auto-remediation agent now deep-link back to the Chainloop risk assessment that triggered the fix, so reviewers can trace every PR to its evidence. **Slack Digests** — Bursts of agentic activity — new findings, assessment reviews, remediation PRs — are now bundled into a single debounced Slack digest per channel instead of one message per event. See [notifications](/concepts/notifications) for setup. ## Redesigned Project Creation and Onboarding Creating a [project](/concepts/projects-versions) is now a cleaner, more guided experience. Every wizard step leads with a clear title and its main action, with contextual help moved into on-demand info popovers — and creating a project from inside a product now opens the same full wizard, automatically attaching the new project to that [product](/concepts/products). [Redesigned Project Creation and Onboarding](https://www.tella.tv/video/vid_cmro0dj35002v04jremkae2g8/embed?b=0\&title=0\&a=1\&loop=1\&autoPlay=false\&t=0\&muted=1\&wt=0\&o=1) **Associate a Product** — A new optional step lets you attach the project to an existing product — with server-side search — or create a new one inline. Products created through the wizard automatically get the built-in [compliance frameworks](/concepts/compliance-frameworks) attached to their default version. **Welcome Wizard, Once** — The first-login welcome wizard is now shown exactly once per user: complete or dismiss it and it never reappears, instead of resurfacing on every login. ## Declarative Workflow Templates and a GitOps-Ready Apply `chainloop apply` keeps growing into the single declarative entry point for managing your Chainloop resources — and now that includes your own [workflow templates](/concepts/workflow-templates). ![Organization Workflow Templates](https://mintcdn.com/chainloop/ftZ0eJSsYJuaipSE/changelog/workflow-templates.png?fit=max\&auto=format\&n=ftZ0eJSsYJuaipSE\&q=85\&s=7e7db76dcba0bd7e12e68a4d5b33a568) **Organization Workflow Templates** — Define your own `WorkflowTemplate` resources with `chainloop apply`, embedding a [contract](/concepts/contracts) inline or referencing an existing organization contract by name. Your templates then show up across the UI: create a [workflow](/concepts/workflows) from a template, or select templates while onboarding or editing a project. **Template Inputs in Policy Parameters** — Workflow templates can declare inputs and reference them as `{{ inputs.X }}` placeholders in [policy](/concepts/policies) and [policy group](/concepts/policy-groups) parameters, so a shared template can ship policies that need organization-specific values. Input values are validated at sync time and editable from the project and workflow edit forms. **Contract Dry-Run** — `chainloop apply --dry-run` now covers contracts too, reporting each one as created, updated, or unchanged with its revision transition (e.g. `would be updated (rev 2 → 3)`), and validating contract references to policies, policy groups, and requirements before anything is persisted. **Point It at Your Repo** — `chainloop apply -f ./` no longer fails on YAML that isn't a Chainloop resource — GitHub Actions workflows, Helm values, and friends are skipped and reported in a new "Skipped" section. A new `--exclude` glob flag and `.chainloopignore` file support let you opt files out explicitly, making apply practical for GitOps and CI usage. ## "At Least One Of" Material Groups in Contracts Workflow contracts can now express alternatives between [materials](/concepts/contracts#materials). Assign materials to a named `group` and the attestation is satisfied when at least one member of the group is provided — for example, accept either a CycloneDX or an SPDX SBOM. The CLI surfaces each group's rule and satisfaction status during the attestation. ```yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Contract metadata: name: my-contract spec: materials: - name: sbom-cyclonedx type: SBOM_CYCLONEDX_JSON group: sbom - name: sbom-spdx type: SBOM_SPDX_JSON group: sbom ``` ## One Slack Workspace, Multiple Organizations Multiple Chainloop organizations can now share a single [Slack](/concepts/integrations#slack) workspace. Outbound notifications stay correctly scoped per organization, and [Ask Chainloop](/concepts/ask-chainloop) routes each question by your live organization membership — if you belong to several connected organizations, Slack presents an org picker, remembers your choice for future questions, and offers a "switch org" affordance. ![Slack Organization Picker](https://mintcdn.com/chainloop/ftZ0eJSsYJuaipSE/changelog/slack-multi-org.png?fit=max\&auto=format\&n=ftZ0eJSsYJuaipSE\&q=85\&s=e5cbacc6be5b9843690fcbe80f3d3fc5) **Ask Chainloop in Slack** — Ask about your supply chain in natural language and get answers inline — project status, open vulnerability findings, and next steps — without leaving the workspace. ![Ask Chainloop in Slack](https://mintcdn.com/chainloop/ftZ0eJSsYJuaipSE/changelog/slack-ask-chainloop.png?fit=max\&auto=format\&n=ftZ0eJSsYJuaipSE\&q=85\&s=fe2c5dc81306d7f5d0d54f84d015e06c) > [accordion] More Improvements > > * **Policy inputs from files** — A repeatable `--policy-input-from-file =[:]` flag on `chainloop attestation add` sources a [policy](/concepts/policies) input from a CSV or JSON file column — ideal for large, data-driven exemption lists. An optional `:` prefix scopes the input to a specific policy, and the source file is attested as evidence cross-linked to the evaluated material.\\ > > * **Policy groups for API tokens** — API tokens (service accounts) can now list [policy groups](/concepts/policy-groups).\\ > > * **Cleaner template opt-out** — Toggling a template-backed workflow off in project edit now detaches it from its template, keeping the workflow and its run history without it reappearing as managed or manual.\\ > > * **Numbered setup steps** — Workflow setup guides now number their instruction steps so the sequence reads as ordered steps.\\ > > * **Managed CAS backend icon** — Chainloop-managed [storage backends](/concepts/cas-backend) now display a shield icon in the Storage Backends views.\\ > > * **CUE contract format removed** — Workflow contracts no longer accept the CUE format; contracts are YAML or JSON.\\ > [accordion] Bug Fixes > > * Compliance An "at least one of" requirement group now surfaces a failure as soon as one member fails and none has passed, instead of staying pending behind unfinished siblings.\\ > > * Compliance The SonarQube SARIF transform now scores the full impact-severity scale (including BLOCKER and INFO), so BLOCKER findings are no longer silently dropped by severity filters.\\ > > * CLI Materials declared by an attached policy group are surfaced and enforced during attestation.\\ > > * CLI An expired token now reports "your authentication token has expired" instead of an unrelated federated authorization error.\\ > > * CLI Avoid leaking raw ANSI color codes in non-rendering consoles.\\ > > * Policies Comma-separated contract input values are expanded correctly when merged with runtime inputs.\\ > > * Frontend The repository picker in the new project wizard searches server-side across all repositories, not just loaded pages.\\ > > * Frontend Both the entity name and its version are now clickable in breadcrumbs across project, product, workflow, and run pages.\\ > > * Frontend Dates use a readable muted color in dark mode instead of low-contrast link blue.\\ > > * UX The Setup Required badge and Setup Guide tab only appear for manual-delivery template workflows, not hand-created or managed ones.\\ > > * Backend The vulnerability assessment PDF shows the CVSS base score (e.g. `CRITICAL (9.8)`) instead of the raw vector, and long URLs no longer overflow their cells.\\ > > * Backend The GitHub PR Validation comment shows only the latest run, no longer duplicating results from superseded commits.\\ > > * Backend GitHub rulesets targeting `~DEFAULT_BRANCH` resolve to the repository's actual default branch in the SCM configuration check.\\ > > * Backend The managed SCM configuration check honors the branch and tag patterns configured on the workflow template.\\ > > * Backend Restored non-admin read access to several endpoints — contract previews, project versions, policy groups, and organization assets — that failed closed after an authorization hardening pass.\\ > > * Backend Ask Chainloop availability now reflects whether a configured, healthy AI provider actually exists.\\ > > * Backend Closed an authorization bypass in the membership deletion endpoint.\\ **June 18, 2026** v1.88.1 ## Automated security scanning in managed sandboxes This release pushes automation deeper into your software supply chain. Chainloop can now scan repositories, assess the vulnerabilities it finds, and open verified remediation pull requests entirely in managed sandboxes — no CI wiring required — and validate pull requests server-side. A managed LLM gateway with usage credits powers these AI features out of the box, a guided onboarding wizard streamlines project and workflow setup, and the vulnerabilities and risk-assessment experience gets a focused overhaul. ## Automated Security Scanning in Managed Sandboxes Chainloop now runs security scans and AI agents for you in isolated, managed sandboxes — no CI configuration required. When you connect a repository, the platform can automatically scan it, assess the [vulnerabilities](/concepts/vulnerability-management) it finds, and open remediation pull requests, all server-side. **AI Auto-Assessment & Remediation (Preview)** — The Vulnerabilities Agent investigates each finding against your source code, records a signed [risk assessment](/concepts/vulnerability-management#risk-assessments), and can open a fix pull request. Remediation now independently verifies its own fixes before proposing them: dependency and image-digest bumps are re-scanned with grype, and the outcome — resolved, still-present, or unable-to-verify — is reported in a dedicated section of the pull request, so a fix is something Chainloop proves rather than asserts. ![Automated PR for auto remediation](https://mintcdn.com/chainloop/bST_GGU7Nan669WX/changelog/autoremediation.png?fit=max\&auto=format\&n=bST_GGU7Nan669WX\&q=85\&s=53493ccaeafd66dc63346cdbf106cd01) **Infrastructure-as-Code Scanning** — A new managed IaC scan task runs [Checkov](https://www.checkov.io) over your source tree and attests the resulting [SARIF report](/concepts/material-types), feeding the existing `iac-misconfiguration` and `iac-scan-present` compliance policies. It honors a `.checkov.yaml` at your repository root. **Hardened by Design** — Agents that operate over untrusted project code receive a platform security preamble at the provider's system instruction tier, so it outranks any instructions embedded in the code. Each sandbox gets an ephemeral, per-run LLM gateway key, and repository-supplied agent configuration is stripped from untrusted checkouts. **Automated PR Validation** — Chainloop now validates pull requests server-side, without the `pr-attestation.yml` GitHub Action. When a repository's project has a managed `pr-validation` workflow, each pull request event generates a `CHAINLOOP_PR_INFO` attestation, evaluates [policies](/guides/pr-policies-control-gate) against the pull request metadata, and surfaces the results in the Chainloop PR comment alongside a dedicated **Chainloop PR Validation** GitHub check run. ## Managed LLM Gateway with Usage Credits Chainloop Cloud now includes a managed LLM gateway backed by a monthly credit pool, so AI-powered features like auto-assessment and remediation work out of the box — no [LLM provider key](/reference/llm-support) required. Each organization gets a credit allowance that draws down as AI capabilities are used, and a usage gauge on the Plan & Billing page shows current spend against the allowance. A structured entitlement catalog makes it clear which capabilities are available on your plan, and bring-your-own-key providers are never metered or gated. ![Managed LLM Gateway with Usage Credits](https://mintcdn.com/chainloop/bST_GGU7Nan669WX/changelog/credits-billing-gauge.png?fit=max\&auto=format\&n=bST_GGU7Nan669WX\&q=85\&s=8c372e80074662a165a37dfac89d4e38) ## Project & Workflow Onboarding Wizard Setting up a project is now a guided, multi-step flow. The redesigned Create Project wizard lets you pick a live GitHub repository (or connect one inline), prefill and link it, and configure [workflow](/concepts/workflows) templates — managed, manual, or off — in a single submit. Delivery mode and inputs of a template-backed workflow can be edited in place from the workflow edit form, and connecting a repository now auto-onboards an AI coding session workflow so `chainloop trace` attestations land on a ready workflow without a separate install step. ![Project & Workflow Onboarding Wizard](https://mintcdn.com/chainloop/bST_GGU7Nan669WX/changelog/sandbox-workflows.png?fit=max\&auto=format\&n=bST_GGU7Nan669WX\&q=85\&s=5e9e1368e08b2b426ab87425afee32b2) **Refined Setup Guides** — The setup guides shown after onboarding a workflow now lead with a description of what each flow does and why it matters, use syntax-highlighted snippets, and surface documentation through an "Open docs" button in the header. ## Sharper Vulnerabilities & Risk Assessments The [vulnerabilities and risk-assessment](/concepts/vulnerability-management) experience got a focused overhaul. Risk-assessment tables now default to the findings that need attention — Affected and Under Investigation — with clearable filter badges, a new **Fixable** column showing the agent's fix verdict, and a **Fixed Version** column on the vulnerabilities table. Assessment actions are clearer too: Assess or Re-assess with AI or manually, with **Create PR fix** promoted to the primary action and a fix-confidence tooltip. You can also filter by multiple statuses at once — the CLI `--status` flag is now repeatable. ![Sharper Vulnerabilities & Risk Assessments](https://mintcdn.com/chainloop/bST_GGU7Nan669WX/changelog/risk-assessment-filters.png?fit=max\&auto=format\&n=bST_GGU7Nan669WX\&q=85\&s=d9160ec7077b838a2373d7fd43104278) **SBOM-Embedded Vulnerability Ingestion** — You can now ingest the vulnerabilities embedded in a [CycloneDX SBOM](/concepts/material-types) as Chainloop findings bound to a project version, so released versions reflect a real vulnerability posture and migrated assessments have a posture to bind to. > [accordion] More Improvements > > * **Windows CLI binaries** — The `chainloop` CLI is now built and published for Windows (amd64 and arm64); download the `.exe` directly from the manual download dialog.\\ > > * **SonarQube transform filters** — `chainloop transform sonarqube` gains `--software-qualities` and `--rules` flags to fetch Maintainability and Reliability findings (dead, unreachable, and unused code), not just Security.\\ > > * **Evidence sidebar from the policies tab** — Evidence names in a workflow run's Policies tab are now clickable, opening the evidence details sidebar; the "Material" and "Material Type" columns are renamed to "Evidence" and "Evidence Type".\\ > > * **CAS usage breakdown for any backend** — The storage usage card now appears for bring-your-own [storage backends](/concepts/cas-backend) too, showing the uploaded, downloaded, stored, and deduplication-savings breakdown.\\ > > * **New evidence types** — Four new [material types](/concepts/material-types): Sysinternals AccessChk output, CERT/CC Dranzer output, OSSF Scorecard JSON, and Radamsa fuzzing reports and crashes.\\ > > * **Project-deletion audit log** — Deleting a project now emits an audit log event.\\ > > * **Custom CAS storage backends** — A contact-us prompt for organizations that want a custom [CAS storage backend](/concepts/cas-backend).\\ > [accordion] Bug Fixes > > * Frontend Send the S3 region when rotating CAS backend credentials.\\ > > * Frontend Show the organization creation dialog above the org switcher.\\ > > * Frontend Avoid `crypto.randomUUID` for template instance keys so creation works across more browser contexts.\\ > > * Frontend Gate repository listing on GitHub App installation.\\ > > * Frontend Update the frontend base image to remediate CVE-2026-34181.\\ > > * CLI Prefer `$CHAINLOOP_TOKEN` over user credentials when both are set.\\ > > * CLI Use the actual pull request head commit instead of the merge commit in GitHub Actions.\\ > > * Policies Add `include_all_versions` to bypass CLI-version gating.\\ > > * Backend Allow all roles to list workflow templates.\\ > > * Backend Require signature verification and reject timestamp-only bundles.\\ > > * Backend Sanitize input and validate column identifiers when parsing JSON filters.\\ **June 11, 2026** v1.85.2 ## Better requirement overrides and run views This release simplifies requirement overrides with a direct, status-based flow and introduces new organization settings to make [released versions immutable](/concepts/projects-versions#make-released-versions-immutable) and keep runner-discovered environment variables out of your attestations. The AI coding dashboard gains a score breakdown, workflow runs can now be filtered by version, and agentic workflows add support for Codex and GPT-5.4 alongside custom Azure deployment names for OpenAI. ## Improved Requirement Overrides Requirement overrides in [compliance frameworks](/concepts/compliance-frameworks) now carry a single explicit status — pass, fail, or in review — and come with a built-in approval process: team members submit an override for review and administrators approve or reject it, as shown in the video below. Every override keeps a traceable history of status changes and conversations, signed and uploaded to the [storage backend of your choice](/concepts/cas-backend), and kept available for auditing. [Improved Requirement Overrides](https://www.tella.tv/video/vid_cmq9hpim9024f04js3o4u47zm/embed?b=0\&title=0\&a=1\&loop=1\&autoPlay=false\&t=0\&muted=1\&wt=0\&o=1) ## Improved Runs Visualization at the Project Level Workflow runs visualization at the [project](/concepts/projects-versions) level got a refresh. Runs can now be filtered by the selected version — a version's Runs tab is scoped to that version, with a link to see runs across all versions and a version filter on the global runs list — and the version overview now shows you which workflows are active, collapsing those without runs. The CLI `workflow-run list` command also gains a `--version` flag. [Improved Runs Visualization at the Project Level](https://www.tella.tv/video/vid_cmq9i5g2300by04ljfqgjh1mn/embed?b=0\&title=0\&a=1\&loop=1\&autoPlay=false\&t=0\&muted=1\&wt=0\&o=1) ## Immutable Project Versions Keep released versions as fixed, auditable points in time. A new organization setting rejects new attestations pushed to a released project version and blocks renaming it. Read more in [Make Released Versions Immutable](/concepts/projects-versions#make-released-versions-immutable). ![Make Released Versions Immutable](https://mintcdn.com/chainloop/XXAdF25wKZXY42Xd/changelog/released-versions-immutable.png?fit=max\&auto=format\&n=XXAdF25wKZXY42Xd\&q=85\&s=79a26f5e96b8b31f69f338fe7b717c44) ## AI Score Breakdown on the AI Coding Dashboard Get a global, real-time view of how AI-assisted coding is scoring across your organization. The [AI coding dashboard](/concepts/ai-coding-sessions) now shows an AI Score Breakdown with the overall quality score and per-criterion averages for the current period, each with a delta versus the previous period and a trend. See the [AI Score reference](/reference/ai-score) for how scores are computed. ![AI Score Breakdown](https://mintcdn.com/chainloop/XXAdF25wKZXY42Xd/changelog/ai-score-breakdown.png?fit=max\&auto=format\&n=XXAdF25wKZXY42Xd\&q=85\&s=9ee39a51e0335e820c2eae4bf4f6dbf8) **Pull Requests Get First-Class Treatment** — the redesigned AI Coding Sessions table is built around contributions: each pull request shows its score, AI attribution, lines changed, cost, and duration at a glance. ![AI Coding Sessions Table](https://mintcdn.com/chainloop/XXAdF25wKZXY42Xd/changelog/ai-coding-sessions-table.png?fit=max\&auto=format\&n=XXAdF25wKZXY42Xd\&q=85\&s=0eb2db68c63ca5d4b12c5a104d989a8e) ## Custom Azure Deployment Name for OpenAI The OpenAI integration now supports a custom Azure deployment name, required for Azure OpenAI endpoints. This restores Ask, chat, and evidence evaluation for organizations on Azure-hosted models. See the [supported LLM providers](/reference/llm-support) for configuration details. ## Codex and GPT-5.4 Support for Agentic Workflows All Chainloop agentic workflows now support Codex and GPT-5.4. Organizations that bring their own OpenAI key can use these models right away. See the [supported LLM providers](/reference/llm-support) for the full list. ## Skip Runner-Discovered Environment Variables A new organization setting lets you opt out of storing the environment variables automatically discovered by the CI runner in your attestations — useful when build metadata should stay inside your CI environment. The contract's explicit environment allow list is still honored, and the setting is available from the organization settings page or via `chainloop organization update --skip-runner-env-vars`. Read more in [Skip Runner-Discovered Environment Variables](/concepts/contracts#skip-storing-runner-discovered-environment-variables). ![Skip Runner-Discovered Environment Variables](https://mintcdn.com/chainloop/XXAdF25wKZXY42Xd/changelog/skip-runner-env-vars.png?fit=max\&auto=format\&n=XXAdF25wKZXY42Xd\&q=85\&s=8dc61821957a54b9c9549092b61f304f) > [accordion] More Improvements > > * **Performance** — the compliance view, artifact downloads, and more are significantly faster, making the UI snappier than ever\\ > > * **Stop a response in Chainloop Ask** — while the assistant is generating an answer, the send button becomes a stop button that aborts the response\\ > > * **New material types** — Yelp detect-secrets baselines and Sysinternals sigcheck output can now be attested as evidence; see [material types](/concepts/material-types)\\ > > * **Dagger module** — attestation init now exposes a mark-latest option > [accordion] Bug Fixes > > * Compliance The current revision now shows who approved it, the history count matches the rail, and the requirement version is shown inline with the passing badge\\ > > * Policies Salt API security findings now emit one rule per gap type with the correct severity, restoring severity-based policy gating\\ > > * Backend Installing and revoking Slack, GitHub, GitLab, and Linear integrations now requires admin permissions on the underlying HTTP routes\\ > > * Frontend Integration management actions are hidden for users with the viewer role, and an integration's status icon is now colored by the health of its registrations\\ > > * Frontend Home prompts re-enable after dismissing the Chainloop Ask chat\\ > > * Frontend Removed the empty run details column on the workflow runs list and fixed the "See runs for all versions" link to show runs across every version\\ > > * Backend AI coding sessions without a code diff can now be scored from their transcripts instead of failing\\ > > * Backend Evidence reconciliation and AI coding session workers now cancel permanently failing jobs instead of retrying them\\ > > * Backend Precondition errors are now propagated to the client instead of being masked as internal errors\\ > > * CLI Vulnerability listing degrades gracefully when the assessments lookup fails instead of erroring out\\ > > * CLI Raised the gRPC receive limit so large responses, such as describing a run with many materials, no longer fail **June 3, 2026** v1.81.0 ## Built-in security scanning and a contextual home page Connect a GitHub repository and you get instant security scanning: vulnerability scanning, SBOM generation, CI misconfiguration checks, and secret scanning, all automatic. This release also introduces a new homepage, removes the storage setup burden with automatically provisioned [managed CAS](/guides/deployment/guides/managed-cas), bootstraps compliance the moment you onboard a repository, and connects risk assessments to [Linear](/concepts/issue-trackers) and email notifications. There are also new CLI commands for findings and assessments, clearer AI session scoring, a stable [MCP server](/guides/chainloop-mcp) endpoint, and a UI refresh across the lists you use most. [Built-in security scanning and a contextual home page](https://www.tella.tv/video/vid_cmpyip10100rw04jv92pe5g85/embed?b=0\&title=0\&a=1\&loop=1\&autoPlay=false\&t=0\&muted=1\&wt=0\&o=1) ## Contextual Home Page The home page has been redesigned around a new prompt framework. Tabbed, ready-made prompts surface curated [Ask Chainloop](/concepts/ask-chainloop) questions about your **security, compliance, and governance** posture, so you can check the state of your supply chain as soon as you sign in. New organizations also get a guided onboarding flow for their first steps. [Contextual Home Page](https://www.tella.tv/video/vid_cmpyicode06d404l5dtsy6y6e/embed?b=0\&title=0\&a=1\&loop=1\&autoPlay=false\&t=0\&muted=1\&wt=0\&o=1) ## Built-in Security Scanning for GitHub Repositories (Preview) Connect a GitHub repository and Chainloop runs the security checks for you: vulnerability scanning, SBOM generation, CI misconfiguration checks, and secret scanning, with no pipeline wiring, contract authoring, or agents to install. Evidence and findings land in your projects and compliance reports automatically, and you can trigger a scan on demand whenever you need one. ![Built-in Security Scanning for GitHub Repositories](https://mintcdn.com/chainloop/LgcBieP5p_xSMZn4/changelog/repo-security-scanning.png?fit=max\&auto=format\&n=LgcBieP5p_xSMZn4\&q=85\&s=bade777d32d7e43e736c7a10c8d4cde5) ## Built-in Auto-Provisioned Storage Backend Chainloop can now provision and manage your [Content Addressable Storage backend](/concepts/cas-backend) automatically, so there's no bucket or credentials to wire up before you can store evidence. The platform reconciles a dedicated, isolated CAS backend (backed by AWS) for each organization, and once [managed CAS](/guides/deployment/guides/managed-cas) is active it replaces any inline backend you had configured. Managed uploads are capped by a monthly storage quota to keep usage predictable. ![Managed CAS](https://mintcdn.com/chainloop/LgcBieP5p_xSMZn4/changelog/managed-cas.png?fit=max\&auto=format\&n=LgcBieP5p_xSMZn4\&q=85\&s=9d1427a1087d4c444325c37d4f263aab) ## Streamlined Repository Onboarding Onboarding a repository now sets up everything you need for compliance tracking in one step. The platform creates a product and attaches default security frameworks, so new projects can collect evidence and report compliance right away. A new WorkflowTemplate resource standardizes project setup behind the scenes, removing the manual configuration that used to come first. ![Streamlined Repository Onboarding](https://mintcdn.com/chainloop/LgcBieP5p_xSMZn4/changelog/repo-onboarding.png?fit=max\&auto=format\&n=LgcBieP5p_xSMZn4\&q=85\&s=30e223634391c98b1734da0916e227f5) ## Track Your Findings with the Linear Integration Track your findings without leaving your issue tracker. The [Linear](/concepts/issue-trackers) integration now shows each assessment's linked ticket and its current state inline, so you can follow remediation straight from Chainloop. New email [notifications](/concepts/notifications) also go out the moment a finding is created or an assessment revision is proposed. [Track Your Findings with the Linear Integration](https://www.tella.tv/video/vid_cmpyj03hf001s04jm7u2jfwf5/embed?b=0\&title=0\&a=1\&loop=1\&autoPlay=false\&t=0\&muted=1\&wt=0\&o=1) ## Manage Findings and Risk Assessments Using the CLI Manage security findings and assessments directly from the terminal with new dedicated [CLI commands](/cli/reference). List, inspect, and act on findings and assessments as part of your scripts and automation, bringing the same compliance workflows you use in the UI into your CI/CD pipelines and local tooling. ## Vulnerability Distribution Visualization A new funnel view breaks down your [vulnerability](/concepts/vulnerability-management) findings by severity and by resolution status (affected, not affected, and more), so you can see where remediation stands and what to tackle next. ![Vulnerability Distribution Visualization](https://mintcdn.com/chainloop/LgcBieP5p_xSMZn4/changelog/findings-funnel.png?fit=max\&auto=format\&n=LgcBieP5p_xSMZn4\&q=85\&s=30a3ed45ccd2874cf851b0b583f0ca4a) ## Assess AI Contribution Quality AI session scoring helps development teams gauge the quality of AI-assisted contributions and learn best practices for agentic engineering, building on the [AI Coding Foundation](/concepts/ai-coding-sessions). It summarizes the changes made in a session and surfaces the positive signals behind the score, and the score tab has been redesigned to show [scoring progress](/reference/ai-score) in real time. [AI Session Scoring](https://www.tella.tv/video/vid_cmpyjfz1p003z04l82zof7poj/embed?b=0\&title=0\&a=1\&loop=1\&autoPlay=false\&t=0\&muted=1\&wt=0\&o=1) **Confidence, end to end.** AI assessment confidence is surfaced throughout, with an expandable breakdown that shows each subscore as a percentage, so you can see not just the verdict but how sure the model is. **Additional signals and recommendations.** The score now spells out the positive and negative signals behind each assessment, along with concrete recommendations for raising it. **More developer context.** The session list and detail side panel now carry more context about the developers behind each session, and the risk assessment badge reflects the PR's status colors, so it's easy to scan where each session stands. **Change summary.** Each AI coding session now includes a summary of the changes it made, so you can see what happened without reading the full diff. ## MCP Server at the Backend Domain The [Chainloop MCP server](/guides/chainloop-mcp) is now served under the backend domain at `/mcp`, a single stable endpoint for connecting Claude, Cursor, and other AI assistants to your supply-chain data. The active endpoint is shown in the product's About dialog, so it's always one click away. ## We Keep Working on the UI We've restyled the lists you work in most: workflow runs, evidence, storage backends, the project overview tab, and the workflows list all get cleaner, more scannable layouts. The project version evidence tab now hides attestations by default, keeping the focus on the evidence items you reach for most, with attestations still one click away. ![Refreshed project overview and workflow health](https://mintcdn.com/chainloop/LgcBieP5p_xSMZn4/changelog/ui-refresh-project-overview.png?fit=max\&auto=format\&n=LgcBieP5p_xSMZn4\&q=85\&s=50a82f44cff189f70f4f48a74f231b9a) ![Refreshed compliance view](https://mintcdn.com/chainloop/LgcBieP5p_xSMZn4/changelog/ui-refresh-compliance.png?fit=max\&auto=format\&n=LgcBieP5p_xSMZn4\&q=85\&s=38c7f378cc87702e0c161944a052b1d2) ![Refreshed workflow run provenance graph](https://mintcdn.com/chainloop/LgcBieP5p_xSMZn4/changelog/ui-refresh-provenance.png?fit=max\&auto=format\&n=LgcBieP5p_xSMZn4\&q=85\&s=d1f9030bb839bff88652358cf706fcbd) ## And There's More! A handful of smaller improvements and fixes shipped across this release too. > [accordion] More Improvements > > * **chainloop trace run**: new CLI subcommand to trace an AI coding session on demand, isolated from `.chainloop.yml`, with a `--version` flag and duplicate-push skipping when no new AI commits are present (see the [Chainloop Trace guide](/guides/chainloop-trace))\\ > > * **Structured vulnerability findings**: the workflow-run policies tab now renders vulnerability findings in a structured, readable layout instead of raw output\\ > > * **Anthropic BYOK custom endpoint**: bring-your-own-key integrations can now point at a custom Anthropic-compatible endpoint, and AI provider API keys are masked in the registration form\\ > > * **Issue tracker integration overview**: the Linear / [issue tracker](/concepts/issue-trackers) integration gained a dedicated overview panel\\ > > * **Storage backend roles**: storage backends now show their read-only role in a dedicated column\\ > > * **Smarter auto-remediation**: already-fixed vulnerabilities are handled gracefully, assessments are marked fixed when the remediation PR merges, and batch auto-assessment is now gated to critical and high CVEs to cut noise\\ > > * **Trial expiry notifications**: customers are now notified before their trial is about to expire\\ > > * **Product compliance summary**: new product-level compliance summary and detail views, with read-path optimizations that make compliance status faster to load\\ > > * **Scoped provenance discovery**: [provenance](/concepts/attestations) discovery is now scoped by project name and version, making it easier to trace the origin of a specific release\\ > > * **LLM gateway governance tagging**: managed LLM gateway traffic is automatically tagged with governance dimensions for clearer oversight of AI agent activity\\ > > * **Mark a version as latest**: both `chainloop project version create` and `update` gain a `--mark-latest` flag to promote a version to latest\\ > > * **Managed integrations labelling**: platform-provisioned integrations are now clearly marked as *managed* to distinguish them from user-created ones\\ > > * **Cleaner SBOM findings**: artifact creation is skipped for SBOM scan-root main components, reducing noise in [vulnerability](/concepts/vulnerability-management) findings\\ > > * **Effective assessments in policies**: a new `chainloop.effective_assessments` Rego built-in (and `AssessmentService.ListEffective` API) lets [custom policies](/guides/custom-policies) read the effective assessments for a subject\\ > > * **Faster compliance evaluation sheet**: product requirement compliance detail now loads on demand in the evaluation sheet, cutting initial load times for large reviews\\ > > * **Salt transform sources**: `chainloop salt transform` gains `--source-type` and `--source` flags for more flexible source selection\\ > > * **Slack Ask AI traffic**: Slack Ask AI gateway traffic is now differentiated and tracked separately for clearer AI usage monitoring\\ > [accordion] Bug Fixes > > * CLI Install script now supports musl-based Linux distributions\\ > > * CLI Trace attestation push correctly populates the CLI version and digest\\ > > * Frontend Improved light-mode contrast for warning alerts, policy status icons, checkboxes, radios, and the Monaco editor\\ > > * Frontend Login page is responsive on small phones; Terms and Privacy links are clickable\\ > > * Frontend Cookie consent banner interactivity and preferences modal restored\\ > > * Frontend Slack channel dropdown anchors correctly inside the side panel\\ > > * Frontend Remove button is hidden for protected integration registrations\\ > > * Frontend Home page recent runs link directly to run details; the workflow runs rocket icon uses the correct color\\ > > * Frontend Workflow runs list no longer shows a duplicate `+next` suffix; product action menus cleaned up\\ > > * Frontend Stale login-method warning removed from the invitation flow; redundant info alert removed from the create-workflow sheet\\ > > * Frontend Search param resets when switching project version tabs; dialog titles no longer overflow on long names\\ > > * Policies Built-in policies and groups no longer show custom content when names collide\\ > > * Compliance Suppressed violations are skipped during requirement evaluation\\ > > * Backend Product version rollups are guarded against non-latest project versions\\ > > * Frontend Override creation and deletion are now optimistic in the requirement evaluation sheet for a snappier experience\\ > > * Frontend Findings hooks are gated against empty project versions and the vulnerability-management capability to avoid spurious runs\\ > > * Frontend Linear issue dialog layout and scrolling behavior improved\\ > > * Frontend Project and workflow run links are now visible in light mode\\ > > * Frontend Long tokens wrap correctly in markdown blocks instead of overflowing\\ > > * UX Fixed risk assessment history row text overflow on smaller screens\\ > > * UX Prevented the About Chainloop dialog from overflowing on mobile\\ > > * UX Fixed the install CLI command box overflowing on mobile\\ > > * UX Deployment artifact names no longer wrap unexpectedly\\ > > * Backend Repository-project links are now removed when a project is deleted\\ > > * Backend Stale open pull-request states are reconciled by a periodic safety-net job\\ > > * Backend Async operations stuck in pending are recovered, and stale SCM-check output is purged\\ > > * Backend SCM check tokens are minted per permission so access degrades gracefully when permissions are limited\\ > > * Backend Set `appProtocol` on the backend service for gRPC over Envoy Gateway\\ > > * UX Reserved space for policy descriptions while they load in the evaluation sheet to avoid layout shift\\ > > * Compliance Removed spurious comma spacing in the compliance project breakdown\\ **May 8, 2026** v1.75.1 ## AI coding governance, from adoption to compliance This release rounds out the AI coding governance story — the [AI Coding Foundation](/concepts/ai-coding-sessions) dashboard is now generally available, [`chainloop trace`](/guides/chainloop-trace) gains Cursor support, [salt](/reference/builtin-functions) reports gain SARIF output, and auto-remediation grows a remediability gate. Plus a redesigned integrations page, supply-chain-friendly CLI install dialog, and dozens of polish fixes. ## AI Coding Governance — From Adoption to Compliance Our recent [AI Coding Governance post](https://chainloop.dev/blog/ai-coding-governance-adoption-to-compliance/) walks through the four pillars Chainloop now provides for governing agentic coding: adoption visibility, framework-driven enforcement, developer integration on the PR, and the [AI Session Score](/reference/ai-score). This release advances each one — the [AI Coding Foundation](/concepts/ai-coding-sessions) dashboard is now available to every organization, and the surfaces around it keep maturing. [Chainloop AI Coding dashboard](https://www.tella.tv/video/vid_cmovrufpg00j404la2wgpam9y/embed?b=0\&title=0\&a=1\&loop=0\&t=0\&muted=0\&wt=0\&o=1) **AI Coding Foundation Dashboard for Everyone** — The dashboard now ships to all organizations with a guided empty state, so new teams can see exactly what to instrument before sessions start flowing in. The layout has also been adapted to the flat SDLC structure for a cleaner, more navigable view alongside the rest of your delivery surfaces. **Frameworks, Controls, and Policies** — AI sessions and configs are first-class evidence, governed by the same framework / control / policy model used for SBOMs and container images. Auditors read frameworks (SLSA, NIST SSDF, AI Readiness); engineers ship the Rego. [AI Readiness framework, controls, and policies](https://www.tella.tv/video/vid_cmovrz89u000h04ld0i34dvdq/embed?b=0\&title=0\&a=1\&loop=0\&t=0\&muted=0\&wt=0\&o=1) **Governance on the PR** — Every AI-assisted PR gets a summary comment with per-session attribution, files touched, and policy verdicts, plus a `Chainloop AI Policies` check run that can be made a required merge gate. [Chainloop PR summary comment and check run](https://www.tella.tv/video/vid_cmovsb7zu000504l73awj51i2/embed?b=0\&title=0\&a=1\&loop=0\&t=0\&muted=0\&wt=0\&o=1) **Aggregated Sessions, with Scores and Policies in View** — Every AI session your org produces now rolls up into a single list with a detail sheet that surfaces transcripts, files touched, and per-session attribution. Session tabs show AI Score and policy counts at a glance, and a new AI Score trend chart on the dashboard tracks quality drift over time. **Cursor Joins the Party** — [`chainloop trace`](/guides/chainloop-trace) now recognizes Cursor as a trace provider alongside Claude Code. Mixed-tool teams get a unified picture without anyone changing how they work. **Smarter Auto-Remediation** — On-demand auto-remediation now gates on an AI remediability verdict — the platform only opens a fix PR when the assessment determines the issue can be safely and effectively resolved, cutting noise on findings that aren't a good fit for automation. **Getting Started** — Run `chainloop trace init` once per repo, commit the config, and AI sessions start flowing in. Full walkthrough in the [Chainloop Trace guide](/guides/chainloop-trace). [Getting started with chainloop trace](https://www.tella.tv/video/vid_cmovtaekv00o004joflmn0aff/embed?b=0\&title=0\&a=1\&loop=0\&t=0\&muted=0\&wt=0\&o=1) ## SARIF Output with Posture Gaps and Attacker Mapping The new [`chainloop transform salt`](/cli/reference) subcommand converts SALT reports into a normalized format for attestation, and now emits **SARIF output** enriched with posture gaps and attacker information — so security teams get exploitable context alongside the findings, not just a list of CVEs. The SARIF flavor plugs straight into the same code-scanning surfaces you already use. ## Redesigned Integrations Page The [integrations](/concepts/integrations) page has been rebuilt around a sheet-detail layout with per-integration documentation panels. Configuring, inspecting, and troubleshooting each integration now happens in context, without bouncing between tabs. ![Redesigned integrations page](https://mintcdn.com/chainloop/mIKwbQ5PJnfOxX-U/changelog/integrations-redesign.png?fit=max\&auto=format\&n=mIKwbQ5PJnfOxX-U\&q=85\&s=377d8d1f8e433d6d952cf0de073bd44f) ## Verified CLI Installs The [CLI install dialog](/cli/installation) now shows the pinned CLI version and binary checksums for the active release, so teams can verify what they're installing against a known-good artifact before running the command. Releases now also publish a [keyless cosign signature](https://docs.sigstore.dev/quickstart/quickstart-cosign/) — a Sigstore bundle alongside the checksum manifest — so you can cryptographically verify the checksums themselves came from our release pipeline, not just that the binary matches a checksum served from the same origin. A small UX touch with a meaningful supply-chain story. ![Pinned CLI version and checksums in install dialog](https://mintcdn.com/chainloop/mIKwbQ5PJnfOxX-U/changelog/cli-install.png?fit=max\&auto=format\&n=mIKwbQ5PJnfOxX-U\&q=85\&s=e572ff610b698ef39803e38e69c9c3fe) > [accordion] More Improvements > > * **CLI-version-aware policy resolution**: backend now resolves policies and policy groups against the CLI version producing the attestation, so contract evolution stays compatible with older clients\\ > > * **Simplified policy usage examples**: policy detail pages now show a single YAML usage example, dropping the JSON variant for clarity\\ > > * **Manual SAML SSO authentication**: log in directly with SAML credentials when the IdP doesn't push, complementing the [SAML SSO](/guides/deployment/guides/saml-idp) launch\\ > > * **Responsive narrow viewports**: frontend layout adapts cleanly on smaller screens and split panes\\ > [accordion] Bug Fixes > > * CLI AI attribution is now preserved across rebase and force-push operations\\ > > * CLI Git hooks install in the common dir when working in git worktrees, so trace works across all worktree branches\\ > > * CLI Git hook install always runs during agent session tracking\\ > > * Frontend Assessment actions are hidden from users with project-viewer permissions\\ > > * Frontend Edit button is disabled while an auto-assessment is running, preventing concurrent edits\\ > > * Frontend Auto-assessment button correctly shows disabled when no repository is linked\\ > > * Frontend Project version now appears in the workflow run breadcrumb\\ > > * Frontend Repository row in AI session detail sheet uses full width; padding above tabs removed\\ > > * Frontend AI dashboard help link points to the AI Coding Sessions concept page\\ > > * Frontend AI Score trend chart shows hours on the X axis for 24h ranges\\ > > * Frontend Compliance scroll tracking and latest-version badge contrast stabilized\\ > > * Frontend Duplicate policies header removed from workflow run details; warning badge contrast improved in light mode\\ > > * Frontend Vulnerability search filters guard against undefined fields; trusthub preview positioning fixed\\ > > * Frontend Help icon link added to products page; spurious comma removed from risk assessment status\\ > > * Compliance Compliance caches now purge synchronously on override mutations\\ > > * Compliance Compliance search hides frameworks with no matching results\\ > > * Compliance Auto-assessment is scoped to the affected artifact instead of the full project\\ **May 3, 2026** v1.73.1 ## AI coding sessions: dashboard, pull request reviews and scoring This release brings several improvements — a productized AI coding dashboard with PR-level reviews and scoring, a polished risk assessment workflow with discussions and on-demand auto-remediation, native SAML SSO login, the new Project Security v2 tab, plus expanded Slack notifications and findings access through both Rego and MCP. ## AI Coding Sessions — Dashboard, PR Reviews, and Scoring AI coding session tracking has graduated into a full product surface. A new AI Coding Foundation dashboard gives security and engineering leaders an organization-wide view of AI-assisted development, while PR comments now correlate AI sessions, surface policy violations inline, and flag PRs that are missing expected session evidence. The new [AI Score](/reference/ai-score) pipeline evaluates each session and assigns a AI Score to each pull request. [Chainloop AI Coding dashboard](https://www.tella.tv/video/vid_cmovrufpg00j404la2wgpam9y/embed?b=0\&title=0\&a=1\&loop=0\&t=0\&muted=0\&wt=0\&o=1) **PR-Level Rollup Comments** — [`chainloop trace`](/guides/chainloop-trace) PR comments now render a table-style rollup linking the policies and materials evaluated for each AI session, with a dedicated check that fails when a PR is missing AI session evidence or when any session in the PR has a policy violation. ![AI Session Analysis PR comment](https://mintcdn.com/chainloop/K5vKOCcaSEvJQ3GP/changelog/ai-session-pr-comment.png?fit=max\&auto=format\&n=K5vKOCcaSEvJQ3GP\&q=85\&s=59a3e1b9fd66295967c70fa733e10545) **Commit-msg Hook for Trailers** — A new commit-msg hook automatically declares AI session trailers on commits, so attestations pick up the right session even when sessions span multiple commits. **Smarter Code Attribution** — Trace now ignores generated code in attribution counts, persists per-session file changes and commits, and respects `.gitattributes` linguist-generated rules so vendored or generated paths don't skew metrics. ## AI Risk Assessment Workflow Risk assessments are now a first-class workflow with collaboration, revisions, and remediation. Reviewers can leave [discussions](/guides/vulnerability-management) on assessments, request revisions, and gate approval on AI-generated recommendations. A re-assess button lets you refresh an assessment when context changes, and on-demand auto-remediation can open a PR with the suggested fix when the project has a linked repository. ![AI Risk Assessment Workflow](https://mintcdn.com/chainloop/K5vKOCcaSEvJQ3GP/changelog/risk-assessment.png?fit=max\&auto=format\&n=K5vKOCcaSEvJQ3GP\&q=85\&s=ee9d0a3fb3ebd9b7c4c1916441f7a729) **Slack Loop** — Reviewers get pinged in Slack when an assessment needs review, and again when auto-remediation opens a PR — closing the loop without leaving the channel. ![Slack assessment review notification](https://mintcdn.com/chainloop/K5vKOCcaSEvJQ3GP/changelog/slack-assessment-review.png?fit=max\&auto=format\&n=K5vKOCcaSEvJQ3GP\&q=85\&s=534bc667ad9cc39ad14249ef10951b7a) **Failed Auto-Assessments Surfaced** — Failed AI assessments are now visible directly in the risk assessment UI so they don't disappear silently. ## SAML SSO Login Chainloop Platform now supports Enterprise-level SSO through [SAML](/guides/deployment/guides/saml-idp) against your corporate identity provider. ![SAML SSO Login](https://mintcdn.com/chainloop/K5vKOCcaSEvJQ3GP/changelog/saml-sso-login.png?fit=max\&auto=format\&n=K5vKOCcaSEvJQ3GP\&q=85\&s=430c7fc72b46317ba84089d8d8f9f6b7) ## Project Security v2 The redesigned [project security tab](/guides/vulnerability-management) is now the default for organizations on the labs track, with the legacy view still available side-by-side during the transition. Active-finding filters, summary tiles that link straight to filtered views, and a vulnerability management help link make triage faster. ![Project Security v2](https://mintcdn.com/chainloop/K5vKOCcaSEvJQ3GP/changelog/security-v2.png?fit=max\&auto=format\&n=K5vKOCcaSEvJQ3GP\&q=85\&s=ba1368662dd97d994bc47de1ed701901) ## Findings, MCP, and Notifications Findings are now first-class across the platform. A new [`chainloop.findings`](/reference/builtin-functions) Rego builtin lets you reference findings directly from policies, and the [MCP server](/reference/mcp-server) exposes findings to AI assistants. ![Findings, MCP, and Notifications](https://mintcdn.com/chainloop/K5vKOCcaSEvJQ3GP/changelog/findings-mcp.png?fit=max\&auto=format\&n=K5vKOCcaSEvJQ3GP\&q=85\&s=c9e3a630289963ef4d1b18297e4a62a2) **High-Severity Slack Alerts** — New high-severity findings now trigger Slack [notifications](/concepts/notifications), and `FINDING_CREATED` events are deduplicated across project versions so you stop getting paged twice for the same issue. > [accordion] More Improvements > > * **SonarQube transform command**: new `chainloop transform sonarqube` CLI command converts SonarQube reports into a normalized format for attestation\\ > > * **Login page revamp**: refreshed login layout with a marketing hero, available alongside the new SSO entry point\\ > > * **Provenance tab on workflow runs**: drill into the full provenance graph from any [workflow](/concepts/workflows) run view\\ > > * **GitHub PR labels persisted**: PR labels are now stored alongside attestation events for downstream filtering and audit\\ > > * **SCM provider in PR audit logs**: pull request [audit log](/reference/audit-logs) events now record which SCM provider triggered them\\ > > * **Auto-onboarding email domain filter**: restrict static auto-onboarding to specific email domains for tighter org control\\ > > * **Force trace attestation org**: pin a [`chainloop trace`](/guides/chainloop-trace) attestation to a specific organization via `.chainloop.yml`\\ > > * **Dry-run validation upgrades**: CLI `apply --dry-run` now performs batch duplicate detection, offline validation, and validates policy group references against batch requirements\\ > > * **Workflow form simplified**: visibility and team fields removed from workflow creation; entity names normalized across creation forms\\ > > * **Unified entity summaries**: consistent summary cards and detail-sheet layouts across projects, products, workflows, and runs\\ > > * **Standardized form buttons**: submit buttons now use a consistent "Save" label and right-aligned positioning across the app\\ > > * **Detail tab titles and descriptions**: tab views on detail pages now include explanatory titles and descriptions\\ > > * **Restyled product evidence and requirements**: refreshed visuals for product evidence tables and requirement evaluations\\ > > * **Clickable risk summary cards**: risk assessment summary cards now navigate directly to filtered views\\ > > * **Shallow artifacts from SBOM metadata**: the platform now creates lightweight artifact records from SBOM metadata for graph completeness\\ > > * **Legacy Slack webhook hidden**: the legacy webhook configuration is hidden when the native Slack App [integration](/concepts/integrations) is enabled\\ > > * **Claude CLI model selection**: pick a specific Claude model for AI coding agents via provider config\\ > > * **Manual evidence reset**: accepted manual evidence can be returned to "needs review" status\\ > [accordion] Bug Fixes > > * Backend Service accounts can now list policies and requirements\\ > > * Backend Auto-admin membership is correctly skipped when projects are created by service accounts\\ > > * Backend AI coding session trace summaries now count distinct files correctly\\ > > * Backend Empty `approval_status` on cached evaluations now defaults to approved\\ > > * Backend GitHub PR webhook events now reach all orgs bound to the installation, with reconciliation using the correct installation\\ > > * Backend Notification fan-out is decoupled from release pinning to avoid missed alerts\\ > > * Compliance Framework and requirement ingestion now validates inputs and preserves section hierarchy\\ > > * Compliance Dry-run apply on a fresh org no longer fails when policy groups reference batch requirements\\ > > * Compliance Manual evidence is now correctly counted only when approved; the "all submissions approved" rule is enforced for compliance checks\\ > > * Frontend AI session file counts display 0 instead of NaN when no files are present\\ > > * Frontend Storage backend creation form now pre-selects the default role\\ > > * Frontend Framework copy action now copies the identifier instead of the display name\\ > > * Frontend Security tab defaults to labs when labs is available; non-admin access restored\\ > > * Frontend Applicability matrix dialog no longer overflows its content\\ > > * Frontend Markdown tooltips that caused infinite re-render loops have been removed\\ > > * Contracts `CHAINLOOP_AI_CODING_SESSION` added to the API [MaterialType](/concepts/material-types) enum\\ > > * CLI Policy group to policy reference validation in dry-run\\ > > * CLI `.gitattributes` compatibility with go-git\\ **April 19, 2026** v1.66.0 ## AI session viewer improvements A smoother AI session viewer with inline code attribution and virtualized conversation rendering, plus compliance workflow refinements. ## AI Session Viewer Improvements The [AI session viewer](/guides/chainloop-trace) has been refined across the board — long conversations no longer stutter, and you can now see exactly which lines each model touched without leaving the session view. **Inline Per-Line Code Attribution** — The session viewer now shows line-level attribution inline alongside each file change, so you can trace any line back to the AI session that produced it without switching views. **Virtualized Conversation View** — Long AI sessions with thousands of tool calls now scroll smoothly — the conversation view renders messages on demand instead of all at once. ![AI Session Viewer](https://mintcdn.com/chainloop/qGv9r_hxgpxoulip/changelog/ai-session-viewer.png?fit=max\&auto=format\&n=qGv9r_hxgpxoulip\&q=85\&s=b9d39c472da2984b711c163ac3adbd9f) > [accordion] Policy Enhancements > > * **frontend SBOM policy**: now allows permissive custom licenses\\ > [accordion] More Improvements > > * **Force evidence and override review**: new organization setting requires reviewer approval for manual evidence and overrides\\ > > * **Grouped policies in requirement evaluation**: policies from the same [policy group](/concepts/policy-groups) and their manual evidence are now displayed together in the requirement evaluation sheet\\ > > * **Reset manual evidence**: accepted manual evidence can now be returned to "needs review" status\\ > > * **Needs-review filters and badges**: filter by needs-review extended to manual evidence, with matching badges in requirement detail sheets\\ > > * **Compliance refresh recalculates everything**: triggering a compliance refresh now re-evaluates every requirement\\ > > * **Large JSON evidence rendering**: the evidence viewer can now render large JSON payloads smoothly\\ > > * **Workflow list and details pages restyled**: updated visuals for [workflow](/concepts/workflows) list and run detail views\\ > > * **[Risk assessment](/concepts/vulnerability-management) audit log**: extended with more detail, and `target_type` filter fixed\\ > > * **Renamed finding field**: `source_reference` renamed to `recommendation` on [findings](/concepts/vulnerability-management) for clarity\\ > > * **CLI: trace defaults to latest project version**: no more flag required for incremental attestations\\ > > * **CLI: trace logs hook output**: all hook messages are now written to the trace log file for easier debugging\\ > > * **Updated Claude model pricing table**: cost calculations in [trace](/guides/chainloop-trace) reflect the latest model pricing\\ > > * **Dismissible SaaS Cloud banners**: free trial and restricted account banners can now be dismissed\\ > [accordion] Bug Fixes > > * Compliance Compliance percentage calculation corrected\\ > > * Compliance Deleted overrides no longer counted in requirement evaluations\\ > > * Compliance Product framework compliance now polls periodically to stay in sync\\ > > * Compliance [Finding](/concepts/vulnerability-management) deduplication and assessment accuracy improved\\ > > * Compliance Manual evidence in "needs review" now correctly treated as partial\\ > > * Policies Policy group update sheet layout fixed\\ > > * Policies Duplicate policy detection now scoped to the same group\\ > > * Contracts Contract detail page now shows the latest version after update\\ > > * CLI Policy group apply dependency order corrected\\ > > * CLI GitLab fetcher no longer crashes on permission errors\\ > > * CLI Trace now detects deletion-only commits as AI-assisted\\ > > * Frontend Monaco editor autocomplete restored in the contract editor\\ > > * Frontend JSON viewer always pretty-prints evidence payloads\\ > > * Frontend API token modal now uses an accessible AlertDialog\\ > > * UX Notification controls refined for clearer state\\ > > * UX Repositories import page layout improved\\ > > * UX Yellow tooltip icons for needs-review requirements\\ **April 7, 2026** v1.58.0 ## AI coding session tracing AI coding session tracing with line-level attribution, native Slack and GitLab App integrations, compliance OR-groups, and a comprehensive UI refresh. ## AI Coding Session Tracing [`chainloop trace`](/guides/chainloop-trace) has been significantly upgraded — the attestation workflow now defers to push time for more reliable capture, the Git backend has been migrated to go-git for broader compatibility, and project versions are automatically passed through to attestations. **Line-Level Code Attribution** — Trace now captures line-level code attribution for AI coding sessions, giving security teams granular visibility into exactly which lines of code were written or modified by AI agents versus human developers. ![AI Coding Session Tracing](https://mintcdn.com/chainloop/dMekO89KbHAjgDxm/changelog/ai-trace.png?fit=max\&auto=format\&n=dMekO89KbHAjgDxm\&q=85\&s=139a4f90264837fc917649791e7c2c50) ## Native Slack App Integration Connect your Slack workspace directly to Chainloop with the new native Slack App [integration](/concepts/integrations). Once connected, you can pick specific channels for [notifications](/concepts/notifications) — no more configuring webhook URLs manually. ![Native Slack App Integration](https://mintcdn.com/chainloop/dMekO89KbHAjgDxm/changelog/slack-app.png?fit=max\&auto=format\&n=dMekO89KbHAjgDxm\&q=85\&s=13f95cd33ca907229a1408b195af23b4) **Channel Picker** — Browse and select Slack channels from a searchable dropdown directly in the notification settings UI. **Rich Notifications** — The Slack App supports structured notification messages with actionable context about attestation events, policy violations, and compliance updates. ## GitLab App Integration Chainloop now supports a native GitLab App integration for connecting your GitLab repositories. This complements the existing GitHub integration and enables teams using GitLab to benefit from the same repository-project linking, [keyless attestations](/guides/gitlab-keyless), and source control visibility. ![GitLab App Integration](https://mintcdn.com/chainloop/dMekO89KbHAjgDxm/changelog/gitlab-app.png?fit=max\&auto=format\&n=dMekO89KbHAjgDxm\&q=85\&s=43cbff0b293659e6a6aeb7043356752e) ## UI Refresh This release brings a comprehensive visual refresh across the platform — redesigned tables, tabs, buttons, inputs, badges, and sheet layouts for a more polished experience. ![UI Refresh](https://mintcdn.com/chainloop/dMekO89KbHAjgDxm/changelog/ui-refresh.png?fit=max\&auto=format\&n=dMekO89KbHAjgDxm\&q=85\&s=902209b0db6769a81ce0eb8428434f34) **Policies Page** — The [policies](/concepts/policies) page now uses a grid cell layout, and policies and policy groups are split into separate pages for easier navigation. **Frameworks Page** — The [compliance frameworks](/concepts/compliance-frameworks) page has been reworked to match the new policies list style. **Workflow Run Page** — Updated styling for the workflow run detail view. **Sidebar** — Hover over the collapsed sidebar to preview navigation items without expanding it. > [accordion] More Improvements > > * **Drag-and-drop evidence upload**: Upload evidence files by dragging and dropping them directly into the upload area\\ > > * **CLI download link in top nav**: Quickly access the CLI download from the top navigation bar\\ > > * **Better CLI auth error handling**: Clearer error messages when authentication fails\\ > > * **Repository filtering**: Filter repositories by provider kind and project association\\ > > * **Breadcrumb improvements**: Sheet routes now appear in breadcrumbs with updated styling\\ > > * **Search debounce**: Search inputs across all pages now debounce for smoother performance\\ > [accordion] Bug Fixes > > * Compliance Framework sections now update correctly in the Compliance view\\ > > * Frontend Contracts now filtered by project in workflow creation form\\ > > * Frontend Linked artifacts panel now uses full-size layout instead of nested sheet\\ > > * Frontend Long descriptions truncated in findings list\\ > > * Frontend TOC scroll tracking fixed in projects and products\\ > > * Backend Monthly-scoped evidence, artifact, and deployment counts corrected\\ **March 29, 2026** v1.51.0 ## AI agent configuration governance AI agent governance with 9+ built-in policies, Ask Chainloop natural language assistant, per-project authorization for keyless attestations, rich evidence visualization, and compliance approval workflows. ## AI Agent Configuration Governance As AI coding agents like Claude Code and Cursor become part of the development workflow, their configuration — instruction files, MCP servers, skills, subagents, and permissions — becomes part of your supply chain. Chainloop now automatically discovers and collects this configuration from your repositories, bundling it into tamper-resistant evidence via a new `CHAINLOOP_AI_AGENT_CONFIG` [material type](/concepts/material-types). ![AI Agent Configuration Governance](https://mintcdn.com/chainloop/TuwOf09Gj_ULBd98/changelog/ai-agent-config.png?fit=max\&auto=format\&n=TuwOf09Gj_ULBd98\&q=85\&s=cb58d1511c1546df9b5c9894e12554b7) This gives security teams visibility into how AI agents are set up across the organization — detecting hardcoded secrets in configurations, enforcing allowlists for approved MCP servers, validating instruction quality, and preventing privilege escalation in subagent configurations. This release ships with **12 built-in [AI governance policies](/reference/policies)** covering MCP server allowlists, instruction quality, subagent permissions, architecture documentation, and more — see the full list in the New Policies section below. ![AI Agent Governance Policies](https://mintcdn.com/chainloop/TuwOf09Gj_ULBd98/changelog/ai-agent-policies.png?fit=max\&auto=format\&n=TuwOf09Gj_ULBd98\&q=85\&s=a3b967a6fac983339dc0780506a6a552) Read the [collection guide](/guides/ai-config-collector) to get started, or see the [full blog post](https://chainloop.dev/blog/agentic-coding-support/) for the vision behind AI agent governance in your supply chain. ## Ask Chainloop [Ask Chainloop](/concepts/ask-chainloop) is a native natural language interface embedded directly in the web UI. It goes beyond simple data discovery — you can browse your organization's supply chain data, query compliance status, write [policies](/concepts/policies), create [contracts](/concepts/contracts), configure your instance, and more. Press `Cmd+K` (or `Ctrl+K`) to open it from any page. ![Ask Chainloop](https://mintcdn.com/chainloop/TuwOf09Gj_ULBd98/changelog/ask-chainloop.png?fit=max\&auto=format\&n=TuwOf09Gj_ULBd98\&q=85\&s=41bd6772d8cea7a41e585996707b9304) ## Repository-Project Linking & Keyless RBAC [Keyless attestations](/guides/github-keyless) can now be configured with authorization per project. Enrolled repositories must be connected to a project for keyless attestations to be accepted — giving security teams fine-grained control over which CI/CD pipelines can produce evidence for each project. This means different repositories can have different access levels, and attestations from repositories not linked to a project are rejected automatically. See the [GitHub keyless](/guides/github-keyless) and [GitLab keyless](/guides/gitlab-keyless) guides to get started. ![Repository-Project Linking](https://mintcdn.com/chainloop/TuwOf09Gj_ULBd98/changelog/repo-project-linking.png?fit=max\&auto=format\&n=TuwOf09Gj_ULBd98\&q=85\&s=cb3f4ae2b1945d9e85c82f900b5fcc78) ## Rich Evidence Visualization Browse the content of your [evidence](/concepts/material-types) directly in the platform — no downloads required. New rich viewers let you inspect container image details, pull request metadata, AI agent configuration, and more without leaving the interface. **Container Images** — View pull commands (by tag and digest), provenance, and deployment history directly from the material panel. ![Container Image Content Viewer](https://mintcdn.com/chainloop/TuwOf09Gj_ULBd98/changelog/evidence-content-viewer-container.png?fit=max\&auto=format\&n=TuwOf09Gj_ULBd98\&q=85\&s=cefe9288a3c6fc4046de2e1ee860011c) **Pull Request Info** — See PR details including branch info, reviewers, approval status, and bot detection — all rendered inline from `CHAINLOOP_PR_INFO` materials. ![Pull Request Info Content Viewer](https://mintcdn.com/chainloop/TuwOf09Gj_ULBd98/changelog/evidence-content-viewer-pr.png?fit=max\&auto=format\&n=TuwOf09Gj_ULBd98\&q=85\&s=2fd6f46556906f037b175d557d1649d6) **AI Agent Configuration** — Browse collected AI agent configuration files, instructions, rules, and skills directly in the evidence panel. ![AI Agent Configuration Content Viewer](https://mintcdn.com/chainloop/TuwOf09Gj_ULBd98/changelog/evidence-content-viewer-ai-config.png?fit=max\&auto=format\&n=TuwOf09Gj_ULBd98\&q=85\&s=cdfc0dda2329bca5b6cb4d3f573aed9d) ## Compliance Override & Approval Workflows The [compliance](/concepts/compliance-frameworks) override system now supports uploading evidence files as part of the override process — along with a full approval workflow and visual status indicators. Teams can also require approval for manually submitted evidence before it's used in [compliance evaluations](/concepts/compliance-frameworks), ensuring that manual submissions are validated before being incorporated into your attestation process. ![Compliance Override & Approval Workflows](https://mintcdn.com/chainloop/TuwOf09Gj_ULBd98/changelog/compliance-approval.png?fit=max\&auto=format\&n=TuwOf09Gj_ULBd98\&q=85\&s=e78b80fdbefcc19e6e39a40d0c68d3c8) > [accordion] New Policies and Policy Groups > > * **[ai-agent-present](/reference/policies)**: Detect AI agent presence via configuration materials or bot reviewers on PRs\\ > > * **[ai-config-architecture-with-paths](/reference/policies)**: Verify instruction files describe project architecture\\ > > * **[ai-config-code-style-specificity](/reference/policies)**: Require concrete, project-specific code style rules\\ > > * **[ai-config-mcp-servers-allowed](/reference/policies)**: Ensure only approved MCP integrations are configured\\ > > * **[ai-config-skill-descriptions-actionable](/reference/policies)**: Ensure skills describe what they do and when to use them\\ > > * **[ai-config-subagent-descriptions-actionable](/reference/policies)**: Require subagent descriptions with trigger, scope, and purpose\\ > > * **[ai-config-subagent-permissions-scope](/reference/policies)**: Verify no subagent sets permissionMode to bypass permissions or declares MCP servers absent from parent\\ > > * **[ai-instructions-commands-documented](/reference/policies)**: Require exact, executable commands instead of vague instructions\\ > > * **[ai-instructions-doc-guidance](/reference/policies)**: Verify instruction files reference documentation practices\\ > > * **[ai-instructions-explicit-boundaries](/reference/policies)**: Require explicit behavioral boundaries for agent actions\\ > > * **[ai-instructions-git-workflow-documented](/reference/policies)**: Verify git workflow conventions are documented\\ > > * **[ai-instructions-gotchas](/reference/policies)**: Require project-specific gotchas and edge cases to be documented\\ > > * **[tag-deletion-blocked](/reference/branch-protection-policies)**: Ensure tag deletion is blocked, with optional tag pattern filtering\\ > > * **[tag-force-push-blocked](/reference/branch-protection-policies)**: Prevent tag manipulation attacks by blocking force pushes on tags\\ > > * **[tag-rules-change-restricted](/reference/branch-protection-policies)**: Validate only authorized actors can bypass tag protection rules\\ > > * **[patch-policy-present](/reference/branch-protection-policies)**: Ensure patch management policies are in place for repository management\\ > [accordion] More Improvements > > * **GitHub App Integration**: The GitHub App is now visible on the [Integrations](/concepts/integrations) page for easier discovery and setup\\ > > * **UI Refresh**: Redesigned sidebar with updated Phosphor icons, new page headers and titles, and sheets rendered inside the main content area\\ > > * **Needs review filter**: The [compliance](/concepts/compliance-frameworks) view now includes a "needs review" filter for faster triage\\ > > * **Details tab first**: The material sidebar now shows the Details tab by default\\ > > * **MCP environment & deployment tools**: New [MCP server](/reference/mcp-server) tools for querying environments and deployments\\ > > * **Enhanced PR info viewer**: Better pull request information display with flexible author format support\\ > > * **GitHub immutable releases**: The CLI gatherer now detects GitHub immutable releases in [runner context](/reference/runner-context)\\ > [accordion] Bug Fixes > > * Compliance Preserved framework ordering in project versions for consistent compliance reporting\\ > > * Compliance Reset approved overrides to needs_review status when new evidence is submitted\\ > > * Frontend Added missing material types to evidence list filter\\ > > * Frontend Corrected manual evidence approval flow and status display\\ > > * Frontend Fixed sidebar and sticky element positioning after layout changes\\ > > * Policies Prevented pass summaries from appearing as violations in evidence-prompt evaluations\\ > > * Contracts Updated tag-protection to use v\*\* glob pattern for proper version matching\\ > > * Backend Corrected project version link format in MCP server\\ > > * Backend Fixed MCP server environment URL generation\\ > > * Backend Sanitized internal LLM provider errors in chat responses\\ **March 12, 2026** v1.38.2 ## Keyless attestations for GitHub ## Keyless Attestations for GitHub Chainloop now supports [keyless attestations](/guides/github-keyless) for GitHub Actions — no API tokens required. Onboard your GitHub repositories into Chainloop, and your workflows can attest using GitHub's OIDC tokens automatically. The CLI discovers the GitHub OIDC token at runtime, so there's nothing to configure. This eliminates token management overhead and unlocks [SLSA 3](/guides/slsa) compliance checks by default, just like the existing [GitLab keyless](/guides/gitlab-keyless) support. ![Keyless Attestations for GitHub](https://mintcdn.com/chainloop/5EbdCXlXGjX3gMNX/guides/img/github.png?fit=max\&auto=format\&n=5EbdCXlXGjX3gMNX\&q=85\&s=144d1f6812dc6e3b899e5eda460e005b) ## Product Management Commands You can now create, update, and organize [products](/concepts/products) directly from the CLI — bringing full product lifecycle management into your terminal and automation scripts. Combined with [`chainloop apply`](/guides/declarative-resource-management), this enables GitOps-style product configuration alongside your existing [workflow](/concepts/workflows) and [contract](/concepts/contracts) definitions. ![Product Management Commands](https://mintcdn.com/chainloop/g-XEHATeLuO3v2Z0/changelog/product-commands.png?fit=max\&auto=format\&n=g-XEHATeLuO3v2Z0\&q=85\&s=3106cbecd1a6a7613a481a185d11a4ae) ## Compliance Approval Workflows Introducing approval workflows for [compliance](/concepts/compliance-frameworks) overrides at both the [product](/concepts/products) and [project](/concepts/projects-versions) level. Teams can now request structured exceptions to compliance requirements — with approvals tracked, auditable, and tied back to the evidence that justifies them. This gives security and compliance teams visibility and control over deviations without blocking delivery. ![Compliance Approval Workflows](https://mintcdn.com/chainloop/g-XEHATeLuO3v2Z0/changelog/status-approvals.png?fit=max\&auto=format\&n=g-XEHATeLuO3v2Z0\&q=85\&s=3672127e708388ef53d56d653959af38) ## Manual Evidence with Justification You can now submit manual evidence entries with justification-only content — no artifact upload required. This is especially useful for documenting compliance activities like risk acceptances, design reviews, or exception approvals where the evidence is a written rationale rather than a file. ![Manual Evidence with Justification](https://mintcdn.com/chainloop/g-XEHATeLuO3v2Z0/changelog/manual-evidence-justification.png?fit=max\&auto=format\&n=g-XEHATeLuO3v2Z0\&q=85\&s=6feae54dee11802174d3f8125c20dc6c) ## Requirement Reordering You can now reorder requirements within custom [compliance frameworks](/concepts/compliance-frameworks) — giving you full control over how your compliance structure is presented and navigated. Drag requirements into the order that makes sense for your team's review process. ![Requirement Reordering](https://mintcdn.com/chainloop/g-XEHATeLuO3v2Z0/changelog/req-sorting.png?fit=max\&auto=format\&n=g-XEHATeLuO3v2Z0\&q=85\&s=9f86f85704d22227cfe7a9529848f8bc) > [accordion] More Improvements > > * **Rego syntax highlighting**: Code blocks now include full syntax highlighting for the Rego [policy](/concepts/policies) language\\ > > * **CLI download dialog**: A new download dialog in [workflow](/concepts/workflows) runs makes it easier to install the CLI directly from the interface\\ > [accordion] Bug Fixes > > * Backend Enabled API token access for apply operations\\ > > * Frontend Prevented navbar shift when dropdown menus open\\ **March 09, 2026** v1.36.0 ## Environments and deployment tracking ## Environments & Deployment Tracking Chainloop now supports [Artifact Deployment Tracking](/concepts/deployments) — record which artifacts are running in which [environments](/concepts/environments) and build a live view of what's deployed across your organization. Define infrastructure targets (Kubernetes clusters, ECS services, bare-metal servers), map them to lifecycle stages like `development`, `staging`, and `production`, and let Chainloop automatically track deployment history with superseding and decommissioning. Because every deployment record is linked back to [attestations](/concepts/attestations) and evidence, you can trace any running artifact to the workflow that built it and the provenance that backs it. ![Deployment Tracking](https://mintcdn.com/chainloop/W6ZtFMaSiWeLxY5-/changelog/deployment-tracking.png?fit=max\&auto=format\&n=W6ZtFMaSiWeLxY5-\&q=85\&s=d7ab4d9cacba8fdf7757a7ba845ca85a) ## New MCP Server Tools The [Chainloop MCP server](/reference/mcp-server) now includes `list_contracts` and `describe_contract` tools — making it possible for AI agents and development workflows to discover and inspect [workflow contracts](/concepts/contracts) directly. This brings contract management into AI-assisted automation, so teams can query contract schemas, materials, and policy attachments without leaving their AI toolchain. ![MCP Server Tools](https://mintcdn.com/chainloop/W6ZtFMaSiWeLxY5-/changelog/mcp_1.png?fit=max\&auto=format\&n=W6ZtFMaSiWeLxY5-\&q=85\&s=3fc4dacf21caf8853a31234e48e509d0) With these tools, you can retrieve any contract's full declarative representation — including its materials, policies, policy groups, and runner configuration — directly from an AI assistant or automated workflow. Whether you're auditing a release gate, reviewing what evidence a pipeline collects, or building tooling on top of Chainloop, the contract schema is now just a tool call away. ![Gate Info](https://mintcdn.com/chainloop/W6ZtFMaSiWeLxY5-/changelog/gate-info.png?fit=max\&auto=format\&n=W6ZtFMaSiWeLxY5-\&q=85\&s=5e5d66ed7031c7f831e83d93552a2bab) ## Product-Level Compliance Overrides [Compliance policies](/concepts/compliance-frameworks) can now be overridden at the [product](/concepts/products) level — giving you more granular control over how compliance requirements are applied across your organization. This is especially useful when different products have distinct regulatory needs while sharing a common baseline. ![Product-Level Compliance Overrides](https://mintcdn.com/chainloop/W6ZtFMaSiWeLxY5-/changelog/product-compliance-overrides.png?fit=max\&auto=format\&n=W6ZtFMaSiWeLxY5-\&q=85\&s=9703e4e3b1419ba66cd6ba9665606b59) > [accordion] More Improvements > > * **Breadcrumb navigation**: Added throughout the platform to help you navigate between organizations, projects, and connected resources\\ > > * **Positional requirement ordering**: [Framework](/concepts/compliance-frameworks) requirements now support positional ordering for more control over compliance structure\\ > > * **UI polish**: Better description truncation for long text, compliance coverage preview moved into the [policies](/concepts/policies) section, and improved dark mode hover contrast on tables and dropdowns\\ > > * **[Policy](/concepts/policies) management**: Builtin policy content is now hidden in CLI describe output for cleaner results, and [policy group](/concepts/policy-groups) describe commands support output schema formatting\\ > [accordion] Bug Fixes > > * Frontend Fixed duplicate policy groups appearing when filtering\\ > > * Frontend Fixed deployment history filtering to properly show results by logical environment\\ > > * Frontend Fixed broken buttons in contract editing, member management, and organization creation pages\\ > > * Frontend Applied proper prettier formatting in project and deployment detail views\\ > > * Frontend Resolved multiple UI bugs and display issues\\ > > * Compliance Prevented unnecessary requirement version creation when apply input is unchanged\\ > > * Policies Prevented builtin policies from being exposed inappropriately\\ > > * CLI Removed builtin content from requirement and framework describe command outputs\\ > > * Backend Updated MCP contract schema to follow Kubernetes-style formatting standards\\ > > * Backend Added User-Agent header support for CORS\\ **March 04, 2026** v1.34.0 ## Declarative frameworks and agentic policies ![Declarative frameworks and agentic policies](https://mintcdn.com/chainloop/eYsUp9wEzLWnMZ9J/changelog/platform-v1.34.0.png?fit=max\&auto=format\&n=eYsUp9wEzLWnMZ9J\&q=85\&s=e87fcd798e3df602a8196df1cfa9c401) ## UI/UX Improvements We've been investing heavily in the frontend experience. Our component library has been upgraded to a more compact, modern design system, and we've reworked key surfaces — from empty states to the org selector and dark mode — all to reduce visual noise while keeping the information you need front and center. ![UI/UX Improvements](https://mintcdn.com/chainloop/eYsUp9wEzLWnMZ9J/changelog/ui-ux-improvements.png?fit=max\&auto=format\&n=eYsUp9wEzLWnMZ9J\&q=85\&s=1ab941a5e2609b0730b0c7d8c99a49db) **Global Search** — A new global search experience lets you quickly find workflows, projects, frameworks, requirements and other resources across your organization from anywhere in the app. Try it out with `CMD + K` or by clicking the search button in the top navbar. ![Global Search](https://mintcdn.com/chainloop/eYsUp9wEzLWnMZ9J/changelog/global-search.png?fit=max\&auto=format\&n=eYsUp9wEzLWnMZ9J\&q=85\&s=46747a6ea656f2536ea7705582dce3ed) **Version Selector** — A redesigned version selector with dedicated **prerelease** and **release** tabs makes it easier to navigate between versions and understand what's promoted vs. in progress. ![Version Selector](https://mintcdn.com/chainloop/eYsUp9wEzLWnMZ9J/changelog/version-selector-v1.34.png?fit=max\&auto=format\&n=eYsUp9wEzLWnMZ9J\&q=85\&s=f50466f488560d544a0fcd52091984dc) **Filtering Across All Lists** — All list pages now offer consistent filtering options, making it easier to find and organize your workflows, projects, and resources — no matter how large your organization grows ![Filtering & Sorting](https://mintcdn.com/chainloop/TfDVUk62AihOXgkj/changelog/filtering-sorting.png?fit=max\&auto=format\&n=TfDVUk62AihOXgkj\&q=85\&s=1c620caae9c6398f7c1a2fa2df4cbd3a) **Contracts Diff** — You can now see differences between [contract](/concepts/contracts) revisions at a glance, making it easier to understand what changed between versions. ![Contracts Diff](https://mintcdn.com/chainloop/eYsUp9wEzLWnMZ9J/changelog/contracts-diff.png?fit=max\&auto=format\&n=eYsUp9wEzLWnMZ9J\&q=85\&s=ad38cab336eed2ed64dd27465f9f16d7) **Compliance Coverage (Preview)** — An early preview of compliance coverage is now available, showing how your project maps [against compliance frameworks and requirements](/concepts/compliance-frameworks#requirement-coverage-preview). This feature is being actively developed and will be rolling out to all users soon. **Easier Policy Evaluation Analysis** — [Policy evaluations](/concepts/policies) are now easier to analyze: advanced filtering helps you quickly focus on passed, failed, or skipped policies, and multiple skip reasons or violations are collapsed for a cleaner view. ![Policy Evaluation Analysis](https://mintcdn.com/chainloop/eYsUp9wEzLWnMZ9J/changelog/policy-evaluation-analysis.png?fit=max\&auto=format\&n=eYsUp9wEzLWnMZ9J\&q=85\&s=cce8497d7b1767902e33dd7f51d2d443) **CLI Install Script** — The platform now serves a pre-configured CLI install script, so new users can get started with a single command — no manual endpoint configuration needed. Get your CLI with a single click, it is available in the help menu under "About Chainloop" ![CLI Install Script](https://mintcdn.com/chainloop/mIKwbQ5PJnfOxX-U/changelog/cli-install.png?fit=max\&auto=format\&n=mIKwbQ5PJnfOxX-U\&q=85\&s=e572ff610b698ef39803e38e69c9c3fe) ## Declarative Frameworks and Requirements We extended declarative support to [frameworks](/concepts/compliance-frameworks), requirements, and [policy groups](/concepts/policy-groups). You can now export any resource as declarative counterparts and manage it programmatically from the CLI. ![Declarative Frameworks](https://mintcdn.com/chainloop/eYsUp9wEzLWnMZ9J/changelog/declarative-frameworks.png?fit=max\&auto=format\&n=eYsUp9wEzLWnMZ9J\&q=85\&s=b72dced5e312f7f86c5f9665595e6084) We've also introduced a top-level `chainloop apply` command for local or CI automation to enable GitOps operations. For more information, refer to our [CLI reference](https://docs.chainloop.dev/cli/reference). ## Agentic Policies Support Agentic policies use AI to evaluate supply chain evidence with natural-language prompts. Define what to check in plain English — Chainloop sends the evidence to your configured LLM provider and returns violations, cryptographically signed into the attestation. Use the built-in `evidence-prompt` policy for a zero-code experience, or call `chainloop.evidence_prompt` from custom policies for more control. Read more in the [LLM Policies guide](/guides/llm-policies). ![Agentic Policies](https://mintcdn.com/chainloop/eYsUp9wEzLWnMZ9J/changelog/agentic-policies.png?fit=max\&auto=format\&n=eYsUp9wEzLWnMZ9J\&q=85\&s=cbc0802aed1e094a1b66fd6f6d49ca65) ```yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Contract metadata: name: check-build spec: policies: attestation: - ref: evidence-prompt with: prompt: "Check that all container images referenced in this attestation come from a trusted registry (e.g. ghcr.io or docker.io/chainloop)" materials: - ref: evidence-prompt with: prompt: "Analyze this SBOM and report any components with non-OSS compatible licenses such as AGPL, SSPL, or proprietary licenses" materials: - type: SBOM_CYCLONEDX_JSON name: my-sbom ``` ![Agentic Policies Result](https://mintcdn.com/chainloop/eYsUp9wEzLWnMZ9J/changelog/agentic-policies-result.png?fit=max\&auto=format\&n=eYsUp9wEzLWnMZ9J\&q=85\&s=f485a6a08e46eeba830baec0ff7fdf8f) Our enterprise customers can use their own LLM provider by bringing an API key and configuring an [LLM integration](/concepts/integrations). Chainloop supports Anthropic and OpenAI (including OpenAI on Microsoft Foundry); see the [LLM support reference](/reference/llm-support) for details. ![LLM Integration](https://mintcdn.com/chainloop/eYsUp9wEzLWnMZ9J/changelog/llm-integration.png?fit=max\&auto=format\&n=eYsUp9wEzLWnMZ9J\&q=85\&s=51ed13af2913c8039466c7aa4e1a6074) ## Policy Engine Improvements The policy engine is the core of Chainloop's control and quality gate capabilities. Our SDK comes packed with new features: * [Attestation phases](/concepts/policies#attestation-phases) let you control when attestation-level policies are evaluated during the attestation lifecycle. * [Policy-level gate override](/concepts/policies#configuring-enforcement) — The `gate` property in policy attachments now supports `gate: false` to explicitly disable enforcement for a specific policy, overriding the organization-wide control gate setting. * [`chainloop.download_artifact`](/reference/builtin-functions#chainloopdownload_artifact) — A Rego builtin function that downloads an artifact from Chainloop's CAS directly into the policy evaluation context. > [accordion] New Policies and Policy Groups > > * **evidence-prompt**: Prompts for evidence collection on materials, supports non-digest materials, evaluates only during PUSH phase\\ > > * **owasp-top10-2025**: OWASP Top 10 updated to the 2025 edition, with SARIF and CodeQL report support\\ > > * **cwes-group**: Groups CWE-related policies (CWE Top 25, CWE Top 26-40) for easier adoption\\ > [accordion] Policy Enhancements > > * **cwe-top25 / cwe-top26-40-cusp**: Added CodeQL report support\\ > > * **pr-user-story-linked**: Now also detects issue references in branch names, not just PR body\\ > > * **iac-misconfiguration**: Added severity filtering to control which severity levels trigger violations\\ > > * **check-compliance-requirement**: Can now filter by framework name\\ ## API Token Auto-Revocation You can now [configure API Token Auto-Revocation](/reference/api-tokens#auto-revocation-of-inactive-tokens), which automatically revokes API tokens that haven't been used within a configurable period, reducing the risk of long-lived, forgotten tokens. ## Signed Manual Evidence Receipt All manually provided evidence is now signed, attested, and tamper-resistant — just like evidence collected from CI/CD automation. You can download a [signed attestation receipt](/reference/signing) for any manual evidence and verify it using the Chainloop CLI. ![Signed Manual Evidence](https://mintcdn.com/chainloop/eYsUp9wEzLWnMZ9J/changelog/signed-manual-evidence.png?fit=max\&auto=format\&n=eYsUp9wEzLWnMZ9J\&q=85\&s=88014b633fa9767e45fc48190314146c) ```bash theme={"dark"} $ chainloop attestation verify --bundle ~/Downloads/f156d02.json INF attestation verified successfully ``` > [accordion] Bug Fixes > > * Compliance Corrected compliance scores to exclude expired workflow runs\\ > > * Compliance Resolved policy groups with bindings not syncing in contracts\\ > > * Compliance Addressed contracts sync failing when importing empty params\\ > > * Compliance Restricted check-compliance-requirement to run only at INIT phase\\ > > * Frontend Sorted product list to show newest first\\ > > * Frontend Enabled workflow list items to wrap on smaller screens\\ > > * Frontend Resolved empty workflow runs incorrectly redirecting to API token management\\ > > * CLI Resolved broken `policy devel` function\\ > > * UX Improved confusing freshness wording\\ > > * Policies Preserved escaped patterns on policy args\\ > > * Contracts Ensured contract name from schema v2 is respected\\ > > * Contracts Enabled org tokens to create contracts\\ > > * Backend Resolved contract scope to use project name instead of UUID\\ > > * Backend Prevented CAS redirection URL from being returned when CAS is not valid\\ > > * Backend Ensured project version is promoted after attestation push\\ **February 22, 2026** * **Guide: [How to run LLM-driven policies](/guides/llm-policies)** - New guide covering how to use AI-powered prompts to evaluate evidence and attestations, including the built-in `evidence-prompt` policy and custom Rego policies with `chainloop.evidence_prompt`. **February 19, 2026** * **AI-powered evidence evaluation in policies**: New [`chainloop.evidence_prompt`](/reference/builtin-functions#chainloop-evidence_prompt) builtin function for Rego policies. Evaluate evidence such as SBOMs or SARIF reports using AI-powered analysis directly within your policy rules. **February 10, 2026** * **Download attestation for manual evidence**: You can now download the attestation for manual evidence from the evaluation views. ![Download Attestation for Manual Evidence](https://mintcdn.com/chainloop/6KFWW4vejAL7FeK5/changelog/download-attestation-for-manual-evidence.png?fit=max\&auto=format\&n=6KFWW4vejAL7FeK5\&q=85\&s=c34c79932046ea10791a61ba87ef5cae) **February 10, 2026** * **Manual evidence in products**: You can now provide manual evidence from the products view, making it easier to track compliance at the product level. ![Manual Evidence in Products](https://mintcdn.com/chainloop/6KFWW4vejAL7FeK5/changelog/manual-evidence-in-products.png?fit=max\&auto=format\&n=6KFWW4vejAL7FeK5\&q=85\&s=7851637e44f473472f092e06f9ed9df8) **February 9, 2026** * **Instance Admin API tokens**: New EE CLI feature that allows the creation of Instance-level API tokens for the provisioning and configuration of organizations. Create new instance admin tokens with (needs user with [instance-admin privileges](/guides/deployment/guides/restrict-org-creation#step-2-configure-instance-admins-in-the-chainloop-platform)): ``` chainloop admin api-token create --name ``` The following operations are enabled for instance API tokens: * `chainloop org create` * `chainloop org member invitation create` * `chainloop cas-backend add` Check \[Organization * **Built-in Policies documentation**: New documentation for built-in policies can be found [here](/reference/policies) **February 10, 2026** * **Relaxed CycloneDX SBOM validation**: A new `--no-strict-validation` flag is now available when adding CycloneDX SBOM materials via `chainloop attestation add`. This flag allows SBOMs that don't fully conform to the CycloneDX specification to be attached to attestations. Useful when working with third-party tools that generate SBOMs with minor schema deviations. ```bash theme={"dark"} chainloop attestation add --name my-sbom --value sbom.cdx.json --no-strict-validation ``` **January 30, 2026** * **Chainloop EE unified Helm Chart (Preview)**: A new [unified Helm Chart](/guides/deployment/chainloop-ee) provides a streamlined way to deploy both the Evidence Store and Platform components together in Kubernetes environments. ![Chainloop Platform](https://mintcdn.com/chainloop/_zqnZOrMUZij1efG/guides/deployment/img/platform-4.jpg?fit=max\&auto=format\&n=_zqnZOrMUZij1efG\&q=85\&s=65d5aec12d2f7e7a8e006242a8ccd77a) * **Docker Compose for local evaluation**: A [Docker Compose setup](/guides/evaluate-platform#local-docker-compose) is now available for quick local evaluation of the platform. Contact the Chainloop team to get started. **January 30, 2026** * **Improved search**: The command menu now shows all available entities and options, making it easier to find what you need. You can search for projects, products, policies, workflows, and more. ![Search Command Menu](https://mintcdn.com/chainloop/oqpwcE_INQxWVEFH/changelog/search-command-menu.png?fit=max\&auto=format\&n=oqpwcE_INQxWVEFH\&q=85\&s=5757d8d755220b2049ba29dc31f6ebae) **January 30, 2026** * **Form updates**: We updated the requirement and policy forms to improve the user experience. The fields are now more organized, and the forms are more intuitive to use. ![Requirement Form](https://mintcdn.com/chainloop/oqpwcE_INQxWVEFH/changelog/requirement-form.png?fit=max\&auto=format\&n=oqpwcE_INQxWVEFH\&q=85\&s=f7f9639508ed52bd7d31381148388a5e) ![Policy Form](https://mintcdn.com/chainloop/oqpwcE_INQxWVEFH/changelog/policy-form.png?fit=max\&auto=format\&n=oqpwcE_INQxWVEFH\&q=85\&s=9af6b4d04378780e3a3d30c0e7be118a) **January 30, 2026** * **Requirement test freshness**: Requirement policies and manual evidence proofs can be set to expire after a certain time. Once expired, the requirement will be automatically marked as “Expired”. This can be useful to ensure that proofs of compliance are fresh and relevant at all times. ![Freshness](https://mintcdn.com/chainloop/pZkHFA76n7R86qmq/concepts/img/freshness.png?fit=max\&auto=format\&n=pZkHFA76n7R86qmq\&q=85\&s=d2b3109117a5c1f8e94046e11f2b1c6a) **January 28, 2026** * **New Compare tab in Contract view**: A new tab in the Contract view allows users to compare different versions of a contract side by side, highlighting additions, deletions, and modifications for easy review. ![Compare Contracts](https://mintcdn.com/chainloop/qjXOKuvkyNvrOkW3/changelog/compare-contracts.png?fit=max\&auto=format\&n=qjXOKuvkyNvrOkW3\&q=85\&s=02b93cb93c47890d89d3544f56b887e4) **January 21, 2026** * **Product-level compliance**: we have added support for product-scoped requirements in frameworks. This new feature allows to perform compliance assessment directly from products, useful when compliance status doesn't depend on the underlying projects. ![Product requirements](https://mintcdn.com/chainloop/qRHgpG70dZ9eboAN/changelog/product-requirement.png?fit=max\&auto=format\&n=qRHgpG70dZ9eboAN\&q=85\&s=dc694775b660f35a1296dd1c4f6a1320) Product-scoped requirements accept manual evidence submissions, but they don't yet support automated compliance from attestations. * **Product compliance filters** now affects to the compliance status charts, reflecting the status of what users have selected. ![Product filters](https://mintcdn.com/chainloop/qRHgpG70dZ9eboAN/changelog/product-filters.png?fit=max\&auto=format\&n=qRHgpG70dZ9eboAN\&q=85\&s=dd443d5b3fe629e2f8f73ff6fe41a797) * **Requirement Lifecycle Management** - mark requirements as `Active` or `Inactive` to control which ones are evaluated in your compliance assessments. Inactive requirements don't count toward your scores, making it easy to track requirements you're still defining without impacting your current compliance status. Learn more about [managing requirement lifecycles](/concepts/compliance-frameworks#requirement-lifecycle-management) in frameworks. ![Requirement Lifecycle Management](https://mintcdn.com/chainloop/EgAW2yMRDxNFPPg1/changelog/requirement-lifecycle.png?fit=max\&auto=format\&n=EgAW2yMRDxNFPPg1\&q=85\&s=ff1998d2b62e6eebb46814bdea3acc5d) **January 16, 2026** * Comment badges are now shown in the UI for requirement evaluations at the product level, making it easy to track comments for each evaluation. ![Comment Badges](https://mintcdn.com/chainloop/qtbceFQb9j2fdUVt/changelog/comment-badges.png?fit=max\&auto=format\&n=qtbceFQb9j2fdUVt\&q=85\&s=fd07078ab0d481814f7473d4bb12f321) **January 15, 2026** * When running in a GitHub Actions environment, Chainloop’s CLI automatically submits the result of the `chainloop attestation push` command to GitHub’s step summary. On GitLab, it creates a text file and informs the user where to find it, allowing them to include it in the job artifacts. Here is an example of how it looks in GitHub Actions: ![GitHub Actions CI Report](https://mintcdn.com/chainloop/ORMfYaiafq08PNYM/changelog/ci-report-github.png?fit=max\&auto=format\&n=ORMfYaiafq08PNYM\&q=85\&s=c8071ca6a839e9cd73aac8fa63ff56e2) It can be deactivated by passing the flag `deactivate-ci-report` to the command. **January 12, 2026** * Add **Docker Compose evaluation option** - users can now evaluate the Chainloop Platform using a Docker Compose setup for quick local testing. This new evaluation method provides a simpler alternative to Kubernetes for users who want to try the platform locally. See the new [Evaluate Chainloop Platform](/guides/evaluate-platform) guide for details on all evaluation options including SaaS, Docker Compose, and Kubernetes. * Introduce [WASM Policy Engine](/guides/wasm-policies/overview) - learn how to build and use WebAssembly-based custom policies in an initial preview on Go and Javascript. * Introduce User Verification status on attestations. Chainloop's CLI is now able to tell if the commit where it's operating from is signed by a verified user. More details in the [Commit Verification](/concepts/attestations#commit-verification). Additionally, the `source-commit` policy has been updated to support this new feature by introducing two optional inputs: * `check_author_verified`: When set to true, the policy enforces that the commit must be signed by a verified user. * `required_signature_algorithm`: This input allows specifying the signature algorithm that must be used for the commit signature (e.g., `PGP`, `SSH`, or `X509`). **January 09, 2026** * Added automatic detection of [Tekton Pipelines](/concepts/contracts#tekton-pipeline) as a CI/CD runner, including environment discovery via the `/tekton/results` filesystem and initial metadata support for TaskRuns and PipelineRuns. **January 08, 2026** **Fallback Storage Backend**: Organizations can now configure a [fallback CAS backend](/concepts/cas-backend#fallback-backend) to ensure high availability for evidence storage. When the default backend is unreachable or fails validation, Chainloop automatically switches to the fallback backend, allowing attestation processes to continue without interruption. ![CAS Backends with Fallback](https://mintcdn.com/chainloop/1fljViX3SVebSE7I/changelog/cas-backends-fallback.png?fit=max\&auto=format\&n=1fljViX3SVebSE7I\&q=85\&s=0559fb5eddc9f13a8127ed7f4d59be5b) Configure in Platform [Storage Backends Section](https://app.chainloop.dev/cas-backends) or using CLI: ```bash theme={"dark"} chainloop cas-backend update oci --name [BACKEND_NAME] --fallback=true ``` **Requirements Auto-Matching Control**: Organizations can now [deactivate automatic matching of policies to compliance requirements](/concepts/compliance-frameworks#deactivating-requirements-auto-matching), enforcing explicit requirement declarations in workflow contracts for tighter control over compliance mappings. When deactivated, only policies with explicit `requirements` declarations in contracts will be matched to framework requirements, ensuring intentional and explicit associations. ![Deactivate Requirements Auto-Matching](https://mintcdn.com/chainloop/Jol1rA-GoqMNhiIv/changelog/deactivate-requirements-auto-matching.png?fit=max\&auto=format\&n=Jol1rA-GoqMNhiIv\&q=85\&s=b7740b6fed74b5dc8adf0964f4bba5bc) This can also be configured via CLI EE: ```bash theme={"dark"} chainloop org update --name [ORG_NAME] --disable-requirements-auto-matching ``` **December 18, 2025** * Add automatic detection of **Pull Request and Merge Request** information during attestation - captures PR/MR metadata including title and description during attestation initialization, automatically gathering context about code review activities. This change introduces a new [material type](/concepts/material-types) called `CHAINLOOP_PR_INFO` that's automatically added to attestations when a PR/MR is detected in the CI/CD environment. ```json theme={"dark"} { "chainloop.material.evidence.id": "CHAINLOOP_PR_INFO", "schema": "https://schemas.chainloop.dev/prinfo/1.0/pr-info.schema.json", "data": { "platform": "github", "type": "pull_request", "number": "3621", "title": "chore(frontend): fix trust hub loading", "description": "This patch fixes the loading skeleton in trust hub graph, without the min height the skeleton wasn't displayed properly (it was almost invisible)", "source_branch": "feat/trust-hub-graph-fix", "target_branch": "main", "url": "https://github.com/chainloop-dev/chainkloop/pull/3621", "author": "john" } } ``` * Add [organization setting to restrict project-scoped contract creation](/concepts/contracts) - administrators can now prevent project admins from creating project-level contracts, ensuring all contracts are managed at the organization level to prevent contract sprawl ![Restrict Project Contracts](https://mintcdn.com/chainloop/RO2O5Hbs9Uv28Rsn/changelog/restrict-contract.png?fit=max\&auto=format\&n=RO2O5Hbs9Uv28Rsn\&q=85\&s=774a44d8d0a522404f5224df96ef1967) **December 17, 2025** **Trust Hub Improvements & restyling**: Trust Hub Graphs now have a different, improved style with a new more modern look. We also introduce some UX improvements e.g. graph centering on load, tooltip on node hover, collapsible references, click load more nodes handling ![Trust Hub Improvements](https://mintcdn.com/chainloop/RO2O5Hbs9Uv28Rsn/changelog/hub-revamp.png?fit=max\&auto=format\&n=RO2O5Hbs9Uv28Rsn\&q=85\&s=a41c1c439d1740973a78d5fe7436d72d) **December 16, 2025** ## Control gates Introduce [control gates](/concepts/control-gates) - policies can now act as gates during attestation, interrupting the attestation process when violations are detected through the `gate` property in policy attachments, enabling fail-fast policy enforcement in CI/CD pipelines ```yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Contract metadata: name: my-workflow spec: policies: materials: - ref: critical-policy gate: true # Fail attestation on violations ``` ## CLI updates * Add `evidence list` command to [CLI Enterprise Edition](/cli/reference#chainloop-evidence-list) - list and filter evidence programmatically from the command line for automation and reporting workflows ```bash theme={"dark"} # List evidence for a project chainloop evidence list --project my-project # Filter by evidence type chainloop evidence list --project my-project --kind SBOM_CYCLONEDX_JSON ``` ## Policy engine improvements * `chainloop.evidence` [built-in function](/reference/builtin-functions#chainloop-evidence) for policy engine - retrieve and query evidence across projects and product versions within Rego policies for advanced compliance scenarios ```ruby theme={"dark"} package main import rego.v1 result := {"violations": violations} violations contains msg if { evidence := chainloop.evidence({ "project_name": "my-project", "kind": ["SBOM_CYCLONEDX_JSON"] }) count(evidence.result) == 0 msg := "No SBOM found for project" } ``` * `chainloop.project_compliance` [built-in function](/reference/builtin-functions#chainloop-project-compliance) for policy engine - query compliance requirement evaluations within policies using declarative project and version names for control gate implementations ```ruby theme={"dark"} package main import rego.v1 result := {"violations": violations} violations contains msg if { compliance := chainloop.project_compliance({ "project_name": "my-project", "project_version_name": "v1.0.0" }) some eval in compliance.evaluations eval.status == "fail" msg := sprintf("Requirement %s failed", [eval.name]) } ``` **December 15, 2025** * Fix contract schema: move annotations from metadata to spec - attestation-level annotations now correctly reside in the `spec.annotations` field instead of `metadata.annotations` for proper semantic alignment ```yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Contract metadata: name: my-workflow spec: annotations: # Correct location - name: release-version value: "1.0.0" ``` **December 12, 2025** * Introduce **comments system** for requirement evaluations - add comments and justifications to compliance requirement evaluations with markdown support, enabling teams to document decisions, provide context, and collaborate on compliance assessments ![Comments System](https://mintcdn.com/chainloop/RO2O5Hbs9Uv28Rsn/changelog/comments.png?fit=max\&auto=format\&n=RO2O5Hbs9Uv28Rsn\&q=85\&s=bb75fd935e489302990d1fab698ba14d) > [accordion] Fixes > > * Fix 404 error when saving first contract in web UI - contract creation now works correctly on first save > * Fix user invitation dialog to handle leading whitespace - email inputs are now trimmed automatically to prevent invitation failures > * Fix unsaved changes alert when updating CAS backend descriptions - form now correctly detects and warns about unsaved changes **November 28, 2025** v0.302.1 ## SLSA 1.2 and requirement evaluation overrides ## SLSA 1.2 release [Chainloop now supports SLSA 1.2](https://chainloop.dev/blog/slsa-1-2-support/), the latest version of the Supply-chain Levels for Software Artifacts framework. This update brings enhanced provenance attestation capabilities and improved compliance tracking aligned with the latest SLSA specifications. For more information, see our [SLSA guides](/guides/slsa) for best practices and implementation steps. ![SLSA 1.2 Support](https://mintcdn.com/chainloop/KMUOqtquJl5v2YsG/changelog/slsa-1-2.png?fit=max\&auto=format\&n=KMUOqtquJl5v2YsG\&q=85\&s=00e90e232f2e9881531d9c34d9264e66) ## Requirement evaluation overrides You can now manually override the evaluation status of compliance requirements with justification. This enables teams to document exceptions and provide context when requirements cannot be met through automated means. Overrides are available in both project and product evaluation views. When a requirement is overridden, the status badge changes to "Status Overridden" and displays the justification below the evaluation header. Overrides are also included in the product compliance API response for programmatic access. ![Override Dialog](https://mintcdn.com/chainloop/KMUOqtquJl5v2YsG/changelog/override-dialog.png?fit=max\&auto=format\&n=KMUOqtquJl5v2YsG\&q=85\&s=70bc3a9f6ca67de4efebcb95f462e9c6) ![Override Status Display](https://mintcdn.com/chainloop/KMUOqtquJl5v2YsG/changelog/override-status.png?fit=max\&auto=format\&n=KMUOqtquJl5v2YsG\&q=85\&s=e7bdff3d1f7ec9715ea32c3650e333a6) > [accordion] Fixes > > * **Evaluations** - Fixed 500 errors caused by cache failures. The system now gracefully handles cache reconnection issues by logging and recovering instead of returning errors\\ > > * **Evidence API** - Fixed product version filtering to correctly use the specific project version attached to the product version, rather than any version of the underlying project\\ > > * **Built-in frameworks** - Fixed parent section references not updating when frameworks are renamed (e.g., slsa-1-1 to slsa-1-2). Sections now correctly maintain their hierarchy position\\ > > * **Frameworks** - Improved scrolling behavior for deeply nested sections (more than 2 levels)\\ > > * **Table of contents** - Removed buggy tooltip from table of contents component **November 20, 2025** * Add `skip` field to [policy group attachments](/concepts/policy-groups#skipping-specific-policies) - selectively exclude specific policies from evaluation within a policy group without modifying the group itself, enabling flexible policy enforcement per workflow ```yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Contract metadata: name: example-contract spec: policyGroups: - ref: sbom-quality-group skip: - sbom-present - my-other-policy ``` **November 18, 2025** * Add support for **custom built-in functions** in the policy Rego engine - extend policy evaluation capabilities with [custom builtins](/reference/builtin-functions) for advanced policy scenarios and domain-specific validation logic ```ruby theme={"dark"} package main import rego.v1 result := {"violations": violations} violations contains msg if { digest := sprintf("sha256:%s",[input.chainloop_metadata.digest.sha256]) discovered := chainloop.discover(digest, "") some ref in discovered.references ref.kind == "ATTESTATION" ref.metadata.hasPolicyViolations == "true" msg:= sprintf("artifact belongs to attestation with digest %s, which contains policy violations [name: %s, project: %s, org: %s]", [ref.digest, ref.metadata.name, ref.metadata.project, ref.metadata.organization]) } ``` **November 18, 2025** Improvements in the runner context gatherer and [branch protection policies](/reference/branch-protection-policies) * Add `branches` parameter to the policies specify which branches should be evaluated for compliance, enabling targeted policy enforcement on main/production branches only * Add branch filtering to runner context gatherer - optimize GitHub branch protection analysis by specifying target branches, reducing API calls and improving performance for repositories with many branches **November 16, 2025** * Expose `has_policy_violations` flag in `attestation status` command - enables CI/CD control gates to fail pipelines based on policy violation status **November 16, 2025** * Add policy violation filtering to workflow run queries - list and filter workflow runs by policy violation status for better compliance monitoring and reporting ```bash theme={"dark"} # List only runs with policy violations chainloop workflow run list --workflow my-workflow --policy-status failed # List only runs without policy violations chainloop workflow run list --workflow my-workflow --policy-status passed ``` **November 14, 2025** * Add UI support for [preventing workflow creation](/concepts/attestations#preventing-implicit-workflow-creation) - organization setting now available in the UI to require explicit workflow creation before attestations, preventing automatic workflow proliferation in automated environments ![Prevent Workflow Creation UI](https://mintcdn.com/chainloop/F80RlUlRCVSsE7ab/changelog/settings-workflow-creation.png?fit=max\&auto=format\&n=F80RlUlRCVSsE7ab\&q=85\&s=aaa4a0a7ab29bf5635cfbd43b08ab62e) **November 14, 2025** * Extend chainloop-best-practices framework with Source Code integrity controls - automatically verify branch protection policies, code review requirements, commit signing, and SAST scanning to ensure secure development practices across repositories ![Best Practices Framework](https://mintcdn.com/chainloop/F80RlUlRCVSsE7ab/changelog/best-practices-branch-protection.png?fit=max\&auto=format\&n=F80RlUlRCVSsE7ab\&q=85\&s=6da38b6ff6deaccac259ef8142003378) **November 14, 2025** * Add `--existing-version` flag to `attestation init` command - ensure attestations only associate with pre-existing project versions, preventing accidental version creation during backpatching and packaging workflows ```bash theme={"dark"} # Fail if version doesn't exist (useful for backpatches) chainloop att init --workflow sast --project my-project --version v1.2.3 --existing-version # Error output when version doesn't exist: # ERR validation error: project version "v1.2.3" not found ``` **November 14, 2025** * Add CLI commands for [project management](/cli/reference#chainloop-project) - create, list, update, describe, and delete projects directly from the command line ```bash theme={"dark"} # Create a new project chainloop project create --name my-project --description "My project description" # List all projects chainloop project list ``` **November 14, 2025** * Add CLI commands for [project version management](/cli/reference#chainloop-project-version) - create, list, update, describe, and delete project versions with prerelease/release status control ```bash theme={"dark"} # Create a new prerelease version chainloop project version create --project my-project --name v1.0.0 # Create a released version chainloop project version create --project my-project --name v1.0.0 --is-released ``` **November 11, 2025** * Add `skip_upload` capability to [workflow contracts](/concepts/contracts#materials) - control whether materials are uploaded to CAS while still recording metadata like digest and filename in attestations, enabling efficient attestation of large artifacts already stored externally ```yaml theme={"dark"} # Example apiVersion: chainloop.dev/v1 kind: Contract metadata: name: my-workflow spec: materials: - name: large-binary type: ARTIFACT skip_upload: true # Only record metadata, don't upload to CAS - name: sbom type: SBOM_CYCLONEDX_JSON # skip_upload defaults to false - normal upload behavior ``` **November 11, 2025** * Add [organization setting to prevent implicit workflow creation](/concepts/attestations#preventing-implicit-workflow-creation) during attestation - workflows must now be explicitly created via CLI when enabled, preventing workflow proliferation in automated environments ```bash theme={"dark"} chainloop att init --workflow sast --project my-project-2222 ERR creating workflows during the attestation process is disabled for this organization. Please create them in advance or contact your administrator ``` **November 11, 2025** * Add external policy references support to `policy devel eval` command - evaluate policies from HTTP/HTTPS URLs (`https://...`), Chainloop registry (`chainloop://policy-name`), or local files for flexible policy testing and development workflows ```bash theme={"dark"} # Evaluate policy from HTTP URL chainloop policy devel eval --policy https://raw.githubusercontent.com/chainloop-dev/chainloop/main/docs/examples/policies/quickstart/cdx-fresh.yaml --material sbom.json { "result": { "violations": [ "SBOM created at: 2024-01-09T12:00:00Z which is too old (freshness limit set to 30 days)" ], "skip_reasons": [], "skipped": false } } # Evaluate policy from Chainloop registry chainloop policy devel eval --policy chainloop://sbom-ntia --material sbom.json { "result": { "violations": [ "missing author", "missing supplier for 'AES-256-GCM'", "missing supplier for 'ECDH'", "missing supplier for 'RSA-2048'", "missing supplier for 'SHA384'", "missing supplier for 'SHA512withRSA'", "missing supplier for 'TLSv1.2'", "missing supplier for 'google.com'", "missing unique identifier (PURL, CPE, SWID) for 'AES-256-GCM'", "missing unique identifier (PURL, CPE, SWID) for 'ECDH'", "missing unique identifier (PURL, CPE, SWID) for 'RSA-2048'", "missing unique identifier (PURL, CPE, SWID) for 'SHA384'", "missing unique identifier (PURL, CPE, SWID) for 'SHA512withRSA'", "missing unique identifier (PURL, CPE, SWID) for 'TLSv1.2'", "missing unique identifier (PURL, CPE, SWID) for 'google.com'", "missing version for 'AES-256-GCM'", "missing version for 'ECDH'", "missing version for 'RSA-2048'", "missing version for 'SHA384'", "missing version for 'SHA512withRSA'", "missing version for 'TLSv1.2'", "missing version for 'google.com'" ], "skip_reasons": [], "skipped": false } } ``` **November 06, 2025** * Slack webhooks can now be used to send System and Product notifications, in addition to current attestation fan-out messages. ![Slack Notification](https://mintcdn.com/chainloop/onWWWtLLv4E-shg7/changelog/slack-notification.png?fit=max\&auto=format\&n=onWWWtLLv4E-shg7\&q=85\&s=48b2d258766c59ab719b9714f317f8b9) **November 03, 2025** * Add support for attesting container images from local OCI layout directories - enables secure image attestation in air-gapped environments and registry-less deployments without requiring image push to remote registries ```bash theme={"dark"} # Single image layout (automatic) chainloop attestation add \ --name my-app \ --value /path/to/oci-layout \ --kind CONTAINER_IMAGE # Multi-image layout (requires digest selector) chainloop attestation add \ --name my-app \ --value /path/to/oci-layout@sha256:9a7ef86e19... \ --kind CONTAINER_IMAGE ``` * Add custom endpoint configuration for [Azure Blob Storage](/concepts/cas-backend#azure-blob-storage) CAS backends - enables support for Azure Government Cloud and other sovereign cloud environments by allowing custom endpoint suffixes ![Azure Blob Endpoint Configuration](https://mintcdn.com/chainloop/CUVPKeYIg7BtPCez/changelog/azure-blob-endpoint.png?fit=max\&auto=format\&n=CUVPKeYIg7BtPCez\&q=85\&s=ff97206d0131ef2fc289aec0114a537c) **October 31, 2025** * Introduce new [contract schema](/concepts/contracts) format to align with other compliance resources. * Add [Policy Group](/concepts/policy-groups) management commands in [Chainloop CLI Enterprise Edition](/cli/reference#chainloop-policy-group) - store and manage reusable policy groups in the platform with declarative YAML configuration ```bash theme={"dark"} # Create or update a policy group chainloop policy-group apply --file sbom-quality.yaml # List all policy groups chainloop policy-group list # Describe a specific policy group chainloop policy-group describe --name sbom-quality ``` * Add [`chainloop workflow contract apply`](/cli/reference#chainloop-workflow-contract-apply) command for declarative contract management - simplifies contract lifecycle by creating or updating contracts from YAML files in a single operation **October 28, 2025** * Introduce [Chainloop CLI Enterprise Edition](/cli/installation) - proprietary extension of the open-source CLI with additional features and capabilities available in platform paid plans ```bash theme={"dark"} # Install CLI Enterprise Edition curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s -- -ee ``` Key features include: * [Declarative policy management](/guides/custom-policies#store-custom-policy) - store and reuse custom policies in the platform with YAML-based configuration and Rego evaluation logic for consistent supply chain security enforcement across workflows * [Advanced runner context](/reference/runner-context#gathering-runner-context) - capture and attest CI/CD environment security configuration including branch protection settings, pull request requirements, and commit protection for enhanced compliance verification **October 25, 2025** * Add [Compliance Overview](/concepts/products#compliance-overview) to product view for comprehensive visibility into compliance frameworks and requirements across product versions with drill-down capabilities into underlying projects ![Product Compliance](https://mintcdn.com/chainloop/mVK2LwgaKSQG2UZs/concepts/img/product-compliance.png?fit=max\&auto=format\&n=mVK2LwgaKSQG2UZs\&q=85\&s=00b205870107370e8ff6143564ed88c2) * Add [Evidence](/concepts/products#evidence-tab) tab to product view for centralized access to all pieces of evidence across product versions, including artifacts, SBOMs, VEX documents, vulnerability reports, and provenance data with advanced filtering capabilities ![Product Evidence Tab](https://mintcdn.com/chainloop/mVK2LwgaKSQG2UZs/concepts/img/product-evidence.png?fit=max\&auto=format\&n=mVK2LwgaKSQG2UZs\&q=85\&s=8292194e25c81efdf03159caf256ef7a) **October 22, 2025** * Add notification trigger for product releases - receive alerts when new product versions are released **October 21, 2025** * Expose OpenAPI spec preconfigured for your specific instance of Chainloop You can find it at `https://your-backend-instance/openapi.yaml` for example [here](https://api.app.chainloop.dev/openapi.yaml) **October 20, 2025** * Add notifications for aggregated product compliance changes - stay informed about compliance status updates (failures and recoveries) ![Product notifications](https://mintcdn.com/chainloop/vTuUKiGCwGJ__XFJ/concepts/img/notifications-select.png?fit=max\&auto=format\&n=vTuUKiGCwGJ__XFJ\&q=85\&s=b1eb951f00fa7fa8e5dd8726277b7b81) **October 17, 2025** * Introduce [Notification Integrations](/concepts/notifications) - send alerts about system status through Microsoft Teams and Email Notifications ![Notification Integrations](https://mintcdn.com/chainloop/vTuUKiGCwGJ__XFJ/concepts/img/integrations-9.png?fit=max\&auto=format\&n=vTuUKiGCwGJ__XFJ\&q=85\&s=7e6667de6daaae18d759eb5386cb3956) **October 15, 2025** * Add [Evidence](/concepts/projects-versions#evidence-tab) tab to project view for centralized access to all pieces of evidence, including artifacts, SBOMs, VEX documents, vulnerability reports, and provenance data with advanced filtering capabilities ![Evidence Tab](https://mintcdn.com/chainloop/mVK2LwgaKSQG2UZs/concepts/img/evidence.png?fit=max\&auto=format\&n=mVK2LwgaKSQG2UZs\&q=85\&s=131354fd5a1b2aa123be01dea2122950) **October 10, 2025** * Add system status page to monitor platform health and view past incidents in real-time ![Status Page](https://mintcdn.com/chainloop/kYXuPr-swOeVPLCv/changelog/status-page.png?fit=max\&auto=format\&n=kYXuPr-swOeVPLCv\&q=85\&s=ec21f89e77022d67a93229fb6554dede) **October 09, 2025** * Introduce [Business Units](/concepts/business-units) - organize products by department, division, or team for better organizational structure management ![Business Units](https://mintcdn.com/chainloop/tUPEKuU3jbmbDIWl/changelog/bus.png?fit=max\&auto=format\&n=tUPEKuU3jbmbDIWl\&q=85\&s=99a36e65aef562f0cb59dd6f8e0bac92) **September 15, 2025** * Display user group memberships in the members table with contextual group inspection ![User groups](https://mintcdn.com/chainloop/6-vJOQucCHfEzZdn/changelog/user-groups.png?fit=max\&auto=format\&n=6-vJOQucCHfEzZdn\&q=85\&s=a7e80e6daa204a684f4d5f6593da3957) **September 13, 2025** * Allow to re-evaluate requirements from existing workflow runs ![Recalculate compliance](https://mintcdn.com/chainloop/EeWVZM7Oh1YhM4mI/changelog/compliance-recalculate.png?fit=max\&auto=format\&n=EeWVZM7Oh1YhM4mI\&q=85\&s=dc6b6ebd5285fd5036f38d3eecdcf4da) **September 12, 2025** * Fix GitLab integration authentication issues **September 09, 2025** * Implement automatic Storage backend health checks every 30 minutes with owner notifications on status changes via Email and Audit Log ![Storage health check](https://mintcdn.com/chainloop/EeWVZM7Oh1YhM4mI/changelog/cas-backend-events.png?fit=max\&auto=format\&n=EeWVZM7Oh1YhM4mI\&q=85\&s=d74a78edaf32b0edc47fa5abf3da77cd) **September 04, 2025** * Improve product compliance view with aggregated compliance charts ![Compliance](https://mintcdn.com/chainloop/SVENSGqAeLVq42_9/changelog/product-compliance.png?fit=max\&auto=format\&n=SVENSGqAeLVq42_9\&q=85\&s=78ffa5a9b2b4348c91dc57633574e4c5) * Fix CAS backend permission errors when storage cannot be reached **September 03, 2025** * Add [documentation for branch protection policies](https://docs.chainloop.dev/reference/branch-protection-policies) including GitLab integration **September 02, 2025** * Allow product-level applicability settings with inheritance to project versions ![Product applicability inheritance](https://mintcdn.com/chainloop/EeWVZM7Oh1YhM4mI/changelog/product-applicability-inheritance.png?fit=max\&auto=format\&n=EeWVZM7Oh1YhM4mI\&q=85\&s=2b87c5207307a4796d9db7c49c4aa73e) * Extend `banned-licenses` policy to support SPDX license expressions **August 29, 2025** * Allow creating product versions from previous ones - streamlines version management by pre-populating projects and compliance mappings ![Prefill version](https://mintcdn.com/chainloop/SVENSGqAeLVq42_9/changelog/prefill.png?fit=max\&auto=format\&n=SVENSGqAeLVq42_9\&q=85\&s=38c630c01350aa459e38d148562ecc98) **August 28, 2025** * Replace bitnami containers with custom builds to address container initialization issues **August 27, 2025** * Requirements applicability for projects and versions - define which requirements apply to specific projects or versions within a product for tailored compliance management ![Applicability](https://mintcdn.com/chainloop/SVENSGqAeLVq42_9/changelog/applicability.png?fit=max\&auto=format\&n=SVENSGqAeLVq42_9\&q=85\&s=5a4183d4387845bb864efdd82ce9b8ec) **August 25, 2025** * Pin project versions on product releases to maintain stable relationships ![Product release](https://mintcdn.com/chainloop/EeWVZM7Oh1YhM4mI/changelog/product-release.png?fit=max\&auto=format\&n=EeWVZM7Oh1YhM4mI\&q=85\&s=7ef6142bb578b4bec537407ecc956f4e) * Standardize on "pre-release" terminology across the platform **August 18, 2025** * Enable inviting external users to products * Add audit entries when adding users/groups to products and projects ![Invite new members](https://mintcdn.com/chainloop/SVENSGqAeLVq42_9/changelog/invite-product.png?fit=max\&auto=format\&n=SVENSGqAeLVq42_9\&q=85\&s=412e56f81d596e7bb041ba5ded87271c) **August 15, 2025** * On-prem: New [instance-level Admin role](https://docs.chainloop.dev/guides/deployment/guides/provisioning#instance-administrators) for managing organization creation. **August 14, 2025** * Product version lifecycle management ![Product versions](https://mintcdn.com/chainloop/EeWVZM7Oh1YhM4mI/changelog/product-versions.png?fit=max\&auto=format\&n=EeWVZM7Oh1YhM4mI\&q=85\&s=b031574b32e08e6000e5b6aa0699d533) **August 8, 2025** * Add contextual help links in UI pointing to documentation and RBAC guide **July 18, 2025** * Ensure at least one Org Owner is present in the organization before leaving Refer to [this collection of blog posts](https://chainloop.dev/blog-categories/changelog) for additional historical changes. # CLI Installation Source: https://docs.chainloop.dev/cli/installation You can install the Chainloop CLI using one of the following methods: > [tab] Chainloop SaaS > > The install script comes pre-configured for Chainloop Cloud. > > ```bash theme={"dark"} > curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s > ``` > > > [accordion] Advanced Options > > > > you can install a specific version with > > > > ```bash theme={"dark"} > > curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s -- --version vx.x.x > > ``` > > > > and customize the install path (defaults to /usr/local/bin) > > > > ```bash theme={"dark"} > > curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s -- --path /my-path > > ``` > > > > To install without sudo, provide a user-accessible path: > > > > ```bash theme={"dark"} > > curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s -- --path ~/.local/bin > > ``` > > > > if [cosign](https://docs.sigstore.dev/quickstart/quickstart-cosign/) is present in your system, in addition to the checksum check, a signature verification will be performed. This behavior can be enforced via the --force-verification flag. > > > > ```bash theme={"dark"} > > curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s -- --force-verification > > ``` > > > > To install the open-source edition instead: > > > > ```bash theme={"dark"} > > curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s -- --oss > > ``` > [tab] On-Prem > > Two things have to be true before the CLI can talk to your instance: the binary is installed, and it points at your instance's endpoints. Installing from your own instance's domain does both in a single command. > > **1. Download and configure the CLI** > > Install from your own instance's domain and the CLI is automatically configured to talk to it — there is nothing else to set up. Copy the exact command from the Chainloop web UI — click the terminal (`>_`) icon in the top-right corner — or replace `YOUR_INSTANCE_DOMAIN` below with your own. > > ```bash theme={"dark"} > curl -sfL https://YOUR_INSTANCE_DOMAIN/cli/install.sh | bash -s > ``` > > ![Terminal icon in the top-right corner of the Chainloop web UI that opens the CLI installation dialog](https://mintcdn.com/chainloop/JFPirGFumFqtajI8/img/setup-cli-install.png?fit=max\&auto=format\&n=JFPirGFumFqtajI8\&q=85\&s=efda7dc904d93986d5d73b3c556c4ced) > > > [accordion] Advanced Options > > > > you can install a specific version with > > > > ```bash theme={"dark"} > > curl -sfL https://YOUR_INSTANCE_DOMAIN/cli/install.sh | bash -s -- --version vx.x.x > > ``` > > > > and customize the install path (defaults to /usr/local/bin) > > > > ```bash theme={"dark"} > > curl -sfL https://YOUR_INSTANCE_DOMAIN/cli/install.sh | bash -s -- --path /my-path > > ``` > > > > To install without sudo, provide a user-accessible path: > > > > ```bash theme={"dark"} > > curl -sfL https://YOUR_INSTANCE_DOMAIN/cli/install.sh | bash -s -- --path ~/.local/bin > > ``` > > > > if [cosign](https://docs.sigstore.dev/quickstart/quickstart-cosign/) is present in your system, in addition to the checksum check, a signature verification will be performed. This behavior can be enforced via the --force-verification flag. > > > > ```bash theme={"dark"} > > curl -sfL https://YOUR_INSTANCE_DOMAIN/cli/install.sh | bash -s -- --force-verification > > ``` > > > > To install the open-source edition instead: > > > > ```bash theme={"dark"} > > curl -sfL https://YOUR_INSTANCE_DOMAIN/cli/install.sh | bash -s -- --oss > > ``` > > **2. Point the CLI at your instance — only if you installed it another way** > > Skip this if you used the command above. Run it when the CLI came from somewhere else — `dl.chainloop.dev`, a package manager, or a **Manual Download** — or when you want to switch an existing install to a different instance. > > ```bash theme={"dark"} > chainloop config save \ > --control-plane my-controlplane.acme.com:443 \ > --artifact-cas cas.acme.com:443 \ > --platform my-platform.acme.com:443 > ``` > > Confirm which instance the CLI is talking to with `chainloop config view`. > [tab] Manual Download > > Download the CLI binary directly and verify its SHA256 against the published `checksums.txt`. Use this when piping a script into `bash` is not an option, or when binaries need to be validated out-of-band. > > > [accordion] v1.151.0 > > > > | OS | Architecture | Download | SHA256 | > > | - | - | - | - | > > | Linux | Intel (amd64) | [chainloop-linux-amd64](https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/v1.151.0/chainloop-linux-amd64) | `444f1d8d5fd0b127b5ded1ee3d8cd2c6284bccb31715e1bf67cb998a3dfcc6ee` | > > | Linux | ARM64 | [chainloop-linux-arm64](https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/v1.151.0/chainloop-linux-arm64) | `281187a1f86e0cf0fa420b137f6ec8f776fc641b417fe4cb7fd61ed5716e2b9d` | > > | macOS | Intel (amd64) | [chainloop-darwin-amd64](https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/v1.151.0/chainloop-darwin-amd64) | `5913f4551d31e2d273e3fd54cb7a77754013579c326b9651993b8ce18905cb4f` | > > | macOS | Apple Silicon | [chainloop-darwin-arm64](https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/v1.151.0/chainloop-darwin-arm64) | `aff54a4f2af7abfd5fd95795dd6138621c27bc8b3e774a576e0933f50c220f32` | > > | Windows | Intel (amd64) | [chainloop-windows-amd64.exe](https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/v1.151.0/chainloop-windows-amd64.exe) | `00a77b669dff1d289dd7f3ae311a72358bc83c4ad88459b3278b7a604cf4388c` | > > | Windows | ARM64 | [chainloop-windows-arm64.exe](https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/v1.151.0/chainloop-windows-arm64.exe) | `c3f8f11d46cf341bc38050331463bf28bcfbf4b2eabf3251479d2c1edf6a72ac` | > > > > Full manifest: [`checksums.txt`](https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/v1.151.0/checksums.txt) · [signature bundle](https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/v1.151.0/checksums.txt.sigstore.json) · [Release notes](/changelog) > > > > Download, verify, and install (linux/amd64 shown — swap `chainloop-linux-amd64` for another row from the table above): > > > > ```bash theme={"dark"} > > VERSION=v1.151.0 > > BASE=https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/$VERSION > > > > # Download the linux/amd64 binary and the checksum manifest > > curl -fsSLO "$BASE/chainloop-linux-amd64" > > curl -fsSLO "$BASE/checksums.txt" > > > > # Download the signature bundle and confirm the manifest itself came from Chainloop's release pipeline > > curl -fsSLO "$BASE/checksums.txt.sigstore.json" > > cosign verify-blob \ > > --bundle=checksums.txt.sigstore.json \ > > --certificate-oidc-issuer="https://token.actions.githubusercontent.com" \ > > --certificate-identity-regexp="^https://github.com/chainloop-dev/platform/\.github/workflows/release_backend\.yml@" \ > > checksums.txt > > > > # Verify the binary against the manifest > > sha256sum --ignore-missing -c checksums.txt > > # on macOS: shasum -a 256 --ignore-missing -c checksums.txt > > > > # Install it onto your PATH > > chmod +x chainloop-linux-amd64 > > sudo mv chainloop-linux-amd64 /usr/local/bin/chainloop > > ``` > > Unlike the install script, a manually downloaded binary isn't automatically configured for your instance. If you're on an **on-prem or dedicated instance**, point the CLI at your instance's endpoints (Chainloop SaaS users can skip this): > > ```bash theme={"dark"} > chainloop config save \ > --control-plane my-controlplane.acme.com:443 \ > --artifact-cas cas.acme.com:443 \ > --platform my-platform.acme.com:443 > ``` # CLI Reference Source: https://docs.chainloop.dev/cli/reference This reference documents every command in the Chainloop CLI — both the core open-source commands and the extensions that come with the Enterprise Edition. The Enterprise Edition adds platform-specific functionality on top of the open-source CLI while remaining fully compatible with the core commands. For installation instructions, see the [CLI Installation Guide](/cli/installation). ## chainloop apply Apply compliance resources from YAML files Synopsis Apply compliance resources from a YAML file or directory. Supports multi-document YAML files with mixed resource kinds. ``` chainloop apply [flags] ``` Examples ``` Apply resources from a single file chainloop apply -f my-framework.yaml Preview what would change without applying chainloop apply -f my-framework.yaml --dry-run Apply resources from a directory chainloop apply -f ./compliance/ Output as JSON for CI/CD consumption chainloop apply -f ./compliance/ --dry-run -o json Validate a batch offline (no server needed) chainloop apply -f ./compliance/ --dry-run --offline Apply a repo root, skipping non-resource YAML (e.g. GitHub Actions) chainloop apply -f ./ --exclude '.github/**' ``` Options ``` --dry-run[=true|false] preview changes without applying them --exclude stringArray glob pattern(s) of files/dirs to skip (repeatable); a .chainloopignore file in the directory is also honored -f, --file string path to a YAML file or directory -h, --help[=true|false] help for apply --offline[=true|false] validate cross-references against batch contents only, without querying the server (requires --dry-run) ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ## chainloop artifact Download or upload Artifacts to the CAS Options ``` -h, --help[=true|false] help for artifact ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop artifact download download an artifact ``` chainloop artifact download [flags] ``` Options ``` -d, --digest string digest of the file to download -h, --help[=true|false] help for download --output file The file to write a single asset to (use "-" to write to standard output --path string download path, default to current directory ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop artifact help Help about any command Synopsis Help provides help for any command in the application. Simply type artifact help \[path to command] for full details. ``` chainloop artifact help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop artifact upload upload an artifact ``` chainloop artifact upload [flags] ``` Options ``` -f, --file string path to file to upload -h, --help[=true|false] help for upload ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ## chainloop attestation Craft Software Supply Chain Attestations Examples ``` Refer to https://docs.chainloop.dev/getting-started/attestation-crafting ``` Options ``` --graceful-exit[=true|false] exit 0 in case of error. NOTE: this flag will be removed once Chainloop reaches 1.0 -h, --help[=true|false] help for attestation --local-state-path string path to store the attestation state locally, default: [tmpDir]/chainloop_attestation.tmp.json ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop attestation add add a material to the attestation ``` chainloop attestation add [flags] ``` Examples ``` Add a material to the attestation that is defined in the contract chainloop attestation add --name --value Add a material to the attestation that is not defined in the contract but you know the kind chainloop attestation add --kind --value Add a material to the attestation without specifying neither kind nor name enables automatic detection chainloop attestation add --value Add a material by also providing a URL pointing to the material. It will be downloaded to a temporary folder first chainloop attestation add --value https://example.com/sbom.json Feed a policy input from a column of a CSV/JSON file (e.g. the ignored_paths exclusion list for the sigcheck binary-signing policies). The :column suffix selects the column; it defaults to the input name when omitted. The file is also recorded as EVIDENCE. chainloop attestation add --name sigcheck --value sigcheckResult.csv --kind SYSINTERNALS_SIGCHECK \ --policy-input-from-file ignored_paths=exception.csv:Path Scope an input to a specific policy with a : prefix so it only applies to that policy attachment. chainloop attestation add --name sigcheck --value sigcheckResult.csv --kind SYSINTERNALS_SIGCHECK \ --policy-input-from-file trusted-binaries-signed:ignored_paths=exception.csv:Path \ --policy-input-from-file trusted-binaries-vendor-keys:third_party_paths=exception.csv:Path Override a scalar policy input for a single run with an inline literal value. Unlike --policy-input-from-file (which appends), --policy-input REPLACES the contract-declared value, so a scalar input stays a scalar. chainloop attestation add --name fuzz --value report.txt --kind RADAMSA_REPORT \ --policy-input radamsa-min-iterations:min_iterations=10 ``` Options ``` --annotation strings additional annotation in the format of key=value --append[=true|false] reserved for a future release: will control whether --policy-input and --policy-input-from-file append to (rather than replace) the contract-declared value; has no effect yet --attestation-id string Unique identifier of the in-progress attestation -h, --help[=true|false] help for add --kind string kind of the material to be recorded: ["ARTIFACT" "ASYNCAPI_SPEC" "ATTESTATION" "BLACKDUCK_SCA_JSON" "CERTCC_DRANZER" "CHAINLOOP_AI_AGENT_CONFIG" "CHAINLOOP_AI_CODING_SESSION" "CHAINLOOP_AI_SECURITY_CONTEXT" "CHAINLOOP_PR_INFO" "CHAINLOOP_RUNNER_CONTEXT" "CHECKMARX_JSON" "COBERTURA_XML" "CONTAINER_IMAGE" "CSAF_INFORMATIONAL_ADVISORY" "CSAF_SECURITY_ADVISORY" "CSAF_SECURITY_INCIDENT_RESPONSE" "CSAF_VEX" "EVIDENCE" "GHAS_CODE_SCAN" "GHAS_DEPENDENCY_SCAN" "GHAS_SECRET_SCAN" "GITLAB_SECURITY_REPORT" "GITLEAKS_JSON" "GRAPHQL_SPEC" "HELM_CHART" "JACOCO_XML" "JUNIT_XML" "MSBUILD_LOG" "OPENAPI_SPEC" "OPENVEX" "OSSF_SCORECARD_JSON" "OVERSECURED_JSON" "PITEST_XML" "RADAMSA_CRASHES" "RADAMSA_REPORT" "SARIF" "SBOM_CYCLONEDX_JSON" "SBOM_SPDX_JSON" "SLSA_PROVENANCE" "STRING" "SYSINTERNALS_ACCESSCHK" "SYSINTERNALS_SIGCHECK" "TRUFFLEHOG_JSON" "TWISTCLI_SCAN_JSON" "YELP_DETECT_SECRETS_BASELINE" "ZAP_DAST_ZIP"] --max-extract-entries int max number of files to extract when --value is an archive (default 10000) --max-extract-size string max total uncompressed size to extract when --value is an archive (default "1GiB") --name string name of the material as shown in the contract --no-strict-validation[=true|false] skip strict schema validation for structured materials (SBOM_CYCLONEDX_JSON, OPENAPI_SPEC, ASYNCAPI_SPEC, OSSF_SCORECARD_JSON) --policy-input stringArray set a policy input to a literal value that REPLACES (overrides) any contract-declared value for the input, in the format [:]= (e.g. min_iterations=10); use this to override a scalar input at run time; an optional : prefix scopes it to a single policy (matched by name or ref), otherwise it applies to every declaring policy; repeatable. --policy-input-from-file stringArray feed a policy input from a column of a CSV or JSON file, in the format [:]=[:] (e.g. ignored_paths=exception.csv:Path); the values are APPENDED to any contract-declared value; an optional : prefix scopes the input to a single policy (matched by name or ref), otherwise it applies to every declaring policy; is a single top-level column/field name and defaults to the input name; repeatable. The file is also recorded as EVIDENCE. --registry-password string registry password, ($CHAINLOOP_REGISTRY_PASSWORD) --registry-server string OCI repository server, ($CHAINLOOP_REGISTRY_SERVER) --registry-username string registry username, ($CHAINLOOP_REGISTRY_USERNAME) --skip-secret-redaction[=true|false] store evidence exactly as captured, without redacting detected secrets first (CHAINLOOP_AI_CODING_SESSION). Recorded in the attestation so policies can reject it --value string value to be recorded ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode --graceful-exit[=true|false] exit 0 in case of error. NOTE: this flag will be removed once Chainloop reaches 1.0 -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --local-state-path string path to store the attestation state locally, default: [tmpDir]/chainloop_attestation.tmp.json --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop attestation help Help about any command Synopsis Help provides help for any command in the application. Simply type attestation help \[path to command] for full details. ``` chainloop attestation help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode --graceful-exit[=true|false] exit 0 in case of error. NOTE: this flag will be removed once Chainloop reaches 1.0 -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --local-state-path string path to store the attestation state locally, default: [tmpDir]/chainloop_attestation.tmp.json --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop attestation init start attestation crafting process ``` chainloop attestation init [flags] ``` Options ``` --collectors strings comma-separated list of additional collectors to enable (e.g. aiconfig) --contract string name of an existing contract or the path/URL to a contract file, to attach it to the auto-created workflow (it doesn't update an existing one) --contract-revision int revision of the contract to retrieve, "latest" by default --dry-run[=true|false] do not record attestation in the control plane, useful for development --existing-version[=true|false] return an error if the version doesn't exist in the project -h, --help[=true|false] help for init --latest-version[=true|false] use the latest existing project version instead of specifying one --mark-latest[=true|false] explicitly mark the project version as latest (default: automatic for new versions; use =false to skip promotion) (default true) --pr[=true|false] mark this attestation as a pull/merge request build (sets the chainloop.dev/is-pull-request annotation; auto-detected from CI env if not set) --project string name of the project of this workflow --release[=true|false] promote the provided version as a release --remote-state[=true|false] Store the attestation state remotely -f, --replace[=true|false] replace any existing in-progress attestation --version string project version, i.e 0.1.0 --workflow string name of the workflow to run the attestation ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode --graceful-exit[=true|false] exit 0 in case of error. NOTE: this flag will be removed once Chainloop reaches 1.0 -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --local-state-path string path to store the attestation state locally, default: [tmpDir]/chainloop_attestation.tmp.json --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop attestation push generate and push the attestation to the control plane ``` chainloop attestation push [flags] ``` Examples ``` chainloop attestation push --key | --token [chainloop-token] --annotation key=value,key2=val2 sign the resulting attestation using a cosign key present in the filesystem and stdin for the passphrase NOTE that the --token flag can be replaced by having the CHAINLOOP_TOKEN env variable chainloop attestation push --key cosign.key --token [chainloop-token] or retrieve the key from an environment variable containing the private key chainloop attestation push --key env://[ENV_VAR] The passphrase can be retrieved from a well-known environment variable export CHAINLOOP_SIGNING_PASSWORD="my cosign key passphrase" chainloop attestation push --key cosign.key You can provide values for the annotations that have previously defined in the contract for example chainloop attestation push --annotation key=value --annotation key2=value2 Or alternatively chainloop attestation push --annotation key=value,key2=value2 ``` Options ``` --annotation strings additional annotation in the format of key=value --attestation-id string Unique identifier of the in-progress attestation --bundle string output a Sigstore bundle to the provided path --deactivate-ci-report[=true|false] deactivate automatic attestation report to CI/CD platform --exception-bypass-policy-check[=true|false] do not fail this command on policy violations enforcement -h, --help[=true|false] help for push -k, --key string reference (path or env variable name) to the cosign or KMS key that will be used to sign the attestation --signserver-ca-path string custom CA to be used for SignServer TLS connection --signserver-client-cert string path to client certificate in PEM format for authenticated SignServer TLS connection --signserver-client-pass string certificate passphrase for authenticated SignServer TLS connection ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode --graceful-exit[=true|false] exit 0 in case of error. NOTE: this flag will be removed once Chainloop reaches 1.0 -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --local-state-path string path to store the attestation state locally, default: [tmpDir]/chainloop_attestation.tmp.json --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop attestation reset mark current attestation process as canceled or failed ``` chainloop attestation reset [flags] ``` Options ``` --attestation-id string Unique identifier of the in-progress attestation -h, --help[=true|false] help for reset --reason string reset reason --trigger string trigger for the reset, valid options are "failure" and "cancellation" (default "failure") ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode --graceful-exit[=true|false] exit 0 in case of error. NOTE: this flag will be removed once Chainloop reaches 1.0 -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --local-state-path string path to store the attestation state locally, default: [tmpDir]/chainloop_attestation.tmp.json --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop attestation status check the status of the current attestation process ``` chainloop attestation status [flags] ``` Options ``` --attestation-id string Unique identifier of the in-progress attestation --full[=true|false] full report including current recorded values -h, --help[=true|false] help for status ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode --graceful-exit[=true|false] exit 0 in case of error. NOTE: this flag will be removed once Chainloop reaches 1.0 -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --local-state-path string path to store the attestation state locally, default: [tmpDir]/chainloop_attestation.tmp.json --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop attestation verify verify an attestation Synopsis Verify an attestation by validating its validation material against the configured trusted root ``` chainloop attestation verify file-or-url ``` Examples ``` verify local attestation chainloop attestation verify --bundle attestation.json verify an attestation stored in an https endpoint chainloop attestation verify -b https://myrepository/attestation.json ``` Options ``` -b, --bundle string bundle path or URL -h, --help[=true|false] help for verify ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode --graceful-exit[=true|false] exit 0 in case of error. NOTE: this flag will be removed once Chainloop reaches 1.0 -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --local-state-path string path to store the attestation state locally, default: [tmpDir]/chainloop_attestation.tmp.json --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ## chainloop auth Authenticate with the Control Plane Options ``` -h, --help[=true|false] help for auth ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop auth delete-account delete your account ``` chainloop auth delete-account [flags] ``` Options ``` -h, --help[=true|false] help for delete-account ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop auth help Help about any command Synopsis Help provides help for any command in the application. Simply type auth help \[path to command] for full details. ``` chainloop auth help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop auth login authenticate the CLI with the Control Plane ``` chainloop auth login [flags] ``` Options ``` -h, --help[=true|false] help for login --skip-browser[=true|false] perform a headless login process without opening a browser ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ## chainloop cas-backend Operations on Artifact CAS backends Options ``` -h, --help[=true|false] help for cas-backend ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop cas-backend add Add a new Artifact CAS backend Options ``` --default[=true|false] set the backend as default in your organization --description string descriptive information for this registration --fallback[=true|false] set the backend as fallback in your organization -h, --help[=true|false] help for add --max-bytes string Maximum size for each blob stored in this backend (e.g., 100MB, 1GB) --name string CAS backend name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop cas-backend add aws-s3 Register a AWS S3 storage bucket ``` chainloop cas-backend add aws-s3 [flags] ``` Options ``` --access-key-id string AWS Access Key ID --bucket string S3 bucket name --endpoint string Custom Endpoint URL for other S3 compatible backends i.e MinIO -h, --help[=true|false] help for aws-s3 --region string AWS region for the bucket --secret-access-key string AWS Secret Access Key ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode --default[=true|false] set the backend as default in your organization --description string descriptive information for this registration --fallback[=true|false] set the backend as fallback in your organization -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-bytes string Maximum size for each blob stored in this backend (e.g., 100MB, 1GB) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) --name string CAS backend name -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop cas-backend add azure-blob Register a Azure Blob Storage CAS Backend ``` chainloop cas-backend add azure-blob [flags] ``` Options ``` --client-id string Service Principal Client ID --client-secret string Service Principal Client Secret --container string Storage Container Name (default "chainloop") --endpoint string Custom Azure Blob endpoint suffix (e.g., blob.core.usgovcloudapi.net), if not provided, the public Azure cloud endpoint will be used. -h, --help[=true|false] help for azure-blob --storage-account string Storage Account Name --tenant string Active Directory Tenant ID ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode --default[=true|false] set the backend as default in your organization --description string descriptive information for this registration --fallback[=true|false] set the backend as fallback in your organization -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-bytes string Maximum size for each blob stored in this backend (e.g., 100MB, 1GB) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) --name string CAS backend name -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop cas-backend add help Help about any command Synopsis Help provides help for any command in the application. Simply type add help \[path to command] for full details. ``` chainloop cas-backend add help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode --default[=true|false] set the backend as default in your organization --description string descriptive information for this registration --fallback[=true|false] set the backend as fallback in your organization -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-bytes string Maximum size for each blob stored in this backend (e.g., 100MB, 1GB) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) --name string CAS backend name -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop cas-backend add oci Register a OCI CAS Backend ``` chainloop cas-backend add oci [flags] ``` Options ``` -h, --help[=true|false] help for oci -p, --password string registry password --repo string FQDN repository name, including path -u, --username string registry username ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode --default[=true|false] set the backend as default in your organization --description string descriptive information for this registration --fallback[=true|false] set the backend as fallback in your organization -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-bytes string Maximum size for each blob stored in this backend (e.g., 100MB, 1GB) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) --name string CAS backend name -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop cas-backend delete Delete a CAS Backend from your organization ``` chainloop cas-backend delete [flags] ``` Options ``` -h, --help[=true|false] help for delete --name string CAS Backend name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop cas-backend help Help about any command Synopsis Help provides help for any command in the application. Simply type cas-backend help \[path to command] for full details. ``` chainloop cas-backend help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop cas-backend list List CAS Backends from your organization ``` chainloop cas-backend list [flags] ``` Options ``` --full[=true|false] show the full output -h, --help[=true|false] help for list ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop cas-backend update Update a CAS backend description, credentials, default status, fallback status, or max bytes Options ``` --default[=true|false] set the backend as default in your organization --description string descriptive information for this registration --fallback[=true|false] set the backend as fallback in your organization -h, --help[=true|false] help for update --max-bytes string Maximum size for each blob stored in this backend (e.g., 100MB, 1GB). Note: not supported for inline backends. --name string CAS backend name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop cas-backend update aws-s3 Update a AWS S3 CAS Backend description, credentials, default status, or max bytes ``` chainloop cas-backend update aws-s3 [flags] ``` Options ``` --access-key-id string AWS Access Key ID -h, --help[=true|false] help for aws-s3 --name string CAS Backend name --region string AWS region for the bucket --secret-access-key string AWS Secret Access Key ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode --default[=true|false] set the backend as default in your organization --description string descriptive information for this registration --fallback[=true|false] set the backend as fallback in your organization -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-bytes string Maximum size for each blob stored in this backend (e.g., 100MB, 1GB). Note: not supported for inline backends. --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop cas-backend update azure-blob Update a AzureBlob CAS Backend description, credentials, default status, or max bytes ``` chainloop cas-backend update azure-blob [flags] ``` Options ``` --client-id string Service Principal Client ID --client-secret string Service Principal Client Secret -h, --help[=true|false] help for azure-blob --name string CAS Backend name --tenant string Active Directory Tenant ID ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode --default[=true|false] set the backend as default in your organization --description string descriptive information for this registration --fallback[=true|false] set the backend as fallback in your organization -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-bytes string Maximum size for each blob stored in this backend (e.g., 100MB, 1GB). Note: not supported for inline backends. --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop cas-backend update help Help about any command Synopsis Help provides help for any command in the application. Simply type update help \[path to command] for full details. ``` chainloop cas-backend update help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode --default[=true|false] set the backend as default in your organization --description string descriptive information for this registration --fallback[=true|false] set the backend as fallback in your organization -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-bytes string Maximum size for each blob stored in this backend (e.g., 100MB, 1GB). Note: not supported for inline backends. --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) --name string CAS backend name -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop cas-backend update inline Update the Inline CAS Backend description, default status, or fallback status ``` chainloop cas-backend update inline [flags] ``` Options ``` -h, --help[=true|false] help for inline --name string CAS Backend name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode --default[=true|false] set the backend as default in your organization --description string descriptive information for this registration --fallback[=true|false] set the backend as fallback in your organization -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-bytes string Maximum size for each blob stored in this backend (e.g., 100MB, 1GB). Note: not supported for inline backends. --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop cas-backend update oci Update a OCI CAS Backend description, credentials, default status, or max bytes ``` chainloop cas-backend update oci [flags] ``` Options ``` -h, --help[=true|false] help for oci --name string CAS Backend name -p, --password string registry password -u, --username string registry username ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode --default[=true|false] set the backend as default in your organization --description string descriptive information for this registration --fallback[=true|false] set the backend as fallback in your organization -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-bytes string Maximum size for each blob stored in this backend (e.g., 100MB, 1GB). Note: not supported for inline backends. --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ## chainloop config Configure this client Options ``` -h, --help[=true|false] help for config ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop config help Help about any command Synopsis Help provides help for any command in the application. Simply type config help \[path to command] for full details. ``` chainloop config help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop config reset Reset the CLI configuration ``` chainloop config reset [flags] ``` Options ``` -h, --help[=true|false] help for reset ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop config save Persist the current settings to the config file ``` chainloop config save [flags] ``` Examples ``` chainloop config save --control-plane localhost:1234 --artifact-cas localhost:1235 ``` Options ``` -h, --help[=true|false] help for save ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop config view View the current CLI configuration ``` chainloop config view [flags] ``` Options ``` -h, --help[=true|false] help for view ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ## chainloop deployment (Preview) Deployment record operations Options ``` -h, --help[=true|false] help for deployment ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop deployment help Help about any command Synopsis Help provides help for any command in the application. Simply type deployment help \[path to command] for full details. ``` chainloop deployment help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop deployment list List deployment records ``` chainloop deployment list [flags] ``` Examples ``` List deployment records (shows latest per slot by default) chainloop deployment list Filter by environment chainloop deployment list --env prod-k8s Filter by project and version chainloop deployment list --project my-project --project-version v1.0.0 Filter by status chainloop deployment list --status deployed Show full history for a specific slot chainloop deployment list --env prod-k8s --name myapp-web --history Show full history for all slots chainloop deployment list --history ``` Options ``` --env string filter by environment name -h, --help[=true|false] help for list --history[=true|false] show full history instead of only the latest record per slot --limit int32 number of items per page (default 50) --logical-env string filter by logical environment name --name string filter by deployment name (slot identifier) --page int32 page number (starts at 1) (default 1) --project string filter by project name --project-version string filter by project version (requires --project) --status string filter by deployment status (deployed, decommissioned, superseded) ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop deployment record Record a deployment ``` chainloop deployment record [flags] ``` Examples ``` Record a container image deployment using an OCI reference (resolves digest automatically) chainloop deployment record --env prod-k8s --oci-ref ghcr.io/chainloop-dev/platform/backend:v1.31.0 --kind CONTAINER_IMAGE --status deployed --deployment-name backend --logical-env production Record using a pre-computed digest (no image reference needed) chainloop deployment record --env prod-k8s --digest sha256:abc123 --kind CONTAINER_IMAGE --status deployed --deployment-name myapp-web --logical-env staging Record with explicit registry credentials chainloop deployment record --env prod-k8s --oci-ref private.registry.io/myapp:latest --kind CONTAINER_IMAGE --status deployed --deployment-name myapp --logical-env production --registry-server private.registry.io --registry-username user --registry-password pass ``` Options ``` --deployment-name string stable slot identifier within an environment --digest string artifact digest (mutually exclusive with --oci-ref) --env string environment name -h, --help[=true|false] help for record --kind string artifact kind (CONTAINER_IMAGE, HELM_CHART) --logical-env string logical environment name (e.g. staging, production) --oci-ref string OCI image reference to resolve digest from (e.g. ghcr.io/org/repo:tag) --registry-password string registry password ($CHAINLOOP_REGISTRY_PASSWORD) --registry-server string OCI registry server ($CHAINLOOP_REGISTRY_SERVER) --registry-username string registry username ($CHAINLOOP_REGISTRY_USERNAME) --status string deployment status (deployed, decommissioned, superseded) ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ## chainloop discover (Preview) inspect pieces of evidence or artifacts stored through Chainloop Synopsis (Preview) inspect pieces of evidence or artifacts stored through Chainloop. The discovery covers only the current organization. Select another organization with --org. ``` chainloop discover [flags] ``` Options ``` -d, --digest string hash of the attestation, piece of evidence or artifact, i.e sha256:deadbeef -h, --help[=true|false] help for discover -k, --kind string optional kind of the referrer, used to disambiguate between multiple referrers with the same digest --limit int number of items to show (default 20) --next string cursor to load the next page ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ## chainloop environment (Preview) Manage environments Options ``` -h, --help[=true|false] help for environment ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop environment create Create a new environment ``` chainloop environment create [flags] ``` Examples ``` Create a Kubernetes environment chainloop environment create --name prod-k8s --type kubernetes Create an environment with description chainloop environment create --name staging-ecs --type ecs --description "Staging ECS cluster" ``` Options ``` --description string environment description -h, --help[=true|false] help for create --name string environment name (DNS-1123 format: lowercase, numbers, hyphens) --type string environment type (kubernetes, ecs, server, lambda, custom) ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop environment delete Delete an environment ``` chainloop environment delete [flags] ``` Examples ``` Delete an environment (with confirmation prompt) chainloop environment delete --name prod-k8s Delete without confirmation chainloop environment delete --name prod-k8s --yes ``` Options ``` -h, --help[=true|false] help for delete --name string environment name -y, --yes[=true|false] skip confirmation prompt ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN ``` ### chainloop environment describe Describe an environment ``` chainloop environment describe [flags] ``` Examples ``` Describe an environment by name chainloop environment describe --name prod-k8s ``` Options ``` -h, --help[=true|false] help for describe --name string environment name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop environment help Help about any command Synopsis Help provides help for any command in the application. Simply type environment help \[path to command] for full details. ``` chainloop environment help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop environment list List environments ``` chainloop environment list [flags] ``` Examples ``` List all environments chainloop environment list Filter by query chainloop environment list --query prod ``` Options ``` -h, --help[=true|false] help for list --limit int32 number of items per page (default 50) --page int32 page number (starts at 1) (default 1) --query string search across name and description ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop environment logical Logical environment operations Options ``` -h, --help[=true|false] help for logical ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop environment logical create Create a logical environment ``` chainloop environment logical create [flags] ``` Examples ``` Create a logical environment chainloop environment logical create --name QA --description "Quality assurance environments" ``` Options ``` --description string logical environment description -h, --help[=true|false] help for create --name string logical environment name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop environment logical delete Delete a logical environment ``` chainloop environment logical delete [flags] ``` Examples ``` Delete a logical environment (with confirmation prompt) chainloop environment logical delete --name QA Delete without confirmation chainloop environment logical delete --name QA --yes ``` Options ``` -h, --help[=true|false] help for delete --name string logical environment name -y, --yes[=true|false] skip confirmation prompt ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN ``` #### chainloop environment logical describe Describe a logical environment ``` chainloop environment logical describe [flags] ``` Examples ``` Describe a logical environment by name chainloop environment logical describe --name Production ``` Options ``` -h, --help[=true|false] help for describe --name string logical environment name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop environment logical help Help about any command Synopsis Help provides help for any command in the application. Simply type logical help \[path to command] for full details. ``` chainloop environment logical help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop environment logical list List logical environments ``` chainloop environment logical list [flags] ``` Examples ``` List all logical environments chainloop environment logical list Search by query chainloop environment logical list --query prod ``` Options ``` -h, --help[=true|false] help for list --limit int32 number of items per page (default 50) --page int32 page number (starts at 1) (default 1) --query string search across name and description ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop environment logical update Update a logical environment ``` chainloop environment logical update [flags] ``` Examples ``` Update logical environment description chainloop environment logical update --name Production --description "Production deployment environments" ``` Options ``` --description string new description -h, --help[=true|false] help for update --name string logical environment name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop environment update Update an environment ``` chainloop environment update [flags] ``` Examples ``` Update environment description chainloop environment update --name prod-k8s --description "Production Kubernetes cluster" Change environment type chainloop environment update --name prod-k8s --type ecs ``` Options ``` --description string new description -h, --help[=true|false] help for update --name string environment name --type string new environment type (kubernetes, ecs, server, lambda, custom) ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ## chainloop evidence Manage evidence Synopsis Commands for interacting with pieces of evidence in your organization Options ``` -h, --help[=true|false] help for evidence ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop evidence help Help about any command Synopsis Help provides help for any command in the application. Simply type evidence help \[path to command] for full details. ``` chainloop evidence help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop evidence list List evidence Synopsis List the pieces of evidence registered in your organization ``` chainloop evidence list [flags] ``` Examples ``` List all evidence chainloop evidence list Filter by project chainloop evidence list --project myapp Filter by project version chainloop evidence list --project myapp --project-version v1.0.0 Filter by product chainloop evidence list --product-id --product-version-id Filter by kind (multiple) chainloop evidence list --kind SBOM_CYCLONEDX_JSON --kind SARIF Filter by the project's latest version chainloop evidence list --project myapp --project-version-latest Filter by annotation (repeatable, ANDed) chainloop evidence list --annotation environment=production --annotation team=platform Filter by creation date chainloop evidence list --created-after 2026-01-31 Search by name, subject, or digest chainloop evidence list --search sha256:abc123... Pagination chainloop evidence list --project myapp --limit 20 chainloop evidence list --project myapp --limit 20 --next MjAy... JSON output chainloop evidence list --project myapp --output json ``` Options ``` --annotation stringArray filter by annotation in key=value format (repeatable), matching both material and attestation annotations --created-after string only show evidence created after this date (YYYY-MM-DD or RFC3339) -h, --help[=true|false] help for list --hide-attestation[=true|false] exclude attestation evidence from results --kind strings evidence kind (repeatable, e.g., SBOM_CYCLONEDX_JSON, SARIF) --latest[=true|false] show only latest evidence (requires project or product filter) --limit int32 number of items to show (1-200) (default 50) --next string cursor to load the next page --product-id string product ID (requires --product-version-id) --product-version-id string product version ID (requires --product-id) --project string project name --project-version string project version name (requires --project) --project-version-latest[=true|false] show only evidence from the project's latest version (requires --project) --search string search by evidence name, subject name, or digest --workflow strings workflow name (repeatable) ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ## chainloop finding (Preview) Inspect security findings and their assessments Options ``` -h, --help[=true|false] help for finding ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop finding assessment Manage VEX-aligned assessments for findings Options ``` -h, --help[=true|false] help for assessment ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop finding assessment create Create an assessment for a finding Synopsis Create a VEX-aligned assessment for a vulnerability. The assessment scope is inferred from --project-version: omitting it scopes the assessment to the whole project, providing it scopes the assessment to that specific version. ``` chainloop finding assessment create [flags] ``` Examples ``` Mark a CVE as not-affected for a project, with a justification chainloop finding assessment create \ --external-id CVE-2024-1234 --project my-project \ --status not-affected --justification vulnerable-code-not-present \ --note "the affected function is never called" Scope an assessment to a specific version and restrict it to a package chainloop finding assessment create \ --external-id CVE-2024-1234 --project my-project --project-version v1.2.3 \ --status affected --product 'pkg:npm/lodash@*' ``` Options ``` --external-id string CVE/advisory ID (e.g. CVE-2024-1234) -h, --help[=true|false] help for create --justification string justification code, required when --status=not-affected (component-not-present, vulnerable-code-not-present, vulnerable-code-cannot-be-controlled, vulnerable-code-not-in-execute-path, inline-mitigations-already-exist) --note string free-text note --product stringArray PURL glob pattern identifying an affected product (repeatable, e.g. pkg:npm/lodash@*) --project string project name --project-version string scope the assessment to a specific project version --status string status (not-affected, affected, under-investigation, fixed) ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop finding assessment help Help about any command Synopsis Help provides help for any command in the application. Simply type assessment help \[path to command] for full details. ``` chainloop finding assessment help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop finding assessment list List assessments ``` chainloop finding assessment list [flags] ``` Examples ``` List all assessments chainloop finding assessment list List not-affected assessments for a project chainloop finding assessment list --project my-project --status not-affected List assessments linked to a specific finding chainloop finding assessment list --finding 0c2f1e9a-1b3c-4d5e-8f90-1234567890ab List assessments for a CVE chainloop finding assessment list --external-id CVE-2024-1234 ``` Options ``` --external-id string filter by external ID (e.g. CVE identifier) --finding string filter by finding ID -h, --help[=true|false] help for list --limit int32 number of items per page (default 50) --page int32 page number (starts at 1) (default 1) --project string filter by project name --project-version string filter by project version name (requires --project) --scope string filter by scope (project, project-version) --status strings filter by status, repeatable (not-affected, affected, under-investigation, fixed) ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop finding delete Delete a finding Synopsis Soft-delete a security finding. Deleted findings are excluded from list, describe, and summary results. If the same finding is detected again by a later ingestion, it is re-created as a new row. This is intended for purging findings ingested by mistake; to dismiss a real finding without deleting it, prefer `chainloop finding update --status rejected`. ``` chainloop finding delete [flags] ``` Examples ``` Delete a finding (with confirmation prompt) chainloop finding delete --id 0c2f1e9a-1b3c-4d5e-8f90-1234567890ab Delete without confirmation chainloop finding delete --id 0c2f1e9a-1b3c-4d5e-8f90-1234567890ab --yes ``` Options ``` -h, --help[=true|false] help for delete --id string finding ID -y, --yes[=true|false] skip confirmation prompt ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN ``` ### chainloop finding describe Describe a security finding and its linked reports ``` chainloop finding describe [flags] ``` Examples ``` Describe a finding by ID chainloop finding describe --id 0c2f1e9a-1b3c-4d5e-8f90-1234567890ab Include every linked report, its timestamp, and its fix flag in JSON chainloop findings describe --id 0c2f1e9a-1b3c-4d5e-8f90-1234567890ab -o json ``` Options ``` -h, --help[=true|false] help for describe --id string finding ID ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop finding help Help about any command Synopsis Help provides help for any command in the application. Simply type finding help \[path to command] for full details. ``` chainloop finding help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop finding list List security findings ``` chainloop finding list [flags] ``` Examples ``` List active findings (open and in-progress, the default) chainloop finding list List findings of every status, including resolved and rejected chainloop finding list --status all List critical and high findings for a project that are still open chainloop finding list --project my-project --severity critical --severity high --status open List unassessed, fixable findings in the CISA KEV catalog chainloop finding list --is-assessed=false --is-fixable --is-in-kev Search by CVE identifier chainloop finding list --search CVE-2024 Filter by package PURL, combined with a CVE search and a project chainloop finding list --search CVE-2026-45445 --project my-project --purl 'pkg:rpm/redhat/openssl@3.5.1-7.el9_7?arch=x86_64&distro=redhat-9.6&epoch=1' ``` Options ``` --has-conflicting-assessments[=true|false] filter by whether active assessments disagree on the finding -h, --help[=true|false] help for list --is-assessed[=true|false] filter by whether the finding has been assessed --is-fixable[=true|false] filter by whether the finding has a fix available --is-in-kev[=true|false] filter by whether the finding is in the CISA KEV catalog --limit int32 number of items per page (default 50) --needs-review[=true|false] filter by whether an active assessment awaits approval --page int32 page number (starts at 1) (default 1) --project string filter by project name --project-version string filter by project version name (requires --project) --purl string filter by affected package PURL substring (e.g. pkg:golang/github.com/gorilla/mux) --search string search by external ID substring (e.g. CVE identifier) --severity strings filter by severity (critical, high, medium, low, info, unknown) --sort-by string sort field (severity, last-seen-at, first-seen-at, created-at) --sort-direction string sort direction (asc, desc) --status strings filter by status (open, in-progress, resolved, rejected); pass 'all' to include every status (default [open,in-progress]) --type strings filter by finding type (vulnerability) ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop finding update Update a finding's lifecycle status Synopsis Transition a security finding's lifecycle status. This is a direct lifecycle mutation for triage workflows (e.g. dismissing a false positive, reopening an incorrectly auto-closed finding). When linked assessments exist, the assessment pipeline remains the system of record: a later assessment change will recompute the finding status and overwrite a manual transition. resolution_reason is only accepted when --status is resolved or rejected and is cleared otherwise. status_detail is optional and cleared when omitted. ``` chainloop finding update [flags] ``` Examples ``` Mark a finding as resolved because it was fixed chainloop finding update --id 0c2f1e9a-1b3c-4d5e-8f90-1234567890ab \ --status resolved --resolution-reason fixed Dismiss a finding as a false positive chainloop finding update --id 0c2f1e9a-1b3c-4d5e-8f90-1234567890ab \ --status rejected --resolution-reason false-positive Move a finding into in-progress with a triaged detail chainloop finding update --id 0c2f1e9a-1b3c-4d5e-8f90-1234567890ab \ --status in-progress --status-detail triaged Reopen a previously resolved finding chainloop finding update --id 0c2f1e9a-1b3c-4d5e-8f90-1234567890ab --status open ``` Options ``` -h, --help[=true|false] help for update --id string finding ID --resolution-reason string resolution reason, only with --status resolved|rejected (fixed, mitigated, false-positive, not-affected, risk-accepted, wont-fix, duplicate, out-of-scope) --status string new lifecycle status (open, in-progress, resolved, rejected) --status-detail string optional status detail (new, triaged, reopened, investigating, remediating, awaiting-verification, mixed-assessments) ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ## chainloop framework Manage compliance frameworks Options ``` -h, --help[=true|false] help for framework ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop framework delete Delete a framework ``` chainloop framework delete [flags] ``` Examples ``` Delete a framework (with confirmation prompt) chainloop framework delete --name my-framework Delete a framework without confirmation chainloop framework delete --name my-framework --yes ``` Options ``` -h, --help[=true|false] help for delete --name string framework name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop framework describe Describe a framework ``` chainloop framework describe [flags] ``` Examples ``` Describe a framework chainloop framework describe --name my-framework Download the framework schema chainloop framework describe --name my-framework --output schema ``` Options ``` -h, --help[=true|false] help for describe --name string framework name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop framework help Help about any command Synopsis Help provides help for any command in the application. Simply type framework help \[path to command] for full details. ``` chainloop framework help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop framework list List frameworks ``` chainloop framework list [flags] ``` Examples ``` List all frameworks chainloop framework list List frameworks with pagination chainloop framework list --page 2 --limit 10 ``` Options ``` -h, --help[=true|false] help for list --limit int32 number of items per page (default 50) --page int32 page number (starts at 1) (default 1) ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ## chainloop gather-runner-context Gather runner context data from a given provider Synopsis Gather runner context data from a given provider (GitHub or GitLab). This command retrieves repository configuration data including branch protection rules, rulesets, and contributor information from the specified provider. The command supports auto-detection of configuration from environment variables: * Provider: Auto-detected from GITHUB_TOKEN/GITHUB_REPOSITORY (GitHub) or GITLAB_TOKEN/CI_PROJECT_ID/CI_PROJECT_NAMESPACE (GitLab) * Organization: Auto-detected from GITHUB_REPOSITORY or CI_PROJECT_NAMESPACE * Repository: Auto-detected from GITHUB_REPOSITORY or CI_PROJECT_ID * Token: Auto-detected from GITHUB_TOKEN (GitHub) or GITLAB_TOKEN (GitLab) * Enterprise: Auto-detected from GITHUB_ENTERPRISE (GitHub only) ``` chainloop gather-runner-context [flags] ``` Examples ``` Using flags chainloop gather-runner-context --runner-provider github --runner-token --runner-org myorg --runner-repo myrepo Using environment variables (GitHub Actions) export GITHUB_TOKEN= export GITHUB_REPOSITORY=myorg/myrepo chainloop gather-runner-context Using environment variables (GitLab CI) export GITLAB_TOKEN= export CI_PROJECT_NAMESPACE=myorg export CI_PROJECT_ID=12345 chainloop gather-runner-context ``` Options ``` --branches string Comma-separated list of branch name patterns to fetch (e.g., main,dev*,feature/*). Supports fnmatch patterns where * matches any characters except /, ** matches across directories, ? matches single character, and [abc] matches character classes. If not specified, all branches are fetched. --fetch-contributors[=true|false] Fetch contributor information from the repository (contributors, members, and 2FA status) -h, --help[=true|false] help for gather-runner-context --insecure-skip-tls-verify[=true|false] Skip TLS certificate verification for API requests (useful for self-signed certificates) --max-tags int Maximum number of tags to include (most recent first). 0 means no limit. (default 15) --output-file string Output file path for the runner context data (JSON format) (default "runner-context.json") --runner-api-url string Provider API URL --runner-org string The owner of the repository (e.g., chainloop-dev). For GitLab, the output uses the namespace of the project. It uses this value only when the namespace is not available, for example when the project cannot be read --runner-provider string Provider name (e.g., github, gitlab) --runner-repo string The repository name for which the context data is gathered (e.g., chainloop). For GitLab, the project ID or the full project path. The output names the project by its full path --runner-token string Provider access token with read rights to the given repository --tags string Comma-separated list of tag name patterns to fetch (e.g., v*,release-*). Supports fnmatch patterns. If not specified, all tags are fetched. ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ## chainloop integration Third party integrations Options ``` -h, --help[=true|false] help for integration ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop integration attached Integrations attached to organization, products, projects or workflows Options ``` -h, --help[=true|false] help for attached ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop integration attached attach Attach a registered integration to an organization, product, project or workflow ``` chainloop integration attached attach [flags] ``` Examples ``` Attach Slack to a project; fire on findings and releases chainloop integration attached attach --registration slack-prod --project my-proj \ --trigger finding-created --trigger product-releases --opt channel=#alerts Attach an org-level AI provider chainloop integration attached attach --registration ai-anthropic --organization Attach to a single workflow within a project chainloop integration attached attach --registration jira-prod \ --project my-proj --workflow build-and-test --opt projectKey=ABC ``` Options ``` -h, --help[=true|false] help for attach --opt stringArray integration attachment arguments, repeated (key=value) --organization[=true|false] target the current organization --product string name of the product to target --project string name of the project to target (required together with --workflow) --registration string name of the registered integration to attach --registration-id string ID of the registered integration to attach (alternative to --registration) --trigger stringArray event that triggers this attachment, repeated. supported: assessment-revision-proposed, finding-created, product-compliance, product-releases, remediation-already-fixed, remediation-pr-created, system-events --workflow string name of the workflow to target (must be combined with --project) ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop integration attached describe Describe an attached integration by its ID ``` chainloop integration attached describe [flags] ``` Options ``` -h, --help[=true|false] help for describe --id string ID of the attachment to describe ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop integration attached detach Detach an integration from its target ``` chainloop integration attached detach [flags] ``` Examples ``` Detach with confirmation prompt chainloop integration attached detach --id Detach without confirmation chainloop integration attached detach --id --yes ``` Options ``` -h, --help[=true|false] help for detach --id string ID of the existing attachment -y, --yes[=true|false] skip confirmation prompt ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN ``` #### chainloop integration attached help Help about any command Synopsis Help provides help for any command in the application. Simply type attached help \[path to command] for full details. ``` chainloop integration attached help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop integration attached list List integrations attached to a target ``` chainloop integration attached list [flags] ``` Examples ``` chainloop integration attached list --organization chainloop integration attached list --product my-product chainloop integration attached list --project my-proj chainloop integration attached list --project my-proj --workflow build-and-test ``` Options ``` -h, --help[=true|false] help for list --organization[=true|false] target the current organization --product string name of the product to target --project string name of the project to target (required together with --workflow) --workflow string name of the workflow to target (must be combined with --project) ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop integration available Integrations available in the platform ready to be registered Options ``` -h, --help[=true|false] help for available ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop integration available describe Describe integration ``` chainloop integration available describe [flags] ``` Options ``` --full[=true|false] show the full output including JSON schemas -h, --help[=true|false] help for describe --name string integration name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop integration available help Help about any command Synopsis Help provides help for any command in the application. Simply type available help \[path to command] for full details. ``` chainloop integration available help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop integration available list List available integrations ``` chainloop integration available list [flags] ``` Options ``` -h, --help[=true|false] help for list ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop integration help Help about any command Synopsis Help provides help for any command in the application. Simply type integration help \[path to command] for full details. ``` chainloop integration help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop integration registered Integrations registered and configured in your Organization Options ``` -h, --help[=true|false] help for registered ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop integration registered add Register a new instance of an integration ``` chainloop integration registered add INTEGRATION_ID --name [registration-name] --options key=value,key=value [flags] ``` Examples ``` chainloop integration registered add dependencytrack --name send-to-prod --opt instance=https://deptrack.company.com,apiKey=1234567890 --opt username=chainloop ``` Options ``` --description string integration registration description -h, --help[=true|false] help for add --name string unique registration name, i.e my-registration, sboms-to-prod, etc. --opt stringArray integration arguments ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop integration registered delete De-register an integration ``` chainloop integration registered delete [flags] ``` Options ``` -h, --help[=true|false] help for delete --id string integration registration ID ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop integration registered help Help about any command Synopsis Help provides help for any command in the application. Simply type registered help \[path to command] for full details. ``` chainloop integration registered help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop integration registered list List registered integrations ``` chainloop integration registered list [flags] ``` Options ``` -h, --help[=true|false] help for list ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ## chainloop knowledge-base Manage the knowledge base of the organization Synopsis Manage the knowledge base of the organization. Each item of the knowledge base has a kind and a target. The kind tells what the item is, and the target is the entity that the item gives context to. Platform features, for example the AI assessment of manual evidence, read the items. Organization admins upload and delete items, and each member of the organization lists, describes, and downloads them. Options ``` -h, --help[=true|false] help for knowledge-base ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop knowledge-base delete Delete an item of the knowledge base Synopsis Delete an item of the knowledge base and the processed representations of its uploads. Platform features stop reading the item. Its files stay in the CAS. ``` chainloop knowledge-base delete [flags] ``` Examples ``` Delete an item (with confirmation prompt) chainloop knowledge-base delete --kind compliance --target-type framework --target my-framework --name iso-27001.pdf Delete an item without confirmation chainloop knowledge-base delete --kind compliance --target-type framework --target my-framework --name iso-27001.pdf --yes ``` Options ``` -h, --help[=true|false] help for delete --kind string kind of the item, one of: compliance --name string name of the item, which is the name of its file --target string name of the target, for example the name of a framework --target-type string type of the target, one of: framework ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop knowledge-base describe Describe an item of the knowledge base Synopsis Describe an item of the knowledge base: its uploads, and the processed representation of its last ready upload. ``` chainloop knowledge-base describe [flags] ``` Examples ``` Describe an item chainloop knowledge-base describe --kind compliance --target-type framework --target my-framework --name iso-27001.pdf ``` Options ``` -h, --help[=true|false] help for describe --kind string kind of the item, one of: compliance --name string name of the item, which is the name of its file --target string name of the target, for example the name of a framework --target-type string type of the target, one of: framework ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop knowledge-base download Download the file of an upload of the knowledge base Synopsis Download the file of an upload of the knowledge base by its digest, with the flags and the progress bar of "chainloop artifact download". Each member of the organization can download the files of its items. The describe command shows the digests. ``` chainloop knowledge-base download [flags] ``` Examples ``` Download a file to the current directory chainloop knowledge-base download -d sha256:1b4f0e9851971998e732078544c96b36c3d01cedf7caa332359d6f1d83567014 Write a file to the standard output chainloop knowledge-base download -d sha256:1b4f0e9851971998e732078544c96b36c3d01cedf7caa332359d6f1d83567014 --output - ``` Options ``` -d, --digest string digest of the file to download -h, --help[=true|false] help for download --output file The file to write a single asset to (use "-" to write to standard output) --path string download path, default to current directory ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop knowledge-base help Help about any command Synopsis Help provides help for any command in the application. Simply type knowledge-base help \[path to command] for full details. ``` chainloop knowledge-base help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop knowledge-base list List the items of the knowledge base ``` chainloop knowledge-base list [flags] ``` Examples ``` List all the items chainloop knowledge-base list List the compliance items of a framework chainloop knowledge-base list --kind compliance --target-type framework --target my-framework ``` Options ``` -h, --help[=true|false] help for list --kind string kind of the item, one of: compliance --limit int32 number of items per page (default 50) --page int32 page number (starts at 1) (default 1) --target string name of the target, for example the name of a framework --target-type string type of the target, one of: framework ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop knowledge-base upload Upload a file to the knowledge base Synopsis Upload a file to the knowledge base, as an item of a kind on a target. The file name is the name of the item. An upload with the file name of an existing item of the same kind and target is a new upload of that item. Features keep the last ready upload until the new upload is ready. The upload works like "chainloop artifact upload": the file goes to the CAS of the organization. The compliance kind accepts PDF, Markdown and plain text files. Markdown and plain text files have a limit of 3 MB. The upload needs a working AI connection of the organization. ``` chainloop knowledge-base upload [flags] ``` Examples ``` Upload the standard of an organization framework chainloop knowledge-base upload -f iso-27001.pdf --kind compliance --target-type framework --target my-framework ``` Options ``` -f, --file string path to the file to upload -h, --help[=true|false] help for upload --kind string kind of the item, one of: compliance --target string name of the target, for example the name of a framework --target-type string type of the target, one of: framework ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ## chainloop organization Organizations management Options ``` -h, --help[=true|false] help for organization ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop organization api-token API token management Synopsis Manage API tokens to authenticate with the Chainloop API or perform attestations. Options ``` -h, --help[=true|false] help for api-token ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop organization api-token create Create an API token ``` chainloop organization api-token create [flags] ``` Options ``` --description string API token description --expiration duration optional API token expiration, in hours i.e 1h, 24h, 178h (week), ... -h, --help[=true|false] help for create --name string token name --project string project name used to scope the token, if not set the token will be created at the organization level ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string output format, valid options are table, json, token (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop organization api-token help Help about any command Synopsis Help provides help for any command in the application. Simply type api-token help \[path to command] for full details. ``` chainloop organization api-token help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop organization api-token list List API tokens in this organization ``` chainloop organization api-token list [flags] ``` Options ``` -h, --help[=true|false] help for list -p, --project string filter by project name -s, --scope string filter by scope, available scopes: [project global] --status string filter by token status, available values: [active revoked all] ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop organization api-token revoke revoke API token ``` chainloop organization api-token revoke [flags] ``` Options ``` -h, --help[=true|false] help for revoke --id string API token ID ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop organization create Create an organization ``` chainloop organization create [flags] ``` Options ``` -h, --help[=true|false] help for create --name string organization name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop organization delete Delete an organization Synopsis Delete an organization. Only organization owners can delete an organization. ``` chainloop organization delete [flags] ``` Options ``` -h, --help[=true|false] help for delete --name string organization name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop organization describe Describe the current organization ``` chainloop organization describe [flags] ``` Options ``` -h, --help[=true|false] help for describe ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop organization help Help about any command Synopsis Help provides help for any command in the application. Simply type organization help \[path to command] for full details. ``` chainloop organization help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop organization leave leave an organization ``` chainloop organization leave [flags] ``` Options ``` -h, --help[=true|false] help for leave --name string organization name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop organization list List the organizations this user has access to ``` chainloop organization list [flags] ``` Options ``` -h, --help[=true|false] help for list ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop organization member Organization members management Options ``` -h, --help[=true|false] help for member ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop organization member delete Remove a member from the current organization ``` chainloop organization member delete [flags] ``` Options ``` -h, --help[=true|false] help for delete --id string Membership ID ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop organization member help Help about any command Synopsis Help provides help for any command in the application. Simply type member help \[path to command] for full details. ``` chainloop organization member help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop organization member invitation User Invitations Options ``` -h, --help[=true|false] help for invitation ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ##### chainloop organization member invitation create Invite a User to an Organization ``` chainloop organization member invitation create [flags] ``` Options ``` -h, --help[=true|false] help for create --receiver string Email of the user to invite --role string Role of the user in the organization, available admin, owner, viewer (default "viewer") ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ##### chainloop organization member invitation help Help about any command Synopsis Help provides help for any command in the application. Simply type invitation help \[path to command] for full details. ``` chainloop organization member invitation help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ##### chainloop organization member invitation list List sent invitations ``` chainloop organization member invitation list [flags] ``` Options ``` -h, --help[=true|false] help for list ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ##### chainloop organization member invitation revoke Revoke a pending invitation ``` chainloop organization member invitation revoke [flags] ``` Options ``` -h, --help[=true|false] help for revoke --id string Invitation ID ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop organization member list List the members of the current organization ``` chainloop organization member list [flags] ``` Examples ``` Let the default pagination apply chainloop organization member list Specify the page and page size chainloop organization member list --page 2 --limit 10 Filter by name chainloop organization member list --name alice Filter by email chainloop organization member list --email alice@example.com Filter by role chainloop organization member list --role admin Combine filters and pagination chainloop organization member list --role admin --page 2 --limit 5 ``` Options ``` --email string Filter by member email -h, --help[=true|false] help for list --limit int number of items to show (default 50) --name string Filter by member name or last name --page int page number (default 1) --role string Role of the user in the organization, available admin, owner, viewer ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop organization member update Update a member of the organization ``` chainloop organization member update [flags] ``` Options ``` -h, --help[=true|false] help for update --id string Membership ID --role string Role of the user in the organization, available admin, owner, viewer (default "viewer") ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop organization set Set the current organization to be used by this CLI ``` chainloop organization set [flags] ``` Examples ``` Set the current organization to be used by this CLI $ chainloop org set --name my-org Optionally set the organization as the default one for all clients by storing the preference server-side $ chainloop org set --name my-org --default ``` Options ``` --default[=true|false] set this organization as the default one for all clients -h, --help[=true|false] help for set --name string organization name to make the switch ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop organization update Update an existing organization ``` chainloop organization update [flags] ``` Options ``` --api-token-max-days-inactive string maximum days of inactivity before API tokens are auto-revoked (e.g. '90', '0' to disable) --block[=true|false] set the default policy violation blocking strategy --block-attestations-on-released-versions[=true|false] reject new attestations pushed to project versions that are already released --disable-requirements-auto-matching[=true|false] disable requirements auto-matching --enable-ai-agent-collector[=true|false] enable automatic AI agent config collection during attestation init --force-review[=true|false] force all manual evidence and overrides to pass through review workflow --frameworks-built-in[=true|false] enable built-in compliance frameworks --frameworks-preview[=true|false] enable preview compliance frameworks -h, --help[=true|false] help for update --name string organization name --policies-allowed-hostnames strings set the allowed hostnames for the policy engine --prevent-implicit-workflow-creation[=true|false] prevent workflows and projects from being created implicitly during attestation init --restrict-contract-creation[=true|false] restrict contract creation (org-level and project-level) to only organization admins (owner/admin roles) --skip-runner-env-vars[=true|false] opt out of storing the environment variables automatically discovered by the CI runner in the attestation ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ## chainloop policy Craft chainloop policies Options ``` -h, --help[=true|false] help for policy ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop policy create Create a new policy ``` chainloop policy create [flags] ``` Examples ``` Create a policy chainloop policy create --file my-policy.yaml ``` Options ``` -f, --file string policy file path (YAML or JSON) -h, --help[=true|false] help for create ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop policy delete Delete a policy ``` chainloop policy delete [flags] ``` Examples ``` Delete a policy (with confirmation prompt) chainloop policy delete --name my-policy Delete a policy without confirmation chainloop policy delete --name my-policy --yes ``` Options ``` -h, --help[=true|false] help for delete --name string policy name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop policy describe Describe a policy ``` chainloop policy describe [flags] ``` Examples ``` Describe a policy by name chainloop policy describe --name my-policy Describe a specific policy version by digest chainloop policy describe --name my-policy --digest sha256:abc123 Describe a policy from a specific organization chainloop policy describe --name my-policy --organization myorg ``` Options ``` --digest string specific policy version digest -h, --help[=true|false] help for describe --name string policy name --organization string organization name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop policy develop Tools for policy development Synopsis A set of tools to facilitate policy development. Refer to [https://docs.chainloop.dev/guides/custom-policies](https://docs.chainloop.dev/guides/custom-policies) for more information. Options ``` -h, --help[=true|false] help for develop ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop policy develop eval Evaluate policy against provided material Synopsis Perform a full evaluation of the policy against the provided material type. The command checks if there is a path in the policy for the specified kind and evaluates the policy against the provided material or attestation. ``` chainloop policy develop eval [flags] ``` Examples ``` Evaluate policy against a material file chainloop policy develop eval --policy policy.yaml --material sbom.json --kind SBOM_CYCLONEDX_JSON --annotation key1=value1,key2=value2 --input key3=value3 ``` Options ``` --allowed-hostnames strings Additional hostnames allowed for http.send requests in policies --annotation strings Key-value pairs of material annotations (key=value) -h, --help[=true|false] help for eval --input stringArray Key-value pairs of policy inputs (key=value) --kind string Kind of the material: ["ARTIFACT" "ASYNCAPI_SPEC" "ATTESTATION" "BLACKDUCK_SCA_JSON" "CERTCC_DRANZER" "CHAINLOOP_AI_AGENT_CONFIG" "CHAINLOOP_AI_CODING_SESSION" "CHAINLOOP_AI_SECURITY_CONTEXT" "CHAINLOOP_PR_INFO" "CHAINLOOP_RUNNER_CONTEXT" "CHECKMARX_JSON" "COBERTURA_XML" "CONTAINER_IMAGE" "CSAF_INFORMATIONAL_ADVISORY" "CSAF_SECURITY_ADVISORY" "CSAF_SECURITY_INCIDENT_RESPONSE" "CSAF_VEX" "EVIDENCE" "GHAS_CODE_SCAN" "GHAS_DEPENDENCY_SCAN" "GHAS_SECRET_SCAN" "GITLAB_SECURITY_REPORT" "GITLEAKS_JSON" "GRAPHQL_SPEC" "HELM_CHART" "JACOCO_XML" "JUNIT_XML" "MSBUILD_LOG" "OPENAPI_SPEC" "OPENVEX" "OSSF_SCORECARD_JSON" "OVERSECURED_JSON" "PITEST_XML" "RADAMSA_CRASHES" "RADAMSA_REPORT" "SARIF" "SBOM_CYCLONEDX_JSON" "SBOM_SPDX_JSON" "SLSA_PROVENANCE" "STRING" "SYSINTERNALS_ACCESSCHK" "SYSINTERNALS_SIGCHECK" "TRUFFLEHOG_JSON" "TWISTCLI_SCAN_JSON" "YELP_DETECT_SECRETS_BASELINE" "ZAP_DAST_ZIP"] --material string Path to material or attestation file -p, --policy string Policy reference (./my-policy.yaml, https://my-domain.com/my-policy.yaml, chainloop://my-stored-policy) (default "policy.yaml") --project string Project name to use as engine context for chainloop.* built-ins --project-version string Project version to use as engine context for chainloop.* built-ins ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop policy develop help Help about any command Synopsis Help provides help for any command in the application. Simply type develop help \[path to command] for full details. ``` chainloop policy develop help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop policy develop init Initialize a new policy Synopsis Initialize a new policy by creating template policy files in the specified directory. By default, it creates chainloop-policy.yaml and chainloop-policy.rego files. ``` chainloop policy develop init [flags] ``` Examples ``` Initialize in current directory with separate files chainloop policy develop init Initialize in specific directory with embedded format and policy name chainloop policy develop init --directory ./policies --embedded --name mypolicy ``` Options ``` --description string description of the policy --directory string directory for policy --embedded[=true|false] initialize an embedded policy (single YAML file) -f, --force[=true|false] overwrite existing files -h, --help[=true|false] help for init --name string name of the policy ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop policy develop lint Lint chainloop policy structure and content Synopsis Performs comprehensive validation of: * \*.yaml files (schema validation) * \*.rego (formatting, linting, structure) ``` chainloop policy develop lint [flags] ``` Options ``` --format[=true|false] Auto-format standalone policy rego files with opa fmt (embedded policies not supported) -h, --help[=true|false] help for lint -p, --policy string Path to policy file (default "policy.yaml") --regal-config string Path to custom regal config (Default: https://github.com/chainloop-dev/chainloop/tree/main/app/cli/internal/policydevel/.regal.yaml) ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop policy help Help about any command Synopsis Help provides help for any command in the application. Simply type policy help \[path to command] for full details. ``` chainloop policy help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop policy list List policies ``` chainloop policy list [flags] ``` Options ``` --builtin[=true|false] Show only builtin policies --custom[=true|false] Show only custom policies -h, --help[=true|false] help for list ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop policy update Update an existing policy ``` chainloop policy update [flags] ``` Examples ``` Update a policy chainloop policy update --file my-policy.yaml ``` Options ``` -f, --file string policy file path -h, --help[=true|false] help for update ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ## chainloop policy-group Policy group operations Options ``` -h, --help[=true|false] help for policy-group ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop policy-group create Create a new policy group ``` chainloop policy-group create [flags] ``` Examples ``` Create a policy group from file chainloop policy-group create --file my-policy-group.yaml ``` Options ``` -f, --file string policy group file path -h, --help[=true|false] help for create ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop policy-group delete Delete a policy group ``` chainloop policy-group delete [flags] ``` Examples ``` Delete a policy group (with confirmation prompt) chainloop policy-group delete --name my-policy-group Delete a policy group without confirmation chainloop policy-group delete --name my-policy-group --yes ``` Options ``` -h, --help[=true|false] help for delete --name string policy group name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop policy-group describe Describe a policy group ``` chainloop policy-group describe [flags] ``` Examples ``` Describe a policy group by name chainloop policy-group describe --name my-policy-group Describe a specific policy group version by digest chainloop policy-group describe --name my-policy-group --digest sha256:abc123 Describe a policy group from a specific organization chainloop policy-group describe --name my-policy-group --organization myorg ``` Options ``` --digest string specific policy group version digest -h, --help[=true|false] help for describe --name string policy group name --organization string organization name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop policy-group help Help about any command Synopsis Help provides help for any command in the application. Simply type policy-group help \[path to command] for full details. ``` chainloop policy-group help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop policy-group list List policy groups ``` chainloop policy-group list [flags] ``` Examples ``` List all policy groups chainloop policy-group list ``` Options ``` --builtin[=true|false] Show only builtin policy groups --custom[=true|false] Show only custom policy groups -h, --help[=true|false] help for list ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop policy-group update Update an existing policy group ``` chainloop policy-group update [flags] ``` Examples ``` Update a policy group from file chainloop policy-group update --file my-policy-group.yaml ``` Options ``` -f, --file string policy group file path -h, --help[=true|false] help for update ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ## chainloop product Product operations Options ``` -h, --help[=true|false] help for product ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop product api-token Product-scoped API token management Synopsis Manage API tokens scoped to a product Options ``` -h, --help[=true|false] help for api-token ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop product api-token create Create a product-scoped API token ``` chainloop product api-token create [flags] ``` Options ``` --description string API token description --expiration string optional API token expiration, in hours i.e 1h, 24h, 168h (week), ... -h, --help[=true|false] help for create --name string token name --product string product name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string output format, valid options are table, json, token (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop product api-token help Help about any command Synopsis Help provides help for any command in the application. Simply type api-token help \[path to command] for full details. ``` chainloop product api-token help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop product api-token list List API tokens for a product ``` chainloop product api-token list [flags] ``` Options ``` -a, --all[=true|false] show all API tokens including revoked ones -h, --help[=true|false] help for list --product string product name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop product api-token revoke revoke a product-scoped API token ``` chainloop product api-token revoke [flags] ``` Options ``` --confirm[=true|false] skip confirmation prompt -h, --help[=true|false] help for revoke --id string token ID to revoke --product string product name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop product create Create a new product ``` chainloop product create [flags] ``` Examples ``` Create a product chainloop product create --name my-product --description "My product description" ``` Options ``` --description string product description -h, --help[=true|false] help for create --name string product name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop product delete Delete a product ``` chainloop product delete [flags] ``` Examples ``` Delete a product chainloop product delete --name my-product Delete a product without confirmation chainloop product delete --name my-product --yes ``` Options ``` -h, --help[=true|false] help for delete --name string product name -y, --yes[=true|false] skip confirmation prompt ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN ``` ### chainloop product describe Describe a product ``` chainloop product describe [flags] ``` Examples ``` Describe a product chainloop product describe --name my-product ``` Options ``` -h, --help[=true|false] help for describe --name string product name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop product help Help about any command Synopsis Help provides help for any command in the application. Simply type product help \[path to command] for full details. ``` chainloop product help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop product list List products ``` chainloop product list [flags] ``` Examples ``` List all products chainloop product list List products with pagination chainloop product list --page 2 --limit 10 ``` Options ``` -h, --help[=true|false] help for list --limit int32 number of items per page (default 50) --name string filter by product name --page int32 page number (starts at 1) (default 1) ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop product update Update a product ``` chainloop product update [flags] ``` Examples ``` Update product description chainloop product update --name my-product --description "New description" Rename a product chainloop product update --name my-product --new-name new-product-name ``` Options ``` --description string new product description -h, --help[=true|false] help for update --name string product name --new-name string new product name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop product version Product version operations Options ``` -h, --help[=true|false] help for version ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop product version applicability Manage the frameworks of a product version and their applicability Synopsis Manage the frameworks of a product version, and which of their requirements apply to its projects. For each framework, an attached project is in one of four states: inherited the project follows the product-level defaults (the state after attach) applicable all the requirements apply, also when the defaults exclude some of them partial the listed requirements do not apply not-applicable the full framework does not apply The product-level defaults of a framework are applicable or partial. "set --state applicable", without --project, attaches a framework that the product version does not have. "remove" detaches one. The platform attaches and detaches frameworks in the background, so these changes take effect shortly after the command returns. The commands take names, not the display names that the web app shows. Find framework names with "chainloop framework list". Find requirement names with "chainloop requirement list --framework \" or "chainloop framework describe --name \". Options ``` -h, --help[=true|false] help for applicability ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ##### chainloop product version applicability describe Describe the framework applicability of a product version Synopsis Show the applicability matrix of a product version: the product-level defaults of each framework, and the state of each attached project for each framework, with the reasons. ``` chainloop product version applicability describe [flags] ``` Examples ``` Describe the framework applicability of a product version chainloop product version applicability describe --product my-product --version v1.0.0 ``` Options ``` -h, --help[=true|false] help for describe --product string product name --version string product version name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ##### chainloop product version applicability help Help about any command Synopsis Help provides help for any command in the application. Simply type applicability help \[path to command] for full details. ``` chainloop product version applicability help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ##### chainloop product version applicability remove Detach a framework from a product version Synopsis Detach a framework from a product version. The projects lose their applicability for the framework. The platform detaches the framework in the background, so the change takes effect shortly after the command returns. Check it with "applicability describe". When the product version does not have the framework, the command changes nothing. The command takes names, not the display names that the web app shows. Find framework names with "chainloop framework list". ``` chainloop product version applicability remove [flags] ``` Examples ``` Detach a framework from a product version chainloop product version applicability remove --product my-product --version v1.0.0 \ --framework my-framework ``` Options ``` --framework string framework name -h, --help[=true|false] help for remove --product string product name --version string product version name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ##### chainloop product version applicability reset Reset the applicability of a framework for a project or for the product-level defaults Synopsis Reset the applicability of a framework in a product version. With --project, the project inherits the product-level defaults of the framework again. Without --project, the product-level defaults of the framework become applicable again, with no excluded requirements. Other projects and other frameworks do not change. The product version must have the framework. The command takes names, not the display names that the web app shows. Find framework names with "chainloop framework list". ``` chainloop product version applicability reset [flags] ``` Examples ``` Make a project inherit the product-level defaults of a framework again chainloop product version applicability reset --product my-product --version v1.0.0 \ --framework my-framework --project my-project Make the product-level defaults of a framework applicable again chainloop product version applicability reset --product my-product --version v1.0.0 \ --framework my-framework ``` Options ``` --framework string framework name -h, --help[=true|false] help for reset --product string product name --project string project name (optional, without it the command resets the product-level defaults) --version string product version name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ##### chainloop product version applicability set Set the applicability of a framework for a project or for the product-level defaults Synopsis Set the applicability of a framework in a product version. With --project, the command sets the state of that project for the framework: applicable, partial or not-applicable. Without --project, it sets the product-level defaults of the framework: applicable or partial. The defaults apply to every project that inherits them. The command replaces the previous state of that project, or of the defaults, for the framework. Other projects and other frameworks do not change. When the product version does not have the framework, the command attaches it only with \--state applicable and no --project. The framework then has applicable defaults, and every project inherits them. The platform attaches the framework in the background, so the change takes effect shortly after the command returns. Check it with "applicability describe". For other changes, attach the framework first, then run the command again. \--state partial takes the requirements that do not apply. Give one --requirement flag for each requirement, as NAME=REASON or as NAME. A requirement without its own reason takes the \--reason value. Each requirement must have a reason. \--state not-applicable applies to the full framework and takes a --reason. The command takes names, not the display names that the web app shows. Find framework names with "chainloop framework list". Find requirement names with "chainloop requirement list --framework \" or "chainloop framework describe --name \". ``` chainloop product version applicability set [flags] ``` Examples ``` Attach a framework to a product version, applicable to all its projects chainloop product version applicability set --product my-product --version v1.0.0 \ --framework my-framework --state applicable Mark a framework as not applicable to a project chainloop product version applicability set --product my-product --version v1.0.0 \ --framework my-framework --project my-project --state not-applicable \ --reason "the project ships no runtime code" Mark two requirements as not applicable to a project, each with its own reason chainloop product version applicability set --product my-product --version v1.0.0 \ --framework my-framework --project my-project --state partial \ --requirement "sbom-present=the SBOM comes from the vendor" \ --requirement "container-signed=the project ships no container" Mark two requirements as not applicable to a project, with the same reason chainloop product version applicability set --product my-product --version v1.0.0 \ --framework my-framework --project my-project --state partial \ --requirement sbom-present --requirement container-signed --reason "the project is a library" Mark a framework as applicable to a project, also when the defaults exclude some requirements chainloop product version applicability set --product my-product --version v1.0.0 \ --framework my-framework --project my-project --state applicable Exclude a requirement in the product-level defaults chainloop product version applicability set --product my-product --version v1.0.0 \ --framework my-framework --state partial --requirement "sbom-present=covered by the vendor" ``` Options ``` --framework string framework name -h, --help[=true|false] help for set --product string product name --project string project name (optional, without it the command sets the product-level defaults) --reason string reason why the framework does not apply (required with --state not-applicable), or the default reason of each --requirement without its own --requirement stringArray requirement that does not apply, as NAME=REASON or NAME, repeatable (--state partial only) --state string applicability state: applicable, partial or not-applicable (not-applicable needs --project) --version string product version name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop product version attach-project Attach a project to a product version Synopsis Attach a project to a product version, pinned to a project version or tracking the latest one. If the project is already attached, the command changes the attached project version to the new value. ``` chainloop product version attach-project [flags] ``` Examples ``` Attach a project tracking latest version chainloop product version attach-project --product my-product --version v1.0.0 --project my-project --track-latest Attach a project with a specific version chainloop product version attach-project --product my-product --version v1.0.0 --project my-project --project-version v2.0.0 Move an attached project to a new project version chainloop product version attach-project --product my-product --version v1.0.0 --project my-project --project-version v2.1.0 ``` Options ``` -h, --help[=true|false] help for attach-project --product string product name --project string project name --project-version string project version name (use either --project-version or --track-latest) --track-latest[=true|false] track the latest project version (use either --project-version or --track-latest) --version string product version name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop product version create Create a new product version ``` chainloop product version create [flags] ``` Examples ``` Create a new version chainloop product version create --product my-product --name v1.0.0 Create a version with description chainloop product version create --product my-product --name v1.0.0 --description "Initial release" Clone from an existing version chainloop product version create --product my-product --name v2.0.0 --from-version v1.0.0 ``` Options ``` --description string version description --from-version string clone from existing version (by name) -h, --help[=true|false] help for create --name string version name --product string product name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop product version delete Delete a product version ``` chainloop product version delete [flags] ``` Examples ``` Delete a specific version chainloop product version delete --product my-product --version v1.0.0 Delete a version without confirmation chainloop product version delete --product my-product --version v1.0.0 --yes ``` Options ``` -h, --help[=true|false] help for delete --product string product name --version string version name -y, --yes[=true|false] skip confirmation prompt ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN ``` #### chainloop product version describe Describe a product version ``` chainloop product version describe [flags] ``` Examples ``` Describe a specific version chainloop product version describe --product my-product --version v1.0.0 ``` Options ``` -h, --help[=true|false] help for describe --product string product name --version string version name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop product version detach-project Detach a project from a product version ``` chainloop product version detach-project [flags] ``` Examples ``` Detach a project from a product version chainloop product version detach-project --product my-product --version v1.0.0 --project my-project ``` Options ``` -h, --help[=true|false] help for detach-project --product string product name --project string project name --version string product version name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop product version help Help about any command Synopsis Help provides help for any command in the application. Simply type version help \[path to command] for full details. ``` chainloop product version help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop product version list List product versions ``` chainloop product version list [flags] ``` Examples ``` List all versions for a product chainloop product version list --product my-product List with pagination chainloop product version list --product my-product --page 2 --limit 10 ``` Options ``` -h, --help[=true|false] help for list --limit int32 number of items per page (default 50) --page int32 page number (starts at 1) (default 1) --product string product name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop product version update Update a product version ``` chainloop product version update [flags] ``` Examples ``` Mark a version as released chainloop product version update --product my-product --version v1.0.0 --is-released Rename a version chainloop product version update --product my-product --version v1.0.0 --new-name v1.0.1 Update description chainloop product version update --product my-product --version v1.0.0 --description "Updated description" ``` Options ``` --description string new version description -h, --help[=true|false] help for update --is-released[=true|false] mark the version as released or prerelease --new-name string new version name --product string product name --version string version name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ## chainloop project Project operations Options ``` -h, --help[=true|false] help for project ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop project create Create a new project ``` chainloop project create [flags] ``` Examples ``` Create a project with name and description chainloop project create --name my-project --description "My project description" Create a project with just a name chainloop project create --name my-project ``` Options ``` --description string project description -h, --help[=true|false] help for create --name string project name (DNS-1123 format: lowercase, numbers, hyphens) ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop project delete Delete a project ``` chainloop project delete [flags] ``` Examples ``` Delete a project (with confirmation prompt) chainloop project delete --name my-project Delete a project without confirmation chainloop project delete --name my-project --yes ``` Options ``` -h, --help[=true|false] help for delete --name string project name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop project describe Describe a project ``` chainloop project describe [flags] ``` Examples ``` Describe a project by name chainloop project describe --name my-project ``` Options ``` -h, --help[=true|false] help for describe --name string project name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop project help Help about any command Synopsis Help provides help for any command in the application. Simply type project help \[path to command] for full details. ``` chainloop project help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop project list List projects ``` chainloop project list [flags] ``` Examples ``` List all projects chainloop project list List projects with pagination chainloop project list --page 2 --limit 10 Filter by project name chainloop project list --name my-project Filter by description chainloop project list --description "production" ``` Options ``` --description string filter by description -h, --help[=true|false] help for list --limit int32 number of items per page (default 50) --name string filter by project name --page int32 page number (starts at 1) (default 1) ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop project update Update a project ``` chainloop project update [flags] ``` Examples ``` Update project description chainloop project update --name my-project --description "New description" ``` Options ``` --description string new project description -h, --help[=true|false] help for update --name string project name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop project version Project version operations Options ``` -h, --help[=true|false] help for version ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop project version create Create a new project version ``` chainloop project version create [flags] ``` Examples ``` Create a new prerelease version chainloop project version create --project my-project --name v1.0.0 Create a released version chainloop project version create --project my-project --name v1.0.0 --is-released Create a version without promoting it to latest chainloop project version create --project my-project --name v1.0.0 --mark-latest=false ``` Options ``` -h, --help[=true|false] help for create --is-released[=true|false] mark the version as released --mark-latest[=true|false] promote the new version to latest; pass --mark-latest=false to skip promotion (default true) --name string version name --project string project name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop project version delete Delete a project version ``` chainloop project version delete [flags] ``` Examples ``` Delete a specific version (with confirmation prompt) chainloop project version delete --project my-project --name v1.0.0 Delete a version without confirmation chainloop project version delete --project my-project --name v1.0.0 --yes ``` Options ``` -h, --help[=true|false] help for delete --name string version name --project string project name -y, --yes[=true|false] skip confirmation prompt ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN ``` #### chainloop project version describe Describe a project version ``` chainloop project version describe [flags] ``` Examples ``` Describe a specific version chainloop project version describe --project my-project --name v1.0.0 ``` Options ``` -h, --help[=true|false] help for describe --name string version name --project string project name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop project version help Help about any command Synopsis Help provides help for any command in the application. Simply type version help \[path to command] for full details. ``` chainloop project version help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop project version list List project versions ``` chainloop project version list [flags] ``` Examples ``` List all versions for a project chainloop project version list --project my-project List with pagination chainloop project version list --project my-project --page 2 --limit 10 Filter by version name chainloop project version list --project my-project --name v1 Filter by status chainloop project version list --project my-project --status released ``` Options ``` -h, --help[=true|false] help for list --limit int32 number of items per page (default 50) --name string filter by version name --page int32 page number (starts at 1) (default 1) --project string project name --status string filter by status (prerelease, released) ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop project version update Update a project version ``` chainloop project version update [flags] ``` Examples ``` Mark a version as released chainloop project version update --project my-project --name v1.0.0 --is-released Rename a version chainloop project version update --project my-project --name v1.0.0 --new-name v1.0.1 Promote a version to latest (e.g. to recover after an auto-created PR version took over) chainloop project version update --project my-project --name v1.0.0 --mark-latest ``` Options ``` -h, --help[=true|false] help for update --is-released[=true|false] mark the version as released or prerelease --mark-latest[=true|false] mark this version as the latest version of the project --name string version name --new-name string new version name --project string project name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ## chainloop requirement Manage compliance requirements Options ``` -h, --help[=true|false] help for requirement ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop requirement delete Delete a requirement ``` chainloop requirement delete [flags] ``` Examples ``` Delete a requirement (with confirmation prompt) chainloop requirement delete --name my-requirement Delete a requirement without confirmation chainloop requirement delete --name my-requirement --yes ``` Options ``` -h, --help[=true|false] help for delete --name string requirement name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop requirement describe Describe a requirement ``` chainloop requirement describe [flags] ``` Examples ``` Describe a requirement chainloop requirement describe --name my-requirement Describe a specific requirement version by revision chainloop requirement describe --name my-requirement --revision 2 Download the requirement schema chainloop requirement describe --name my-requirement --output schema ``` Options ``` -h, --help[=true|false] help for describe --name string requirement name --revision int32 requirement version revision number ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop requirement help Help about any command Synopsis Help provides help for any command in the application. Simply type requirement help \[path to command] for full details. ``` chainloop requirement help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop requirement list List requirements ``` chainloop requirement list [flags] ``` Examples ``` List all requirements chainloop requirement list List requirements for a specific framework chainloop requirement list --framework my-framework List requirements with pagination chainloop requirement list --page 2 --limit 10 ``` Options ``` --framework string filter requirements by framework name -h, --help[=true|false] help for list --limit int32 number of items per page (default 50) --page int32 page number (starts at 1) (default 1) ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ## chainloop trace AI coding session tracing and attestation Options ``` -h, --help[=true|false] help for trace ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop trace help Help about any command Synopsis Help provides help for any command in the application. Simply type trace help \[path to command] for full details. ``` chainloop trace help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop trace init Initialize git hooks for automatic AI session tracing Synopsis Initialize git hooks that automatically trace AI coding sessions and create Chainloop attestations when you push. It installs the managed git hooks plus the hooks of the selected harnesses (Claude Code when none is given). In control-plane mode, it also creates the Chainloop workflow the attestations target. Nothing is written to the repository until that workflow exists, so you need to be logged in. Local mode (--local) needs no workflow and no login. On a terminal it asks which organization and project to use, offering what .chainloop.yml already holds so pressing Enter keeps it. A new project can be named freely; the name is normalized to the lowercase, dash-separated form Chainloop stores. It then asks which harnesses to trace, with the ones the repository is already set up for ticked, or Claude Code on a first run; use space to tick more. Passing --org, --project or a harness flag (--claude, --cursor, --opencode, --pi, --codex, --copilot) skips the matching question. Nothing is asked in CI or when the output is redirected: there --project is required unless .chainloop.yml carries projectName. Set CHAINLOOP_NO_PROMPT to turn the questions off on a terminal too. The organization, project, workflow and require-trace values are saved to .chainloop.yml, and every push reads them from there. With --local, init sets up the repository for local mode. It installs the same hooks, but it creates no workflow, needs no login, and does not connect to a control plane. It writes traceStorage: LOCAL to .chainloop.yml. Every clone then records sessions on disk. On each push, the pre-push hook writes the session evidence to the local-sessions folder of the trace directory. It does not send an attestation. \--trace-path sets the trace directory, where Chainloop Trace keeps its data. The default is .git/chainloop-trace. It works in every mode, and init writes it to .chainloop.yml as tracePath. A relative path starts at the repository root. \--contract, --workflow, --org and --project are control-plane settings. You cannot use them with --local. You can use --require-trace with --local. ``` chainloop trace init [flags] ``` Options ``` --claude[=true|false] install Claude Code hooks (default when no harness flag is set) --codex[=true|false] install Codex hooks --contract string workflow contract to attach when creating the workflow; it must already exist and be usable by the project (default: "chainloop-ai-coding-session" when the organization has it, an empty contract otherwise) --copilot[=true|false] install GitHub Copilot hooks (Copilot CLI and VS Code) --cursor[=true|false] install Cursor hooks -h, --help[=true|false] help for init --local[=true|false] set up local mode, with no control plane, login or workflow. The pre-push hook writes the session evidence to disk --opencode[=true|false] install opencode hooks --pi[=true|false] install Pi extension --project string chainloop project name --require-trace[=true|false] block pushes when a required trace is missing --trace-path string the directory where Chainloop Trace keeps its data, in every mode (default: .git/chainloop-trace). Local mode writes the sessions to its local-sessions folder --workflow string chainloop workflow name used for trace attestations (defaults to "ai-coding-session") ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop trace run Run a single-shot AI coding session and attest it Synopsis Wrap an external command (typically an AI coding agent) and emit a Chainloop attestation for the session once the command exits successfully. Sessions without git commits are still attested. trace run takes its settings from its flags, not from .chainloop.yml. The \--org, --project and --workflow flags and the optional --version flag set the attestation identity. The --org, --project and --workflow flags are required in control-plane mode. With --local, trace run writes the session to disk when the command exits, also when the command fails. It does not connect to a control plane. You cannot use --org, --project, --workflow, --version or --contract with --local. The one value trace run takes from .chainloop.yml is tracePath, when the repository sets one. The agent hooks keep the session in that directory, so trace run must use it too. When the wrapped command exits, trace run removes the temporary hooks and the trace state. It keeps the stored local session evidence. Thus no setup from one session stays for the next session. In control-plane mode, the workflow is created before the command runs. That part is best-effort: the session runs either way and the attestation creates the workflow if this did not, except with --contract, which trace run cannot honor later. ``` chainloop trace run -- [args...] [flags] ``` Options ``` --claude[=true|false] install Claude Code hooks (default when no provider flag is set) --codex[=true|false] install Codex hooks --contract string workflow contract to attach when creating the workflow; it must already exist and be usable by the project (default: "chainloop-ai-coding-session" when the organization has it, an empty contract otherwise) --copilot[=true|false] install GitHub Copilot hooks (Copilot CLI and VS Code) --cursor[=true|false] install Cursor hooks -h, --help[=true|false] help for run --local[=true|false] store the session on disk, with no control plane, login or workflow --opencode[=true|false] install opencode hooks --pi[=true|false] install Pi extension --project string chainloop project name (required, except with --local). trace run does not read it from .chainloop.yml --version string chainloop project version (optional; defaults to the latest version) --workflow string chainloop workflow name for the trace attestations (required, except with --local). trace run does not read it from .chainloop.yml ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop trace uninstall Remove trace git hooks and configuration ``` chainloop trace uninstall [flags] ``` Options ``` -h, --help[=true|false] help for uninstall -y, --yes[=true|false] skip confirmation prompt ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN ``` ## chainloop transform Transform third-party tool output into standard formats Synopsis Transform data from third-party security and quality tools into standard formats (SARIF, CycloneDX) ready for Chainloop attestation workflows. Each subcommand targets a specific tool integration. Options ``` -h, --help[=true|false] help for transform ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop transform help Help about any command Synopsis Help provides help for any command in the application. Simply type transform help \[path to command] for full details. ``` chainloop transform help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop transform salt Fetch Salt Security data and produce EVIDENCE JSON and/or SARIF output Synopsis Fetch data from the Salt Security API and produce output ready for Chainloop attestation workflows. The command supports three categories of data: inventory API endpoint inventory → EVIDENCE JSON (--output-file) posture-gaps Posture gap findings → SARIF 2.1.0 (--sarif-output-file) attackers Attacker findings → SARIF 2.1.0 (--sarif-output-file) By default all categories are fetched. Use --categories to select specific ones. When posture-gaps or attackers are included, a SARIF report is produced. When inventory is included, an EVIDENCE JSON is produced. Severity Mapping (Salt → SARIF): Salt Severity SARIF Level security-severity (CVSS scale) ───────────── ─────────── ────────────────────────────── Critical error 9.5 High error 8.0 Medium warning 5.5 Low note 2.5 Info note 0.1 (non-zero to stay visible in tooling) Posture gap severity comes from the Salt "severity" field. Attacker severity comes from the Salt "rulesSeverity" field. SARIF levels follow the SARIF v2.1.0 specification (3.27.10). The security-severity scores are aligned to CVSS v3.1 qualitative bands (5) since Salt does not provide native CVSS scores. Source Filtering: Salt exposes two independent filter axes on the inventory API: \--source-type Salt's sourceTypes field (e.g. Surface, "Surface Traffic") \--source Salt's sources field — the collector origin (e.g. sensor) Each axis maps to a distinct column in the Salt UI. For example, the same endpoint may have sourceType="Surface" and source="sensor". Pass both flags to intersect (Salt does the AND server-side); pass either independently to filter on that axis alone. Values must match Salt's exact casing. When either flag is set, posture gaps are filtered client-side by (host, path, method) against the resulting inventory, and attackers are filtered by api.id. Omit both to include everything. ``` chainloop transform salt [flags] ``` Examples ``` Fetch everything: inventory + posture gaps + attackers chainloop transform salt \ --token $SALT_TOKEN \ --label prod \ --output-file salt-inventory.json \ --sarif-output-file salt-findings.sarif Only posture gaps with severity filter chainloop transform salt \ --token $SALT_TOKEN \ --categories posture-gaps \ --severity Critical,High \ --sarif-output-file salt-gaps.sarif Only attackers chainloop transform salt \ --token $SALT_TOKEN \ --label prod \ --categories attackers \ --attacker-status open,fixing \ --sarif-output-file salt-attackers.sarif Only endpoints with active sensor traffic (collector origin) chainloop transform salt \ --token $SALT_TOKEN \ --label production \ --source sensor \ --output-file salt-inventory.json \ --sarif-output-file salt-findings.sarif Use in attestation workflow chainloop attestation init --workflow api-monitoring chainloop transform salt \ --token $SALT_TOKEN \ --label prod \ --output-file salt-inventory.json \ --sarif-output-file salt-findings.sarif chainloop attestation add --name salt-inventory --value salt-inventory.json chainloop attestation add --name salt-findings --value salt-findings.sarif chainloop attestation push ``` Options ``` --attacker-status string Comma-separated attacker statuses: open,fixing,resolved,ignored --categories string Categories to fetch: inventory,posture-gaps,attackers (default "inventory,posture-gaps,attackers") --dry-run[=true|false] Fetch and transform but only show summary --gap-status string Comma-separated posture gap statuses: Open,InProcess,Resolved,Ignored -h, --help[=true|false] help for salt --host-filter string Host address filter (regex) --insecure[=true|false] Skip TLS certificate verification --label string Comma-separated label filters for endpoint scoping --output-file string EVIDENCE JSON output file path for inventory (default: stdout) -q, --quiet[=true|false] Suppress progress output --sarif-output-file string SARIF output file path for posture gaps and attackers (default: stdout) --severity string Comma-separated posture gap severities: Critical,High,Medium,Low,Info --source string Filter by Salt's sources field — the collector origin (e.g. sensor). --source-type string Filter by Salt's sourceTypes field (e.g. Surface, "Surface Traffic"). Must match Salt's exact casing. --token string Salt Security API token (env: SALT_TOKEN) --url string Salt Security API URL (env: SALT_URL) (default "https://api.secured-api.com") ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -y, --yes[=true|false] Skip confirmation ``` ### chainloop transform sonarqube Transform SonarQube issues and hotspots into SARIF format Synopsis Fetch issues and hotspots from the SonarQube REST API, enrich them with CWE IDs, and produce SARIF 2.1.0 output ready for Chainloop attestation workflows. The output is compatible with existing SARIF policies (cwe-top25, owasp-top10-2025, sast). By default only security-quality issues are fetched (--software-qualities SECURITY). To cover dead/unreachable/unused code, broaden --software-qualities to include MAINTAINABILITY,RELIABILITY or target the specific rule keys with --rules. For SonarQube's security-sensitive buffer-function rules, include low-priority hotspots with --hotspot-priorities HIGH,MEDIUM,LOW. ``` chainloop transform sonarqube [flags] ``` Examples ``` Basic usage chainloop transform sonarqube \ --url https://sonarqube.example.com \ --project my-project \ --branch main \ --token $SONARQUBE_TOKEN \ --output-file sonarqube-results.sarif Use in attestation workflow chainloop attestation init --workflow my-workflow chainloop transform sonarqube \ --url $SONARQUBE_URL \ --project $PROJECT_KEY \ --branch $BRANCH \ --output-file sq-results.sarif chainloop attestation add --name sast-scan --value sq-results.sarif chainloop attestation push Using environment variables export SONARQUBE_URL=https://sonarqube.example.com export SONARQUBE_TOKEN=mytoken chainloop transform sonarqube --project my-project --branch main --output-file results.sarif Cover dead/unreachable/unused code (broaden software qualities) chainloop transform sonarqube \ --url $SONARQUBE_URL --project my-project --branch main \ --software-qualities MAINTAINABILITY,RELIABILITY \ --output-file dead-code.sarif Target specific dead-code rule keys precisely chainloop transform sonarqube \ --url $SONARQUBE_URL --project my-project --branch main \ --software-qualities SECURITY,RELIABILITY,MAINTAINABILITY \ --rules csharpsquid:S1144,cpp:S1144 \ --output-file dead-code.sarif Cover security-sensitive buffer functions (C/C++): include low-priority hotspots chainloop transform sonarqube \ --url $SONARQUBE_URL --project my-project --branch main \ --hotspot-priorities HIGH,MEDIUM,LOW \ --output-file buffer-functions.sarif ``` Options ``` --branch string Branch name --categories string Categories to fetch: security,hotspots (default "security,hotspots") --dry-run[=true|false] Fetch and transform but only show summary --enrich-cwes[=true|false] Enrich issues with CWE IDs from rules API (default true) -h, --help[=true|false] help for sonarqube --hotspot-priorities string Comma-separated hotspot priorities to include (default "HIGH,MEDIUM") --impact-severities string Comma-separated impact severities to include (valid: HIGH, MEDIUM, LOW) (default "HIGH,MEDIUM,LOW") --insecure[=true|false] Skip TLS certificate verification --issue-statuses string Comma-separated issue statuses to include (default "OPEN") --output-file string Output file path (default: stdout) --project string SonarQube project key -q, --quiet[=true|false] Suppress progress output --rules string Comma-separated rule keys to restrict the issue fetch (e.g. csharpsquid:S1144,cpp:S1144) --software-qualities string Comma-separated Clean Code software qualities to include (valid: SECURITY, RELIABILITY, MAINTAINABILITY) (default "SECURITY") --token string SonarQube auth token (env: SONARQUBE_TOKEN) --url string SonarQube server URL (env: SONARQUBE_URL) ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -y, --yes[=true|false] Skip confirmation ``` ## chainloop version Command line version ``` chainloop version [flags] ``` Options ``` -h, --help[=true|false] help for version ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ## chainloop workflow Workflow management in the control plane Options ``` -h, --help[=true|false] help for workflow ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop workflow attached Integrations attached to workflows Options ``` -h, --help[=true|false] help for attached ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop workflow attached add Attach an existing registered integration to a workflow ``` chainloop workflow attached add [flags] ``` Examples ``` chainloop integration attached add --workflow deadbeef --project my-project --integration beefdoingwell --opt projectName=MyProject --opt projectVersion=1.0.0 Only send SBOMs to dependency track when the annotations in the attestation or material match the filter in an AND operation. Note: material annotations take precedence over attestation ones. chainloop integration attached add --workflow deadbeef --project my-project --integration dependency-track --opt projectName=MyProject --opt filter="environment=prod,team=security" ``` Options ``` -h, --help[=true|false] help for add --integration string Name of the integration already registered in this organization --opt stringArray integration attachment arguments --project string name of the project the workflow belongs to --workflow string name of the workflow to attach this integration ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop workflow attached delete Detach an integration that's attached to a workflow ``` chainloop workflow attached delete [flags] ``` Options ``` -h, --help[=true|false] help for delete --id string ID of the existing attachment ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop workflow attached help Help about any command Synopsis Help provides help for any command in the application. Simply type attached help \[path to command] for full details. ``` chainloop workflow attached help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop workflow attached list List integrations attached to workflows ``` chainloop workflow attached list [flags] ``` Options ``` -h, --help[=true|false] help for list --project string project name --workflow string workflow name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop workflow contract Workflow Contract related operations Options ``` -h, --help[=true|false] help for contract ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop workflow contract create Create a new contract ``` chainloop workflow contract create [flags] ``` Options ``` -f, --contract string path or URL to the contract schema --description string description of the contract -h, --help[=true|false] help for create --name string contract name --project string project name used to scope the contract, if not set the contract will be created in the organization ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop workflow contract delete Delete a contract ``` chainloop workflow contract delete [flags] ``` Options ``` -h, --help[=true|false] help for delete --name string contract name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop workflow contract describe Describe the information of the contract ``` chainloop workflow contract describe [flags] ``` Options ``` -h, --help[=true|false] help for describe --name string contract name --revision int32 revision of the contract to retrieve, by default is latest ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string output format, valid options are table, json or schema (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop workflow contract help Help about any command Synopsis Help provides help for any command in the application. Simply type contract help \[path to command] for full details. ``` chainloop workflow contract help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop workflow contract list List contracts ``` chainloop workflow contract list [flags] ``` Options ``` -h, --help[=true|false] help for list ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop workflow contract update Update an existing contract Synopsis Update an existing contract. Use --project to move an organization-level contract to a project, or --org-level to move a project-level contract to the organization. Only organization administrators and organization-level API tokens can move a contract. ``` chainloop workflow contract update [flags] ``` Examples ``` Update the contract content chainloop workflow contract update --name my-contract --contract contract.yaml Move an organization-level contract to a project chainloop workflow contract update --name my-contract --project my-project Move a project-level contract to the organization chainloop workflow contract update --name my-contract --org-level ``` Options ``` -f, --contract string path or URL to the contract schema --description string description of the contract -h, --help[=true|false] help for update --name string contract name --org-level[=true|false] move the contract to the organization level --project string move the contract to this project, the contract must be at the organization level ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop workflow create Create a new workflow ``` chainloop workflow create [flags] ``` Examples ``` chainloop workflow create --name [workflowName] --project [projectName] Indicate an optional team name chainloop workflow create --name release --project skynet --team core-cyberdyne Associate an existing contract referenced by its ID chainloop workflow create --name release --project skynet --contract deadbeed Or create a new contract by pointing to a local file or URL chainloop workflow create --name release --project skynet --contract ./skynet.contract.yaml chainloop workflow create --name release --project skynet --contract https://skynet.org/contract.yaml Create a workflow from a workflow template (manual delivery) chainloop workflow create --name sast --project skynet --template sast-scan Configure delivery and inputs as in the UI chainloop workflow create --name sast --project skynet --template sast-scan \ --every 24h --run-pr --input severity=high --input fail_on_error=true ``` Options ``` --name string workflow name --description string workflow description --project string project name --team string team name --contract string the name of an existing contract or the path/URL to a contract file. If not provided an empty one will be created. -f, --skip-if-exists[=true|false] do not fail if the workflow with the provided name already exists --template string name of a workflow template to create the workflow from. List available templates with "chainloop workflow-template list". The template's contract is rendered and its delivery modes and inputs are persisted, as in the UI. Cannot be combined with --contract, --team or --skip-if-exists. --every string run the template workflow periodically. Only "24h" is supported today. Only valid with --template --run-pr[=true|false] run the template workflow on pull/merge request events. Only valid with --template --input stringArray template input value as key=value (repeatable). Only valid with --template -h, --help[=true|false] help for create ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop workflow delete Delete an existing workflow ``` chainloop workflow delete [flags] ``` Options ``` -h, --help[=true|false] help for delete --name string workflow name --project string project name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop workflow describe Describe an existing workflow ``` chainloop workflow describe [flags] ``` Options ``` -h, --help[=true|false] help for describe --name string workflow name --project string project name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop workflow help Help about any command Synopsis Help provides help for any command in the application. Simply type workflow help \[path to command] for full details. ``` chainloop workflow help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop workflow list List existing Workflows ``` chainloop workflow list [flags] ``` Examples ``` Let the default pagination apply chainloop workflow list Specify the page and page size chainloop workflow list --page 2 --limit 10 Output in json format to paginate using scripts chainloop workflow list --page 2 --limit 10 --output json Show the full report chainloop workflow list --full ``` Options ``` --full[=true|false] show the full report -h, --help[=true|false] help for list --limit int number of items to show (default 50) --page int page number (default 1) ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop workflow update Update an existing workflow ``` chainloop workflow update [flags] ``` Options ``` --contract string the name of an existing contract --description string workflow description -h, --help[=true|false] help for update --name string workflow name --project string project name --team string team name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop workflow workflow-run Workflow Runs related operations Options ``` -h, --help[=true|false] help for workflow-run ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop workflow workflow-run describe View a Workflow Run ``` chainloop workflow workflow-run describe [flags] ``` Options ``` --cert string public certificate in PEM format to be used to verify the attestation --cert-chain string certificate chain (intermediates, root) in PEM format to be used to verify the attestation -d, --digest string content digest of the attestation -h, --help[=true|false] help for describe --id string workflow Run ID --key string public key used to verify the attestation. Note: You can also use env variable CHAINLOOP_SIGNING_PUBLIC_KEY --verify[=true|false] verify the attestation ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string output format, valid options are table, json, attestation, statement or payload-pae (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop workflow workflow-run help Help about any command Synopsis Help provides help for any command in the application. Simply type workflow-run help \[path to command] for full details. ``` chainloop workflow workflow-run help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` #### chainloop workflow workflow-run list List workflow runs ``` chainloop workflow workflow-run list [flags] ``` Options ``` --full[=true|false] full report -h, --help[=true|false] help for list --limit int number of items to show (default 50) --next string cursor to load the next page --policy-status string filter by policy violations status: all, failed, passed --project string project name --status string filter by workflow run status: [CANCELLED EXPIRED FAILED INITIALIZED SUCCEEDED] --version string project version name, e.g. v1.2.0 (requires --project) --workflow string workflow name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ## chainloop workflow-template List, describe and delete workflow templates Options ``` -h, --help[=true|false] help for workflow-template ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop workflow-template delete Delete an org-scoped workflow template ``` chainloop workflow-template delete [flags] ``` Examples ``` Delete a workflow template (with confirmation prompt) chainloop workflow-template delete --name my-template Delete without confirmation chainloop workflow-template delete --name my-template --yes ``` Options ``` -h, --help[=true|false] help for delete --name string workflow template name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop workflow-template describe Describe a workflow template ``` chainloop workflow-template describe [flags] ``` Examples ``` Describe a template by name (built-in or the organization's own) chainloop workflow-template describe --name ai-code-analysis ``` Options ``` -h, --help[=true|false] help for describe --name string workflow template name ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop workflow-template help Help about any command Synopsis Help provides help for any command in the application. Simply type workflow-template help \[path to command] for full details. ``` chainloop workflow-template help [command] [flags] ``` Options ``` -h, --help[=true|false] help for help ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` ### chainloop workflow-template list List workflow templates ``` chainloop workflow-template list [flags] ``` Examples ``` List the workflow templates the organization offers (the server limits this to the organization's effective offering) chainloop workflow-template list List only the built-in (Chainloop-provided) templates chainloop workflow-template list --type builtin List only the organization's own templates chainloop workflow-template list --type custom ``` Options ``` -h, --help[=true|false] help for list --type string filter by template type: builtin|custom (default: every type your organization offers) ``` Options inherited from parent commands ``` --artifact-cas string URL for the Artifacts Content Addressable Storage API ($CHAINLOOP_ARTIFACT_CAS_API) (default "cas.chainloop.dev:443") --artifact-cas-ca string CUSTOM CA file for the Artifacts CAS API (optional) ($CHAINLOOP_ARTIFACT_CAS_API_CA) -c, --config string Path to an existing config file (default is $HOME/.config/chainloop/config.toml) --control-plane string URL for the Control Plane API ($CHAINLOOP_CONTROL_PLANE_API) (default "cp.chainloop.dev:443") --control-plane-ca string CUSTOM CA file for the Control Plane API (optional) ($CHAINLOOP_CONTROL_PLANE_API_CA) --debug[=true|false] Enable debug/verbose logging mode -i, --insecure[=true|false] Skip TLS transport during connection to the control plane ($CHAINLOOP_API_INSECURE) --max-recv-msg-size int Max size in bytes for incoming gRPC messages (0 = default 33554432) ($CHAINLOOP_API_MAX_RECV_MSG_SIZE) -n, --org string organization name -o, --output string Output format, valid options are json and table (default "table") --platform string URL for the platform backend API ($CHAINLOOP_PLATFORM_API) (default "api.app.chainloop.dev:443") --platform-ca string CUSTOM CA file for the Platform API (optional) ($CHAINLOOP_PLATFORM_API_CA) -t, --token string API token. NOTE: Alternatively use the env variable CHAINLOOP_TOKEN -y, --yes[=true|false] Skip confirmation ``` # CLI Telemetry Source: https://docs.chainloop.dev/cli/telemetry By default, the Chainloop CLI sends telemetry data to chainloop.dev. This helps us enhance Chainloop by gaining insights into its usage. Telemetry is optional and can be turned off at any time. If you can keep telemetry enabled, we appreciate it! This will assist us in better understanding Chainloop's usage and improving your experience. ## What data is collected? The following information is included in telemetry: * Chainloop CLI version * System information (OS, ARCH) * CI/CD environment (if detected) * Platform hashed URL * Command run * Anonymous device ID * Internal User ID and organization ID (if logged in) ## Can Chainloop telemetry be deactivated? Chainloop implements the Console [Do Not Track (DNT) standard](https://consoledonottrack.com). As a result, you can deactivate the telemetry by setting the environment variable DO_NOT_TRACK=1 before running the Chainloop CLI. ## What do we use to collect telemetry data? We use [PostHog](https://posthog.com/). PostHog is an open-source product analytics platform that allows us to collect and analyze telemetry data. Versions prior to v1.108.6 of the OSS CLI version, and prior to v1.108.0 of the Enterprise edition, send telemetry data to `https://crb.chainloop.dev`. From v1.108.6 onward for OSS, and from v1.108.0 onward for enterprise, the endpoint changed to `https://t.chainloop.dev`. The endpoint is set when the CLI is built and cannot be changed at runtime. If you filter outbound traffic, allow both hosts for as long as older CLI versions are still in use in your environment. We did it in such a way that anyone can set up their own PostHog instance and use it to collect telemetry. To do so compile Chainloop CLI from its source code and set up the following linker flags to the Golang compiler: ```sh theme={"dark"} -X github.com/chainloop-dev/chainloop/app/cli/cmd.posthogAPIKey=$POSTHOG_API_KEY -X github.com/chainloop-dev/chainloop/app/cli/cmd.posthogEndpoint=$POSTHOG_ENDPOINT ``` # AI Code Security Analysis Source: https://docs.chainloop.dev/concepts/ai-code-analysis How Chainloop compiles a repository's security-fix history into an AI Security Context, a map of where the next vulnerability is most likely to live, and uses it to prevent regressions, hunt un-patched variants, and measure security hygiene over time. > [!WARNING] > > This is a preview/beta feature. Further changes are expected. ## Overview A codebase's own history of security fixes is the best available map of where its *next* vulnerability lives. Bugs cluster in the same components, the same kinds of dangerous operations, and the same vulnerability classes, and a guard added on one code path is very often missing on a sibling path. **AI Code Security Analysis** is a built-in Chainloop [workflow](/concepts/workflows) that acts on that premise. It reads a repository's history of security fixes and turns it into a machine-readable map of where that codebase tends to go wrong. Chainloop clones the connected repository into a sandbox it manages, walks its recent commits, keeps the ones that fixed a real security bug, and compiles them into an **AI Security Context**: a signed [`CHAINLOOP_AI_SECURITY_CONTEXT`](/concepts/material-types) attestation stored alongside the rest of your evidence. The map is worth reading on its own: a record of what a project has had to fix, where, and what check made it right. It also seeds an agent that hunts for the *un-patched siblings* of those fixes in the current code. ![Security Context view showing how 67 analyzed commits split into no issue found, inconclusive, and 31 confirmed fixes, broken down by vulnerability class such as resource exhaustion and access control](https://mintcdn.com/chainloop/eOeJ2rSDiiC4PbkU/concepts/img/ai-code-security-analysis-overview.png?fit=max\&auto=format\&n=eOeJ2rSDiiC4PbkU\&q=85\&s=cfd88d7b922e1bed1e2e43d35e1b8671) ## What It's For Most security tooling looks at a codebase as it is today and compares it against a generic ruleset or a database of known CVEs. Neither knows anything about *this* project: which components have broken before, which guards keep getting forgotten, or how long past bugs went unnoticed. The AI Security Context records that, and three things follow from it. ### Prevent Regressions Before They Merge The fix history tells you what kind of vulnerability this codebase tends to introduce, and where. Once that is compiled into a map, the changes in a pull request can be compared against the known weak spots: a diff that touches a hot component, reaches a dangerous operation the project has guarded before, or skips a check that a past fix established. Whoever is writing the code, a human or a coding agent, learns *before* the change lands that they are working somewhere the project has already been burned, and can avoid reintroducing a class of bug the team has paid to fix once. Each confirmed fix records the invariant it established, in plain language, so it can be read as a regression check: if a future change breaks that sentence, the fix is undone even though the commit is still in history. ![Detail of a confirmed SSRF fix showing its summary, root cause, attacker preconditions, impact, the invariant the fix established, the components it touched, and the sink it guarded](https://mintcdn.com/chainloop/eOeJ2rSDiiC4PbkU/concepts/img/ai-code-security-analysis-fix-invariant.png?fit=max\&auto=format\&n=eOeJ2rSDiiC4PbkU\&q=85\&s=4298aade5e743eddde117d721a982d43) ### Find First-Party Vulnerabilities With Adversarial Analysis Scanners find known CVEs in dependencies, and pattern matchers find what their rules describe. Neither finds a novel flaw in your own code, which is the class that causes incidents. The AI Security Context turns that open-ended hunt into a targeted one: if a handful of components and a handful of vulnerability classes account for most of the project's past fixes, an adversarial pass can concentrate on those areas first, try to reach the same dangerous operations through paths the original fixes did not cover, and attempt to exploit them. Roughly half of the findings in our own runs came straight from the mined history, a yield a scan without it can't reproduce. What comes back is a lead list, not a verdict. Findings land in the project's **Security** tab alongside the rest, where you or an agent triage them and record a formal decision through [Vulnerability Management and Risk Assessment](/concepts/vulnerability-management): affected or not, with the justification and evidence attached, versioned and signed. ### Measure the Security Hygiene of a Project Over Time Because every confirmed fix is dated and classified, the context is also a historical record of how the team handles security. It shows how quickly vulnerabilities are found and patched, how long they stayed exposed, which classes keep recurring, and whether the risk profile is improving or drifting from one scan to the next. That is evidence for audits and security reviews, and a way to judge the security posture of a codebase you are about to depend on. ![AI Security Context details showing the history covered, peak severity, the distribution of fixes across vulnerability classes and affected components, and a table of confirmed fixes with severity, CWE, exposure time, and when each was fixed](https://mintcdn.com/chainloop/eOeJ2rSDiiC4PbkU/concepts/img/ai-code-security-analysis-hygiene.png?fit=max\&auto=format\&n=eOeJ2rSDiiC4PbkU\&q=85\&s=cd313aab3c7bbd9d231ed3597298df1a) ## Regression Checks on Pull Requests Once a project has an AI Security Context, Chainloop puts it to work on every pull request. When a change touches a file the context already knows — one of the components past fixes have had to touch — the AI Code Analysis leaves a comment that names the weak spot and the rule that has to keep holding. The author and reviewers learn they are working somewhere the project has been burned before, while the change can still be corrected. The comment has two parts. The first is a **security context** summary: for each touched file with a history, the invariant that must stay true and the past fixes that established it, each with its vulnerability class and a plain-language account of what went wrong. ![A pull request comment headed 'Security context', listing the touched file app/artifact-cas/internal/service/bytestream.go, the invariant that bytes may reach the canonical digest key only once the server-computed SHA-256 matches the client-declared digest, and three past fixes (CWE-345, CWE-354, CWE-400) with plain-language summaries](https://mintcdn.com/chainloop/eHyBrAQohx3oc0Ch/concepts/img/ai-code-security-analysis-pr-security-context.png?fit=max\&auto=format\&n=eHyBrAQohx3oc0Ch\&q=85\&s=f289e717896563c5c8b2698f461450a8) The second is a **prompt to review with AI**: the same context rendered as a copy-paste instruction for a reviewing agent. It frames the fixes as *priors* rather than findings — re-confirming an already-fixed bug is not a result; an un-guarded variant on a path this change adds or modifies is — then embeds the invariant, the other entry points where it is also enforced, and the symbols to grep for, and hands over a concrete procedure for checking them. Pasted into a coding agent or an AI reviewer, it runs a grounded adversarial pass aimed at the sibling paths the map predicts, rather than a generic review. ![A pull request comment section 'Prompt To Review With AI' containing a copy-paste prompt that marks the security context as data-only priors, a BEGIN/END CONTEXT block holding the invariant, the other entry points, and the symbols to grep for, and a numbered 'How to check' procedure, with a link to the full context and the Chainloop MCP tool calls](https://mintcdn.com/chainloop/eHyBrAQohx3oc0Ch/concepts/img/ai-code-security-analysis-pr-review-prompt.png?fit=max\&auto=format\&n=eHyBrAQohx3oc0Ch\&q=85\&s=2fb493862b897518e7458beee07927bd) These are advisories, not gates. The comment points review at the highest-probability areas and leaves the decision with the people and tools already on the pull request; it does not block a merge on an AI-generated lead. ## How It Works AI Code Security Analysis is a recall-first funnel: a cheap first pass casts a wide net over history, and progressively more careful stages do the precision work. The result is a context compiled deterministically from what the earlier stages confirmed. ```mermaid theme={"dark"} flowchart LR repo[(Connected
repository)] --> classify[Classify
each commit] classify -->|likely fixes| investigate[Investigate
each candidate] investigate -->|confirmed fixes| compile[Compile the
AI Security Context] compile --> ctx[[CHAINLOOP_AI_SECURITY_CONTEXT]] ctx --> hunt[Hunt un-patched
variants at HEAD] ``` * **Classify.** A lightweight pass reads each commit's diff and asks a single question: *did this fix a security bug?* It is tuned for recall, deliberately over-including, because the base rate of security fixes in ordinary history is low (roughly 1–2% of commits). * **Investigate.** Each candidate is examined more carefully in an isolated, read-only pass that characterizes the fix: what class of bug it was, where it lived, what makes a call site safe, and how the claim can be checked. Candidates that turn out to be features, refactors, or unreachable hardening are dropped here. * **Compile.** A deterministic step, with no model involved, groups the confirmed fixes and recency-weights them into the AI Security Context. Because everything it emits is sorted, two runs over identical history produce identical output, so the material diffs cleanly across scans. * **Hunt.** The compiled context seeds an agent that reads the *current* code at HEAD and looks for the un-patched siblings the map predicts, returning findings it can back up. Scans are **incremental**: a later run only walks commits it hasn't seen, accumulating coverage over time rather than re-scanning from scratch. ### What the Context Gives You The context is a compiled view of a repository's security history, organized so that both people and agents can act on it. It surfaces: * **Hot components** — the files and areas that have needed the most, most recent, and most severe fixes. * **Shared surfaces** — a rule that must hold at *every* path reaching the same kind of dangerous operation, backed by the fixes that established it. * **Confirmed security fixes** — each past fix with its class, severity, a plain-language summary, root cause, attacker preconditions, impact, and the components it touched. * **Class distribution** — how a project's fixes break down across a stable set of vulnerability classes (access control, injection, cryptography, information disclosure, input validation, resource exhaustion, and so on). Every claim in it is **independently verifiable**, which is what separates it from a model's opinion. Each one is tied to a byte-exact span of real source: a revision, a file, a line range, and a hash of the quoted code. Anyone can re-check that the cited code says what the context claims. Spans that couldn't be verified are marked as such rather than quietly dropped, and because the context is a signed Chainloop attestation, it carries the same provenance and tamper-evidence as any other piece of evidence in your supply chain. > [!NOTE] > > These findings are AI-generated leads grounded in real history, not proof of exploitability. They point human review and downstream tooling at the highest-probability areas, and they don't replace triage. ### The Research Behind It None of this is a new premise. Each stage above rests on an established line of security or software-engineering research, and AI Code Security Analysis adds the step most of the literature leaves open: using fix history to discover *new* bugs rather than only to detect past ones. * **Defect clustering.** Decades of defect-prediction work show that faults concentrate in a small minority of files, and that *past fixes in a file* predict *future faults there* better than size or complexity metrics do. This is why **Compile** recency-weights fix history into hot components. \ *Ostrand & Weyuker, "The Distribution of Faults in a Large Industrial Software System" (ISSTA 2002); Ostrand, Weyuker & Bell (IEEE TSE 2005).* * **Variant analysis.** After a bug is fixed, the highest-yield next move is to systematically hunt the same pattern elsewhere — the practice Google Project Zero built much of its work around. It pays off because so many vulnerabilities are follow-ups to earlier, partial patches: the same bug reachable through a path the original fix didn't cover. A significant fraction of in-the-wild 0-days are exactly that. **Hunt** automates the fingerprint-then-match step instead of relying on hand-written queries. \ *Google Project Zero, "0-day In-the-Wild Exploitation…so far" (2022).* * **LLMs over commit history.** A growing body of work shows that commit history plus an LLM is a workable basis for reasoning about vulnerabilities. That is what **Classify** and **Investigate** do. Most of the literature stops at *fix detection*; **Hunt** takes on the harder half, *new-bug discovery*. \ *LLM4VFD ([arXiv:2501.14983](https://arxiv.org/abs/2501.14983)), CommitShield ([arXiv:2501.03626](https://arxiv.org/abs/2501.03626)), Vercation ([arXiv:2408.07321](https://arxiv.org/abs/2408.07321)), PatchSeeker ([arXiv:2509.07540](https://arxiv.org/abs/2509.07540)).* ## Get Started You get started by enabling the **AI Code Analysis** workflow on a project. It is a **built-in [workflow template](/concepts/workflow-templates)**, turned on per project like the other [built-in scans](/reference/scanners), and Chainloop runs it server-side in a managed sandbox against the repository connected to your project. No CI changes are required. Pick it from the workflow list in the Create Project wizard, or add it later from a project's workflow settings: ![The AI Code Analysis workflow card in Chainloop's workflow picker, summarizing what the scan mines from the repository, with a selector to turn it on](https://mintcdn.com/chainloop/eOeJ2rSDiiC4PbkU/concepts/img/ai-code-security-analysis-enable.png?fit=max\&auto=format\&n=eOeJ2rSDiiC4PbkU\&q=85\&s=bb01747361f67ab5caa3065cc4993d66) The project needs a repository connected through a supported provider (**GitHub or GitLab**). In the CLI the template is identified by `ai-code-analysis`. Once the scan finishes, you'll find the results in the Chainloop UI under the project's **Security** tab, in the **Security Context** section. It opens on what the analysis found: how the analyzed commits split into confirmed fixes, no issue found, and inconclusive, and how the confirmed fixes break down by vulnerability class. Below that sit the scan's provenance — the repository and commit it covered, how much history was scanned, and peak severity — and the confirmed fixes themselves. The complete artifact lives in Chainloop's evidence store, and this view loads without pulling it down. The context is also queryable through Chainloop's [MCP tools](/reference/mcp-server), so an assistant can ask a project what it tends to get wrong. ## Further Reading * [Vulnerability Management and Risk Assessment](/concepts/vulnerability-management) — triaging and deciding on the findings a scan produces * [AI Coding Sessions](/concepts/ai-coding-sessions) — capturing AI-assisted development as signed evidence * [Built-in Scanners](/reference/scanners) — the other built-in scans Chainloop runs against a connected repository * [Material Types](/concepts/material-types) — the full list of supported evidence types * [Attestations](/concepts/attestations) — how Chainloop signs and stores evidence # AI Coding Sessions Source: https://docs.chainloop.dev/concepts/ai-coding-sessions How Chainloop captures AI-assisted development as signed evidence, correlates it with pull requests, and surfaces it on the dashboard. > [!WARNING] > > This is a preview/beta feature. Further changes are expected. ## Overview An **AI coding session** is a unit of work an AI agent performed against a repository — the models it used, the tools it invoked, the messages exchanged, and the exact lines of code it produced. Chainloop captures every session automatically through hooks installed by [`chainloop trace init`](/guides/chainloop-trace) and turns it into a signed [`CHAINLOOP_AI_CODING_SESSION`](/concepts/material-types) attestation. Once those attestations are stored, the platform correlates them with pull requests, evaluates policies against them, and aggregates them on the AI Coding dashboard — giving security and engineering teams a single view of how AI agents contribute to the codebase. Capture, attribution, redaction, attestation, and policy evaluation are open source. Pull request correlation, session lineage, the dashboard, the score, and Chainloop's curated policies are platform features — see [Open Source vs. Platform](#open-source-vs-platform) for the full split. ## The Problem It Solves AI agents now write a meaningful share of production code, but the activity is invisible to the rest of the organization. Without a record of what the agent did, security and engineering leaders can't answer basic questions: which commits were AI-assisted, which models were used, how much did a session cost, did the agent invoke dangerous tools, and how much of the diff was actually human-reviewed. Self-disclosure doesn't scale. Most agents leave no durable, tamper-evident record of their actions, which means policies (e.g., "only approved models", "no secrets in transcripts", "signed commits") have nothing to evaluate against, dashboards have nothing to aggregate, and reviewers have nothing to anchor on when the diff looks suspicious. Chainloop closes that loop with three complementary pieces: * **Context** — every session is captured as a `CHAINLOOP_AI_CODING_SESSION` material, paired with the agent's static configuration via the [AI config collector](/guides/ai-config-collector) (`CHAINLOOP_AI_AGENT_CONFIG`). Together they give policies and reviewers something concrete to evaluate, both at runtime and at config time. * **Policies** — [built-in checks](#built-in-policies) for signed commits, dangerous commands, secrets, and approved agents, plus custom Rego for organization-specific rules. * **Tooling** — `chainloop trace` automates capture so developers don't change how they work, while the dashboard, PR summary, and check run surface the data wherever security and engineering teams already operate. ## Open Source vs. Platform `chainloop trace`, the `CHAINLOOP_AI_CODING_SESSION` evidence type, and the policy engine that evaluates it are all part of [open source Chainloop](https://github.com/chainloop-dev/chainloop). Capturing sessions, attesting them, and gating them with your own policies works against a self-hosted [Evidence Store](/guides/deployment/oss) with no paid plan involved. In [local mode](/guides/chainloop-trace#record-sessions-locally), `chainloop trace` stores unsigned sessions on disk, with no Chainloop instance. What the platform adds is everything that happens *after* the evidence lands: correlating sessions with pull requests, rendering them in the UI, aggregating them across projects, and scoring them for reviewers. | Capability | Open source | Platform | | - | :-: | :-: | | Agent hooks for Claude Code, Codex, GitHub Copilot, Cursor, and OpenCode (`trace init`, `trace run`) | ✅ | ✅ | | Session capture — models, token usage, cost, tool invocations, message counts | ✅ | ✅ | | Per-line AI vs. human code attribution | ✅ | ✅ | | Secret redaction before the evidence is uploaded | ✅ | ✅ | | Signed `CHAINLOOP_AI_CODING_SESSION` attestation stored in your CAS backend | ✅ | ✅ | | Custom Rego and [WASM](/guides/wasm-policies/overview) policies over session evidence | ✅ | ✅ | | [Control gates](/concepts/control-gates) — fail the attestation, and the `git push`, on violations | ✅ | ✅ | | Chainloop's curated [policy library](/reference/policies) and [built-in policies](#built-in-policies) | — | ✅ | | Session UI — rendered summary, attribution drill-down, raw evidence viewer | — | ✅ | | [PR correlation](#pr-correlation) — summary comment, `Chainloop AI Policies` check run, missing-session detection | — | ✅ | | [Session lineage](#session-lineage) — from the session to pull requests, artifacts, deployments, and findings | — | ✅ | | [AI Coding dashboard](#ai-sessions-dashboard-metrics) and org-wide session metrics | — | ✅ | | [AI Session Score](/reference/ai-score) | — | ✅ | | Per-session aggregation of policy violations on pull requests and query APIs | — | ✅ | | [Findings](/concepts/vulnerability-management) and [compliance framework](/concepts/compliance-frameworks) linkage | — | ✅ | Without the platform you still get the evidence and the verdict: sessions are signed, stored, retrievable through the CLI and API, and gated by the policies you attach to them. ## How Sessions Are Captured While an agent is working, hooks installed in the agent's runtime record everything that matters: * **Session metadata** — start and end time, duration, slug, agent and version. * **Model and token usage** — primary model, every model used, input/output/cache tokens, estimated cost. * **Tool invocations** — every tool the agent called (`Read`, `Edit`, `Bash`, etc.) and how many times. * **Conversation summary** — counts of user and assistant messages. * **Per-line code attribution** — every time the agent edits a file via `Edit`, `Write`, or `MultiEdit`, the hooks snapshot the file before and after the change. Diffing the snapshots gives the exact line ranges the agent touched. * **Context** — the specs, tasks, plans, skills and images the session worked from. See [Session Context](#session-context). This data is held locally, in `.git/chainloop-trace/` by default, until you push. ### Session Context The transcript shows what the agent did. The context shows what it was asked to do. Specs, tasks, plans, skills and screenshots are the inputs of the code, and teams lose them. Someone edits a ticket, a design document moves, and a plan approved in the agent's plan mode lives only in the chat. `chainloop trace` vendors those inputs into the session evidence, the way a build vendors its dependencies, so the record keeps the exact instructions the agent read. The sources are signed with the transcript, so editing one after the fact breaks the signature. The context is what turns a session record into something you can grade. The [AI Session Score](/reference/ai-score#grading-against-the-spec) checks the change against the captured spec requirement by requirement, and the session view shows each source next to the transcript. For what is captured, how, and which agents support it, see [Capture the Context of a Session](/guides/chainloop-trace#capture-the-context-of-a-session). ## Aggregation on Git Push A single commit can include changes from multiple sessions, or a mix of AI and human edits. On push, the pre-push hook reconciles all of that into one attestation: ```mermaid theme={"dark"} flowchart LR s1[Session A
handler.go] --> commit1[Commit a1b2c3d] s2[Session B
config.go] --> commit1 human[Human edits
README.md] --> commit2[Commit e4f5g6h] commit1 --> push[git push] commit2 --> push push --> att[Attestation
CHAINLOOP_AI_CODING_SESSION] att --> chainloop[(Chainloop)] ``` For each contributing session, the bundle records git context (repo, branch, commit range), aggregate stats, and a per-file attribution label (`ai` or `human`) with the exact line ranges. The bundle is then signed and pushed as a Chainloop attestation. Hooks are non-blocking by default — if anything fails, they log a warning but never block the push (toggle this with the `traceRequired` setting in `.chainloop.yml`). Before the evidence leaves the machine, the CLI scans the session for secrets and replaces the ones it finds with placeholders. Only the uploaded copy is redacted — the local session files are left untouched — and redaction fails closed, so a session that can't be scanned isn't uploaded at all. What redaction did is recorded in the attestation, so policies can reject sessions that were stored unscanned. After the push, the local session data is cleaned up. The attestation lives in Chainloop, tied to the project the repository is linked to. In [local mode](/guides/chainloop-trace#record-sessions-locally), the push runs the same steps but writes the redacted, unsigned evidence to disk instead of signing and uploading it. ## PR Correlation Once attestations land in Chainloop, the platform connects them to the pull requests they belong to. ```mermaid theme={"dark"} flowchart LR ev[GitHub PR opened
or synced] --> webhook[Chainloop
GitHub App webhook] webhook --> match{Match commit SHAs
against stored sessions} match -->|matches| comment[PR Summary Comment] match -->|matches + policies| check[Chainloop AI Policies
Check Run] match -->|aggregated| dashboard[AI Coding Dashboard] match -->|no matches| noop[No PR comment posted] ``` When a PR is opened or new commits land, the Chainloop GitHub App receives a webhook event, fetches the PR's commit list, and matches each commit SHA against the stored AI coding session attestations for the linked project. The matches drive three downstream surfaces — the PR summary comment, the policy check run, and the dashboard's PR-related metrics. If session data arrives after the PR is opened, the comment is updated automatically once the session lands. ![Chainloop AI Session Analysis comment on a pull request showing average score, sessions, failing policies, attribution, files, lines, and total duration](https://mintcdn.com/chainloop/hosAHyWigRy_O92P/concepts/img/ai-coding-pr-correlation.png?fit=max\&auto=format\&n=hosAHyWigRy_O92P\&q=85\&s=0679d12a4ce8273bff3e0c13d1d3629d) ## Session Lineage PR correlation shows which pull requests a session fed. The **Lineage** tab goes further. It follows the code of the session to production, from the pull requests to the artifacts, their deployments and their findings. [Chainloop session lineage walkthrough](https://www.tella.tv/video/vid_cmvtgu3th001s08jmbobj8q5s/embed?b=0\&title=0\&a=1\&loop=0\&t=0\&muted=0\&wt=0\&o=1) The tab reads left to right: | Column | What it shows | How it links to the previous step | | - | - | - | | **Source** | The session (agent, model, policy results, score), the pull requests it fed with the scans that ran on each one before the merge, and the merge commit with the release it went into. Open pull requests show their scan status too. | A session records its commits. Chainloop matches them against each pull request's commits, and records the merge commit when the pull request merges. | | **Workflows & Scans** | The workflow runs on the merge commit: CI attestations and [managed scans](/guides/repository-integration) such as SAST, secrets, vulnerabilities, SBOM and IaC, with their policy results. | Each attestation records the commit it ran on. | | **Artifacts & Evidence** | The container images and binaries those workflows built and attested. | Each artifact is a material of a build attestation, referenced by its SHA256 digest. A scan of the same image points at the same digest. | | **Deployments & Findings** | The environments where each artifact runs, from [deployment tracking](/concepts/deployments), and the open [findings](/concepts/vulnerability-management) on it with their triage state. | Deployment records and scan reports reference the artifact's digest. | When a session has no merged pull request yet, the tab says so and explains why the path is empty. Lineage adds no data of its own. Every link is a commit SHA or a content digest inside a signed [attestation](/concepts/attestations). The tab walks evidence that you can verify. It is only as complete as what you attest. The artifacts and deployments columns fill in when your CI attests its builds with the Chainloop CLI and records deployments. You can walk the same graph from the CLI with [`chainloop discover`](/cli/reference#chainloop-discover). For example, `chainloop discover -d ` starts from a merge commit and finds the sessions that contributed to it. ## AI Sessions Dashboard Metrics The org-wide AI Coding dashboard at `/u//dashboards/ai` aggregates everything captured above. Each card maps to a specific backend metric: ![AI Coding dashboard with stat cards, top users, and model breakdown for the selected time window](https://mintcdn.com/chainloop/hosAHyWigRy_O92P/concepts/img/ai-coding-dashboard.png?fit=max\&auto=format\&n=hosAHyWigRy_O92P\&q=85\&s=a5bbefeb64f1f49f1b3fc75b21b16adc) | Card | What it shows | Backend metric | | - | - | - | | **Total Sessions** | Unique sessions in the period, with delta vs. the previous period of the same length | `AICodingTrend` | | **Active Users** | Distinct developers who attested at least one session | `AICodingTrend` | | **AI-assisted PRs** | PRs in the period with at least one commit linked to a session, plus share of total PRs and merged count | `AICodingPullRequestTrend` | | **AI-authored Code** | Aggregate AI vs human line counts and AI share, with previous-period delta | `AICodingAuthorshipShare` | | **Top Users** | Developers ranked by session count for the period | `AICodingTopUsers` | | **Model Breakdown** | Per-model session count, share of usage, and aggregate cost | `AICodingModelUsage` | The PR card uses the same correlation mechanism as the per-PR comment, so the two views are always consistent. ## Policies and Scoring Because each session lands as a regular Chainloop material, every policy mechanism that works on materials works on AI coding sessions too. ### Built-in Policies Chainloop ships a curated contract of deterministic checks for `CHAINLOOP_AI_CODING_SESSION`: * [`source-commit`](/reference/policies#source-commit) — verifies the attestation references a specific Git commit and (optionally) that the commit is signed * [`ai-agent-present`](/reference/policies#ai-agent-present) — confirms an AI agent is present in the attestation or as a known bot reviewer on the PR * [`ai-config-ai-agents-allowed`](/reference/policies#ai-config-ai-agents-allowed) — restricts which AI agents may produce sessions (e.g., only `claude-code`) * [`ai-config-mcp-servers-allowed`](/reference/policies#ai-config-mcp-servers-allowed) — restricts which MCP servers a session may invoke * [`ai-config-no-dangerous-commands`](/reference/policies#ai-config-no-dangerous-commands) — flags destructive shell commands captured during the session * [`ai-config-no-secrets`](/reference/policies#ai-config-no-secrets) — detects hardcoded secrets in session transcripts Custom Rego policies are also supported. The [chainloop-trace guide](/guides/chainloop-trace#applying-policies) shows examples for restricting models, enforcing a token budget, and capping AI-authored line ratios. ### PR Check Run When a session in a PR violates any attached policy, Chainloop publishes a `Chainloop AI Policies` GitHub check run on the head commit. The check is `failure` when there are violations, `neutral` when policy data can't be evaluated, and `success` otherwise — making AI policy compliance a first-class merge gate alongside CI. ### AI Session Score In addition to deterministic policies, Chainloop computes an [AI Session Score](/reference/ai-score) — a per-PR confidence signal derived from session data, the diff, and contextual signals like AI code review bot comments. When the session captured a spec, the score grades the change against it, requirement by requirement. Where policies say "did this break a specific rule?", the score says "does this PR look healthy enough to merge?" and surfaces actionable findings for reviewers. ![AI Quality Score breakdown showing per-criterion scores and findings for context-and-planning, solution-quality, user-trust-signal, alignment, scope-discipline, and verification](https://mintcdn.com/chainloop/hosAHyWigRy_O92P/concepts/img/ai-session-score.png?fit=max\&auto=format\&n=hosAHyWigRy_O92P\&q=85\&s=e0dfc2e1234c91356b80a8626ee6bf69) ## Relationship to AI Config Collection `chainloop trace` captures **runtime** session data. It pairs naturally with the [AI config collector](/guides/ai-config-collector), which captures the **static configuration** an agent runs with (CLAUDE.md, MCP config, settings, rules, skills). | | AI Config Collector | Chainloop Trace | | - | - | - | | **What it captures** | Static configuration files (CLAUDE.md, settings, MCP config, rules, skills) | Runtime session data (tokens, tools, code changes, costs) | | **When it runs** | During `chainloop attestation init --collectors aiconfig` | Automatically on every `git push` via hooks | | **Material type** | `CHAINLOOP_AI_AGENT_CONFIG` | `CHAINLOOP_AI_CODING_SESSION` | | **Use case** | Governance over how agents are configured | Visibility into what agents actually did | Use both together for full coverage: the config collector ensures agents are set up correctly, while trace ensures they behave as expected at runtime. ## Set It Up Ready to capture sessions in your repositories? Follow [How to record AI coding sessions](/guides/chainloop-trace) — it walks through prerequisites, `chainloop trace init`, recording a single agent run with `chainloop trace run`, the GitHub App, the dashboard, enforcement options, and troubleshooting. ## Further Reading * [AI Session Score](/reference/ai-score) — per-PR confidence signal for AI-assisted changes * [How to collect AI agent configuration](/guides/ai-config-collector) — capture static AI agent configuration files * [Policies](/concepts/policies) — how policies work in Chainloop * [Material Types](/concepts/material-types) — full list of supported material types # Ask Chainloop Source: https://docs.chainloop.dev/concepts/ask-chainloop A built-in natural language interface for querying your software supply chain data directly from the Chainloop dashboard. > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). ## Overview Ask Chainloop is a native natural language interface embedded directly in the Chainloop Web UI. It lets you query your supply chain data, check compliance status, explore artifacts, and get answers about your organization's security posture — all through conversational prompts, without leaving the dashboard. Ask Chainloop uses the same tooling as the [Chainloop MCP server](/guides/chainloop-mcp), but requires zero local configuration. It runs entirely within the platform using your existing web session. ## Why Ask Chainloop Consuming and correlating supply chain data typically requires navigating the Web UI or using the API. The [MCP server](/guides/chainloop-mcp) provides a powerful integration for AI clients, but requires setting up a local client and configuring connections. Ask Chainloop removes that barrier: * **Zero configuration** — no local binaries, API keys, or MCP client setup. It uses your existing session. * **Contextual awareness** — the assistant knows which page you're viewing and can tailor responses to your current context. This makes supply chain intelligence accessible to everyone in the organization, from developers checking their project's compliance to stakeholders reviewing a product's security posture. ## Prerequisites Ask Chainloop requires an AI provider to be configured in your organization. [Configure an AI provider](/reference/llm-support) in your organization's Integrations page before getting started. ## How to Use Open the Ask panel from anywhere in the dashboard: * Click the **Sparkles** icon in the top navbar * Press **Cmd+K** (or **Ctrl+K**) to toggle the panel The panel opens on the right side of the screen. Type your question and press **Enter** to send. The assistant streams its response in real time. Your conversation persists as you navigate between pages within the same organization. Switching organizations starts a fresh conversation. ## Tips for Better Results * **Be specific** — include project names, version numbers, or framework names. "Show compliance for the backend project against SLSA" works better than "show compliance." * **Start with action verbs** — "List," "Show," "Compare," "Describe" help the assistant understand what you need. * **Add scope** — narrow your question to a project, product, or version. The more context you give, the more precise the answer. * **Ask follow-ups** — the assistant remembers your conversation. Start broad ("list my products") then drill down ("show the compliance status for the latest version of that first one"). * **Use the page context** — the assistant knows which page you're on. If you're viewing a project, you can ask "what policies apply here?" without repeating the project name. ## Limitations * **Read-only** — Ask Chainloop can query and retrieve data but cannot create, modify, or delete any resources (projects, policies, contracts, workflows, etc.). * **Responses may be inaccurate** — AI-generated responses can contain mistakes. Always verify critical information before acting on it. * **Scoped to your organization** — the assistant can only access data within your current organization and respects your existing permissions. * **No conversation history** — each session starts fresh. Conversations are preserved while navigating within the same organization, but there is no way to save or revisit past conversations. ## Capabilities Ask Chainloop has access to the following tools to answer your questions: ### Organization and Discovery * View account details and organization information * Find evidence or materials by SHA256 digest, with full relationship tracing ### Products, Projects, and Versions * List and inspect products with their version history * List and inspect projects ### Compliance * Evaluate compliance against security frameworks (SLSA, CRA, SSDF, and custom frameworks) * Get aggregated compliance status across products with per-project breakdowns * List and describe available frameworks and their requirements ### Evidence and Artifacts * List evidence artifacts with filtering by kind (SBOM, SARIF, container image, JUnit XML, and more) * Download evidence content by digest * View policy evaluation results for specific versions ### Components * List software components and packages with filtering by project or product * Get detailed component information with dependency relationships ### Policies and Contracts * List policies (custom and built-in) and policy groups * List and describe workflow contracts with their full schema ## Related Resources * [How to use the Chainloop MCP server](/guides/chainloop-mcp) — connect your own AI clients to Chainloop * [LLM Support](/reference/llm-support) — configure AI providers for your organization * [LLM-driven policies](/guides/llm-policies) — use AI to evaluate evidence against natural language policies # Attestations Source: https://docs.chainloop.dev/concepts/attestations ## Overview An attestation is a signed and verifiable unit of data sent to Chainloop. Users and CI systems use the Chainloop CLI to "craft" attestations, add pieces of evidence (materials) to them, and "push" them to Chainloop service (the evidence store). **Attestations are performed with the Chainloop command line interface (CLI) and its lifecycle has the following stages: `init`, `add`, `push` or `reset`.** As you can see, it mimics the workflow of a commonly used version control tool, and this is not by coincidence. Chainloop wants to make sure that the tooling feels familiar to developers and that no security jargon leaks into this stage of the process. For a developer, creating an attestation must be as simple as initializing it, adding pieces of evidence (materials) to it, and pushing it. ## How Attestations Are Stored and Trusted Chainloop builds a trusted evidence store for your organization. Every attestation you push becomes a node in that store, carrying its full context: the pieces of evidence (materials) it was crafted with, the environment variables of the run, the commit information, and the runner that produced it. What turns those nodes into a graph is the content digest. Materials are referenced by their SHA256, so two attestations that touch the same artifact point at the same digest: a build attestation that produces a container image and a security scan attestation that scans that image are connected through it, without either one knowing about the other. Follow those references and you can traverse from any artifact to everything ever attested about it, for example with the `chainloop discover` command. Attestations are signed end to end. At push time, the CLI signs the attestation and packages it as a Sigstore bundle together with the verification material needed to check it later. See [Signing and Verification](/reference/signing) for the supported signing mechanisms and [Attestation format](#attestation-format) below for the bundle layout. Storage is split in two. The signed attestation is pushed to the control plane, which stores its metadata. The evidence payloads themselves are uploaded to your configured [CAS backend](/concepts/cas-backend), where each one is stored under its SHA256 content digest, calculated by the client and verified by the CAS server. The attestation references each material by that digest, so any tampering with a stored payload is detectable. Because the CAS backend is yours, encryption at rest is whatever that backend provides. An OCI registry, an S3 bucket, or an Azure Blob container each apply their own encryption settings to the evidence Chainloop stores in them, under your control and your key management. ```mermaid theme={"dark"} graph LR A1["Attestation: build
signed Sigstore bundle
commit, runner, env"] A2["Attestation: security-scan
signed Sigstore bundle
commit, runner, env"] IMG["Container image
sha256:a1b2c3…"] SBOM["SBOM
sha256:d4e5f6…"] SARIF["SARIF report
sha256:7890ab…"] A1 --> IMG A1 --> SBOM A2 --> IMG A2 --> SARIF ``` ## Attestation lifecycle ```bash theme={"dark"} # initialize the attestation. Downloading the contract > chainloop att init --workflow workflow-name --project project-name # add materials to the attestation > chainloop att add --value ghcr.io/chainloop-dev/chainloop/control-plane:latest > chainloop att add --value reports/cyclonedx.json --kind SBOM_CYCLONEDX_JSON # generate, sign and push the attestation to chainloop > chainloop att push ``` ### attestation init > [!TIP] > > A project version and optionally a version can be provided during initialization. You can read more [here](/concepts/projects-versions#attest-to-a-specific-version). During this stage, the crafting tool will contact chainloop control plane to * Signal the intent of starting an attestation. * Retrieve or create the associated [workflow contract](/concepts/contracts) * If the contract has a specified [runner context type](/concepts/contracts#runner-context), check that we are compliant with it. * Initialize environment variables, explicitly stated in the contract and other contextual information. > [!NOTE] > > The "other contextual information" includes the environment variables that the [runner context](/concepts/contracts#runner-context) discovers automatically. If your organization has enabled the [Skip Runner-Discovered Environment Variables](/concepts/contracts#skip-storing-runner-discovered-environment-variables) setting, those auto-discovered variables are not stored in the attestation. The contract's explicit `envAllowList` is always honored. ### attestation add Add the **materials required by [the contract](/concepts/contracts)** and any other additional (see [contractless materials](/concepts/attestations#contract-less%2C-auto-discoverable-materials) pieces of evidence, i.e artifact, OCI image ref, SBOM. The `add` command knows how to handle each kind of material transparently to the user. For example * ARTIFACT kinds will be uploaded to your artifact registry and referenced by their content digest. * CONTAINER_IMAGE kinds will be resolved to obtain their repository digests using the local authentication keychain. * SBOM_CYCLONEDX_JSON will validate the right SBOM format and upload it to the artifact registry. > [!TIP] > > If your CycloneDX SBOM has minor schema deviations (e.g., generated by tools that produce slightly non-compliant output, or enriched/modified by scripts after generation), you can skip strict validation using the `--no-strict-validation` flag. For a complete list of available material types, see the [reference](/concepts/material-types) section. ### attestation push This stage will take the current crafting state, validate that it has all the required materials and * Create a signed, attestation envelope. * Push it to the control plane for storage > [!TIP] > > You can leverage multiple signing mechanisms, including keyless signing and verification. For a complete list please refer to the [signing](/reference/signing) guide. > [!NOTE] > > If your organization has enabled the [Make Released Versions Immutable](/concepts/projects-versions#make-released-versions-immutable) setting, pushing an attestation to a project version that has already been released will be rejected. ### attestation reset By using the `reset` command we can indicate to the control plane that something went wrong or we want to abort the attestation process. ### attestation status See the state of the current crafting process. ## Attestation format The generated attestations are in the form of a [Sigstore bundle](https://github.com/sigstore/protobuf-specs/blob/21dac573b11eaa14208064140cb889a44f307377/protos/sigstore_bundle.proto#L111) signed with the [signing mechanism of your choice](/reference/signing). This bundle contains the attestation in the form of a DSSE envelope, and the verification materials required to verify the attestation. These include intermediate certificates, in the case of ephemeral certificates or timestamp services. Example ```json [expandable] theme={"dark"} { "mediaType": "application/vnd.dev.sigstore.bundle+json;version=0.3", "verificationMaterial": { "certificate": { "rawBytes": "MIIB5DCCAWqgAwIBAgIUXMnEd59cEi+F8IwW5xPEZowFKGgwCgYIKoZIzj0EAwMwLDEWMBQGA1UECgwNY2hhaW5sb29wLmRldjESMBAGA1UEAwwJY2hhaW5sb29wMB4XDTI1MDMyNDExNTMzOFoXDTI1MDMyNDEyMDMzOFowLzEtMCsGA1UEChMkOTNkMDIyNzUtODUzYy00YWQ2LTlkNjAtOGY1NjJiMTIzZmQyMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEelmK4JQi5e/4Uv4DFi/IszhxhZUMtMhS5pMlt1M/y5V9JBNXllQ7lFCO0UZshUP0E8pLU2lb62dHUoaCen6qiKNnMGUwDgYDVR0PAQH/BAQDAgeAMBMGA1UdJQQMMAoGCCsGAQUFBwMDMB0GA1UdDgQWBBTDS8wdOFGSi79ymJWQy3p9irm6szAfBgNVHSMEGDAWgBTmzi6ht2KmAQFfrGvKtZDRGyR0hzAKBggqhkjOPQQDAwNoADBlAjBEEgeDUR69LF/bMPEQ8pT0h/kd6r8FfhXZS7l04PVUxGHLLQfVSdmFoG6CIKUV18cCMQDpJBZw9ARQk29XKXzg/D8K96RG4MF0vS+F2K/+RmtsRDuSSwVugQFwiQ5cK0Jkvds=" }, "timestampVerificationData": { "rfc3161Timestamps": [ { "signedTimestamp": "MIIEIzADAgEAMIIEGgYJKoZIhvcNAQcCoIIECzCCBAcCAQMxDzANBglghkgBZQMEAgEFADB3BgsqhkiG9w0BCRABBKBoBGYwZAIBAQYJYIZIAYb9bAcBMDEwDQYJYIZIAWUDBAIBBQAEIHIr+U3/ec9GMyj/uc5SV8SYq76EGyficbNlHb5Mfr7gAhACdzgFINJaQks5u3Cw+hDFGA8yMDI1MDMyNDExNTMzOFoxggN2MIIDcgIBATB3MGMxCzAJBgNVBAYTAlVTMRcwFQYDVQQKEw5EaWdpQ2VydCwgSW5jLjE7MDkGA1UEAxMyRGlnaUNlcnQgVHJ1c3RlZCBHNCBSU0E0MDk2IFNIQTI1NiBUaW1lU3RhbXBpbmcgQ0ECEAuuZrxaun+Vh8b56QTjMwQwDQYJYIZIAWUDBAIBBQCggdEwGgYJKoZIhvcNAQkDMQ0GCyqGSIb3DQEJEAEEMBwGCSqGSIb3DQEJBTEPFw0yNTAzMjQxMTUzMzhaMCsGCyqGSIb3DQEJEAIMMRwwGjAYMBYEFNvThe5i29I+e+T2cUhQhyTVhltFMC8GCSqGSIb3DQEJBDEiBCCA8prjLb9KaHEJLWT0JjlVNEjGC5rKAWM++pSkO5Co3DA3BgsqhkiG9w0BCRACLzEoMCYwJDAiBCB2dp+o8mMvH0MLOiMwrtZWdf7Xc9sF1mW5BZOYQ4+a2zANBgkqhkiG9w0BAQEFAASCAgCWm6hXI4Bz3i1lLEs4LQaZdG+Znq51CnrmvWK/Pmh9YNAGg9zmL7tOIJDe/0x1uGXIvSugHmeb3lxCn5xVayh0gfcl3TvaT0MT2b/FgJZ7LAcu4onnpmASRT/36imQNO0zkrsfwanhtmTvSlAnmiDBqpypf2MvHkuYIxZEaGj8czsc7iJaFQbnc2yHNjwXYej7Q4R/TsRFZ76BY5QjuRnFXEs4ay/9wHONpfe3mqkW5xFRSg80owcQil84xPoy/vrHq+eQUXKSOwg1oUrxrmQQbj9h99I13df7FjK8TStdjIJYFF9iRCo27jceczL2lmcwHjxbTu209DlRyrkrFqoAGT2ayfRnVhLgUiuuCtQjhtrt2bZYzqqOC6vU1yuqXvNz7O1bv/KxOy3jWOPAUDKF+ScxJX9hlx60PhtetEl9/WGhSdynzRkvA5x7HnzeQ5zrv7cfXcOx5IxxKJxznVCPbpRPbNyLbHU2N0OwIg3Act4ZkCtsOmQwTTbz+zDsoQN/ZiKiRtnWBwSS3nCwAQeadHpy2qa/Px2arYK3KbMskyk8WvrX7vtfA20Qhp/P6gaG29nHCUEm8qhUR/MXP5hrPZPXliv5S099UZxhH1isSM977dnYOKFt5SlBh1FV72pEP0wmenQrPl47vLYNIjr/Jt64v5Y9rzZGoe/hKltugQ==" } ] } }, "dsseEnvelope": { "payload": "eyJfdHlwZSI6Imh0dHBzOi8vaW4tdG90by5pby9TdGF0ZW1lbnQvdjEiLCJzdWJqZWN0IjpbeyJuYW1lIjoiY2hhaW5sb29wLndvcmtmbG93LmNvZGVxbCIsImRpZ2VzdCI6eyJzaGEyNTYiOiIxY2NkNjMyM2I3ZGZiODU5YTU1NDMzNGY4MmU2ZWUwYzY0NTVkOGVjZjQ2NzYwODNiNmYwODUxOTI3Y2UzNTg0In19LHsibmFtZSI6ImdpdC5oZWFkIiwiZGlnZXN0Ijp7InNoYTEiOiIwY2M0YjAyYWI4OWM3MDA2Y2I1NTVlYmU5YmFlZjE4OGJhNTc0NzE1In0sImFubm90YXRpb25zIjp7ImF1dGhvci5lbWFpbCI6IjQ5Njk5MzMzK2RlcGVuZGFib3RbYm90XUB1c2Vycy5ub3JlcGx5LmdpdGh1Yi5jb20iLCJhdXRob3IubmFtZSI6ImRlcGVuZGFib3RbYm90XSIsImRhdGUiOiIyMDI1LTAzLTI0VDExOjQ5OjE2WiIsIm1lc3NhZ2UiOiJjaG9yZShkZXBzKTogQnVtcCBnaXRodWIuY29tL2dvbGFuZy1qd3Qvand0L3Y0IGZyb20gNC41LjEgdG8gNC41LjIgKCMxOTEyKVxuXG5TaWduZWQtb2ZmLWJ5OiBkZXBlbmRhYm90W2JvdF0gPHN1cHBvcnRAZ2l0aHViLmNvbT5cbkNvLWF1dGhvcmVkLWJ5OiBkZXBlbmRhYm90W2JvdF0gPDQ5Njk5MzMzK2RlcGVuZGFib3RbYm90XUB1c2Vycy5ub3JlcGx5LmdpdGh1Yi5jb20+IiwicmVtb3RlcyI6W3sibmFtZSI6Im9yaWdpbiIsInVybCI6Imh0dHBzOi8vZ2l0aHViLmNvbS9jaGFpbmxvb3AtZGV2L2NoYWlubG9vcCJ9XSwic2lnbmF0dXJlIjoiLS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS1cblxud3NGY0JBQUJDQUFRQlFKbjRVYThDUkMxYVE3dXU1VWhsQUFBdGlrUUFEN2poZnUxTllERmFkYzRmd3JHR2dvNVxuK1FjUy9GZ1puOFZ5a1lhYTNJWjFQaFFIZTJUMTAxZHBHd08vNC83OFVwdkdkUkRtdFczZHpyL1IyUWZjY2lHWVxuaUdYUFluZ3FBUWtUQkZWbnpPdVdNa3lWSjgrTFdtbTgxM2g4Yk1XRG13eFovSkVWWkNUbFpjRnBoZVd5NVluSlxuVnlDVEcyT3BHTlRZR3VZRUNYanZmSDFFaWNSaXYrSDdUVkJSYzZRM0tFUWZ0d2hOelI5Z2t6Nzl0dWg0Wld5VVxuTmRvalBhd0VhcXJqVUR0L1hiQlhPRzVGSFZNYW0wTXVnYXJrdHBySm1rZnMvZldwL2pkMnp5SDcvRzNkWnFVZVxuTnlMMWV6dTRvVkRKOWorWVJsdFpscnlpdnVxVDdFU3hNY2hDQWV6TGh6dHpWcUFvdVE1OW5JNHBISjJBWERVQlxuQUU4aTRLcUxjc2JVeW5yUjFWNDhBSGpuOWZYd0l3WjlsUzh4elcybHBBcmpyeGlNb0JPSGtqUDVoUnZHVjhHRlxuM3JpTWlPZUc3d3NPakUwcHFCRUhoRm12T3JEK0VIT3RnRkFKZ05ZbkZYdTFrUDRCMms0V2FjUDhtWG5qWGVmZ1xudFNsTHZxVEh2UUpWbm9EMUwxVUZZYUZzQjR0MnpPQjU5bUd3MVJSK3lHcUNLMEdMYmt2Y0o1RU14UzdzWVJaZ1xuTHI2dzd2VGVCbGV6SCtSTjUwUWJWaFBxakRNUG1WejhCeXVUY2VlbldFbk1aN0FHa2p5WFZFS21TcFpUN2l2OFxuZ09nanVQL0dvT3ZjQS9STVpzN0dPaGVBRGhONlY2V29TcmZnODl6UFkzTXZSdFhwNlg2b3BUL1N0RDdTZ21sRVxuZVg4QVkrVE1EVHJrNFp6SW55Z1Fcbj0zYXBUXG4tLS0tLUVORCBQR1AgU0lHTkFUVVJFLS0tLS1cblxuIn19LHsibmFtZSI6ImdvLnNhcmlmIiwiZGlnZXN0Ijp7InNoYTI1NiI6ImVjYTM3YjIyMDMxNDY4NGYxZmQ0OWQxMTJmNWFmY2ZhNzM2N2Y2ZDQwZGUyMGE3ZTFiNmRmODBhMDA1MGQ5NTAifSwiYW5ub3RhdGlvbnMiOnsiY2hhaW5sb29wLm1hdGVyaWFsLmNhcyI6dHJ1ZSwiY2hhaW5sb29wLm1hdGVyaWFsLm5hbWUiOiJzYXJpZi1yZXN1bHRzIiwiY2hhaW5sb29wLm1hdGVyaWFsLnR5cGUiOiJTQVJJRiJ9fV0sInByZWRpY2F0ZVR5cGUiOiJjaGFpbmxvb3AuZGV2L2F0dGVzdGF0aW9uL3YwLjIiLCJwcmVkaWNhdGUiOnsiYnVpbGRUeXBlIjoiY2hhaW5sb29wLmRldi93b3JrZmxvd3J1bi92MC4xIiwiYnVpbGRlciI6eyJpZCI6ImNoYWlubG9vcC5kZXYvY2xpLzAuMTgzLjBAc2hhMjU2OmVmNjIzZjY3ZTI3NDRjODFlMDc3NTNhMzdiOGM2NThhZDI2NGZlMTIwNWJmMzVjMTVlZTcxYzY4MTdkZmJkZjkifSwiZW52Ijp7IkdJVEhVQl9BQ1RPUiI6Im1pZ21hcnRyaSIsIkdJVEhVQl9SRUYiOiJyZWZzL2hlYWRzL21haW4iLCJHSVRIVUJfUkVQT1NJVE9SWSI6ImNoYWlubG9vcC1kZXYvY2hhaW5sb29wIiwiR0lUSFVCX1JFUE9TSVRPUllfT1dORVIiOiJjaGFpbmxvb3AtZGV2IiwiR0lUSFVCX1JVTl9JRCI6IjE0MDM0NTAxMTI1IiwiR0lUSFVCX1NIQSI6IjBjYzRiMDJhYjg5YzcwMDZjYjU1NWViZTliYWVmMTg4YmE1NzQ3MTUiLCJSVU5ORVJfTkFNRSI6IkdpdEh1YiBBY3Rpb25zIDU3IiwiUlVOTkVSX09TIjoiTGludXgifSwibWF0ZXJpYWxzIjpbeyJhbm5vdGF0aW9ucyI6eyJjaGFpbmxvb3AubWF0ZXJpYWwuY2FzIjp0cnVlLCJjaGFpbmxvb3AubWF0ZXJpYWwubmFtZSI6InNhcmlmLXJlc3VsdHMiLCJjaGFpbmxvb3AubWF0ZXJpYWwudHlwZSI6IlNBUklGIn0sImRpZ2VzdCI6eyJzaGEyNTYiOiJlY2EzN2IyMjAzMTQ2ODRmMWZkNDlkMTEyZjVhZmNmYTczNjdmNmQ0MGRlMjBhN2UxYjZkZjgwYTAwNTBkOTUwIn0sIm5hbWUiOiJnby5zYXJpZiJ9XSwibWV0YWRhdGEiOnsiY29udHJhY3ROYW1lIjoiY2hhaW5sb29wLXZhdWx0LWNvZGVxbCIsImNvbnRyYWN0VmVyc2lvbiI6IjEwIiwiZmluaXNoZWRBdCI6IjIwMjUtMDMtMjRUMTE6NTM6MzguNDM0NDIwOTY0WiIsImluaXRpYWxpemVkQXQiOiIyMDI1LTAzLTI0VDExOjQ5OjQyLjc1Mzc0MjY4N1oiLCJuYW1lIjoiY29kZXFsIiwib3JnYW5pemF0aW9uIjoicmVhZC1vbmx5LWRlbW8iLCJwcm9qZWN0IjoiY2hhaW5sb29wIiwicHJvamVjdFZlcnNpb24iOiJ2MC4xODQuMCIsInByb2plY3RWZXJzaW9uUHJlcmVsZWFzZSI6dHJ1ZSwidGVhbSI6ImNvcmUiLCJ3b3JrZmxvd0lEIjoiMjIzODk3ZTUtMTRiYi00ZDJjLWFmMDktZjU1Mzg4MzBjN2RiIiwid29ya2Zsb3dSdW5JRCI6IjE3MDI0ZWZkLTY1YWQtNDdkZC05NjE2LTVjYzA5ZTY2YjU2YSJ9LCJwb2xpY3lBdHRCbG9ja2VkIjpmYWxzZSwicG9saWN5QmxvY2tCeXBhc3NFbmFibGVkIjpmYWxzZSwicG9saWN5Q2hlY2tCbG9ja2luZ1N0cmF0ZWd5IjoiRU5GT1JDRUQiLCJwb2xpY3lFdmFsdWF0aW9ucyI6eyJDSEFJTkxPT1AuQVRURVNUQVRJT04iOlt7ImRlc2NyaXB0aW9uIjoiVmVyaWZpZXMgdGhhdCB0aGUgYXR0ZXN0YXRpb24gZXhwbGljaXRseSByZWZlcmVuY2VzIGEgc3BlY2lmaWMgR2l0IGNvbW1pdCIsIm5hbWUiOiJzb3VyY2UtY29tbWl0IiwicG9saWN5UmVmZXJlbmNlIjp7ImFubm90YXRpb25zIjp7Im5hbWUiOiJzb3VyY2UtY29tbWl0Iiwib3JnYW5pemF0aW9uIjoiIn0sImRpZ2VzdCI6eyJzaGEyNTYiOiIxNjRiYzMyMmJmMzUwZDZiYjQ1NzY4Yzg2ZGIxODBmNTMxNTA4NWM3OTFhZGViYWYwOTQ5MGY5Y2NlOTk1MjhjIn0sIm5hbWUiOiJzb3VyY2UtY29tbWl0IiwidXJpIjoiY2hhaW5sb29wOi8vY2hhaW5sb29wLXBsYXRmb3JtLWJhY2tlbmQucGxhdGZvcm0tcHJvZC5zdmMuY2x1c3Rlci5sb2NhbC9zb3VyY2UtY29tbWl0In0sInJlcXVpcmVtZW50cyI6WyJjaGFpbmxvb3AtYmVzdC1wcmFjdGljZXMvY29tbWl0LXNpZ25lZCJdLCJza2lwcGVkIjpmYWxzZSwidHlwZSI6IkFUVEVTVEFUSU9OIiwid2l0aCI6eyJjaGVja19zaWduYXR1cmUiOiJ5ZXMifX1dfSwicG9saWN5SGFzVmlvbGF0aW9ucyI6ZmFsc2UsInJ1bm5lclR5cGUiOiJHSVRIVUJfQUNUSU9OIiwicnVubmVyVVJMIjoiaHR0cHM6Ly9naXRodWIuY29tL2NoYWlubG9vcC1kZXYvY2hhaW5sb29wL2FjdGlvbnMvcnVucy8xNDAzNDUwMTEyNSJ9fQ==", "payloadType": "application/vnd.in-toto+json", "signatures": [ { "sig": "MEQCIDsOnb1jq4cLgNwt5mIhskW6d0M1w0IZDqRsGiBA6FKbAiB4+KGLIDHFmajclbqNbUfNH465mSAljMsdJ9qTGN6I6Q==" } ] } } ``` You can retrieve the attestation in multiple formats by inspecting its associated workflow run > [tab] Web UI > > ![The Attestation tab of a workflow run with the in-toto statement and verification instructions](https://mintcdn.com/chainloop/ojasLg-rqpG2qdaD/concepts/img/attestation-1.png?fit=max\&auto=format\&n=ojasLg-rqpG2qdaD\&q=85\&s=20717a96ecd598379bda97ca62973dbc) > [tab] CLI > > ```bash theme={"dark"} > chainloop workflow run describe --id [run-id] -o attestation > ``` > > ``` > { > "mediaType": "application/vnd.dev.sigstore.bundle+json;version=0.3", > "verificationMaterial": { > "certificate": { > "rawBytes": "MIIB5DCCAWqgAwIBAgIURkwgAWZJ8p9sCZAc+7EHWDwIzqYwCgYIKoZIzj0EAwMwLDEWMBQGA1UECgwNY2hhaW5sb29wLmRldjESMBAGA1UEAwwJY2hhaW5sb29wMB4XDTI1MDMyNDExNTExNFoXDTI1MDMyNDEyMDExNFowLzEtMCsGA1UEChMkOTNkMDIyNzUtODUzYy00YWQ2LTlkNjAtOGY1NjJiMTIzZmQyMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEfssrR0/iiWDa02II+QdXtkxNA3xYecBvqji+WYydbqPxq5XkOJH+Zvx/gt+MxXdb8Ys+CZjjqELkyZwIYoTFMqNnMGUwDgYDVR0PAQH/BAQDAgeAMBMGA1UdJQQMMAoGCCsGAQUFBwMDMB0GA1UdDgQWBBS4SFINf79BlzryGyeog0mt4LD7MDAfBgNVHSMEGDAWgBTmzi6ht2KmAQFfrGvKtZDRGyR0hzAKBggqhkjOPQQDAwNoADBlAjEAu+N6rwnmAEvZfYVf/kCfLBnu1UuBAkRq2SuBDhXa7QTWNAdDtEbVaqSUN7cV9C+yAjAK1uGOaeDIzbwdyH5XrI9AX3Nr7wkKtzNfVqNuvUTaszsnlyBlWrKf6LCfUcm2Z04=" > }, > "timestampVerificationData": { > "rfc3161Timestamps": [ > { > "signedTimestamp": "MIIEIzADAgEAMIIEGgYJKoZIhvcNAQcCoIIECzCCBAcCAQMxDzANBglghkgBZQMEAgEFADB3BgsqhkiG9w0BCRABBKBoBGYwZAIBAQYJYIZIAYb9bAcBMDEwDQYJYIZIAWUDBAIBBQAEIOS4J9x9UvtEHDh9Y20ZZdE89O8ur1T7PHZD6rWoLTy+AhANITA+z32x2bAR68fdeViPGA8yMDI1MDMyNDExN > ``` ## Commit Verification Chainloop automatically captures commit signature verification information during attestation initialization. When running in GitHub Actions or GitLab CI environments, the CLI queries the platform's API to verify if the commit was cryptographically signed and validated. ### How it works During the `attestation init` stage, Chainloop: 1. **Detects the CI/CD environment** - Identifies if running in GitHub Actions, GitLab CI, or other supported platforms 2. **Queries platform APIs** - Uses `GITHUB_TOKEN` (for GitHub Actions) or `CI_JOB_TOKEN` (for GitLab CI) to check commit signature verification status 3. **Records verification metadata** - Captures verification status, signature algorithm, and key information 4. **Adds to attestation** - Includes verification data as annotations in the attestation ### Supported platforms Commit verification is automatically performed in: * **GitHub Actions** - Verifies GPG/PGP, SSH, and X.509 signatures through GitHub's commit verification API * **GitLab CI** - Verifies GPG/PGP, SSH, and X.509 signatures through GitLab's commit signature API * **Dagger** - Supports verification when running within GitHub Actions or GitLab CI environments ### Verification statuses The commit verification status is recorded with one of the following values: * `verified` - Commit signature was successfully verified by the platform * `unverified` - Commit has a signature but verification failed (invalid signature, unverified key, etc.) * `unavailable` - Verification could not be performed (API error, missing token, network issue) * `not_applicable` - Commit is not signed or platform doesn't support verification * `unspecified` - Verification status is unknown ### Attestation annotations The commit verification information is stored in the attestation subject annotations: ```json theme={"dark"} "_type": "https://in-toto.io/Statement/v1", "subject": [ { "name": "chainloop.workflow.user-verification", "digest": { "sha256": "722c5b5c8b06e7a6f0857481cbcbcad547bb460c108a7fa41eacbd30d4ce45dc" } }, { "name": "git.head", "digest": { "sha1": "8f6d1a7028511918c6b7e6a5f3ac6bf8bafe7213" }, "annotations": { "author.email": "johndoe@example.com", "author.name": "John Doe", "author.verification_status": "verified", "date": "2026-01-13T12:31:25Z", "message": "Initial commit", "remotes": [ { "name": "origin", "url": "https://github.com/johndoe/example-repo" } ], "signature": "-----BEGIN PGP SIGNATURE-----\n\THE SIGNATURE-----END PGP SIGNATURE-----\n\n", "signature.algorithm": "PGP" } } ], ``` > [!NOTE] > > Commit verification is performed on a best-effort basis and is non-blocking. If verification cannot be performed (e.g., missing token, API error), the attestation will continue with the status recorded as `unavailable`. This ensures that attestation workflows are not disrupted by verification issues. ## Your first attestation To perform your first attestation locally, please refer to the [getting started guide](/get-started/first-attestation). ## CI integration Integrating the attestation process usually requires: * [Create an expose an API token](/reference/api-tokens) or leverage native OIDC support (if applicable) * Download the [Chainloop CLI](/get-started/setup) and perform the [attestation lifecycle](/concepts/attestations#attestation-lifecycle) > [!NOTE] > > Native CI/CD runner integrations (e.g., Jenkins plugin, GitHub action) are under development. In the meantime, please use the chainloop CLI as shown in [these examples](/concepts/attestations#attestation-lifecycle) > [tab] GitHub > > ```yaml [expandable] theme={"dark"} > # Example of GitHub action that > # - Builds a go binary and associated container image using go-releaser > # - Extract a CycloneDX SBOM using Syft > # - Stores the required materials stated in this Chainloop contract > # https://github.com/chainloop-dev/chainloop/blob/main/docs/examples/contracts/skynet/contract.yaml > # - Pushes the resulting attestation to the control plane > name: Release > on: > push: > tags: > - "v*.*.*" > jobs: > release: > env: > # Version of Chainloop to install > CHAINLOOP_TOKEN: ${{ secrets.CHAINLOOP_WF_RELEASE }} > # The name of the workflow registered in Chainloop control plane > CHAINLOOP_WORKFLOW_NAME: build-and-test > CHAINLOOP_PROJECT_NAME: skynet > name: "Release binary and container images" > runs-on: ubuntu-latest > permissions: > contents: write # required for goreleaser > steps: > - name: Install Chainloop > run: | > curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s > > - name: Checkout > uses: actions/checkout@v4 > > - name: Initialize Attestation > run: | > chainloop attestation init --workflow $CHAINLOOP_WORKFLOW_NAME --project $CHAINLOOP_PROJECT_NAME > > - name: Set up Go > uses: actions/setup-go@v3 > with: > go-version: "1.23.6" > > # Generate SBOM using syft in cycloneDX format > - uses: anchore/sbom-action@v0 > with: > image: ****.dkr.ecr.us-east-1.amazonaws.com/container-image:${{ github.ref_name }} > format: cyclonedx-json > output-file: /tmp/skynet.cyclonedx.json > > - name: Add Attestation Artifacts > run: | > # Add binaries created by goreleaser > chainloop attestation add --name [binary-name] --value [binary-path] > > # Created container image > chainloop attestation add --name control-plane-image --value ****.dkr.ecr.us-east-1.amazonaws.com/container-image:${{ github.ref_name }} > > # This is just an example of adding a key/val material type > # Alternatively, GITHUB_SHA could have been added to the contract env variables allowList > chainloop attestation add --name build-ref --value ${GITHUB_SHA} > > # Attach SBOM > chainloop attestation add --name skynet-sbom --value /tmp/skynet.cyclonedx.json > > - name: Finish and Record Attestation > if: ${{ success() }} > run: | > # Note that these commands are using CHAINLOOP_TOKEN env variable to authenticate > chainloop attestation push > > - name: Mark attestation as failed > if: ${{ failure() }} > run: | > chainloop attestation reset > > - name: Mark attestation as cancelled > if: ${{ cancelled() }} > run: | > chainloop attestation reset --trigger cancellation > ``` > [tab] GitLab > > > [!NOTE] > > > > For GitLab we support keyless attestations using GitLab's OIDC tokens. Please refer to the [GitLab Keyless Attestations](/guides/gitlab-keyless) guide for more information. > > ```yaml [expandable] theme={"dark"} > # Example of GitLab Pipeline that > # - Builds a go binary and associated container image using go-releaser > # - Extract a CycloneDX SBOM using Syft > # - Stores the required materials stated in this Chainloop contract > # https://github.com/chainloop-dev/chainloop/blob/main/docs/examples/contracts/container-image-sbom/gitlab.yaml > # - Pushes the resulting attestation to the control plane > stages: > - release > > variables: > # Service account associated to this workflow in Chainloop's control plane > CHAINLOOP_TOKEN: $CHAINLOOP_TOKEN > > # This job pushed container images to GitLab OCI registry > DOCKER_REGISTRY: $CI_REGISTRY > DOCKER_USERNAME: $CI_REGISTRY_USER > DOCKER_PASSWORD: $CI_REGISTRY_PASSWORD > GITLAB_TOKEN: $CI_JOB_TOKEN > > # Download and store Chainloop CLI as an artifact since the next phase uses docker:stable > # runner image has not capabilities (wget/curl) to install it > download_chainloop: > stage: release > only: > refs: > - tags > script: > # We need to install it in the current path in order to be archived > - curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s -- --path . > artifacts: > paths: > - chainloop > expire_in: 5 mins > > release: > stage: release > image: docker:stable > services: > - docker:dind > needs: > - job: download_chainloop > only: > refs: > - tags > > before_script: > # Initialize attestation > - chainloop att init --token $CHAINLOOP_TOKEN --workflow build-and-test --project skynet > > # Install Syft > - wget --no-verbose https://raw.githubusercontent.com/anchore/syft/main/install.sh -O - | sh -s -- -b /usr/local/bin > > script: > # Both CI_JOB_TOKEN and GITLAB_TOKEN required to be passed as env variables > # https://github.com/goreleaser/goreleaser/blob/8ebefd251e0eddd3c294b4d45b6e637783a252f3/internal/client/gitlab.go#L500 > - | > docker run --rm --privileged \ > -v $PWD:/tmp/release-job \ > -w /tmp/release-job \ > -v /var/run/docker.sock:/var/run/docker.sock \ > -e DOCKER_USERNAME -e DOCKER_PASSWORD -e DOCKER_REGISTRY \ > -e CI_JOB_TOKEN -e GITLAB_TOKEN \ > goreleaser/goreleaser release --rm-dist > > # Build sbom > - syft packages registry.gitlab.com/chainloop-dev/integration-demo:$CI_COMMIT_REF_NAME -o cyclonedx-json --file sbom.cyclonedx.json > > # Add attestation > - chainloop attestation add --name sbom --value sbom.cyclonedx.json > - chainloop attestation add --name image --value registry.gitlab.com/chainloop-dev/integration-demo:$CI_COMMIT_REF_NAME > > # Finish attestation > - chainloop attestation push > > after_script: > - chainloop attestation reset || true > ``` ## Advanced features The basics of the attestation process is described in our [getting started guide](/get-started/first-attestation). This guide, instead will focus in some advance features guide ### Contract-less, auto-discoverable materials Security and Compliance teams can define requirements on what must be included in the attestation through [contracts](/concepts/contracts). Alternatively, and in addition to the materials defined on the contract, you can add as many **contract-less** materials as you like by providing its value. The CLI will automatically discover the kind of material you are adding, but you can also specify it by providing the `--kind` flag. For example ```sh theme={"dark"} # Add a contract-less material by providing a name, value and kind chainloop att add --name not-in-contract --value ./cyberdyne.cyclonedx.sbom --kind SBOM_CYCLONEDX_JSON # If you do not provide the --kind, the CLI will automatically discover it chainloop att add --name not-in-contract --value --value ./cyberdyne.cyclonedx.sbom # and if you do not provide the name, the CLI will generate one for you chainloop att add --value ./cyberdyne.cyclonedx.sbom ``` Contract-less and auto-discovery and two features that walk hand by hand. They compose a new way of adding pieces of evidences to an existing contract in a frictionless way. You can see it in action in our [quickstart](/quickstart) guide. ### Remote State By default, the attestation process state is stored locally. But this setup is not suitable when running a multi-step attestation process in a stateless environment, like our Dagger module, or when you want to leverage CI multi-job parallelism or similar. For that, we implemented attestation remote state. Simply put, instead of the attestation CLI being in charge of maintaining the state during the attestation, this can be delegated to the server and retrieved at any time by providing an “attestation-id.” ```sh theme={"dark"} # You can enable the feature by providing the --remote-state flag # and it will return an attestation-id chainloop attestation init --workflow my-workflow --project my-project --remote-state # Then you can add any piece of evidence by providing the attestation-id chainloop attestation add --value cyberdyne.cyclonedx.sbom --attestation-id deadbeef # And finally craft the attestation, sign-it and push it chainloop attestation push --attestation-id deadbeef ``` With this optional feature, as long as you have the attestation-id, you can add any piece of evidence to the attestation from anywhere. ### Add Annotations You can add arbitrary, or pre-defined (in the contract) annotations to both the final attestation or any material you add to the attestation. Material annotations can be added during the \`att add command by providing --annotation foo=bar ```sh theme={"dark"} # A single annotation chainloop attestation add --name my-material --value ./cyberdyne.cyclonedx.sbom --annotation key=value # Multiple annotations chainloop attestation add --name my-material --value ./cyberdyne.cyclonedx.sbom --annotation key=value --annotation another=value ``` To add annotations to the final attestation, you can provide them during the `attestation push` command. ```sh theme={"dark"} chainloop attestation push --annotation key=value ``` ### Sourcing policy inputs from a file [Policies](/concepts/policies) can receive inputs (arguments) that tune their behavior, such as an `ignored_paths` exclusion list. These are normally provided inline in the contract via the `with:` field. For data that doesn't fit comfortably in an argument string — for example exclusion lists that run to hundreds of file paths and are owned by a different team — you can instead source a policy input **dynamically from a CSV or JSON file** at attestation time. The repeatable `--policy-input-from-file` flag on `chainloop attestation add` extracts a column from a file and injects it as a policy input when the material is evaluated: ```sh theme={"dark"} chainloop attestation add --name sigcheck --value sigcheckResult.csv --kind SYSINTERNALS_SIGCHECK \ --policy-input-from-file ignored_paths=exception.csv:Path ``` The flag value has the form `=[:]`: * `` is the name of the policy input to populate (e.g. `ignored_paths`). * `` is the path to the CSV or JSON data file. * `:` selects which column/field to read. It is optional and defaults to the input name. The column is always a single, top-level field or header name, and is taken as the segment after the **last** `:`, so a Windows drive letter (`C:\...`) or a URL scheme (`https://`) in the file path is not mistaken for a column. Supported file formats: * **CSV / TSV** — comma and tab delimiters are auto-detected, a leading byte-order mark (BOM) is handled, and the column header match is case-insensitive. * **JSON** — a bare string array, an array of string-valued objects, or an object mapping the column name to an array. Runtime inputs are merged **additively** on top of any arguments already declared in the contract's `with:` for that policy, so you can combine inline defaults with file-sourced values. > [!NOTE] > > Inputs supplied this way remain fully auditable: > > * The source file is recorded as an [`EVIDENCE`](/concepts/material-types#custom-material-types) material named `-` (the input name is sanitized to a valid material name, e.g. `ignored_paths` → `ignored-paths`). The exact input name is preserved in a `chainloop.material.policy_input` annotation. > * The evidence material and the evaluated material are cross-linked both ways through a `chainloop.material.references` annotation (by material name). > * The policy evaluation records a `runtime_input_overrides` field listing which input names were supplied at runtime; the effective merged values remain in `with`. ### Preventing Implicit Workflow Creation By default, Chainloop automatically creates workflows during the attestation initialization process if they don't already exist. While this provides convenience during initial setup, it can lead to workflow proliferation in automated environments where typos or configuration errors might accidentally create unintended workflows. **Organization administrators can disable implicit workflow creation** to enforce explicit workflow management. When this setting is enabled: * Workflows must be created explicitly using `chainloop workflow create` command before attestation * Attempting to initialize an attestation with a non-existent workflow will fail with an error * This prevents accidental workflow creation from automated systems or CI/CD pipelines #### Enabling the Setting Organization owners can enable this setting using the CLI: ```bash theme={"dark"} chainloop organization update --name my-organization --prevent-implicit-workflow-creation ``` #### Example Behavior When the setting is enabled, attempting to initialize an attestation with a non-existent workflow will result in an error: ```bash theme={"dark"} chainloop att init --workflow sast --project my-project-2222 ERR creating workflows during the attestation process is disabled for this organization. Please create them in advance or contact your administrator ``` To resolve this, explicitly create the workflow first: ```bash theme={"dark"} # Create the workflow explicitly chainloop workflow create --name sast --project my-project-2222 # Now attestation initialization will work chainloop att init --workflow sast --project my-project-2222 ``` #### Use Cases This feature is particularly useful for: * **Large organizations** with many teams and automated systems * **Preventing workflow sprawl** from typos, misconfigurations, or experimental pipelines * **Enforcing governance** by requiring approval for new workflows * **Centralized management** where workflow creation should be controlled by platform administrators # Business Units Source: https://docs.chainloop.dev/concepts/business-units > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). Business Units are optional top-level organizational entities that help structure your organization and manage products at scale. They provide a way to model your company's organizational hierarchy, whether that's by department, division, team, or any other logical grouping that makes sense for your business. ## Overview Business Units serve as containers for [Products](/concepts/products), enabling you to: * **Model organizational structure**: Reflect your company's actual business structure in Chainloop * **Group related products**: Organize products by business unit, making it easier to manage and navigate * **Scale management**: As your organization grows, business units provide a clear organizational framework * **Enhance visibility**: Get a clear view of which products belong to which business units ## Use Cases Business Units are particularly useful for: * **Multi-division companies**: Separate products by different business divisions (e.g., "Cloud Infrastructure", "SaaS Products", "Enterprise Solutions") * **Department-based organization**: Organize by functional departments (e.g., "Engineering", "Platform", "Data") * **Geographic regions**: Group products by regional teams or markets * **Client-specific segments**: For organizations managing products for different clients or business segments ## Creating a Business Unit Business Units can only be created through the Chainloop Web UI: 1. Navigate to **Settings** in the left sidebar 2. Click on the **Business Units** tab 3. Click the **Create Business Unit** button ![The Business Units settings page with the Create Business Unit button](https://mintcdn.com/chainloop/mVK2LwgaKSQG2UZs/concepts/img/bu-create.png?fit=max\&auto=format\&n=mVK2LwgaKSQG2UZs\&q=85\&s=68f5c0e25fc6a74b072b52897b344359) 4. Fill in the business unit details: * **Name**: A unique name for the business unit (e.g., "CloudBU", "Platform Team") * **Description**: A brief description of what this business unit represents 5. Click **Create** to finalize the business unit creation ### Associating Products with Business Units When creating or editing a [Product](/concepts/products), you can optionally assign it to a Business Unit: 1. Go to the **Products** section 2. Click **Create Product** or select **Edit Product** from an existing product's menu 3. In the product form, select the desired Business Unit from the dropdown 4. The dropdown includes a search function to help find the right business unit ![Assign Product to Business Unit](https://mintcdn.com/chainloop/mVK2LwgaKSQG2UZs/concepts/img/bu-attach.png?fit=max\&auto=format\&n=mVK2LwgaKSQG2UZs\&q=85\&s=35e01fa2502f4271fef270549943d61c) Once a product is associated with a business unit, this relationship helps in: * Organizing your product catalog * Understanding your organizational structure * Managing compliance and access control at scale ## Relationship to Products and Projects Business Units are a property of Products that help with organizational grouping: * **Products** can optionally be assigned to a **Business Unit** * **Products** contain multiple **Projects** (software components) * **Projects** contain **Workflows** that generate attestations Using Business Units allows you to: * Group related products by organizational structure * Get a clear view of which products belong to which business units * Better organize your product catalog as your organization scales > [!NOTE] > > Business Units are optional and are not required to use Chainloop. While Business Units group products for organizational purposes, they don't directly affect workflow execution or attestation processes. Their primary role is organizational structure and management. ## Next Steps * Learn more about [Products](/concepts/products) and how they relate to business units * Understand [Projects and Versions](/concepts/projects-versions) within products * Configure [Role-Based Access Control](/reference/rbac) for your organization # Content Addressable Storage (CAS) backend Source: https://docs.chainloop.dev/concepts/cas-backend As part of an attestation process, you might want to collect different pieces of evidence such as Software Bill Of Materials (SBOMs), test results, runner logs, etc and then attach them to the final in-toto attestation. Chainloop helps with this process by providing a Content Addressable Storage API proxy that: * **Abstracts away the underlying storage backend**. You can store your evidence in an [OCI registry](#oci-registry), [AWS S3](#aws-s3), [Azure Blob Storage](#azure-blob-storage), [Cloudflare R2](#cloudflare-r2) or [Minio](#minio). * Makes sure that the pieces of evidence are stored **in a tamper-proof manner**. This is achieved by storing the evidences named after their SHA256 content digest, which is calculated by the client, verified by the CAS server. * **Enables support of large pieces of evidence** since the content digest reference is what will be stored in the attestation. ![Diagram of the Content Addressable Storage proxy routing artifacts to storage backends](https://mintcdn.com/chainloop/qP5Aepelxm7aUyXA/concepts/img/cas-backend.png?fit=max\&auto=format\&n=qP5Aepelxm7aUyXA\&q=85\&s=c55b0d03a4ff699022b6d6358890c3fd) ## Manage Storage Backends You can setup as many CAS backends as you want, but you can only have **one enabled as default and one as fallback at the time**. This **default backend will be used** during the attestation process **to store the pieces of evidence**. The **fallback backend will be used** when the default backend fails or is unreachable, > [!NOTE] > > Chainloop periodically validates the credentials of configured CAS backends. Only backends that are marked as **default** or **fallback** and are not the built-in `inline` backend are checked. If any of these backends start to fail authentication or access checks, Chainloop will automatically send an email notification to the organization's owners so they can rotate or fix the credentials. ### Fallback Backend The fallback backend provides high availability for your artifact storage. When configured: 1. Chainloop first attempts to store artifacts in the default backend 2. If the default backend is unreachable or fails validation, Chainloop automatically switches to the fallback backend 3. Your attestation process continues without interruption > [tab] Web UI > > You can manage your CAS backends in the [Storage Backends Section](https://app.chainloop.dev/cas-backends). > > ![The Storage Backends list with each backend's validation status, limits and role](https://mintcdn.com/chainloop/vTuUKiGCwGJ__XFJ/concepts/img/cas-backends-list.png?fit=max\&auto=format\&n=vTuUKiGCwGJ__XFJ\&q=85\&s=97c0bb76690f86f3c9f811c6afda313c) > [tab] CLI > > In Chainloop, CAS backends can be managed with the `chainloop cas-backend` command. > > ```bash theme={"dark"} > $ chainloop cas-backend ls > ``` > > > [accordion] Command Output > > > > ```bash theme={"dark"} > > ┌─────────────────────────────────┬──────────┬─────────────────────────────────────┬───────────────┬─────────┬──────────┐ > > │ LOCATION │ PROVIDER │ DESCRIPTION │ LIMITS │ DEFAULT │ FALLBACK │ > > ├─────────────────────────────────┼──────────┼─────────────────────────────────────┼───────────────┼─────────┼──────────┤ > > │ │ INLINE │ Embed artifacts content in the atte │ MaxSize: 500K │ false │ false │ > > │ │ │ station │ │ │ │ > > ├─────────────────────────────────┼──────────┼─────────────────────────────────────┼───────────────┼─────────┼──────────┤ > > │ ghcr.io/cyberdyne/chainloop-lab │ OCI │ │ MaxSize: 100M │ true │ false │ > > └─────────────────────────────────┴──────────┴─────────────────────────────────────┴───────────────┴─────────┴──────────┘ > > ``` ## Storage Backend providers > [!NOTE] > > New CAS Backends will be added over time. If yours is not implemented yet, please [let us know](https://chainloop.dev/contact) > [!NOTE] > > **Platform operators**: Chainloop Enterprise can also auto-provision a dedicated CAS backend for every organization in your installation via [Managed CAS](/guides/deployment/guides/managed-cas), so end users don't need to bring their own storage. ### Inline Chainloop comes pre-configured with what we call an `inline` backend that **embeds** the pieces of evidence in the resulting attestations. > [!WARNING] > > Inline backend is useful to get started quickly but since the metadata is embedded in the attestation, its max size is limited. > > **We recommend to switch to a more robust backend such when moving to production.** ### OCI registry #### Add a new OCI registry backend > [tab] Google Artifact Registry > > ```bash theme={"dark"} > # Using json-based service account > # https://console.cloud.google.com/iam-admin/serviceaccounts > > $ chainloop cas-backend add oci \ > --name [cas-backend-name] \ > # i.e us-east1-docker.pkg.dev/my-project/chainloop-cas-devel > --repo [region]-docker.pkg.dev/[my-project]/[my-repository] \ > --username _json_key \ > --password "$(cat service-account.json)" \ > --default > ``` > [tab] Azure Container Registry > > ```bash theme={"dark"} > # Using token-auth with push (content/read + content/write) permissions > # https://learn.microsoft.com/en-us/azure/container-registry/container-registry-repository-scoped-permissions > > $ chainloop cas-backend add oci \ > --name [cas-backend-name] \ > # i.e chainloopcas.azurecr.io/cas > --repo [registry-name].azurecr.io/[my-repository] \ > --username [token-name] \ > --password [token-password] \ > --default > ``` > [tab] GitHub packages > > ```bash theme={"dark"} > # Using personal access token with write:packages permissions > # https://github.com/settings/tokens > > $ chainloop cas-backend add oci \ > --name [cas-backend-name] \ > # i.e ghcr.io/chainloop-dev/chainloop-cas > --repo ghcr.io/[username or org]/[my-repository] \ > --username [username] \ > --password [personal access token] \ > --default > ``` > [tab] DockerHub > > ```bash theme={"dark"} > # Create a personal access token at > # https://hub.docker.com/settings/security > > $ chainloop cas-backend add oci \ > --name [cas-backend-name] \ > --repo index.docker.io/[username] \ > --username [username] \ > --password [personal access token] \ > --default > ``` > [tab] AWS Container Registry > > > [!NOTE] > > > > AWS Container Registry is not supported yet. #### Rotate credentials ```bash theme={"dark"} chainloop cas-backend update oci --name [BACKEND_NAME] --username [NEW_USERNAME] --password [NEW_PASSWORD] ``` #### Set as default ```bash theme={"dark"} chainloop cas-backend update oci --name [BACKEND_NAME] --default=true ``` #### Set as fallback ```bash theme={"dark"} chainloop cas-backend update oci --name [BACKEND_NAME] --fallback=true ``` ### AWS S3 Chainloop also supports storing artifacts in [AWS S3 Blob Storage](https://aws.amazon.com/s3/). #### Pre-requisites To connect your AWS account to Chainloop you'll need: * **S3 Bucket Name** * **Bucket Region** * **AccessKeyID** * **SecretAccessKey** **Create an S3 bucket** Create an S3 bucket and take note of the bucket name and region ![Creating an S3 bucket in the AWS console](https://mintcdn.com/chainloop/qP5Aepelxm7aUyXA/concepts/img/aws-1.png?fit=max\&auto=format\&n=qP5Aepelxm7aUyXA\&q=85\&s=9081397a69403eb543eabeb78243db53) **Create an IAM user with access to that bucket** Next we are going to create a policy that has write/read permissions to the bucket. You can use the snippet below by just replacing `[bucketName]` with the actual name of the bucket you created in the step before. ```json theme={"dark"} { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "s3:ListBucket" ], "Resource": "arn:aws:s3:::[bucketName]" }, { "Effect": "Allow", "Action": [ "s3:GetObject", "s3:PutObject" ], "Resource": "arn:aws:s3:::[bucketName]/*" } ] } ``` Then create an user, attach the policy to it and click on "create access Key" ![Creating an IAM access key in the AWS console](https://mintcdn.com/chainloop/qP5Aepelxm7aUyXA/concepts/img/aws-2.png?fit=max\&auto=format\&n=qP5Aepelxm7aUyXA\&q=85\&s=bca69901004adb215610089fdc115168) Then select third-party service and copy the access key ID and secret access key We are now ready to connect our AWS account to Chainloop ```bash theme={"dark"} $ chainloop cas-backend add aws-s3 \ --name [BACKEND_NAME] \ --access-key-id [accessKeyID] \ --secret-access-key [secretAccessKey] \ --region [region] \ --bucket [bucketName] ``` #### Rotate credentials ```bash theme={"dark"} chainloop cas-backend update aws-s3 --name [BACKEND_NAME] --access-key-id [new-accessKeyID] --secret-access-key [new-secretAccessKey] --region [new-region] ``` ### Azure Blob Storage Chainloop also supports storing artifacts in [Azure Blob Storage](https://azure.microsoft.com/en-us/products/storage/blobs). #### Pre-requisites To connect your Azure storage account you'll need the following information * **Active Directory Tenant ID** * **Service Principal ID** * **Service Principal Secret** * **Storage account name** We'll walk you through the process of how to find this information **Register an application to create the service principal** First, you'll need to register an application in your Azure Active Directory tenant. You can do this using the Azure CLI or from the Azure portal ![Registering an application in Azure Active Directory](https://mintcdn.com/chainloop/qP5Aepelxm7aUyXA/concepts/img/azure-1.png?fit=max\&auto=format\&n=qP5Aepelxm7aUyXA\&q=85\&s=de8c54a45062c2ef2e08394bb8a8a428) Once done, in the application overview you should be able to find the tenantID, and Service principal ID ![The Azure application overview showing tenant and client IDs](https://mintcdn.com/chainloop/qP5Aepelxm7aUyXA/concepts/img/azure-3.png?fit=max\&auto=format\&n=qP5Aepelxm7aUyXA\&q=85\&s=7d4207d0a67b1f5617e0e41fb10766d7) Next, let's create a secret for the service principal ![Creating a client secret for the Azure service principal](https://mintcdn.com/chainloop/qP5Aepelxm7aUyXA/concepts/img/azure-2.png?fit=max\&auto=format\&n=qP5Aepelxm7aUyXA\&q=85\&s=0aef08a124f42a0db9b9e35d063bb186) **Create a storage account and give permissions to the service principal** Next, we'll create a storage account (or you can use an existing one), take a note on the storage account name. ![Creating an Azure storage account](https://mintcdn.com/chainloop/qP5Aepelxm7aUyXA/concepts/img/azure-4.png?fit=max\&auto=format\&n=qP5Aepelxm7aUyXA\&q=85\&s=2190d9803a87fc0a924425fe491a2139) And once created, we'll give permissions to the service principal, go to IAM assign-roles. ![Assigning the Storage Blob Data Contributor role in Azure](https://mintcdn.com/chainloop/qP5Aepelxm7aUyXA/concepts/img/azure-5.png?fit=max\&auto=format\&n=qP5Aepelxm7aUyXA\&q=85\&s=9dac6c99c00cc60417ae753b7c357a89) Search for the application we just registered and assign the Storage Blob Data Contributor role ![Granting the service principal access to the Azure storage account](https://mintcdn.com/chainloop/qP5Aepelxm7aUyXA/concepts/img/azure-6.png?fit=max\&auto=format\&n=qP5Aepelxm7aUyXA\&q=85\&s=0faf6feeeac929a359d166484af99c62) At thi point we have all the information we need to connect our Azure storage account to Chainloop ```bash theme={"dark"} $ chainloop cas-backend add azure-blob \ --name [BACKEND_NAME] \ --client-id [servicePrincipalID] \ --client-secret [servicePrincipalSecret] \ --tenant [Active directory tenant] \ --storage-account [Storage Account name] \ --container [optional Storage account container] \ --endpoint [optional custom endpoint suffix, e.g., blob.core.usgovcloudapi.net] ``` #### Rotate credentials ```bash theme={"dark"} chainloop cas-backend update azure-blob --name [BACKEND_NAME] --client-id [new-clientID] --client-secret [new secret] --tenant [updated tenant] ``` ### Cloudflare R2 [Cloudflare R2](https://www.cloudflare.com/developer-platform/r2/) is compatible with AWS S3 and can be configured in Chainloop by providing a custom endpoint. Pre-requisites * **AccessKeyID** * **SecretAccessKey** * **Bucket Name** * **Endpoint** Follow [this instructions](https://developers.cloudflare.com/r2/api/s3/tokens/) to create a compatible AccessKeyID and SecretAccessKey. Then copy the bucket name and endpoint from the bucket settings. ![Creating an R2 API token in the Cloudflare dashboard](https://mintcdn.com/chainloop/qP5Aepelxm7aUyXA/concepts/img/cloudflare.png?fit=max\&auto=format\&n=qP5Aepelxm7aUyXA\&q=85\&s=d86237004e3b8f2b24d5334f584cd811) Finally register the Cloudflare R2 bucket using the `aws-s3` provider and providing the custom endpoint. ```bash theme={"dark"} $ chainloop cas-backend add aws-s3 \ --name [BACKEND_NAME] \ --access-key-id [accessKeyID] \ --secret-access-key [secretAccessKey] \ --bucket [bucketName] \ --endpoint [endpoint] # provide the custom endpoint ``` ### Minio [Minio](https://min.io/) is an S3-compatible blob storage that can be configured in Chainloop by providing a custom endpoint. Pre-requisites * **AccessKeyID** * **SecretAccessKey** * **Bucket Name** * **Minio Endpoint** You can create a new AccessKey from the Minio console. ![Creating a bucket in the MinIO console](https://mintcdn.com/chainloop/qP5Aepelxm7aUyXA/concepts/img/minio-1.png?fit=max\&auto=format\&n=qP5Aepelxm7aUyXA\&q=85\&s=ce0001ccd90715e16610472a2076f865) Then copy the bucket name and Minio endpoint. ![Creating an access key in the MinIO console](https://mintcdn.com/chainloop/qP5Aepelxm7aUyXA/concepts/img/minio-2.png?fit=max\&auto=format\&n=qP5Aepelxm7aUyXA\&q=85\&s=d4ced6fbb61e70935b57bcb0abb52971) Finally register the Minio bucket using the `aws-s3` provider and providing the custom endpoint ```bash theme={"dark"} $ chainloop cas-backend add aws-s3 \ --name [BACKEND_NAME] \ --access-key-id [accessKeyID] \ --secret-access-key [secretAccessKey] \ --bucket [bucketName] \ --endpoint [endpoint] # provide the custom endpoint ``` ## Give it a try If everything went well, you should be able to upload and download artifact materials, let's give it a try ```bash Upload a file to your OCI repository theme={"dark"} $ chainloop artifact upload -f myfile myfile@sha256:c5cc0a2c712497c29f29c3ba11e7fcc0c3cc725ab591720db595e5d6469f3f37 ... done! [1.03KB in 0s; 5.48KB/s] ``` ```bash Download by content digest (sha256) theme={"dark"} $ chainloop artifact download -d sha256:c5cc0a2c712497c29f29c3ba11e7fcc0c3cc725ab591720db595e5d6469f3f37 INF downloading file name=myfile to=/tmp/myfile INF file downloaded! path=/tmp/myfile ``` # Compliance Frameworks and Requirements Source: https://docs.chainloop.dev/concepts/compliance-frameworks > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). ## Overview Compliance, Risk Management, and Release Management teams need a seamless way to communicate SDLC security and compliance requirements to development teams. This is critical in organizations with hundreds or thousands of different products. Chainloop provides a convenient way to model [**Projects (software products)** and **Versions**](/concepts/projects-versions). Then, Compliance teams can apply **Compliance Requirements** through **Frameworks** to these projects. Requirements can be written in a high-level language, like "container images must be signed", "an AGPL license is forbidden", "the software must be free from high-severity vulnerabilities", "code repositories must be configured with least privilege principle access controls", etc. ![A framework's requirements list showing high-level compliance requirements](https://mintcdn.com/chainloop/qP5Aepelxm7aUyXA/concepts/img/compliance-1.png?fit=max\&auto=format\&n=qP5Aepelxm7aUyXA\&q=85\&s=dbc8883650cbe5eaabc7d938959f6659) Those requirements are grouped into **Frameworks**, which are attached to Products. Projects belonging to those products are evaluated against those frameworks. Frameworks and requirements can come from internal compliance regulations but can also be mapped from well-known external standards and good practices. Some examples are the [NIST SSDF](https://csrc.nist.gov/projects/ssdf) and the European [CRA](https://digital-strategy.ec.europa.eu/en/policies/cyber-resilience-act). ![Frameworks grouping requirements, attached to products in the Chainloop UI](https://mintcdn.com/chainloop/qP5Aepelxm7aUyXA/concepts/img/compliance-2.png?fit=max\&auto=format\&n=qP5Aepelxm7aUyXA\&q=85\&s=5550dff6209c8e590796c9a8262610e4) Frameworks and requirements can be: * **Built-in**: Chainloop provides a good set of pre-built frameworks and requirements that can be directly applied to projects or used as the basis for building custom. Built-in requirements can be used in custom frameworks or copied to custom requirements. * **Custom**: Organizations can manage their own private org-level frameworks and requirements. ## Supported Built-in Frameworks | Framework | Type | Purpose | Coverage | Verification | Chainloop Docs | | - | - | - | - | - | - | | Best Practices by Chainloop | Custom policy set | Recommended internal basic security policies | Full tracking | Automated policies | | | Cyber Resilience Act (CRA) | Regulation | Minimising risks on released software | In-preview | Self-assessment checklist, manual evidence, automated policies | [Reference](/reference/cyber-resilience-act) [User Guide](/guides/cra) | | SLSA | Specification | Securing the software supply chain | Full tracking | Manual evidence, automated policies | [Reference](/reference/slsa-provenance) [User Guide](/guides/slsa) | | SSDF | Framework | Integrating security practices into software development lifecycle | In-preview | Self-assessment checklist, manual evidence, automated policies | [Reference](/reference/ssdf) [User Guide](/guides/ssdf) | ## In-Preview Compliance Frameworks By default, compliance frameworks are enabled in the Chainloop Platform. However, frameworks under active development and subject to change are available in-preview mode. These are disabled by default and require manual activation. To enable frameworks in preview mode, a team member with the role **Owner** or **Admin** can go to **Settings → General**, mark "Enabled" in the In-Preview Compliance Frameworks section and "Update". ![The In-Preview Compliance Frameworks toggle in the organization settings](https://mintcdn.com/chainloop/7oUakjSb5-MKNl1B/concepts/img/in-preview-frameworks.png?fit=max\&auto=format\&n=7oUakjSb5-MKNl1B\&q=85\&s=1b2dd0950a2bf8be4d85abee60807db8) Once enabled, the in-preview frameworks will appear in the "Frameworks" section marked with a "lab" icon. ## Using Frameworks Using frameworks is a two steps process: 1. Connect an existing framework to a product version 2. Optional: Update your contracts to reference the requirements in the framework ### 1 - Attach Frameworks to Products You can attach any existing compliance framework to any of your products by editing the product version. ![The product version actions menu with the Edit version option](https://mintcdn.com/chainloop/7oUakjSb5-MKNl1B/concepts/img/edit-version.png?fit=max\&auto=format\&n=7oUakjSb5-MKNl1B\&q=85\&s=881c9ee1c08495a6a020e0fd0eb02708) Once selected, the framework will be applied to all the projects that are part of the product. ![The Edit version drawer where compliance frameworks are attached to a product version](https://mintcdn.com/chainloop/7oUakjSb5-MKNl1B/concepts/img/edit-version-applicability.png?fit=max\&auto=format\&n=7oUakjSb5-MKNl1B\&q=85\&s=e1e976559273b25c6d5fb5c589002d87) Not all requirements in a framework may be relevant to every project in your product. For example, a "container images must be signed" requirement might not apply to a project that only produces CLI binaries. To handle this, you can [configure the compliance applicability](/concepts/products#configuring-compliance-applicability) matrix to mark specific requirements as non-applicable at the product or project level, optionally providing a rationale for the exception. ![The compliance applicability matrix marking requirements as applicable or not per project](https://mintcdn.com/chainloop/7oUakjSb5-MKNl1B/concepts/img/product-applicability.png?fit=max\&auto=format\&n=7oUakjSb5-MKNl1B\&q=85\&s=33687f4675e98a7142a65da940e0d098) ### 2 - Match Policy Evaluations to Requirements Chainloop provides two ways to match policies to requirements: * **Automatic matching** (default): Policies are matched to requirements based on policy parameters and evaluation results. * **Explicit matching**: Policies are matched to requirements explicitly by the user. Automatic matching is enabled by default, but can be disabled in the [organization settings](#deactivating-requirements-auto-matching). Check the [Requirements Auto-Matching](#requirements-auto-matching) section for more details. Explicit matching can be configured by attaching a requirement to a policy in the workflow contract, in the form of `[framework-name]/[requirement-name]`. > [!TIP] > > To get the fully qualified name of a requirement, you can click on the requirement in the framework and copy the fully qualified name from the popover. > > ![The requirement popover showing the fully qualified requirement name](https://mintcdn.com/chainloop/7oUakjSb5-MKNl1B/concepts/img/compliance-8.png?fit=max\&auto=format\&n=7oUakjSb5-MKNl1B\&q=85\&s=2f4affa89073585ceace6feb4e7224ce) In the example below, we are attaching three policies and making them part of 2 requirements. ![A contract attaching policies to framework requirements](https://mintcdn.com/chainloop/qP5Aepelxm7aUyXA/concepts/img/compliance-5.png?fit=max\&auto=format\&n=qP5Aepelxm7aUyXA\&q=85\&s=9224ec79c6f00294b6214b4cc13abd5c) Once you save the contract and evaluate the policies, the result will be associated with the referenced requirement. ## Record Requirement Exceptions When you attach a compliance framework to a product, a set of expected requirements will be tracked over time for each related project, filling up your compliance and security posture. In some scenarios, not all requirements can be met before performing a release, so in that case, the requirement can be flagged as an exception using the **Flag as Exception** action. ![Flagging a requirement as an exception](https://mintcdn.com/chainloop/ojasLg-rqpG2qdaD/concepts/img/compliance-6.png?fit=max\&auto=format\&n=ojasLg-rqpG2qdaD\&q=85\&s=0430962aec16d6d3d200993ac3a4b103) The exception will now be considered when calculating the compliance and security posture, ignoring the requirement status, and recorded in the [audit log](/reference/audit-logs). ![A requirement exception reflected in the compliance posture](https://mintcdn.com/chainloop/qP5Aepelxm7aUyXA/concepts/img/compliance-7.png?fit=max\&auto=format\&n=qP5Aepelxm7aUyXA\&q=85\&s=d390d3dce9071c2a50960101f9f70c61) ## Requirement status overrides In addition to exceptions, you can also manually override the status of a requirement to "Passed", or "Failed". This can be useful in scenarios where the automated evaluation does not capture the full context of the requirement compliance. The difference with exceptions is that overrides will be considered when calculating the final compliance status, while exceptions will ignore the requirement status. ![The Override Assessment dialog for setting a requirement status to Passed or Failed](https://mintcdn.com/chainloop/7oUakjSb5-MKNl1B/concepts/img/compliance-overrides-1.png?fit=max\&auto=format\&n=7oUakjSb5-MKNl1B\&q=85\&s=2bfa17875fd264dc50e57788e46245b2) ### Product-level overrides Overrides can be applied at the **product level** for project-scoped requirements. When a product-level override is created, it propagates to all projects under that product, providing a convenient way to override a requirement across an entire product without having to repeat the override in each project individually. > [!NOTE] > > Product-level and project-level overrides on the same requirement are mutually exclusive. If a product-level override already exists, project-level overrides cannot be created for that requirement, and vice versa. This prevents conflicting overrides at different levels. ### Override approval workflow Overrides follow a role-based approval workflow that determines whether an override takes effect immediately or requires approval: * **Admins** (Organization Owner/Admin, Product Admin, or Project Admin) can create overrides that are **auto-approved** and take effect immediately. * **Viewers** (Product Viewer or Project Viewer) can **request** an override. The request is created with a "Needs Review" status and must be approved by an Admin before it affects compliance. Pending overrides are visible in the compliance view so that all stakeholders can see that an override has been requested, but they **do not affect** the compliance status until approved. Admins can review pending requests and choose to **approve** or **delete** them. Once approved, the override takes effect and is reflected in compliance calculations. The approver and approval timestamp are recorded for audit purposes. ![A pending override request awaiting admin approval](https://mintcdn.com/chainloop/TqL1XHHpCLx3g3k9/concepts/img/override-approval.png?fit=max\&auto=format\&n=TqL1XHHpCLx3g3k9\&q=85\&s=7f3bfc2c8dd97e49020ba88359e0202d) ## Requirement Lifecycle Management Requirements can be **Active** or **Inactive** to control which requirements are being evaluated and tracked. ### Active Requirements Requirements that are currently enforced and evaluated. These appear in compliance dashboards. Compliance scores and metrics only include active requirements. ### Inactive Requirements Requirements that are not currently enforced. These do not get evaluated. Inactive requirements do not affect compliance calculations. ## Custom frameworks or requirements Apart from using the built-in frameworks and requirements, you can also create your own. You can either start from scratch or base your framework or requirement on an existing one by clicking on the duplicate icon. ![The frameworks list with the duplicate action for basing a custom framework on an existing one](https://mintcdn.com/chainloop/7oUakjSb5-MKNl1B/concepts/img/compliance-9.png?fit=max\&auto=format\&n=7oUakjSb5-MKNl1B\&q=85\&s=050190d08eadaf7e04af04f9c72bd9c3) Once you have your framework or requirement, you can attach the framework to a product as explained above and reference the requirement in your contracts. ### Project and product level requirements Chainloop allows to scope requirement evaluations at two levels: products and projects. They are exclusive, meaning that requirements scoped at product level won't be evaluated in the underlying projects, and vice versa. For example, products might be required to provide an architecture review, while underlying projects are not affected by this requirement. On another example, projects might be required to provide an SBOM for each component built in the system, but products don't need to provide it, since they are already present in their projects. There is also a difference in the way those requirements are evaluated: * **Project-scoped** requirements are computed automatically from policies evaluated against provided materials and attestations. They also allow users to provide manual pieces of evidence to contribute to the requirement status. * On the other hand, **Product-scoped** requirements are only evaluated from user provided pieces of evidence at the product level. Use the Chainloop Platform UI to provide the scope during requirement creation, or set the `scope` annotation in the declarative YAML schema. > [!WARNING] > > PRODUCT-scoped requirements cannot include `spec.policies`. They only support `spec.manual_proofs` or an empty spec (`spec: {}`). Attempting to include policies in a product-scoped requirement will fail with a validation error. ![The requirement form with the product or project scope selector](https://mintcdn.com/chainloop/Dqf_GkXwn9Xu7mCG/concepts/img/product-requirements.png?fit=max\&auto=format\&n=Dqf_GkXwn9Xu7mCG\&q=85\&s=741872c5d47531af09aa9f45a65d029e) ## Declarative Management In addition to using the UI, you can manage custom frameworks and requirements declaratively by defining them as YAML files and applying them via the CLI. This enables version-controlled, reproducible compliance configurations. Frameworks and requirements can be listed, described, applied, and deleted using the `chainloop framework` and `chainloop requirement` CLI commands. See the [CLI Reference](/cli/reference) for the full list of available commands and flags. Applying a resource is idempotent: if a framework or requirement with the same name already exists, it will be updated; otherwise, a new one is created. > [!TIP] > > You can download any framework or requirement as YAML with `--output schema`. For a complete guide on managing all resource types declaratively, including CI/CD automation patterns, see [Declarative Resource Management](/guides/declarative-resource-management). ### Requirement Schema A requirement defines the policies and manual proofs that must be satisfied. | Field | Required | Description | | - | - | - | | `apiVersion` | Yes | Must be `chainloop.dev/v1` | | `kind` | Yes | Must be `Requirement` | | `metadata.name` | Yes | Unique name | | `metadata.displayName` | No | Human-readable display name | | `metadata.description` | No | Description of the requirement | | `metadata.organization` | No | Organization the requirement belongs to. Defaults to the authenticated user's organization | | `metadata.annotations.categories` | No | Comma-separated categories (e.g., `security, signing`) | | `metadata.annotations.scope` | No | `PROJECT` (default) or `PRODUCT`. `PRODUCT`-scoped requirements cannot include `spec.policies`. See [Project and product level requirements](#project-and-product-level-requirements) | | `spec.policies[].ref` | Yes | Policy reference | | `spec.policies[].periodicity` | No | Evaluation frequency: `hourly`, `daily`, `weekly`, `biweekly`, `monthly`, `quarterly`, `yearly`. Values are case-sensitive (e.g., `DAILY` is rejected). `annually` is accepted as a deprecated alias for `yearly` | | `spec.policies[].sla` | No | Grace period in hours before a failed policy affects compliance score | | `spec.policies[].with` | No | Key-value map of policy parameters | | `spec.policies[].group` | No | Equivalence group name. Checks sharing the same group are satisfied when any member passes | | `spec.manual_proofs[].name` | Yes | Proof name | | `spec.manual_proofs[].description` | No | Description of what evidence to provide | | `spec.manual_proofs[].optional` | No | Whether the proof is optional. Default: `false` | | `spec.manual_proofs[].periodicity` | No | Submission frequency (same values as policy periodicity) | ```yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Requirement metadata: name: no-vulnerabilities-high displayName: No High-Severity Vulnerabilities description: | All software artifacts must not contain any unresolved high-severity vulnerabilities at the time of deployment. annotations: categories: security, vulnerabilities spec: policies: - ref: cves-in-kev - ref: vulnerabilities with: severity: "HIGH" ``` ### Equivalent Checks Checks within a requirement can be marked as equivalent, meaning they represent equally valid ways to satisfy the same compliance need - only one needs to pass. This is useful when multiple tools or processes can prove the same thing. For example, a vulnerability scanning requirement might accept results from either Trivy or Grype. Assign checks to the same equivalence group by setting the `group` field to a shared name. Equivalence groups can contain policies, manual proofs, or a mix of both: ```yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Requirement metadata: name: vulnerability-scanning displayName: Vulnerability Scanning description: Artifacts must be scanned for vulnerabilities using at least one approved scanner. spec: policies: - ref: trivy-scan group: vuln-scanner - ref: grype-scan group: vuln-scanner - ref: cves-in-kev ``` In this example, `trivy-scan` and `grype-scan` are equivalent - the requirement is satisfied if either one passes. The `cves-in-kev` policy stands on its own and must pass independently. A requirement can contain multiple equivalence groups alongside standalone checks. Each group is satisfied when any one of its members passes. All groups and standalone checks must pass for the requirement to be met. When a group is satisfied because one member passes, the remaining members that failed are effectively ignored - they do not affect the requirement's compliance status. ### Framework Schema A framework groups requirements, optionally organized into sections. Sections can be nested to model hierarchical structures. | Field | Required | Description | | - | - | - | | `apiVersion` | Yes | Must be `chainloop.dev/v1` | | `kind` | Yes | Must be `Framework` | | `metadata.name` | Yes | Unique name | | `metadata.displayName` | No | Human-readable display name | | `metadata.description` | No | Description of the framework | | `metadata.organization` | No | Organization the framework belongs to. Defaults to the authenticated user's organization | | `spec.requirements[].ref` | Yes | Requirement reference | | `spec.sections[].name` | Yes | Section name. Must be unique across all sections in the framework, including nested sub-sections | | `spec.sections[].description` | No | Section description | | `spec.sections[].requirements` | No | Requirements in this section | | `spec.sections[].sections` | No | Nested sub-sections | > [!NOTE] > > * Each requirement reference must appear only once in a framework, whether in the root `requirements` list or within a section. > * Section names must be unique across the entire framework, including across different nesting levels. > [!TIP] > > Sections are displayed in the order they appear in the YAML definition. ```yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Framework metadata: name: my-best-practices displayName: Best Practices description: Internal security best practices spec: sections: - name: Source Code description: Source code integrity and secure development practices. requirements: - ref: branch-protection - ref: code-review - ref: commits-signed-required - name: Artifacts description: Ensure artifacts are cryptographically signed before deployment. requirements: - ref: container-signed - name: Vulnerability Management description: Software is free from high-severity vulnerabilities. requirements: - ref: no-vulnerabilities-high ``` > [!NOTE] > > A framework with no requirements or sections must use an explicit empty spec (`spec: {}`). Omitting the `spec` field entirely causes a validation error. > > ```yaml theme={"dark"} > apiVersion: chainloop.dev/v1 > kind: Framework > metadata: > name: empty-framework > displayName: Placeholder Framework > spec: {} > ``` ## Requirements Auto-Matching By default, Chainloop automatically matches policies to compliance requirements based on policy parameters and evaluation results. When an attestation with policy evaluations is received, Chainloop matches any requirement that defines the same policies or a subset of them. If their parameters align, Chainloop marks that requirement as passed. This matching logic accounts for evaluation parameter values (for example, a vulnerability scan with a MEDIUM threshold will match a requirement expecting a minimum threshold of HIGH, since MEDIUM includes HIGH and CRITICAL vulnerabilities). Organizations can optionally deactivate this feature to enforce explicit requirement declarations in workflow contracts. ### Deactivating Requirements Auto-Matching When this setting is deactivated: * Only policies that explicitly declare requirements in workflow contracts will be matched to requirements * Automatic matching based on policy parameters and evaluation results will be deactivated * All requirement associations must be explicitly defined by users This setting helps organizations maintain tighter control over compliance requirement mappings and ensures explicit, intentional associations between policies and requirements. Organization owners and admins can deactivate auto-matching in the [organization settings](https://app.chainloop.dev/settings). ![The Compliance Requirements Auto-Matching setting in the organization settings](https://mintcdn.com/chainloop/7oUakjSb5-MKNl1B/concepts/img/deactivate-requirements-auto-matching.png?fit=max\&auto=format\&n=7oUakjSb5-MKNl1B\&q=85\&s=1a81a91cf23ca77216f4818f0e61b2f7) or using the CLI EE: ```bash theme={"dark"} chainloop org update --name [my-org-name] --disable-requirements-auto-matching ``` For detailed information about roles and permissions, see our [RBAC documentation](/reference/rbac). ## Requirement Coverage (Preview) Requirement Coverage provides a view of how your workflow contracts satisfy the policies defined in a compliance requirement. It answers the question: **"Which projects and contracts already implement the policies required by this requirement?"** For each project, the Coverage view shows whether the requirement's framework is assigned and which contracts match its policies — fully or partially. This helps compliance teams identify gaps and take action: either include matching contracts in uncovered project workflows, or add the requirement to the [exceptions in the applicability matrix](/concepts/products#configuring-compliance-applicability) if it doesn't apply. This feature is available as a **Coverage** tab when viewing a requirement's details. ![The requirement Coverage tab showing per-project coverage status](https://mintcdn.com/chainloop/p0oXXz96fUJdeK5p/concepts/img/coverage-overview.png?fit=max\&auto=format\&n=p0oXXz96fUJdeK5p\&q=85\&s=7585b5a0ab716e95a9368bf4c5d15a43) ### How It Works When you open the Coverage view for a requirement, Chainloop analyzes all workflow contracts in your organization and compares their policy attachments against the policies defined in the requirement. For each project, it shows: * **Full coverage** — All policies in the requirement are matched by at least one contract used in the project. * **Partial coverage** — Some policies are matched, but not all. * **No coverage** — None of the requirement's policies are matched by any contract in the project. ![Coverage status filters in the requirement Coverage view](https://mintcdn.com/chainloop/p0oXXz96fUJdeK5p/concepts/img/coverage-filters.png?fit=max\&auto=format\&n=p0oXXz96fUJdeK5p\&q=85\&s=4c5d6e2d51f8a0954dcc395b1c94a8f4) ### Contract Matching For each policy in a requirement, Chainloop classifies contracts into three categories: | Status | Description | | - | - | | **Matched** | The contract evaluates the policy with compatible parameters | | **Parameter mismatch** | The contract evaluates the policy but with incompatible parameters (candidate) | | **Not matched** | The contract does not evaluate the policy | A contract achieves a **full match** when all requirement policies are matched. A **partial match** means some policies are satisfied while others are not. ![An expanded project row in the Coverage view showing matched policies and contracts](https://mintcdn.com/chainloop/7oUakjSb5-MKNl1B/concepts/img/coverage-contract-match.png?fit=max\&auto=format\&n=7oUakjSb5-MKNl1B\&q=85\&s=998ce1dcd062688de0acfeb940b350ea) ### Match Sources Policies can match a requirement through two mechanisms: * **Explicit match** — The contract explicitly declares the requirement by name in its `requirements` field. See [Matching policy evaluations to requirements](#2-match-policy-evaluations-to-requirements). * **Auto-matched** — Chainloop matches the policy automatically based on policy name and parameter compatibility (when [auto-matching](#requirements-auto-matching) is enabled). ### Filtering the Coverage View The Coverage view provides several filters to help you navigate large organizations: * **Coverage status** — Filter by Full, Partial, or No Coverage * **Framework assignment** — Show only projects Assigned or Unassigned to the requirement's frameworks * **Product** — Filter by a specific product ### Live Preview The Coverage view is also available when **creating or editing a requirement**. This allows you to see how your requirement's policies map against existing contracts before saving, helping you validate that the requirement definition aligns with your organization's current workflow configurations. ![The live coverage preview shown while editing a requirement](https://mintcdn.com/chainloop/p0oXXz96fUJdeK5p/concepts/img/coverage-live-preview.png?fit=max\&auto=format\&n=p0oXXz96fUJdeK5p\&q=85\&s=cf6fcdc871fd0567e7d0556ce851e6bb) ### Example: Requirement with Coverage Consider a requirement that defines two policies (see [Declarative management](#declarative-management)): ```yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Requirement metadata: name: container-security displayName: Container Security description: Container images must be signed and scanned for vulnerabilities. annotations: categories: security, containers spec: policies: - ref: container-signed - ref: vulnerabilities with: severity: "HIGH" ``` When viewing the Coverage tab for this requirement, you would see: * **Project A** (Full coverage) — Uses a contract that includes both `container-signed` and `vulnerabilities` policies with compatible parameters. * **Project B** (Partial coverage) — Uses a contract with `container-signed` but not `vulnerabilities`. * **Project C** (No coverage) — Uses contracts that don't include either policy. This gives compliance teams immediate visibility into which projects need attention and which contracts need to be updated to meet the requirement. ## Freshness and SLA Requirement policies and manual evidence proofs can be set to **expire after a certain time**. Once expired, the requirement will be automatically marked as "Expired". This can be useful to ensure that proofs of compliance are fresh and relevant at all times. > For example, a requirement that requires a security review to be performed every 6 months can be set to expire after that period to indicate that the review is no longer relevant and must be submitted again. > Or a vulnerability scan policy can be set to expire daily, so that it's guaranteed that the scan is performed at least once a day. Freshness configuration can be set for both policies and manual evidence proofs. **SLAs** are another feature that allows providing a timeframe for developers to comply with security requirements. SLAs can be set on policies, and they indicate a tolerance window in which the policy can remain in "failed" status without affecting the overall compliance score. During this window, the policy will be considered as "in grace period". > [!NOTE] > > Freshness and SLAs can be used together. Following the example above, a security scan with a freshness of 24 hours and an SLA of 6 hours indicates that: > > * the scan must be performed at least once a day, and, > * in case of failure (because it has HIGH severity vulnerabilities), those must be fixed within 6 hours of the failure. Freshness and SLAs can be configured in the requirement edit form for any custom framework or requirement. ![The freshness and SLA configuration fields in the requirement edit form](https://mintcdn.com/chainloop/pZkHFA76n7R86qmq/concepts/img/freshness.png?fit=max\&auto=format\&n=pZkHFA76n7R86qmq\&q=85\&s=d2b3109117a5c1f8e94046e11f2b1c6a) # Contracts Source: https://docs.chainloop.dev/concepts/contracts ![Diagram of a contract acting as the interface between CI/CD pipelines and compliance teams](https://mintcdn.com/chainloop/4m_Z_ZeRnSV7jb7V/get-started/img/adding-contract-1.png?fit=max\&auto=format\&n=4m_Z_ZeRnSV7jb7V\&q=85\&s=c9161652bc759a7b7eb6ce054a96af2b) A Chainloop contract becomes the interface between the developers who must instrument their CI/CD pipelines and Security and Compliance teams. A Workflow Contract **defines the expectations of what content a workflow must send as part of their attestation**. For example, a contract could explicitly state that the URI\@digest of the generated container image, the container rootfs used during build, and the Software Bill of Materials of that container image must be present in the attestation. There are two additional properties of Workflow Contracts that aim to ease the management of workflows in your organization * A Workflow Contract is immutable and versioned, new revisions of the contract with new/different requirements can be added over time. This is especially useful for iterative integrations. * A Workflow Contract can belong to more than one Workflow. This means that a change in a single contract will be propagated to many workflows. This is especially useful for org-wide standardization and fleet management. **Example**: three CI/CD pipelines associated with their respective Chainloop workflows. Two of those Workflows are sharing the same Contract (using the same or different revision). ![Diagram of three workflows where two share the same contract](https://mintcdn.com/chainloop/qP5Aepelxm7aUyXA/concepts/img/contracts-1.png?fit=max\&auto=format\&n=qP5Aepelxm7aUyXA\&q=85\&s=0df3e283d6706ad531b66cc93a578ee3) ## Managing Contracts > [tab] Web UI > > Contracts can be managed through the ["Contracts" section](https://app.chainloop.dev/contracts) in Chainloop platform: > > ![The contracts list in the Chainloop UI showing scope and latest revision per contract](https://mintcdn.com/chainloop/RdLV64E8QnfN95P9/concepts/img/contracts-2.png?fit=max\&auto=format\&n=RdLV64E8QnfN95P9\&q=85\&s=c8522c297cd9320799b031459191af3d) > [tab] CLI > > ``` > chainloop workflow contract ls > ``` > > > [accordion] Command Output > > > > ```bash theme={"dark"} > > ┌─────────────────────────────────────────────┬─────────────────┬─────────────────────┬─────────────┐ > > │ NAME │ LATEST REVISION │ CREATED AT │ # WORKFLOWS │ > > ├─────────────────────────────────────────────┼─────────────────┼─────────────────────┼─────────────┤ > > │ demo-test-gitlab │ 1 │ 05 Mar 25 12:56 UTC │ 1 │ > > │ with-policies │ 2 │ 01 Feb 25 20:40 UTC │ 1 │ > > │ demo-test-string │ 1 │ 08 Jan 25 14:44 UTC │ 1 │ > > │ chainloop-contribution │ 1 │ 06 Jan 25 20:49 UTC │ 0 │ > > │ demo-spring-petclinic │ 3 │ 17 Dec 24 15:19 UTC │ 8 │ > > │ demo-spring-petclinic-build-container-image │ 3 │ 16 Dec 24 23:58 UTC │ 0 │ > > │ default-contract │ 1 │ 12 Dec 24 10:50 UTC │ 0 │ > > └─────────────────────────────────────────────┴─────────────────┴─────────────────────┴─────────────┘ > > ``` > [!TIP] > > Contracts can also be managed declaratively as YAML files. See the [Declarative Resource Management](/guides/declarative-resource-management) guide. There is always a default, empty contract to speed up organization onboarding. A new contract can be added by clicking the "Create Contract" button, which opens a form where you can specify its scope and specification: > [tab] Web UI > > ![The Create Contract form with scope selector and YAML editor](https://mintcdn.com/chainloop/RdLV64E8QnfN95P9/concepts/img/contracts-3.png?fit=max\&auto=format\&n=RdLV64E8QnfN95P9\&q=85\&s=fddd117cd867c9ef2db6cc9cc71b517a) > [tab] CLI > > ```bash theme={"dark"} > chainloop workflow contract create -h > Create a new contract > > Usage: > chainloop workflow contract create [flags] > > Flags: > -f, --contract string path or URL to the contract schema > --description string description of the contract > -h, --help help for create > --name string contract name > ``` > [!NOTE] > > A Workflow Contract can be provided in json or yaml (cue format is also supported through the Chainloop CLI). > [!NOTE] > > When creating or updating a contract from a file, the CLI resolves the contract name from either the `--name` flag or the `metadata.name` field in the file. Provide at least one of them. You can also provide both as long as they have the same value — the command fails if they differ. ### Contract Management Scope Contracts in Chainloop operate at two different scopes with corresponding management permissions: * **Organization-scope contracts**: Managed by users with Organization Admin or Organization Owner roles. These contracts can be used across all projects within the organization. * **Project-scope contracts**: Managed by Project Admins. These contracts are specific to individual projects and can only be used within their respective project scope. ### Restricting Contract Creation Organizations can optionally enable the **"Restrict Contract Creation to Organization Admins"** setting to enforce stricter governance over contract management. When this setting is enabled: * Only users with Organization Admin or Organization Owner roles can create new contracts (regardless of the contract scope) * Project Admins that are not Organization Admins can no longer create their own contracts * Workflows created by non administrators must use existing contracts This restriction helps organizations maintain tighter control over contract definitions and ensures consistency across projects by centralizing contract governance. #### Enabling the setting Organization owner and admins can enable this setting in the [organization settings](https://app.chainloop.dev/settings). ![The Restrict Contract Creation to Organization Admins setting in the organization settings](https://mintcdn.com/chainloop/RdLV64E8QnfN95P9/concepts/img/contract-create-restriction.png?fit=max\&auto=format\&n=RdLV64E8QnfN95P9\&q=85\&s=1e3e324ecf7168ec08c8262879d08b72) or using the CLI: ```bash theme={"dark"} chainloop org update --name [my-org-name] --restrict-contract-creation ``` For detailed information about roles and permissions, see our [RBAC documentation](/reference/rbac). ## Associating workflows to contracts Once contracts are created, they can be attached to as many workflows as needed. Remember that workflows represent a unique source of data ingestion (attestations), usually representing a CI/CD pipeline. > [tab] Web UI > > In the workflows view, open the workflow's actions menu, click "Edit" and associate the contract. Once the contract is associated, new attestations will automatically download and apply it, including required materials, policies, and so on. > > ![The Update Workflow form where a contract is associated with the workflow](https://mintcdn.com/chainloop/RdLV64E8QnfN95P9/concepts/img/contracts-5.png?fit=max\&auto=format\&n=RdLV64E8QnfN95P9\&q=85\&s=6cb8cdaae3168008066baccd9e1d77b2) > [tab] CLI > > ```bash theme={"dark"} > chainloop workflow update --name --project --contract > ``` ## Writing contracts ### Example See below a contract schema example: > [!NOTE] > > Note that the contract below is just an example crafted for educational purposes. In a real scenario, the contract will not contain such a disparate amount of materials or annotations. ```yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Contract metadata: name: skynet-contract spec: # Arbitrary set of annotations can be added to the contract and will be part of the attestation annotations: - name: version value: oss # if the value is left empty, it will be required and resolved at attestation time # https://docs.chainloop.dev/concepts/operator/material-types materials: # CONTAINER_IMAGE kinds will get resolved to retrieve their repository digest - type: CONTAINER_IMAGE name: skynet-control-plane # The output flag indicates that the material will be part of the attestation subject output: true # Arbitrary annotations can be added to the material annotations: - name: component value: control-plane # The value can be left empty so it can be provided at attestation time - name: asset # ARTIFACT kinds will first get uploaded to your artifact registry via the built-in Content Addressable Storage (CAS) # Optional dockerfile - type: ARTIFACT name: dockerfile optional: true # SBOMs will be uploaded to the artifact registry and referenced in the attestation # Both SBOM_CYCLONEDX_JSON and SBOM_SPDX_JSON are supported - type: SBOM_CYCLONEDX_JSON name: skynet-sbom # CSAF_VEX and OPENVEX are supported - type: OPENVEX name: disclosure # And static analysis reports in SARIF format - type: SARIF name: static-out # or additional tools - type: TWISTCLI_SCAN_JSON name: scan-result # Large artifact that's already stored externally - skip CAS upload but record metadata - type: ARTIFACT name: large-binary skip_upload: true # https://docs.chainloop.dev/concepts/policies policies: materials: # policies applied to materials - ref: file://cyclonedx-licenses.yaml attestation: # policies applied to the whole attestation - ref: https://github.com/chainloop/chainloop-dev/blob/main/docs/examples/policies/chainloop-commit.yaml # (2) gate: true # Enable/disable (true/false) control gate per policy, overrides org default https://docs.chainloop.dev/concepts/control-gates # Env vars we want the system to resolve and inject during attestation initialization # Additional ones can be inherited from the specified runner context below envAllowList: - CUSTOM_VAR # Enforce in what runner context the attestation must happen # If not specified, the attestation crafting process is allowed to run anywhere runner: type: "GITHUB_ACTION" ``` Once they are created, contracts can be edited. Every change will be stored as a new version of the contract. Chainloop CLI will automatically retrieve the latest version of the contract when a new attestation is performed. The contract summary view will provide details about the contract, including a revision selector to inspect previous versions: ![The contract detail view with revision selector, YAML source, and associated workflows tab](https://mintcdn.com/chainloop/RdLV64E8QnfN95P9/concepts/img/contracts-4.png?fit=max\&auto=format\&n=RdLV64E8QnfN95P9\&q=85\&s=f65060c39ee3e0f2603db909ae517e5e) ### Schema > [tab] Schema > > | Name | Required | Description | > | - | - | - | > | `apiVersion` | yes | API version of the schema, must be `chainloop.dev/v1` | > | `kind` | yes | Resource type, must be `Contract` | > | `metadata` | yes | Metadata about the contract | > | `metadata.name` | yes | Name of the contract | > | `metadata.description` | no | Optional description of the contract | > | `metadata.annotations` | no | Name/Value pairs of arbitrary annotations that will be added to the attestation. **If the value is not provided, it will be required during the attestation process.** | > | `spec` | yes | Contract specification containing all contract configuration | > | [`spec.materials`](#material-schema) | no | List of [materials](#material-schema) to be added to the attestation | > | `spec.envAllowList` | no | List of environment variables that will be resolved and injected in the attestation | > | [`spec.runner`](#runner-context) | no | Specific runner type associated with this contract. If not set, this contract will be valid to be run `anywhere` but you'll miss out some of [its benefits](#runner-context) | > | [`spec.policies`](#policy-attachments) | no | Attachments to existing Chainloop policies. See [policies reference guide](/concepts/policies) for more information | > [tab] Deprecated Schema > > > [!WARNING] > > > > This schema format is deprecated. Please use new schema format. > > | Name | Required | Description | > | - | - | - | > | `schemaVersion` | yes | Version of the schema, it needs to be `v1` | > | [`materials`](#material-schema) | no | List of [materials](#material-schema) to be added to the attestation | > | `envAllowList` | no | List of environment variables that will be resolved and injected in the attestation | > | [`runner`](#runner-context) | no | Specific runner type associated with this contract. If not set, this contract will be valid to be run `anywhere` but you'll miss out some of [its benefits](#runner-context) | > | `annotations` | no | Name/Value pairs of arbitrary annotations that will be added to the attestation. **If the value is not provided, it will be required during the attestation process.** | > | [`policies`](#policy-attachments) | no | Attachments to existing Chainloop policies. See [policies reference guide](/concepts/policies) for more information | ### Materials The contract can require one or more pieces of evidence (a.k.a material) to be attached during the attestation process. | Name | Required | Default | Description | | - | - | - | - | | `name` | yes | | unique identifier of the material | | `type` | yes | | Refer to [material-types](./material-types) for the list of supported material types. | | `output` | no | `false` | If set to `true` the material will get injected in the `subject` section of the [in-toto statement](https://slsa.dev/attestation-model). | | `optional` | no | `false` | if set to `true`, providing this material during attestation will be optional. This is **useful for soft rollouts of new requirements** | | `skip_upload` | no | `false` | if set to `true`, the material will not be uploaded to CAS (Content Addressable Storage). Only metadata like digest and filename will be recorded in the attestation. This is **useful for large artifacts already stored externally** or when you want to reduce storage costs while maintaining attestation metadata. Note: `CONTAINER_IMAGE` and `STRING` types are not uploaded to CAS by default. | | `annotations` | no | | Name/Value pairs of arbitrary annotations that will be added to the attestation. **If the value is not provided, it will be required during the attestation process.** | | `group` | no | | Name of an ["at least one of" group](#at-least-one-of-material-groups). Materials sharing the same `group` value form a set that is satisfied when **at least one** member is provided. Must be lowercase letters, numbers, and hyphens. | ### "At Least One Of" Material Groups Sometimes a contract should accept **any one of several alternatives** rather than a specific material. Assign those materials to the same `group` and Chainloop treats them as an "at least one of" set: the attestation is satisfied as long as at least one member of the group is present. For example, to accept either a CycloneDX or an SPDX SBOM: ```yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Contract metadata: name: my-contract spec: materials: - name: sbom-cyclonedx type: SBOM_CYCLONEDX_JSON group: sbom - name: sbom-spdx type: SBOM_SPDX_JSON group: sbom ``` A few things to keep in mind: * Materials in a group are **not** individually required — the requirement is enforced at the group level. Providing any single member satisfies the whole group. * Materials **without** a `group` keep their individual `optional`/required behavior. * Group names must follow DNS-1123 label rules: lowercase letters, numbers, and hyphens (e.g. `sbom`, `sast-report`). Running `chainloop attestation status` surfaces each group's rule and whether it has been satisfied yet, so you can see at a glance which alternatives are still outstanding. ### Policy attachments When defining a contract, a new `policies` section can be specified. Policies can be applied to any material, but also to the attestation statement as a whole. ```yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Contract metadata: name: policy-example-contract spec: materials: - name: sbom type: SBOM_CYCLONEDX_JSON - name: another-sbom type: SBOM_CYCLONEDX_JSON - name: my-image type: CONTAINER_IMAGE policies: materials: # policies applied to materials - ref: file://cyclonedx-licenses.yaml # (1) attestation: # policies applied to the whole attestation - ref: https://github.com/chainloop/chainloop-dev/blob/main/docs/examples/policies/chainloop-commit.yaml # (2) ``` Read the docs for full details on [policies](/concepts/policies). ### Runner Context > [!NOTE] > > New runner contexts will be added over time. If yours is not implemented yet, please [contact us](https://chainloop.dev/contact) An **optional** runner type can be provided in a workflow contract. ```yaml skynet.contract.yaml showLineNumbers theme={"dark"} apiVersion: chainloop.dev/v1 kind: Contract metadata: name: skynet-contract spec: materials: - type: CONTAINER_IMAGE name: skynet-control-plane envAllowList: - CUSTOM_VAR # highlight-start runner: type: "GITHUB_ACTION" # highlight-end ``` It has the following effect on the attestation process. * **Require** the attestation process to be executed in the target runner type unless the `--dry-run` flag is set during initialization. * **A link to the workload** (i.e Github Action Run link) **will be recorded** both in the attestation and in the control plane during initialization. * An additional set of environment variables will be resolved in addition to the ones defined in the contract `envAllowList`. Currently, we support the following runner types #### `AZURE_PIPELINE` The following environment variables will be automatically added to the attestation. For more information on what they mean, refer to [this link](https://learn.microsoft.com/en-us/azure/devops/pipelines/build/variables?view=azure-devops\&tabs=yaml). * `BUILD_REQUESTEDFOREMAIL` * `BUILD_REQUESTEDFOR` * `BUILD_REPOSITORY_URI` * `BUILD_REPOSITORY_NAME` * `BUILD_BUILDID` * `BUILD_BUILDNUMBER` * `BUILD_BUILDURI` * `BUILD_REASON` * `AGENT_VERSION` * `TF_BUILD` A link to the Azure Pipeline build will be recorded in the control plane too during initialization. #### `CIRCLECI_BUILD` The following environment variables will be automatically added to the attestation. For more information on their meaning, refer to [the official CircleCI documentation](https://circleci.com/docs/variables/). * `CIRCLE_BUILD_URL` * `CIRCLE_JOB` * `CIRCLE_BRANCH` (optional) * `CIRCLE_NODE_TOTAL` * `CIRCLE_NODE_INDEX` A link to the CircleCI build will be recorded in the control plane too, during initialization. #### `DAGGER_PIPELINE` To use Chainloop With Dagger you can use [this Dagger module](https://github.com/chainloop-dev/chainloop/tree/main/extras/dagger) **Commit Signature Verification**: Dagger pipelines can run in various CI environments. Chainloop automatically detects the underlying platform (GitHub Actions or GitLab CI) and verifies commit signatures through the appropriate API when `GITHUB_TOKEN` or `CI_JOB_TOKEN` is available. The verification status and signature algorithm are recorded in the attestation annotations. #### `GITHUB_ACTION` The following environment variables will be automatically added to the attestation. For more information on what they do refer to [this link](https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables). * `GITHUB_ACTOR` * `GITHUB_REF` * `GITHUB_REPOSITORY` * `GITHUB_REPOSITORY_OWNER` * `GITHUB_RUN_ID` * `GITHUB_SHA` * `RUNNER_NAME` * `RUNNER_OS` A link to the Github Action will be recorded in the control plane too during initialization. **Commit Signature Verification**: When `GITHUB_TOKEN` is available, Chainloop automatically verifies commit signatures through GitHub's API and records the verification status (`verified`, `unverified`, `unavailable`, `not_applicable`) and signature algorithm (e.g., `PGP`, `SSH`, `X509`) in the attestation annotations. This provides auditable evidence that commits are cryptographically signed and verified by GitHub. The default `GITHUB_TOKEN` provided by GitHub Actions has sufficient permissions to query commit verification status. No additional configuration is required - the token is automatically available in the workflow environment. ```yaml theme={"dark"} - name: Initialize attestation run: chainloop attestation init ... env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ``` To check the interpretation of the verification status, refer to [GitHub's official documentation](https://docs.gitlab.com/user/project/repository/signed_commits/). #### `GITLAB_PIPELINE` The following environment variables will be automatically added to the attestation. More information about what they mean in [GitLab's official documentation](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html) * `GITLAB_USER_EMAIL` * `GITLAB_USER_LOGIN` * `CI_PROJECT_URL` * `CI_COMMIT_SHA` * `CI_JOB_URL` * `CI_PIPELINE_URL` * `CI_RUNNER_VERSION` * `CI_RUNNER_DESCRIPTION` * `CI_COMMIT_REF_NAME` A link to the GitLab CI job will be recorded in the control plane too, during initialization. **Commit Signature Verification**: When `CI_JOB_TOKEN` is available, Chainloop automatically verifies commit signatures through GitLab's API and records the verification status (`verified`, `unverified`, `unavailable`, `not_applicable`) and signature algorithm (e.g., `PGP`, `SSH`, `X509`) in the attestation annotations. This provides auditable evidence that commits are cryptographically signed and verified by GitLab. The `CI_JOB_TOKEN` is automatically available in GitLab CI pipelines and has the necessary permissions to query commit signature information. ```yaml theme={"dark"} attest: script: - chainloop attestation init ... variables: CI_JOB_TOKEN: $CI_JOB_TOKEN ``` To check the interpretation of the verification status, refer to [GitLab's official documentation](https://docs.gitlab.com/user/project/repository/signed_commits/#verify-commits). #### `JENKINS_JOB` The following environment variables will be automatically added to the attestation. For more information on how to use Jenkins environment variables, refer to [the official Jenkins documentation](https://www.jenkins.io/doc/book/pipeline/jenkinsfile/#using-environment-variables). * `JOB_NAME` * `BUILD_URL` * `GIT_BRANCH` (optional) * `GIT_COMMIT` (optional) * `AGENT_WORKDIR` * `NODE_NAME` A link to the build will be recorded in the control plane too, during initialization. #### `TEAMCITY_PIPELINE` The following environment variables will be automatically added to the attestation. For more information on TeamCity environment variables, refer to [the official TeamCity documentation](https://www.jetbrains.com/help/teamcity/predefined-build-parameters.html). * `BUILD_URL` * `TEAMCITY_PROJECT_NAME` * `TEAMCITY_VERSION` * `BUILD_NUMBER` * `USER` * `TEAMCITY_GIT_VERSION` * `BUILD_VCS_NUMBER` * `HOME` A link to the TeamCity build will be recorded in the control plane too, during initialization. > [!TIP] > > Remember, if all the **env variables** that you need are not defined in the context, you can extend such list via the `envAllowList` option. #### `TEKTON_PIPELINE` The following variables are automatically discovered and added to the attestation. No environment variable wiring is needed in your Pipeline YAML — the runner discovers everything from Kubernetes pod labels and the ServiceAccount namespace file. | Variable | Source | Required | | - | - | - | | `TEKTON_TASKRUN_NAME` | `tekton.dev/taskRun` pod label | Yes (falls back to hostname) | | `TEKTON_NAMESPACE` | ServiceAccount namespace file | Yes | | `TEKTON_TASK_NAME` | `tekton.dev/task` pod label | No (absent with inline taskSpec) | | `TEKTON_PIPELINE_NAME` | `tekton.dev/pipeline` pod label | No (only in Pipeline TaskRuns) | | `TEKTON_PIPELINERUN_NAME` | `tekton.dev/pipelineRun` pod label | No (only in Pipeline TaskRuns) | | `TEKTON_PIPELINE_TASK_NAME` | `tekton.dev/pipelineTask` pod label | No (only in Pipeline TaskRuns) | | `HOSTNAME` | Environment variable | No | A run link will be recorded in the control plane during initialization, using the format `tekton:///pipelineruns/`. If the `TEKTON_DASHBOARD_URL` environment variable is set, a Tekton Dashboard URL will be used instead. > [!NOTE] > > **RBAC requirement**: The TaskRun ServiceAccount needs `get` permission on pods in its namespace for pod label discovery. If the permission is missing, the runner degrades gracefully and captures only the variables available without it. #### Skip storing runner-discovered environment variables As shown above, each runner automatically discovers a set of environment variables and stores them in the attestation as build metadata. If your organization prefers not to persist these auto-discovered variables, an organization owner or admin can opt out with the **`skip_runner_env_vars`** organization setting. When this setting is enabled, the environment variables that the runner injects automatically (the per-runner lists above) are no longer collected into the attestation. The following are **not** affected: * The contract's [`envAllowList`](#schema) — these are an explicit, user-defined opt-in and are always resolved and injected. * Runner detection — Chainloop still detects the runner type and enforces the contract's `runner` constraint. * The structured runner metadata, such as the recorded run link, which is unaffected. > [!NOTE] > > This setting is disabled by default (`false`), preserving the current behavior. It applies to the whole organization, and only organization owners and admins can change it. > [tab] Web UI > > Navigate to the [organization settings](https://app.chainloop.dev/settings) and enable the **Skip Runner-Discovered Environment Variables** toggle. > > ![Skip Runner-Discovered Environment Variables toggle in organization settings](https://mintcdn.com/chainloop/YPGi9pVGQXp9_fYQ/concepts/img/org-skip-runner-env-vars.png?fit=max\&auto=format\&n=YPGi9pVGQXp9_fYQ\&q=85\&s=12ced0d250fa690007ca14d8fab066a8) > [tab] CLI > > ```bash theme={"dark"} > chainloop org update --name [my-org-name] --skip-runner-env-vars > ``` > > Set the flag to `false` to start storing the runner-discovered variables again: > > ```bash theme={"dark"} > chainloop org update --name [my-org-name] --skip-runner-env-vars=false > ``` #### Gather Additional Runner Configuration The Chainloop CLI Enterprise Edition provides a [runner context](/reference/runner-context) that can be used to gather the runner context. When Chainloop CLI Enterprise Edition is used it enables automatic retrieval of the following data: * Branch protection rules * Pull request requirements * Commit policies This information is retrieved directly from your CI/CD system settings without you having to manually enter anything. The gathered security information becomes part of your attestation, which helps: * Verifying that proper protections were in place during the build process * Understanding what security measures are protecting the code * Proving that security policies were followed during development Essentially, Chainloop creates an automatic security audit trail that shows your code was properly protected throughout the development process. # Control and Quality Gates Source: https://docs.chainloop.dev/concepts/control-gates Use control gates to enforce policies and security checks in your software supply chain. ## Overview Control gates are checkpoints in your software supply chain that enforce specific policies and security checks. They ensure that only compliant artifacts and pieces of evidence progress through the pipeline, enhancing the overall security and integrity of your software delivery process. Control gates can be configured to evaluate various criteria, such as vulnerability scans, license compliance, code quality metrics, and more. By implementing control gates, organizations can automate the enforcement of security and compliance standards, reducing the risk of introducing vulnerabilities into production environments. ## Implementing Control and Quality Gates with Chainloop In Chainloop, control gates are implemented through [policies](/concepts/policies) that are evaluated against pieces of evidence (materials), entire attestation documents, or stored compliance data. These policies serve as acceptance criteria for the organization to ingest those materials or to proceed with further steps in the software supply chain. **If a control gate policy evaluation fails, the CLI command `chainloop attestation push` will return a non-zero exit code but the attestation is still sent to Chainloop**. This approach ensures that all activities are tracked, even those that do not meet compliance standards. ### Configuring enforcement Policies enforcement (gating) can be configured as a default for the organization and/or on a per policy basis. #### Organization default Global policy enforcement can be set globally by organization administrators. This will affect to all products and contracts within the organization. Please refer to [Policies section](./policies#configuring-enforcement) for further reference. By selecting this option you'll be effectively blocking the pipeline workflow runs that do not meet the compliance standards. > [tab] Web UI > > To enable organization-wide control gates, navigate to the [Organization Settings](https://app.chainloop.dev/settings) in the Chainloop Web UI (only available in paid plans) and set the "Policy Violation Strategy" to "Enforced". > > ![The Policy Violation Strategy setting in the organization settings](https://mintcdn.com/chainloop/ojasLg-rqpG2qdaD/concepts/img/policy-enforcement.png?fit=max\&auto=format\&n=ojasLg-rqpG2qdaD\&q=85\&s=73dcac9941eaf523c2cf01ccc88e187c) > [tab] CLI > > Use the `chainloop org update --block` command to set organization-wide control gate policies. > > ```bash theme={"dark"} > > chainloop org update --name silly-greider-943 --block > INF Organization updated! > > chainloop org describe > ┌────────────────────────────────────────────────────────────────────────────────┐ > │ Current Context │ > ├─────────────────────┬──────────────────────────────────────────────────────────┤ > │ Logged in as │ John │ > ├─────────────────────┼──────────────────────────────────────────────────────────┤ > │ Organization │ silly-greider-943 (role=owner) │ > │ │ Policy strategy=ENFORCED │ > ├─────────────────────┼──────────────────────────────────────────────────────────┤ > │ Default CAS Backend │ my-backend (provider=OCI, status="valid") │ > └─────────────────────┴──────────────────────────────────────────────────────────┘ > ``` > > Set `block` to `false` to disable organization-wide control gates. > > ```bash theme={"dark"} > > chainloop org update --name silly-greider-943 --block=false > ``` #### Fine-grained per policy You can control gating on a per-policy basis by setting the `gate` property in the policy attachment in the contract. This allows for more granular control over specific products or services, and overrides the organization-wide setting. | Value | Behavior | | - | - | | `gate: true` | Enforce this policy as a control gate | | `gate: false` | Explicitly disable gating for this policy, even if org-wide enforcement is enabled | | omitted | Inherit the organization default | ```yaml theme={"dark"} # Workflow Contract apiVersion: chainloop.dev/v1 kind: Contract metadata: name: gated-release description: perform QA checks before releasing spec: policies: attestation: - ref: my-control-gate-policy gate: true # This policy acts as a control gate - ref: my-informational-policy gate: false # Explicitly opt out of gating, even if org-wide enforcement is on ``` ### Using control gates in your CI/CD pipeline A typical use case for control gates is to enforce security checks before allowing an artifact to be promoted to production. For example, you might want to ensure that no critical vulnerabilities are present in the codebase before proceeding with a release. This will be usually done in the CI/CD pipeline, where the `chainloop attestation push` command is executed after running security scans and tests. If the control gate policies are not met, the pipeline can be configured to halt further steps, preventing non-compliant artifacts from being deployed. ```yaml theme={"dark"} # Example CI/CD pipeline snippet jobs: compliance: runs-on: ubuntu-latest steps: - name: Check security compliance run: | # initialize the attestation with the relevant workflow already configured with the gated contract chainloop attestation init --workflow security-compliance-check --project my-project # add any additional materials (optional) chainloop attestation add --name my-material --value ./path/to/material # push the attestation, this will evaluate the control gate policies and block if they fail chainloop attestation push ``` When a control gate policy is evaluated, if it fails, the `chainloop attestation push` command will return a non-zero exit code, indicating that the attestation did not pass the required checks. This mechanism helps prevent non-compliant artifacts from progressing through the CI/CD pipeline. ![CLI output of a push blocked by an enforced policy](https://mintcdn.com/chainloop/4m_Z_ZeRnSV7jb7V/concepts/img/policy-enforcement-cli-result.png?fit=max\&auto=format\&n=4m_Z_ZeRnSV7jb7V\&q=85\&s=73d02f94bb17edbae849d7f27e439a1a) Note that even though the pipeline is blocked, the attestation is still sent to Chainloop and recorded as "not compliant." This ensures that all activities are tracked, including those that fail to meet compliance standards. #### Bypassing Control Gates While blocking pipelines with control gates is essential for maintaining security and compliance standards, there are situations where an exception can be granted. **Option 1: Server-side requirement exception** If the control gate is based on a compliance control (see example below), you can [perform an exception for the requirement](/concepts/compliance-frameworks#record-requirement-exceptions) in the Chainloop UI to allow the gate to continue. ![The Flag as Exception dialog with the rationale field](https://mintcdn.com/chainloop/ojasLg-rqpG2qdaD/concepts/img/compliance-6.png?fit=max\&auto=format\&n=ojasLg-rqpG2qdaD\&q=85\&s=0430962aec16d6d3d200993ac3a4b103) **Option 2: Development bypass** There are situations where developers may need to bypass these checks temporarily. For example, during urgent hotfixes or when investigating false positives, for that chainloop provides the `--exception-bypass-policy-check` flag to handle these scenarios: Chainloop provides the `--exception-bypass-policy-check` flag to handle these scenarios: ```bash theme={"dark"} chainloop attestation push --exception-bypass-policy-check ``` When this flag is used, the CI/CD pipeline will run as expected, even if control gate policies fail. However, the bypass is not silent—the exception is recorded in Chainloop and exposed to the compliance team for verification. This ensures accountability while providing flexibility for developers. ![A workflow run showing the recorded enforcement bypass](https://mintcdn.com/chainloop/4m_Z_ZeRnSV7jb7V/concepts/img/policy-enforcement-result-ui.png?fit=max\&auto=format\&n=4m_Z_ZeRnSV7jb7V\&q=85\&s=f8fd9e42f5391c0b8481306a01b54ab9) This approach balances the need for strict enforcement with practical flexibility, allowing security and compliance teams to review and address exceptions as part of their regular governance processes. ## Examples > [!TIP] > > The examples below implement [custom policies](/guides/custom-policies) that leverage the following built-in functions to access project-scoped data > > * [`chainloop.project_compliance`](/reference/builtin-functions#chainloop-project-compliance) - to access project-scoped compliance data > * [`chainloop.evidence`](/reference/builtin-functions#chainloop-evidence) - to access attestations and materials > * [`chainloop.discover`](/reference/builtin-functions#chainloop-discover) - to access artifact metadata and dependencies > > Note that these functions are only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing) but control gates can be implemented using custom policies even on free plans. ### Example 1: check compliance requirements for my project Chainloop provides a [built-in policy](/concepts/policies#built-in-policies) called `check-compliance-requirement` that can be used to check compliance requirements for a project. To use it, just attach it to a contract and set the `gate` flag to `true`. In the example below, the contract is configured to check that the project version being attested meets the "no-vulnerabilities-high" and "sbom-compliance" compliance requirements defined in the [builtin framework "Chainloop Best Practices"](./compliance-frameworks). > [!TIP] > > You can implement similar custom policies leveraging the `chainloop.project_compliance` built-in function. ```yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Contract metadata: name: release-gate description: An example of control gate that makes sure that the requirements no-vulnerabilities-high and sbom-compliance are met spec: policies: attestation: - ref: check-compliance-requirement with: # if you omit the requirement_name, the policy will check all compliance requirements for the project requirement_name: no-vulnerabilities-high,sbom-compliance gate: true ``` If the requirements are not met, like in the image below, the policy will trigger a violation, effectively acting as a control gate to block the attestation from being accepted. ![The project compliance view with requirements failing their checks](https://mintcdn.com/chainloop/ojasLg-rqpG2qdaD/concepts/img/compliance-overview-gate.png?fit=max\&auto=format\&n=ojasLg-rqpG2qdaD\&q=85\&s=9bcb46d782b1fe486672cbe69a7d3189) Note that to bypass the control gate, you can [perform an exception for the requirement](/concepts/compliance-frameworks#record-requirement-exceptions) in the Chainloop UI. ![The Flag as Exception dialog with the rationale field](https://mintcdn.com/chainloop/ojasLg-rqpG2qdaD/concepts/img/compliance-6.png?fit=max\&auto=format\&n=ojasLg-rqpG2qdaD\&q=85\&s=0430962aec16d6d3d200993ac3a4b103) Note that this example uses the [`chainloop.project_compliance` built-in function](/reference/builtin-functions#chainloop-project-compliance) which is only available for paid plans. ```yaml theme={"dark"} # Policy apiVersion: workflowcontract.chainloop.dev/v1 kind: Policy metadata: name: cve-compliance-gate description: checks that the no-vulnerabilities-high compliance requirement is met spec: policies: - kind: ATTESTATION embedded: | package main import rego.v1 # CVE compliance checks violations contains msg if { compliance := chainloop.project_compliance({ "project_name": input.predicate.metadata.project, "project_version_name": input.predicate.metadata.projectVersion, }) some ev in compliance.evaluations ev.name == "no-vulnerabilities-high" ev.status == "fail" msg:= sprintf("project %s version %s has high severity vulnerabilities", [input.predicate.metadata.project, input.predicate.metadata.projectVersion]) } ``` ### Example 2: check required pieces of evidence In this example, we'll instead implement a custom policy to check that an SBOM is attached to the staging release attestation for the current project version. ```yaml theme={"dark"} # Policy apiVersion: workflowcontract.chainloop.dev/v1 kind: Policy metadata: name: gate-required-sbom description: Checks that the an SBOM is attached to the staging release attestation spec: policies: - kind: ATTESTATION embedded: | package main import rego.v1 # Find staging release (a "release-staging" workflow attestation should exist in the project version) using the built-in evidence function staging_att := att if { attestations := chainloop.evidence({ "project_name": input.predicate.metadata.project, "project_version_name": input.predicate.metadata.projectVersion, "kind": "ATTESTATION", }) some att in attestations.results att.workflow_name == "release-staging" } # Find an SBOM in the attestation using the built-in discovery function has_sbom(att) if { graph := chainloop.discover(att.digest, "") some ref in graph.references ref.kind == "SBOM_CYCLONEDX_JSON" } violations contains msg if { not staging_att msg:= sprintf("project %s version %s not fully released to staging yet", [input.predicate.metadata.project, input.predicate.metadata.projectVersion]) } violations contains msg if { staging_att not has_sbom(staging_att) msg:= sprintf("staging release attestation for project %s version %s does not have an SBOM", [input.predicate.metadata.project, input.predicate.metadata.projectVersion]) } ``` # Artifact Deployment Tracking Source: https://docs.chainloop.dev/concepts/deployments Track where your artifacts are running across your environments. > [!WARNING] > > This is a preview/beta feature. Further changes are expected. Artifact Deployment Tracking lets you record which artifacts are running in which [Environments](/concepts/environments), building a live view of what's running where across your organization. Because deployment records are linked to evidence in Chainloop's evidence store, you can trace any running artifact back to the [Workflows](/concepts/workflows) that built or tested it, the [Projects and Versions](/concepts/projects-versions) it belongs to, and the [Attestations](/concepts/attestations) that captured its provenance. ## Key Concepts ### Deployment Record A **deployment record** is the unit of information stored by Chainloop each time you register an artifact as running in an environment. Each record is uniquely identified by combining: | Field | Description | | - | - | | **Environment** | The infrastructure target (e.g., `my-k8s-cluster`) | | **Logical Environment** | The lifecycle stage (e.g., `production`) | | **Deployment Name** | A user-defined name for the deployment (e.g., `api-server`) | | **Kind** | The type of artifact (`CONTAINER_IMAGE` or `HELM_CHART`) | The record also captures the artifact reference (e.g., a container image digest), the timestamp, and the current status. Deployment records are immutable — when a new version replaces an existing one, the previous record is kept and marked as `superseded`, giving you a complete audit trail of what ran where and when. ### Deployment Status Each deployment record has one of three statuses: | Status | Description | | - | - | | `deployed` | The artifact is currently active | | `superseded` | The artifact was previously deployed but has been replaced by a newer version | | `decommissioned` | The artifact has been explicitly removed | ### Automatic Superseding When you record a new deployment that matches an existing active record (same environment, logical environment, deployment name, and kind), Chainloop automatically marks the previous record as `superseded`. This means you always have a clear picture of what's currently running without manual cleanup. ### Idempotent Recording Recording the same artifact to the same deployment record multiple times is safe and idempotent. The deployment timestamp is updated but no duplicate records are created. This makes it safe to call from CI/CD pipelines on every run, effectively acting as a **heartbeat** for the deployment. ## Recording a Deployment Use `chainloop deployment record` to register that an artifact is running in an environment. You can reference the artifact by OCI image or by digest: ```bash theme={"dark"} # Using an OCI reference chainloop deployment record \ --env my-k8s-cluster \ --logical-env production \ --deployment-name api-server \ --kind CONTAINER_IMAGE \ --oci-ref ghcr.io/my-org/api-server:v1.2.0 # Or using a digest directly chainloop deployment record \ --env my-k8s-cluster \ --logical-env production \ --deployment-name api-server \ --kind CONTAINER_IMAGE \ --digest sha256:abc123... ``` > [!NOTE] > > The artifact must already exist in the Chainloop evidence store (i.e., it must have been previously attested). If the OCI image is hosted in a **private registry**, you can provide credentials explicitly via `--registry-server`, `--registry-username`, and `--registry-password` flags, or the CLI will use your system's configured credentials. ## Decommissioning To mark an artifact as no longer running, use `chainloop deployment record` with `--status decommissioned`: ```bash theme={"dark"} chainloop deployment record \ --env my-k8s-cluster \ --logical-env production \ --deployment-name api-server \ --kind CONTAINER_IMAGE \ --digest sha256:abc123... \ --status decommissioned ``` ## Listing Deployments By default, `chainloop deployment list` shows only **currently active** deployments. Use `--history` to include `superseded` and `decommissioned` records. You can filter by `--env` or `--logical-env`. See the [CLI Reference](/cli/reference) for the full list of flags and options. ## Typical Workflow Here's an end-to-end example of how deployment tracking fits into a delivery pipeline: **1. Set up environments** (one-time) ```bash theme={"dark"} # Create environments chainloop environment create --name k8s-east --type kubernetes --description "Kubernetes US-East" chainloop environment create --name k8s-west --type kubernetes --description "Kubernetes US-West" # Logical environments (development, staging, production) are created automatically ``` **2. Deploy to staging** ```bash theme={"dark"} chainloop deployment record \ --env k8s-east \ --logical-env staging \ --deployment-name api-server \ --kind CONTAINER_IMAGE \ --oci-ref ghcr.io/my-org/api-server:v1.0.0 ``` **3. Promote to production** ```bash theme={"dark"} chainloop deployment record \ --env k8s-east \ --logical-env production \ --deployment-name api-server \ --kind CONTAINER_IMAGE \ --oci-ref ghcr.io/my-org/api-server:v1.0.0 ``` **4. Deploy a new version** (v1.0.0 is automatically superseded) ```bash theme={"dark"} chainloop deployment record \ --env k8s-east \ --logical-env production \ --deployment-name api-server \ --kind CONTAINER_IMAGE \ --oci-ref ghcr.io/my-org/api-server:v1.1.0 ``` **5. Check what's running** ```bash theme={"dark"} chainloop deployment list --logical-env production ``` **6. Review deployment history** ```bash theme={"dark"} chainloop deployment list --env k8s-east --logical-env production --history ``` ## Next Steps * [Environments and Logical Environments](/concepts/environments) — Set up your infrastructure targets and lifecycle stages * [Attestations](/concepts/attestations) — Learn how evidence is collected and signed * [Projects and Versions](/concepts/projects-versions) — Organize your software components # Environments and Logical Environments Source: https://docs.chainloop.dev/concepts/environments Define infrastructure targets and lifecycle stages for deployment tracking in Chainloop. > [!WARNING] > > This is a preview/beta feature. Further changes are expected. Environments and Logical Environments are the building blocks for [Artifact Deployment Tracking](/concepts/deployments) in Chainloop. Together, they describe **where** your artifacts run (the infrastructure target) and **at what stage** of the lifecycle they are (development, staging, production, etc.). ## Environments An Environment represents a concrete infrastructure target where your software runs. This could be a Kubernetes cluster, an AWS ECS service, a bare-metal server, a serverless function, or any other deployment destination. ### Managing Environments Environments are managed via the `chainloop environment` command group. For example: ```bash theme={"dark"} chainloop environment create --name my-k8s-cluster --type kubernetes --description "Production Kubernetes cluster in us-east-1" ``` See the [CLI Reference](/cli/reference) for all available commands (create, list, describe, update, delete). ## Logical Environments A Logical Environment represents a lifecycle stage in your delivery pipeline. While Environments define the physical or virtual infrastructure, Logical Environments define the purpose or phase of a deployment, such as development, staging, or production. When you create an organization, Chainloop automatically provides three default logical environments: | Logical Environment | Description | | - | - | | `development` | For development and testing | | `staging` | Pre-production validation | | `production` | Live production workloads | You can also create custom logical environments to match your organization's delivery process (e.g., `qa`, `performance-testing`, `canary`). > [!NOTE] > > In an upcoming release, Logical Environments will also enable running [Policies](/concepts/policies) scoped to specific lifecycle stages — for example, enforcing stricter compliance checks for artifacts deployed to `production` than to `development`. ### Managing Logical Environments Logical environments are managed via the `chainloop environment logical` command group. For example: ```bash theme={"dark"} chainloop environment logical create --name canary --description "Canary release stage" ``` See the [CLI Reference](/cli/reference) for all available commands. ## Next Steps * [Artifact Deployment Tracking](/concepts/deployments) — Record and query what's running where * [Projects and Versions](/concepts/projects-versions) — Organize your software components # Integrations Source: https://docs.chainloop.dev/concepts/integrations ## Overview Operators can extend Chainloop functionality by setting up third-party integrations that operate on your attestation metadata and workflow events. Integrations can range from sending a Slack message, uploading the attestation to a storage backend or sending a Software Bill Of Materials (SBOMs) to a third-party service for analysis, for example. ![Diagram of third-party integrations operating on attestation metadata](https://mintcdn.com/chainloop/qP5Aepelxm7aUyXA/concepts/img/integrations-1.png?fit=max\&auto=format\&n=qP5Aepelxm7aUyXA\&q=85\&s=fe175402cf86aae19628ef21249876ba) ### Integration capabilities Chainloop integrations provide the following capabilities: * **Keyless Attestation** — Attest directly from CI/CD environments using OIDC tokens, with no API keys to manage. * **Repository Integration** — Link source code repositories to Chainloop projects so attestations are scoped and validated per-repo. * **Fan-Out** — Distribute attestations, SBOMs, and artifacts to external systems after a workflow run. * **Notifications** — Send alerts about product updates, system status, and workflow events. * **Issue Tracker** — Create and track issues in your team's issue tracker from security assessments. * **Chainloop Ask** — Power the [Ask Chainloop](/concepts/ask-chainloop) natural language assistant in the web UI and Slack. * **Evidence AI Prompt** — Evaluate attestation evidence using AI-driven, natural-language policies. See the [LLM-driven policies guide](https://docs.chainloop.dev/guides/llm-policies) and the [LLM support reference](/reference/llm-support). Below you can find the list of currently available integrations. If you can't find the integration you are looking for, feel free to reach out or [contribute your own!](https://github.com/chainloop-dev/chainloop) ## Integration providers > [card] [GitHub](#github) > > Keyless attestation, repository integration > [card] [GitLab](#gitlab) > > Keyless attestation, repository integration > [card] [Slack](#slack) > > Notifications, Chainloop Ask > [card] [Linear](#linear) > > Issue tracker (create issues from assessments) > [card] [Dependency Track](#dependency-track) > > Fan-out (CycloneDX SBOMs) > [card] [Discord](#discord) > > Fan-out (attestation delivery) > [card] [OpenAI](#openai) > > Chainloop Ask, Evidence AI Prompt > [card] [Anthropic](#anthropic) > > Chainloop Ask, Evidence AI Prompt > [card] [GUAC](#guac) > > Fan-out (attestation + SBOM export) > [card] [Webhook](#webhook) > > Fan-out (generic POST) > [card] [SMTP / Email](#smtp--email) > > Fan-out, Notifications > [card] [Microsoft Teams](#microsoft-teams) > > Notifications *** > [!NOTE] > > For how GitHub and GitLab differ, what connecting a repository enables, and self-hosted setup, see the [Repository Integration](/guides/repository-integration) overview. ### GitHub | Capability | Description | | - | - | | **Keyless Attestation** | Attest from GitHub Actions using OIDC tokens — no API keys required. | | **Repository Integration** | Enroll GitHub repositories and link them to Chainloop projects for scoped attestation validation. | | GitHub integration leverages GitHub's native OIDC identity provider, enabling your CI pipelines to perform attestations without managing long-lived credentials. Repositories are enrolled in Chainloop and linked to projects, so only authorized repos can submit attestations. | | > [card] [GitHub keyless attestation guide](/guides/github-keyless) > > Step-by-step setup for OIDC-based keyless attestations from GitHub Actions. ### GitLab | Capability | Description | | - | - | | **Keyless Attestation** | Attest from GitLab CI runners using OIDC tokens — no API keys required. | | **Repository Integration** | Enroll GitLab repositories and link them to Chainloop projects for scoped attestation validation. | GitLab integration uses GitLab's OIDC tokens with a `chainloop` audience claim. Like GitHub, repositories are enrolled and linked to projects before attestations are accepted. > [card] [GitLab keyless attestation guide](/guides/gitlab-keyless) > > Step-by-step setup for OIDC-based keyless attestations from GitLab CI. ### Slack > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). | Capability | Description | | - | - | | **Notifications** | Receive alerts about product updates, system status, and workflow events via Slack channels. | | **Chainloop Ask** | Query your supply chain data using natural language directly from Slack (requires an AI provider such as Anthropic or OpenAI). | Slack can be configured as both a notification channel and a Chainloop Ask interface. Notifications are configured at the organization or product level. Chainloop Ask in Slack requires a registered [AI provider](#openai) to function. > [card] [Notifications setup](/concepts/notifications) > > Configure Slack notification channels and preferences. > [card] [Ask Chainloop](/concepts/ask-chainloop) > > Learn about the AI-powered assistant available in web and Slack. ### Linear > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). | Capability | Description | | - | - | | **Issue Tracker** | Create [Linear](https://linear.app/) issues from security assessments, capturing severity, scope, justification, and linked findings. | Turn a security assessment into a Linear issue so your team can triage and track remediation alongside their existing work. > [card] [Issue Trackers](/concepts/issue-trackers) > > Learn how to connect Linear and create issues from assessments. ### Dependency Track | Capability | Description | | - | - | | **Fan-Out** | Automatically send CycloneDX SBOMs to your [Dependency-Track](https://dependencytrack.org/) instance for vulnerability analysis. | This integration forwards SBOM materials collected during attestation to Dependency-Track, enabling continuous vulnerability monitoring of your software components. Supported metadata: `SBOM_CYCLONEDX_JSON` [View integration source](https://github.com/chainloop-dev/chainloop/blob/main/app/controlplane/plugins/core/dependency-track/v1/README.md) ### Discord | Capability | Description | | - | - | | **Fan-Out** | Send attestation summaries to Discord channels via webhooks. | [View integration source](https://github.com/chainloop-dev/chainloop/blob/main/app/controlplane/plugins/core/discord-webhook/v1/README.md) ### OpenAI > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). | Capability | Description | | - | - | | **Chainloop Ask** | Powers the [Ask Chainloop](/concepts/ask-chainloop) assistant in the web UI and Slack. | | **Evidence AI Prompt** | Evaluate attestation evidence using natural-language policies via OpenAI models. | Register OpenAI as an AI provider to run Chainloop's AI features, such as Chainloop Ask, LLM-driven policies, automatic risk assessment, auto-remediation and AI session scoring, on your own account and model. Connect to OpenAI, Azure OpenAI on Microsoft Foundry, or any OpenAI-compatible endpoint such as OpenRouter. On Chainloop SaaS, Chainloop configures the AI provider for you. > [card] [Ask Chainloop](/concepts/ask-chainloop) > > Natural language assistant for supply chain queries. > [card] [LLM support reference](/reference/llm-support) > > Configuration details for AI providers. ### Anthropic > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). | Capability | Description | | - | - | | **Chainloop Ask** | Powers the [Ask Chainloop](/concepts/ask-chainloop) assistant in the web UI and Slack. | | **Evidence AI Prompt** | Evaluate attestation evidence using natural-language policies via Anthropic models. | Register Anthropic as an AI provider to run Chainloop's AI features, such as Chainloop Ask, LLM-driven policies, automatic risk assessment, auto-remediation and AI session scoring, on your own account and model. Connect to Anthropic, Claude on Microsoft Foundry, or any Anthropic-compatible gateway. On Chainloop SaaS, Chainloop configures the AI provider for you. > [card] [Ask Chainloop](/concepts/ask-chainloop) > > Natural language assistant for supply chain queries. > [card] [LLM support reference](/reference/llm-support) > > Configuration details for AI providers. ### GUAC | Capability | Description | | - | - | | **Fan-Out** | Export attestation and SBOM metadata to a blob storage backend for consumption by [guacsec/guac](https://github.com/guacsec/guac). | Supported metadata: `SBOM_CYCLONEDX_JSON`, `SBOM_SPDX_JSON` [View integration source](https://github.com/chainloop-dev/chainloop/blob/main/app/controlplane/plugins/core/guac/v1/README.md) ### Webhook | Capability | Description | | - | - | | **Fan-Out** | Send attestations and SBOMs to any HTTP endpoint via a generic POST webhook. | A flexible integration for forwarding attestation data to any system that accepts webhooks. Supported metadata: `Attestation`, `SBOM_CYCLONEDX_JSON`, `SBOM_SPDX_JSON` [View integration source](https://github.com/chainloop-dev/chainloop/blob/main/app/controlplane/plugins/core/webhook/v1/README.md) ### SMTP / Email | Capability | Description | | - | - | | **Fan-Out** | Send emails containing attestation information after workflow runs. | | **Notifications** | Receive system and product notifications via email. | SMTP can be used as both a fan-out integration (attached to workflows) and a notification channel (configured at the organization or product level). > [card] [Fan-out source](https://github.com/chainloop-dev/chainloop/blob/main/app/controlplane/plugins/core/smtp/v1/README.md) > > View SMTP fan-out integration source. > [card] [Notifications setup](/concepts/notifications) > > Configure email notification preferences. ### Microsoft Teams > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). | Capability | Description | | - | - | | **Notifications** | Receive alerts about product updates, system status, and workflow events via Microsoft Teams channels. | Check the [Notifications documentation](./notifications) for configuration details. *** ## Setting up integrations Both Fan-Out and Notification integrations follow the same registration process. The key difference is how they are used after registration: * **Fan-Out integrations** are attached to individual workflows * **Notification integrations** are configured at different scopes for alerting purposes (Organization-level, Product-level) * **Issue Tracker integrations** are connected once per organization, then used from the assessment view to create issues * **LLM integrations** are registered globally, and used in agentic policies ### Step 1: Check available integrations First, make sure that the integration you are looking for is available in your Chainloop instance: > [tab] Web UI > > Go to the [Integrations](https://app.chainloop.dev/integrations) page and check if the integration you are looking for is available. > > ![The Integrations catalog listing essential apps and all available integration types](https://mintcdn.com/chainloop/vTuUKiGCwGJ__XFJ/concepts/img/integrations-2.png?fit=max\&auto=format\&n=vTuUKiGCwGJ__XFJ\&q=85\&s=1be6531eadb4bb3ed13b4ad174492018) > [tab] CLI > > ```bash theme={"dark"} > chainloop integration available list > ``` > > ```bash theme={"dark"} > > ┌──────────────────┬─────────┬──────────────────────┬───────────────────────────────────────────────────────────┐ > │ ID │ VERSION │ MATERIAL REQUIREMENT │ DESCRIPTION │ > ├──────────────────┼─────────┼──────────────────────┼───────────────────────────────────────────────────────────┤ > │ dependency-track │ 1.2 │ SBOM_CYCLONEDX_JSON │ Send CycloneDX SBOMs to your Dependency-Track instance │ > ├──────────────────┼─────────┼──────────────────────┼───────────────────────────────────────────────────────────┤ > │ smtp │ 1.0 │ │ Send emails with information about a received attestation │ > ├──────────────────┼─────────┼──────────────────────┼───────────────────────────────────────────────────────────┤ > │ oci-registry │ 1.0 │ │ Send attestations to a compatible OCI registry │ > ├──────────────────┼─────────┼──────────────────────┼───────────────────────────────────────────────────────────┤ > │ discord-webhook │ 1.1 │ │ Send attestations to Discord │ > └──────────────────┴─────────┴──────────────────────┴───────────────────────────────────────────────────────────┘ > > ``` > > > [!TIP] > > > > In addition to the UI, you can find all the available operations related to integrations in the CLI by running `chainloop integration --help` ### Step 2: Register the integration Registration is when a specific instance of the integration is configured in a Chainloop organization. A registered instance is then available to be attached to workflows (for Fan-Out) or configured globally (for Notifications). Each registration shows its configuration status in the UI. In our case, as an example, we want to register an instance of the webhook integration. > [tab] Web UI > > To do so, click on the integration to open its detail panel, which shows the integration information and its existing connections. > > ![The webhook integration detail panel showing its existing connections](https://mintcdn.com/chainloop/vTuUKiGCwGJ__XFJ/concepts/img/integrations-3.png?fit=max\&auto=format\&n=vTuUKiGCwGJ__XFJ\&q=85\&s=bb7cb80a6db789cbe422ebdff454e899) > > **Registration inputs** are a one-time set of fields required to register the integration in your organization. In this case, the URL of the webhook. However, Attachment inputs are properties set at the workflow level, which can vary from one workflow to another within the same organization. > > Click the **+** button next to **Connections** to open the registration form, and fill in a name and the URL value: > > ![The Add Registration form for the webhook integration](https://mintcdn.com/chainloop/vTuUKiGCwGJ__XFJ/concepts/img/integrations-4.png?fit=max\&auto=format\&n=vTuUKiGCwGJ__XFJ\&q=85\&s=6930b043700c3bf2cf5c8b8370e4c1d1) > > ![The Add Registration form filled in with a name and webhook URL](https://mintcdn.com/chainloop/vTuUKiGCwGJ__XFJ/concepts/img/integrations-5.png?fit=max\&auto=format\&n=vTuUKiGCwGJ__XFJ\&q=85\&s=18e9d9acf5f4151826e5f5f2d7be3fc0) > > After clicking "Register" you'll see your integration in the **Connections** list: > > ![The webhook integration Connections list showing the registered connection](https://mintcdn.com/chainloop/vTuUKiGCwGJ__XFJ/concepts/img/integrations-6.png?fit=max\&auto=format\&n=vTuUKiGCwGJ__XFJ\&q=85\&s=c3077683976594f54fed06a3522b2236) > [tab] CLI > > Check the required **registration inputs** > > ```bash theme={"dark"} > chainloop integration available describe --name webhook > ┌─────────┬─────────┬─────────────────────────────────────┬──────────────────────────────────────────────────────────┐ > │ NAME │ VERSION │ MATERIAL REQUIREMENT │ DESCRIPTION │ > ├─────────┼─────────┼─────────────────────────────────────┼──────────────────────────────────────────────────────────┤ > │ webhook │ 1.0 │ SBOM_CYCLONEDX_JSON, SBOM_SPDX_JSON │ Send Attestation and SBOMs to a generic POST webhook URL │ > └─────────┴─────────┴─────────────────────────────────────┴──────────────────────────────────────────────────────────┘ > ┌─────────────────────────────────────────────────────────────┐ > │ Registration inputs │ > ├───────┬────────┬──────────┬─────────────────────────────────┤ > │ FIELD │ TYPE │ REQUIRED │ DESCRIPTION │ > ├───────┼────────┼──────────┼─────────────────────────────────┤ > │ url │ string │ Yes │ Webhook URL to send payloads to │ > └───────┴────────┴──────────┴─────────────────────────────────┘ > ... > ``` > > lastly, register the integration providing the required input parameter > > ```bash theme={"dark"} > # Example of registering a webhook integration > chainloop integration registered add webhook \ > --name [unique-registration-name] \ > --opt url=[webhook-url] > ``` ### Step 3: Attaching Fan-Out integrations to workflows > [!NOTE] > > For Notification integrations: Check the [Notifications documentation](./notifications) for reference. Once the integration is registered, the next step depends on the integration type: Attach the integration to specific workflows. In practice this means that attestations and material information generated in those workflows will be sent to the registered integration. > [tab] Web UI > > In the workflow view, click on the **Integrations** tab: > > ![The Integrations tab of a workflow with the Attach button](https://mintcdn.com/chainloop/vTuUKiGCwGJ__XFJ/concepts/img/integrations-7.png?fit=max\&auto=format\&n=vTuUKiGCwGJ__XFJ\&q=85\&s=c7ede3678acaed7ddff5b9edb16d7d65) > > When clicking "Attach" you'll be presented with the list of available integrations for your organization (which were prepared in the previous step). > > When an integration is selected, you'll see the list of attachment properties that can be set at the workflow level. In this case, the two Attachment Input properties we saw in the previous section. This particular integration can receive full attestation documents, SBOMs, or both. > > ![The Attach integration drawer with the Send Attestation and Send SBOM options](https://mintcdn.com/chainloop/vTuUKiGCwGJ__XFJ/concepts/img/integrations-8.png?fit=max\&auto=format\&n=vTuUKiGCwGJ__XFJ\&q=85\&s=c83f5de2368742304d7e086f8d96b46d) > [tab] CLI > > Check the available attachment properties, which in this case we have two optional properties: `send_attestation` and `send_sbom`. > > ```bash theme={"dark"} > $ chainloop integration available describe --name webhook > ┌─────────┬─────────┬─────────────────────────────────────┬──────────────────────────────────────────────────────────┐ > │ NAME │ VERSION │ MATERIAL REQUIREMENT │ DESCRIPTION │ > ├─────────┼─────────┼─────────────────────────────────────┼──────────────────────────────────────────────────────────┤ > │ webhook │ 1.0 │ SBOM_CYCLONEDX_JSON, SBOM_SPDX_JSON │ Send Attestation and SBOMs to a generic POST webhook URL │ > └─────────┴─────────┴─────────────────────────────────────┴──────────────────────────────────────────────────────────┘ > ... > ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ > │ Attachment inputs │ > ├──────────────────┬─────────┬─────────────────────┬───────────────────────────────────────────────────────────────────────┤ > │ FIELD │ TYPE │ REQUIRED │ DESCRIPTION │ > ├──────────────────┼─────────┼─────────────────────┼───────────────────────────────────────────────────────────────────────┤ > │ send_attestation │ boolean │ No (default: true) │ Send attestation │ > │ send_sbom │ boolean │ No (default: false) │ Additionally send CycloneDX or SPDX Software Bill Of Materials (SBOM) │ > └──────────────────┴─────────┴─────────────────────┴───────────────────────────────────────────────────────────────────────┘ > ``` > > ```bash theme={"dark"} > chainloop integration attached add \ > --workflow [workflow-name] --project [project-name] \ > --integration [integration-name] \ > # and optionally set the attachment properties > --opt send_attestation=[true|false] \ > --opt send_sbom=[true|false] > ``` # Issue Trackers Source: https://docs.chainloop.dev/concepts/issue-trackers > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). ## Overview Issue Tracker integrations connect Chainloop to your team's issue tracker so you can turn security assessments into trackable issues. Instead of copying findings by hand, you create an issue straight from an assessment and let your team triage and track remediation alongside the rest of their planning work. Each issue captures the assessment's: * Severity and CVSS vector * Scope and status * Justification and notes * Linked findings (CVE and affected package) * A deep link back to the assessment in Chainloop ## Configuring an issue tracker Issue Tracker integrations are configured through the Platform UI, in the [integrations section](./integrations), the same place where Fan-out and Notification integrations live. ![Integrations](https://mintcdn.com/chainloop/oDL7zM13B2uzJOEj/concepts/img/integrations-10.png?fit=max\&auto=format\&n=oDL7zM13B2uzJOEj\&q=85\&s=386d0c2dbcce385348a6a3ba29f07ff1) Current available issue trackers include: * **Linear**. Connect your workspace through the in-app authorization flow — no API key or webhook URL to manage. More issue trackers will be added in future releases. ## Creating an issue from an assessment Once an issue tracker is connected, open an assessment and choose **Create issue**: 1. Pick the **team** the issue should be filed under. 2. Review the **title** and **description** — Chainloop prefills both from the assessment, and you can edit them before creating. 3. Optionally set an **assignee**, **workflow state**, **priority**, and **labels**. # Material Types Source: https://docs.chainloop.dev/concepts/material-types ## Built-in Material Types Chainloop supports the following pieces of evidence types that can be attached during the attestation process. | Name | ID | Description | | - | - | - | | Artifact Type | ARTIFACT | It represents a software artifact. | | [AsyncAPI specification](https://www.asyncapi.com/docs/reference/specification/latest) | ASYNCAPI_SPEC | An AsyncAPI specification document (v2.6, v3.0) | | Attestation | ATTESTATION | Existing Chainloop attestations. | | BlackDuck SCA | BLACKDUCK_SCA_JSON | | | [CERT/CC Dranzer](https://github.com/CERTCC/dranzer) | CERTCC_DRANZER | ActiveX/COM control test report, a single plain-text report or an archive (zip or tar.gz) holding the per-mode reports of one run (-b, -p, -s, -t) | | [Checkmarx One](https://github.com/Checkmarx/ast-cli/blob/main/internal/wrappers/results-json.go) | CHECKMARX_JSON | Checkmarx One native JSON report (ScanResultsCollection) | | [Cobertura XML report](https://github.com/cobertura/cobertura) | COBERTURA_XML | Code coverage report in Cobertura XML format | | [Container Image Reference](https://github.com/opencontainers/image-spec) | CONTAINER_IMAGE | A reference to a container image. It will get resolved and referenced by its sha | | [CSAF Informational Advisory](https://docs.oasis-open.org/csaf/csaf/v2.0/os/csaf-v2.0-os.html#43-profile-3-informational-advisory) | CSAF_INFORMATIONAL_ADVISORY | | | [CSAF Security Advisory](https://docs.oasis-open.org/csaf/csaf/v2.0/os/csaf-v2.0-os.html#44-profile-4-security-advisory) | CSAF_SECURITY_ADVISORY | | | [CSAF Security Incident Report](https://docs.oasis-open.org/csaf/csaf/v2.0/os/csaf-v2.0-os.html#42-profile-2-security-incident-response) | CSAF_SECURITY_INCIDENT_RESPONSE | | | [CSAF VEX](https://docs.oasis-open.org/csaf/csaf/v2.0/os/csaf-v2.0-os.html#45-profile-5-vex) | CSAF_VEX | | | [Custom Evidence Type](#custom-material-types) | EVIDENCE | Custom piece of evidence that doesn't fit in any other category, for instance, an approval report in json format, etc. | | [GitHub Advanced Security Code scans](https://docs.github.com/en/rest/code-scanning/code-scanning?apiVersion=2022-11-28) | GHAS_CODE_SCAN | | | [GitHub Advanced Security Dependency scans](https://docs.github.com/en/rest/dependabot/alerts?apiVersion=2022-11-28) | GHAS_DEPENDENCY_SCAN | | | [GitHub Advanced Security Secret scans](https://docs.github.com/en/rest/secret-scanning/secret-scanning?apiVersion=2022-11-28) | GHAS_SECRET_SCAN | | | [GitLab Security report](https://docs.gitlab.com/ee/user/application_security/) | GITLAB_SECURITY_REPORT | GitLab Security reports in JSON format | | [Gitleaks Secret Scan](https://github.com/gitleaks/gitleaks) | GITLEAKS_JSON | Secrets detection report in the gitleaks JSON format, as produced by gitleaks or a compatible tool | | [GraphQL SDL schema](https://spec.graphql.org/) | GRAPHQL_SPEC | GraphQL SDL schema definition | | [Helm Chart](https://helm.sh/docs/topics/charts/) | HELM_CHART | A released Helm chart in tarball format | | [JaCoCo XML Report](https://www.jacoco.org/jacoco/trunk/doc/) | JACOCO_XML | | | [JUnit](https://www.ibm.com/docs/en/developer-for-zos/14.1?topic=formats-junit-xml-format) | JUNIT_XML | | | [OpenAPI specification](https://spec.openapis.org/oas/latest.html) | OPENAPI_SPEC | An OpenAPI specification document (v3.0, v3.1) | | [OpenVEX](https://github.com/openvex) | OPENVEX | Open Vulnerability and Exposure eXchange (OpenVEX) format | | [OpenSSF Scorecard](https://github.com/ossf/scorecard) | OSSF_SCORECARD_JSON | OpenSSF Scorecard results in JSON format | | [Oversecured scan report](https://docs.oversecured.com/docs/guide-exporting-reports) | OVERSECURED_JSON | Mobile (Android/iOS) scan report, whole-scan JSON export | | [PIT mutation testing report](https://pitest.org/) | PITEST_XML | Mutation testing report in PIT's native XML format (mutations.xml) | | [Radamsa crashing inputs](https://gitlab.com/akihe/radamsa) | RADAMSA_CRASHES | Radamsa crashing inputs, a single file or a crashes/ archive (tar.gz or zip) | | [Radamsa metadata log](https://gitlab.com/akihe/radamsa) | RADAMSA_REPORT | Radamsa `-M` metadata log, one record per generated iteration | | [SARIF](https://docs.oasis-open.org/sarif/sarif/v2.1.0/) | SARIF | | | [CycloneDX SBOM](https://github.com/CycloneDX/specification) | SBOM_CYCLONEDX_JSON | A CycloneDX Software Bill of Materials (SBOM) in JSON format | | [SPDX SBOM](https://spdx.dev/specifications/) | SBOM_SPDX_JSON | An SPDX Software Bill of Materials (SBOM) in JSON format | | Key-Value metadata pairs | STRING | | | [Sysinternals AccessChk](https://learn.microsoft.com/en-us/sysinternals/downloads/accesschk) | SYSINTERNALS_ACCESSCHK | Sysinternals AccessChk text output | | [Sysinternals Sigcheck](https://learn.microsoft.com/en-us/sysinternals/downloads/sigcheck) | SYSINTERNALS_SIGCHECK | Sysinternals Sigcheck output in CSV format | | [TruffleHog secret scan](https://github.com/trufflesecurity/trufflehog) | TRUFFLEHOG_JSON | Secret scanning report in TruffleHog JSONL format (one JSON finding per line) | | [PrismaCloud Twistcli Scan](https://docs.prismacloud.io/en/compute-edition/30/admin-guide/tools/twistcli-scan-images) | TWISTCLI_SCAN_JSON | | | [detect-secrets baseline](https://github.com/Yelp/detect-secrets) | YELP_DETECT_SECRETS_BASELINE | detect-secrets baseline file | | [ZAP DAST zip report](https://github.com/marketplace/actions/zap-baseline-scan) | ZAP_DAST_ZIP | Zap DAST report in zip format that matches the format returned from Zap's GitHub Action | | [SLSA provenance attestation](https://slsa.dev/spec/v1.1/provenance) | SLSA_PROVENANCE | SLSA provenance file generated by GitHub or upstream slsa-generator | | Chainloop Runner Context | CHAINLOOP_RUNNER_CONTEXT | Represents the runner context in which the attestation is crafted in a JSON format | | [Pull request metadata from GitHub or GitLab](https://github.com/chainloop-dev/chainloop/tree/main/pkg/prinfo/schemas) | CHAINLOOP_PR_INFO | Gathered automatically by the Chainloop CLI when a pull request or merge request is detected. Includes author identity with bot detection support | | [AI Agent Configuration](/guides/ai-config-collector) | CHAINLOOP_AI_AGENT_CONFIG | AI agent configuration files gathered automatically via the `--collectors aiconfig` option | | [AI Coding Session](/concepts/ai-coding-sessions) | CHAINLOOP_AI_CODING_SESSION | AI coding session evidence captured automatically via `chainloop trace` hooks | | [AI Security Context](/concepts/ai-code-analysis) | CHAINLOOP_AI_SECURITY_CONTEXT | A repository's security-fix history compiled into a map of hot components, shared surfaces, and confirmed fixes | See below an example on how to use them in your contract or refer to [this guide](/concepts/contracts#writing-contracts) to learn more about how to use them. ```yaml skynet.contract.yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Contract metadata: name: skynet-contract spec: # Arbitrary set of annotations can be added to the contract and will be part of the attestation annotations: - name: version value: oss # if the value is left empty, it will be required and resolved at attestation time # https://docs.chainloop.dev/concepts/operator/material-types materials: # CONTAINER_IMAGE kinds will get resolved to retrieve their repository digest - type: CONTAINER_IMAGE name: skynet-control-plane # The output flag indicates that the material will be part of the attestation subject output: true # Arbitrary annotations can be added to the material annotations: - name: component value: control-plane # The value can be left empty so it can be provided at attestation time - name: asset # ARTIFACT kinds will first get uploaded to your artifact registry via the built-in Content Addressable Storage (CAS) # Optional dockerfile - type: ARTIFACT name: dockerfile optional: true # SBOMs will be uploaded to the artifact registry and referenced in the attestation # Both SBOM_CYCLONEDX_JSON and SBOM_SPDX_JSON are supported - type: SBOM_CYCLONEDX_JSON name: skynet-sbom # CSAF_VEX and OPENVEX are supported - type: OPENVEX name: disclosure # And static analysis reports in SARIF format - type: SARIF name: static-out # or additional tools - type: TWISTCLI_SCAN_JSON name: scan-result # https://docs.chainloop.dev/concepts/policies policies: materials: # policies applied to materials - ref: file://cyclonedx-licenses.yaml attestation: # policies applied to the whole attestation - ref: https://github.com/chainloop/chainloop-dev/blob/main/docs/examples/policies/chainloop-commit.yaml # (2) # Env vars we want the system to resolve and inject during attestation initialization # Additional ones can be inherited from the specified runner context below envAllowList: - CUSTOM_VAR # Enforce in what runner context the attestation must happen # If not specified, the attestation crafting process is allowed to run anywhere runner: type: "GITHUB_ACTION" ``` ## Custom Material Types When your data doesn't fit any of the built-in types listed above, use the `EVIDENCE` material type. This is a general-purpose type that lets you attest arbitrary JSON data and run [policies](/concepts/policies) against it. Common use cases include in-house scanner output, approval reports, deployment manifests, or any structured data relevant to your supply chain. ### Structure Guidelines We recommend that custom evidence follows these conventions: * It must be in **JSON format**, since the [policy engine](/concepts/policies) only supports JSON. * The document should have an **identifier** and a clear **separation between metadata and data**. Instead of this: ```json theme={"dark"} { "foo": "bar" } ``` Structure it like this: ```json theme={"dark"} { "chainloop.material.evidence.id": "my-custom-evidence", "data": { "foo": "bar" } } ``` This pattern lets you write policies that identify the evidence type, skip irrelevant evidence, or route to the correct validation logic. For example, a policy can skip evaluation if the evidence doesn't match: ```rego theme={"dark"} valid_input if { input["chainloop.material.evidence.id"] == "my-custom-evidence" } ``` ### Example: Attesting a Release Approval Report This example shows how to send an internal release approval record to Chainloop as custom evidence. Following the structure guidelines above, the approval report is wrapped with a descriptive identifier: ```json theme={"dark"} { "chainloop.material.evidence.id": "release-approval-report", "data": { "release": "my-service v1.4.0", "ticket": "CHANGE-4821", "approvals": [ { "role": "engineering-manager", "approver": "alice@example.com", "decision": "approved", "timestamp": "2025-11-03T09:12:00Z" }, { "role": "security", "approver": "bob@example.com", "decision": "approved", "timestamp": "2025-11-03T11:47:00Z" } ] } } ``` In your workflow contract, declare the material as `EVIDENCE`: ```yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Contract metadata: name: release-approval-contract spec: materials: - type: EVIDENCE name: release-approval policies: materials: - ref: file://require-two-approvals.yaml ``` Then attach the evidence during attestation: ```bash theme={"dark"} chainloop att add --name release-approval --value release-approval.json ``` Since no built-in policy understands your document's shape, write a [custom policy](/guides/custom-policies) to validate it — for example, one that requires an approval from the `security` role before the attestation can be pushed. ## Importing SonarQube Findings To bring SonarQube results into an attestation, use the `chainloop transform sonarqube` command. It fetches issues and Security Hotspots from the SonarQube REST API, enriches them with CWE IDs, and writes [SARIF 2.1.0](https://docs.oasis-open.org/sarif/sarif/v2.1.0/), which you attest as a `SARIF` material. > [!NOTE] > > `chainloop transform` is part of the [Enterprise Edition CLI](/cli/reference#chainloop-transform-sonarqube). ```bash theme={"dark"} export SONARQUBE_URL=https://sonarqube.example.com export SONARQUBE_TOKEN= chainloop transform sonarqube \ --project my-service \ --branch main \ --output-file sonarqube-results.sarif ``` By default the command fetches only Security-quality issues that are `OPEN`, plus `HIGH` and `MEDIUM` priority hotspots. Broaden the scope with `--software-qualities MAINTAINABILITY,RELIABILITY` to also cover dead, unreachable, and unused code, or narrow it to specific rule keys with `--rules`. See the [command reference](/cli/reference#chainloop-transform-sonarqube) for the full flag list. Declare the result as a `SARIF` material in your contract and validate it with the built-in [`sast-scan-present`](/reference/policies#sast-scan-present) and [`sast`](/reference/policies#sast) policies: ```yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Contract metadata: name: sonarqube-contract spec: materials: - type: SARIF name: sast-scan policies: attestation: - ref: sast-scan-present materials: - ref: sast with: severity: "HIGH" ``` The `sast-scan-present` policy checks that a SAST scan material is present in the attestation, while the `sast` policy evaluates the actual findings against a severity threshold. Then attach the report during attestation: ```bash theme={"dark"} chainloop att add --name sast-scan --value sonarqube-results.sarif ``` # Notifications Source: https://docs.chainloop.dev/concepts/notifications > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). ## Overview Notifications are a powerful feature in Chainloop that keeps users informed about important events and updates within the platform. They help ensure that users stay up-to-date with the latest activities related to their projects, workflows, and compliance status. Notifications can be configured to alert users about various events, such as: * System status events (like storage backend issues) * Product Compliance changes * Product releases * etc. ## Configuring Notifications Notification integrations can be configured through the Platform UI, in the [integrations section](./integrations), where Fan-out integrations can be configured as well. The configuration of each notification channel may vary, depending on the specific requirements of the channel. Some channels may require additional setup, such as providing API keys or webhook URLs. They are kept safe in the [platform secret storage](/guides/deployment/platform#step-6-configure-secret-manager-in-platform-chart). ![The Integrations catalog listing essential apps and all available integration types](https://mintcdn.com/chainloop/vTuUKiGCwGJ__XFJ/concepts/img/integrations-2.png?fit=max\&auto=format\&n=vTuUKiGCwGJ__XFJ\&q=85\&s=1be6531eadb4bb3ed13b4ad174492018) Current available notification integrations include: * Email (using instance SMTP server) > [!WARNING] > > Email Notification requires SMTP configuration at the instance level. If you > don't see this integration available, please contact your Chainloop > administrator to configure SMTP settings. For detailed instance configuration > instructions, refer to the [SMTP configuration > guide](/guides/deployment/platform#step-7-optional-setup-smtp-configuration). * Microsoft Teams (webhooks). You can find information on how to create a Teams webhook URL in the [Microsoft Teams documentation](https://support.microsoft.com/en-us/office/create-incoming-webhooks-with-workflows-for-microsoft-teams-8ae491c7-0394-4861-ba59-055e33f75498). * Slack webhooks. Check [Slack documentation](https://docs.slack.dev/messaging/sending-messages-using-incoming-webhooks/) to know how to configure them. More channels will be added in future releases. ## Managing Notification Preferences Users can manage notification preferences at different levels: * **Organization notifications**: managed by Organization Oweners and Admins in the *Settings > Organization > Notifications* section. ![The Organization settings page with the notifications section and Customize button](https://mintcdn.com/chainloop/vTuUKiGCwGJ__XFJ/concepts/img/integrations-9.png?fit=max\&auto=format\&n=vTuUKiGCwGJ__XFJ\&q=85\&s=7e6667de6daaae18d759eb5386cb3956) * **Product notifications**: managed by Product Admins through the product actions menu, under *Manage notifications*. ![The product actions menu with the Manage notifications option](https://mintcdn.com/chainloop/vTuUKiGCwGJ__XFJ/concepts/img/notifications-product.png?fit=max\&auto=format\&n=vTuUKiGCwGJ__XFJ\&q=85\&s=11c2a285d33295e82a81c28eaba4a73b) To enable notifications for an event type, click **Add Integration** in the respective section and choose the channel: ![The product notifications drawer with integrations configured per event type](https://mintcdn.com/chainloop/vTuUKiGCwGJ__XFJ/concepts/img/notifications-select.png?fit=max\&auto=format\&n=vTuUKiGCwGJ__XFJ\&q=85\&s=b1eb951f00fa7fa8e5dd8726277b7b81) To this date, these are the events that can trigger notifications: | Event | Description | Scope | Available Channels | | - | - | - | - | | Storage Backend Unhealthy | Triggered when the storage backend becomes unhealthy. | Org | Email (to Org Admins and Owners), Microsoft Teams, Slack | | Integration Unhealthy | Triggered when one of the configured integrations becomes unhealthy. | Org | Email (to Org Admins and Owners), Microsoft Teams, Slack | | Product Compliance Change | Triggered when there is a change in the aggregated compliance status of a Product. | Product | Email (to Product Admins), Microsoft Teams, Slack | | Product Release | Triggered when a new release is made for a Product. | Product | Email (to Product Admins), Microsoft Teams, Slack | # Overview Source: https://docs.chainloop.dev/concepts/overview Get an overview of the core concepts of Chainloop. ## Data Gathering Primitives ### Material In Chainloop, a material is any piece of evidence (metadata) generated as part of the software development lifecycle (SDLC), or in more general terms, in any activity from the company compliance process. Examples of materials are: * A container image built in a CI pipeline, referenced by its OCI URL (oci://my-registry/my-repo\@mytag) * A software bill of materials (SBOM) * A test or code coverage report * A vulnerability scan result * An infrastructure scan, and more Materials can be attached to an attestation during the attestation process. [Read the docs](/concepts/material-types) ### Attestation An attestation is a unit of data sent to Chainloop. Users and CI systems use the Chainloop CLI to “craft” attestations, add pieces of evidence (materials) to them, and “push” them to Chainloop service (the evidence store). Attestations are performed with the Chainloop CLI and its lifecycle looks like this ```bash theme={"dark"} # initialize the attestation. Downloading the contract > chainloop att init --workflow workflow-name --project project-name # add materials to the attestation > chainloop att add --value ghcr.io/chainloop-dev/chainloop/control-plane:latest > chainloop att add --value reports/cyclonedx.json --kind SBOM_CYCLONEDX_JSON # generate, sign and push the attestation to chainloop > chainloop att push ``` [Read the docs](/concepts/attestations) ### Workflow A workflow represents a source of data to be sent to Chainloop. It usually corresponds to a CI pipeline, but it doesn't necessarily need to match. For example, users might send data from other sources, like a custom integration from Jira. Workflows are just an umbrella term for all data ingestions from the same source. [Read the docs](/concepts/workflows) ### Workflow Run A workflow run represents an execution of a workflow. A successful workflow run will be associated with an attestation. [Read the docs](/concepts/workflows) ### Contract ![info](https://mintcdn.com/chainloop/4m_Z_ZeRnSV7jb7V/get-started/img/adding-contract-1.png?fit=max\&auto=format\&n=4m_Z_ZeRnSV7jb7V\&q=85\&s=c9161652bc759a7b7eb6ce054a96af2b) A contract is the interface between development pipelines and the Chainloop service. It defines the materials that are expected to be sent to Chainloop and some additional constraints, like the type of source (Github, Dagger …, etc.) and the policies that must be evaluated. A contract can also be seen as the interface between the developers who must instrument their CI/CD pipelines and the other teams. [Read the docs](/concepts/contracts) ## Compliance Primitives ![Compliance Primitives](https://mintcdn.com/chainloop/qP5Aepelxm7aUyXA/concepts/img/concepts-1.png?fit=max\&auto=format\&n=qP5Aepelxm7aUyXA\&q=85\&s=e31c7478547dad2a27945f0dcb3e9030) ### Policy Policies are rules evaluated against materials and/or the whole attestation document. They represent acceptance criteria for the system to ingest those materials. Even in failure cases (when there are policy violations), attestations are still sent to Chainloop but clearly marked as “not compliant.” This way, Chainloop keeps track of everything that is happening in the system, even if it's not acceptable. Policies are written in Rego language. [Read the docs](/concepts/policies) ### Policy Groups Policy groups are a way to group policies together. They are used to be able to attach a set of policies to a workflow contract. [Read the docs](/concepts/policy-groups) ### Frameworks Frameworks represent high-level regulatory standards or good practices. They are usually promoted by governments and required for companies to fulfill, such as SDDF, SOC2, CRA, etc. Frameworks can also represent internal, custom checklists and normative for release management, security compliance, etc. In any case, Chainloop will help automate those by giving tools to manage and automate frameworks and requirements in terms of policies and data ingestions. [Read the docs](/concepts/compliance-frameworks) ### Requirements Requirements are a high-level representation of Compliance criteria that the project must meet. They are not necessarily technical but written in high-level natural language by Compliance teams. It's the responsibility of SecOps teams to map high-level requirements into low-level policies. Requirements are grouped in a framework. [Read the docs](/concepts/compliance-frameworks) ### Exceptions Sometimes, it's acceptable for some organizations to release software without fulfilling all internal requirements. In these cases, Chainloop provides a way to register “exceptions” to those requirements, marking them as exempt and thus not counting against compliance criteria. Exceptions and their authors are recorded in the system for future auditing. [Read the docs](/concepts/compliance-frameworks#record-requirement-exceptions) ## Runtime Primitives ### Environments and Logical Environments > [!WARNING] > > This is a preview/beta feature. Further changes are expected. Environments represent concrete infrastructure targets (Kubernetes clusters, ECS services, servers) where your software runs. Logical Environments represent lifecycle stages (development, staging, production). Together, they define the coordinates for tracking deployments. [Read the docs](/concepts/environments) ### Artifact Deployment Tracking > [!WARNING] > > This is a preview/beta feature. Further changes are expected. Artifact Deployment Tracking lets you record which artifacts are running in which environments, giving you a real-time view of your deployment landscape linked to attestation evidence. [Read the docs](/concepts/deployments) ## Organizational Primitives ### Organization Organizations represent the tenant entity in Chainloop. All users belong to one or more organizations and might have different role levels. > [tab] Web UI > > You can select or create an organization in the top left corner of the Chainloop Web UI. > > ![The organization switcher in the top left corner with the list of organizations and the Create New option](https://mintcdn.com/chainloop/hibEOkV5XjWISiDa/concepts/img/concepts-2.png?fit=max\&auto=format\&n=hibEOkV5XjWISiDa\&q=85\&s=950547b2581cf43b3a2a6156ff1322d1) > [tab] CLI > > or using the CLI under `chainloop org` prefix. > > ```bash theme={"dark"} > chainloop org --help > ``` > > ```bash theme={"dark"} > Organizations management > > Usage: > chainloop organization [command] > > Aliases: > organization, org > > Available Commands: > api-token API token management > create Create an organization > describe Describe the current organization > leave leave an organization > list List the organizations this user has access to > member Organization members management > set Set the current organization to be used by this CLI > update Update an existing organization > ``` ### Business Units > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). Business Units are top-level organizational entities that help structure your organization by grouping products. They enable you to model your company's organizational hierarchy, whether by department, division, team, or any other logical grouping. [Read the docs](/concepts/business-units) ### Products > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). Products can be seen as a collection of projects (components) to enable product management capabilities and become an entry point to manage compliance, alerting, and user access configuration at scale. Products can be organized within Business Units. [Read the docs](/concepts/products) ### Project and Versions Projects and versions can be used to model software products. By associating workflows to projects, you can get an aggregated overview of the compliance status of the software product. [Read the docs](/concepts/projects-versions) # Policies Source: https://docs.chainloop.dev/concepts/policies Implement control gates and security checks in your attestations. ## Overview Policies are rules evaluated against materials and/or the whole attestation document. They represent acceptance criteria for the system to ingest those materials. Even in failure cases (when there are policy violations), attestations are still sent to Chainloop but marked as “not compliant.” This way, Chainloop keeps track of everything happening in the system, even if it's unacceptable. Policies are written in Rego language. Policies are also a fundamental piece in Chainloop's compliance platform, as they are directly related to framework requirements. With the assistance of SecOps and developers, Requirements are matched to specific logic in Policies (programmed) written in the OPA Rego language. Rego is a rule engine and language used to automate the analysis of different reports and inputs to the system. Policies can also be grouped into [Policy Groups](/concepts/policy-groups) to facilitate reuse across different products. For instance, a SAST (static application security testing) policy group can consist of a “no-vulnerabilities” policy, a “CWE” policy for common weaknesses, and a “secrets detection” policy. ## Policy types Policies can be of two types: * Built-in: policies that are part of the Chainloop platform * Custom: policies that are created and stored in the Chainloop platform ### Built-in policies Chainloop provides a curated set of policies tailored to common compliance controls, like: * SBOM sanity checks, * Artifact signature verification, * Licenses and component versions ban policies * SAST, linters result checks, code quality and coverage * CVE scans, * etc. They can be found in the "Policies" section in Chainloop platform: ![The policies list in the Chainloop UI](https://mintcdn.com/chainloop/L8kJ_PW999E2rmSI/concepts/img/policies.png?fit=max\&auto=format\&n=L8kJ_PW999E2rmSI\&q=85\&s=65fea0e8d651759d2ee64dd4c24702c7) If none of the built-in policies fit your needs, you can create your own, more on that later. ### Custom policies Custom policies are policies created by the user that can be stored in the Chainloop platform or in a local or remote file. ## Using Policies ### Attaching policies to a contract Policies are attached to a contract via the `policies` section. Policies can be applied to any material, but also to the attestation statement as a whole. #### Option 1 - By reference You can reference policies via three methods: * If it's a policy stored in the Chainloop platform (either built-in and custom), you can reference it by name * If it's a custom policy, you can reference it by URL or by path > [!NOTE] > > To store a custom policy in the Chainloop platform, see [Store Custom Policy](/guides/custom-policies#store-custom-policy). ```yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Contract metadata: name: policy-example-contract spec: materials: - name: sbom type: SBOM_CYCLONEDX_JSON - name: another-sbom type: SBOM_CYCLONEDX_JSON - name: my-image type: CONTAINER_IMAGE policies: materials: # policies applied to materials - ref: sbom-banned-licenses # (1) built-in policy # or optionally with the digest appended, see integrity checks below # - ref: sbom-banned-licenses@sha256:5b40425cb7bcba16ac47e3d8a8d3af7288afeeb632096994e741decedd5d38b3 with: licenses: "AGPL-10, AGPL-3.0" attestation: # policies applied to the whole attestation - ref: https://my-org.com/policies/my-custom-remotepolicy.yaml # (2) custom remote policy ``` Here we can see that: * (1) is a built-in policy referenced by name. Since that policy is compatible with `SBOM_CYCLONEDX_JSON`, only SBOM materials (`sbom` and `another-sbom` in this case) will be evaluated against it. If we wanted to only evaluate the policy against one specific `sbom` material, and skip the other, we should filter them by name: ```yaml theme={"dark"} policies: materials: - ref: sbom-banned-licenses # (1) selector: name: sbom ``` Here, we are making explicit that only `sbom` material must be evaluated by the `sbom-banned-licenses` policy. * (2) the attestation in-toto statement as a whole will be evaluated against the remote policy `my-custom-remotepolicy.yaml`, which has a `type` property set to `ATTESTATION`. This brings the opportunity to validate global attestation properties, like annotations, the presence of a material, etc. You can see this policy and other examples in the [examples folder](https://github.com/chainloop-dev/chainloop/tree/main/docs/examples/policies). Policies can also receive **inputs** (arguments) that tune their behavior, such as the `licenses` list in the `sbom-banned-licenses` example above. Inputs are normally declared in the contract through the policy's `with:` field. For material-type policies, an input can also be sourced dynamically from a CSV or JSON file at attestation time using the [`--policy-input-from-file` flag](/concepts/attestations#sourcing-policy-inputs-from-a-file) — useful for large, data-driven values like exclusion lists. Finally, note that material policies are evaluated during `chainloop attestation add` commands, while attestation policies run at `chainloop attestation push` by default. Attestation policies can also be configured to run at `chainloop attestation init` using [attestation phases](#attestation-phases). > [!TIP] > > Optionally, you can append the sha256 hash of the policy file content to your policy attachment reference. By doing so, the policy engine will make sure the resolved policy matches the expected hash in the contract reference. > > For policies stored in the Chainloop platform, you can find every version and its hash in the version selector on the policy details page: > > ![The version selector on the policy details page listing the policy's version hashes](https://mintcdn.com/chainloop/L8kJ_PW999E2rmSI/concepts/img/policies-sha.png?fit=max\&auto=format\&n=L8kJ_PW999E2rmSI\&q=85\&s=74cf5397ebb6619aa027a9e26fac37ab) #### Option 2 - Embedded As an alternative to referencing policies, you can also embed them in your contract. This is useful if you want to ensure that the policy source cannot be changed, as it's stored and versioned within the contract. ```yaml theme={"dark"} policies: materials: - embedded: apiVersion: workflowcontract.chainloop.dev/v1 kind: Policy metadata: name: cve-policy spec: policies: - kind: SBOM_CYCLONEDX_JSON path: cves-cyclonedx.rego ``` ### Understanding policy evaluation results Once configured, Policies are evaluated against inputs (inputs, materials, and artifacts, will be explained in the following sections). Evaluation results will include: * Overall result: success, failure, skipped * Policy violations: if the evaluation failed, what were the failures. For example: “component x, version y has critical vulnerabilities” * Skip reason: if the policy couldn't be evaluated, what's the reason (input might have the wrong format, for example) ![Diagram of policies evaluated against materials and attestations](https://mintcdn.com/chainloop/4m_Z_ZeRnSV7jb7V/concepts/img/policy-eval.png?fit=max\&auto=format\&n=4m_Z_ZeRnSV7jb7V\&q=85\&s=f42f35f416a13a94b9dc87c3a647c479) The results of policy evaluations are stored in Chainloop on every attestation and can be queried through the user interface: ![Policy evaluation results in the workflow run view, showing violations and the evaluated evidence](https://mintcdn.com/chainloop/L8kJ_PW999E2rmSI/concepts/img/policy-result.png?fit=max\&auto=format\&n=L8kJ_PW999E2rmSI\&q=85\&s=b63f5787dcee9c9b40fc2ac186fede05) ### Attestation Phases Attestation-level policies can be scoped to specific phases of the attestation lifecycle using the `attestation_phases` field in the policy spec. This allows policy authors to control *when* their attestation policies are evaluated during the workflow. There are two available phases: | Phase | Runs at | Use cases | | - | - | - | | `INIT` | `chainloop attestation init` | Pre-condition checks, early validation (e.g. required annotations exist) | | `PUSH` | `chainloop attestation push` | Full attestation validation (e.g. all materials present, signature checks) | #### Configuring phases in a policy spec The `attestation_phases` field is set in the policy spec on entries with `kind: ATTESTATION`. You can specify one or both phases: ```yaml theme={"dark"} # Single phase — runs only at init apiVersion: workflowcontract.chainloop.dev/v1 kind: Policy metadata: name: pre-condition-check spec: policies: - kind: ATTESTATION attestation_phases: - INIT path: pre-condition.rego ``` ```yaml theme={"dark"} # Multiple phases — runs at both init and push apiVersion: workflowcontract.chainloop.dev/v1 kind: Policy metadata: name: full-lifecycle-check spec: policies: - kind: ATTESTATION attestation_phases: - INIT - PUSH path: lifecycle-check.rego ``` > [!NOTE] > > When `attestation_phases` is omitted, the policy runs at **all phases** (`INIT` and `PUSH`) by default. Set `attestation_phases` to restrict evaluation to a single phase. #### Phase result handling * If a policy runs at both `INIT` and `PUSH`, the `PUSH` result **overwrites** the `INIT` result for that policy. * If a policy runs only at `INIT`, its result is **preserved** through the push phase. * Running `chainloop attestation status` displays existing policy results without re-evaluating them. > [!NOTE] > > The `attestation_phases` field only applies to policies with `kind: ATTESTATION`. Material policies are always evaluated during `chainloop attestation add` and are not affected by this setting. ### Configuring Enforcement Control and Quality gates are checkpoints in your software supply chain that enforce policies and security checks, ensuring only compliant artifacts and evidence progress through your CI/CD pipeline. When a control gate is triggered, policy violations will block the pipeline while still recording the attestation for audit purposes. For detailed information about configuring enforcement, using control gates in CI/CD pipelines, and handling exceptions, please see the [Control and Quality Gates](/concepts/control-gates) guide. ## Writing policies You can learn more about writing policies in the [custom policies](/guides/custom-policies) guide. # Policy Groups Source: https://docs.chainloop.dev/concepts/policy-groups Group policies together to simplify their management. ## Overview This feature allow operators to group related [policies](/concepts/policies) into one single entity that can be reused across the organization. With Policy Groups, materials and policies can be enforced in Chainloop contracts with little or no effort. For example, they might want to create a "SBOM quality" group with some SBOM-related policies. The policy groups can be defined this way: ```yaml theme={"dark"} # sbom-quality.yaml apiVersion: workflowcontract.chainloop.dev/v1 kind: PolicyGroup metadata: name: sbom-quality description: This policy group applies a number of SBOM-related policies annotations: category: SBOM spec: inputs: - name: bannedLicenses description: comma separated list of licenses to ban required: true - name: bannedComponents description: comma separated list of components to ban required: true policies: materials: - name: sbom type: SBOM_CYCLONEDX_JSON policies: - ref: sbom-banned-licenses with: licenses: {{ inputs.bannedLicenses }} - ref: sbom-banned-components with: components: {{ inputs.bannedComponents }} ``` Policy groups can also be stored and managed in the platform using the [Enterprise Edition CLI](/cli/reference#chainloop-policy-group). For a complete guide on managing policy groups and other resources declaratively via YAML, see [Declarative Resource Management](/guides/declarative-resource-management). ## Using Policy Groups This policy group could be applied to any contract: ```yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Contract metadata: name: example-contract spec: policyGroups: - ref: file://groups/sbom-quality-group.yaml with: bannedComponents: log4j@2.14.1 bannedLicenses: AGPL-1.0-only, AGPL-1.0-or-later, AGPL-3.0-only, AGPL-3.0-or-later ``` As we introduced earlier, policy groups define both materials and policies applied to them. Once they are included to a contract, they become part of the contract. From this point of view, they can be seen as subcontracts, as they can also be used to enforce materials to be present in the attestation. For example, after applying the above contract, doing an `attestation push` would fail until the required material is provided: ```shell theme={"dark"} $ chainloop att init --workflow mywf --project myproject INF Attestation initialized! now you can check its status or add materials to it ┌────────────────┬──────────────────────────────────────┐ │ Initialized At │ 30 Dec 24 12:26 UTC │ ├────────────────┼──────────────────────────────────────┤ │ Attestation ID │ a52f082c-ca4a-4952-bb07-fa9117c04a90 │ │ Organization │ my-org │ │ Name │ mywf │ │ Project │ myproject │ │ Version │ v0.148.0 (prerelease) │ │ Contract │ myproject-mywf (revision 76) │ └────────────────┴──────────────────────────────────────┘ ┌────────────────────────────────┐ │ Materials │ ├──────────┬─────────────────────┤ │ Name │ sbom │ │ Type │ SBOM_CYCLONEDX_JSON │ │ Set │ No │ │ Required │ Yes │ └──────────┴─────────────────────┘ $ chainloop att push ERR some materials have not been crafted yet: sbom exit status 1 ``` ### Policy group parameters In the same way as [policies](./policies#policy-arguments), groups can accept arguments, which are specified in the `inputs` section. Then those inputs can be passed down to policies using interpolation. In the example above, `bannedComponents` input parameter (which is mandatory) is passed to the underlying policy with the expression `{{ inputs.bannedComponents }}` ```yaml theme={"dark"} - ref: sbom-banned-components with: components: {{ inputs.bannedComponents }} ``` ### Skipping specific policies Sometimes you may want to use a policy group but temporarily or permanently exclude certain policies from evaluation without modifying the group definition itself. This is useful when: * A specific policy doesn't apply to a particular workflow * You need to temporarily bypass a policy during development or migration * Different workflows need different subsets of policies from the same group You can use the `skip` field to selectively exclude policies by their metadata name: ```yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Contract metadata: name: example-contract spec: policyGroups: - ref: sbom-quality-group with: bannedComponents: log4j@2.14.1 skip: - sbom-banned-licenses # Skip the license check for this workflow ``` > [!NOTE] > > Policy names in the `skip` list refer to the policy's metadata name (the `name` field in the policy definition) This feature provides flexibility in policy enforcement per workflow without requiring multiple versions of the same policy group. ### Using placeholders in material names In the previous example, our policy group enforces a `sbom` material. But what if our contract requires multiple SBOMs (because we are building several images in the same pipeline, for example)? By using parameters and placeholders in material names, we can add as many instances of the same policy group as we need: ```yaml theme={"dark"} apiVersion: workflowcontract.chainloop.dev/v1 kind: PolicyGroup metadata: name: sbom-quality spec: inputs: - name: container_name description: name of the enforced material required: true policies: materials: - name: "{{ inputs.container_name }}" # This will materialize when doing an `attestation init` type: SBOM_CYCLONEDX_JSON ``` In our contract: ```yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Contract metadata: name: multi-sbom-contract spec: policyGroups: - ref: file://groups/sbom-quality-group.yaml with: container_name: "sbom-from-image-1" - ref: file://groups/sbom-quality-group.yaml with: container_name: "sbom-from-image-2" ``` And finally, in our attestation, we can see the new configuration applied: ```shell theme={"dark"} $ chainloop att init --workflow mywf --project myproject INF Attestation initialized! now you can check its status or add materials to it ┌────────────────┬──────────────────────────────────────┐ │ Initialized At │ 30 Dec 24 13:21 UTC │ ├────────────────┼──────────────────────────────────────┤ │ Attestation ID │ 0837859e-0abf-414e-b205-d455da6dfe7e │ │ Organization │ my-org │ │ Name │ mywf │ │ Project │ myproject │ │ Version │ v0.148.0 (prerelease) │ │ Contract │ myproject-mywf (revision 77) │ └────────────────┴──────────────────────────────────────┘ ┌────────────────────────────────┐ │ Materials │ ├──────────┬─────────────────────┤ │ Name │ sbom-from-image-1 │ │ Type │ SBOM_CYCLONEDX_JSON │ │ Set │ No │ │ Required │ Yes │ ├──────────┼─────────────────────┤ │ Name │ sbom-from-image-2 │ │ Type │ SBOM_CYCLONEDX_JSON │ │ Set │ No │ │ Required │ Yes │ └──────────┴─────────────────────┘ ``` # Products Source: https://docs.chainloop.dev/concepts/products > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). > [!NOTE] > > **Important: A "project" is different than a ["product"](/concepts/products)**, as well as a "project version" is different than a "product version". > > Project versions represent the version of the component while product versions represent the version of the product. > Products and project versions can evolve independently. Products can be seen as a collection of projects (components) to enable product management capabilities and become an entry point to manage compliance, alerting, and user access configuration at scale. Products can be organized within [Business Units](/concepts/business-units), which are top-level organizational entities that help structure your organization by grouping related products together. This includes, but is not limited to, being able to: * Organize products within Business Units for better organizational structure and management * Attach frameworks at the product level, including applicability configuration, and get aggregated compliance reports. * Manage user access (RBAC) at the product level that can be used for product management functions, as well as giving users access to the underlying projects today. * Create [product-scoped API tokens](/reference/api-tokens#product-scoped-api-tokens) that reach every project of the product, for example to perform attestations from CI/CD without a token per project. * (not yet available) Offer product release management capabilities that include the ability to track versions of a product that are linked to the versions of the underlying projects. ## Creating a product Products can be created only through the Chainloop UI. 1. Navigate to the **Products** section in the left sidebar. 2. Click on the **Create Product** button. ![The Create Product form with name and description fields](https://mintcdn.com/chainloop/mVK2LwgaKSQG2UZs/concepts/img/products-1.png?fit=max\&auto=format\&n=mVK2LwgaKSQG2UZs\&q=85\&s=b19f42715ff222af9fb9d9e71f31b472) 3. Fill in the product details: * **Name**: The name of the product. * **Description**: A brief description of the product. * **Business Unit** (optional): Select a business unit to associate this product with for organizational purposes. 4. Click on **Create** to finalize the product creation. > [!NOTE] > > You can assign products to [Business Units](/concepts/business-units) to organize them by department, division, or any other organizational structure that makes sense for your company. ## Creating a product version > [!NOTE] > > **Important: A "project" is different than a ["product"](/concepts/products)**, as well as a "project version" is different than a "product version". > > Project versions represent the version of the component while product versions represent the version of the product. > Products and project versions can evolve independently. Product versions help you manage different releases or frozen states of your product. To create a new version, open the product actions menu and click "Create version": ![The product actions menu with the Create version option highlighted](https://mintcdn.com/chainloop/mVK2LwgaKSQG2UZs/concepts/img/product-version.png?fit=max\&auto=format\&n=mVK2LwgaKSQG2UZs\&q=85\&s=bf496133f9841ba12e47787619e38ba6) While creating the version you can select the projects and the versions it should contain, as well as the compliance frameworks it should adhere to: ![The Create Version form with the Add Project and Add Framework options](https://mintcdn.com/chainloop/mVK2LwgaKSQG2UZs/concepts/img/product-version-2.png?fit=max\&auto=format\&n=mVK2LwgaKSQG2UZs\&q=85\&s=6639ea809d8e98b6b43aa59c2c5e7927) ## Configuring compliance applicability The Compliance Applicability matrix allows you to define compliance applicability at the product level and tweak it down to the project level. This sounds complicated, but long story short, it allows compliance and product managers to mark frameworks as a whole or specific requirements as non-applicable (optionally providing a reasoning) for specific underlying projects, reducing the configuration burden. For each framework in a product version, applicability has two layers: * **Product-level defaults**: the framework applies in full, or applies partially with a list of excluded requirements, each with a reason. The defaults can't be not applicable. * **Project state**: each attached project is in one of four states. | State | CLI value | Meaning | | - | - | - | | Inherited | `inherited` | The project follows the product-level defaults. This is the state of a newly attached project. | | Applicable | `applicable` | All requirements apply, including those that the defaults exclude. | | Partially applicable | `partial` | The listed requirements don't apply, each with a reason. | | Not applicable | `not-applicable` | The whole framework doesn't apply, with a reason. | A change to the defaults affects only the projects in the inherited state. When you detach a project from the product version, its applicability is deleted. If you attach it again, it starts as inherited. When you change the project version of an existing attachment, the project keeps its applicability. > [tab] Web UI > > Let's see an example. Once a compliance framework has been added to the product version, you can edit its applicability matrix by clicking the edit button in the framework card. > > ![The Edit Version form with framework cards and their edit buttons](https://mintcdn.com/chainloop/mVK2LwgaKSQG2UZs/concepts/img/product-applicability-1.png?fit=max\&auto=format\&n=mVK2LwgaKSQG2UZs\&q=85\&s=a9484987e26dc07e9fcb73a027cdefe1) > > This will open the applicability matrix view. Below, you can see a compliance applicability configuration for the compliance framework “Chainloop best practices.” On the left side, you can see the applicability for the whole product version (Chainloop Platform v1.235) and whether the underlying projects inherit or “override” the applicability. > > ![Compliance applicability matrix for a product version and its projects](https://mintcdn.com/chainloop/7oUakjSb5-MKNl1B/concepts/img/product-applicability.png?fit=max\&auto=format\&n=7oUakjSb5-MKNl1B\&q=85\&s=33687f4675e98a7142a65da940e0d098) > > At the product level, we are disabling “helm-chart-signed” requirement, indicating the rationale. > > Further down, in the project row, we indicate that the container-signed requirement does not apply to this project either. > > ![Customizing framework applicability for a project with inherited or customized full, partial, and N/A options](https://mintcdn.com/chainloop/mVK2LwgaKSQG2UZs/concepts/img/product-applicability-2.png?fit=max\&auto=format\&n=mVK2LwgaKSQG2UZs\&q=85\&s=2deabed02e2d194abbc1220ab8eea59c) > [tab] CLI > > The `chainloop product version applicability` commands manage the same matrix from the terminal. They also attach frameworks to a product version and detach them. > > | Command | What it does | > | - | - | > | `describe` | Shows the matrix of a product version. Supports `-o json`. | > | `set` | With `--project`, sets the state of that project for one framework. Without `--project`, sets the product-level defaults (`applicable` or `partial`). | > | `reset` | With `--project`, the project goes back to `inherited`. Without `--project`, the defaults go back to `applicable`. | > | `remove` | Detaches a framework from the product version. | > > `set` and `reset` change only the named project, or the defaults, for one framework. Other projects and other frameworks keep their state. When the requested state is the same as the current one, the CLI sends no change, so no compliance evaluation starts. You can run a command again safely. > > See the [CLI reference](/cli/reference#chainloop-product-version-applicability) for all the flags. > > > [!NOTE] > > > > The commands take names, not the display names that the web app shows. Find them with `chainloop framework list`, `chainloop requirement list --framework ` or `chainloop framework describe --name `. If you pass a display name, the error message gives the name to use. > > The examples below use the product `acme-shop`, version `v2.0`, with the projects `api-server`, `web-frontend` and `docs-site`. The framework and requirement names are examples. Replace them with the names in your organization. > > **Apply a framework to the whole product version** > > Run `set --state applicable` without `--project`. If the version doesn't have the framework yet, the command attaches it. The framework gets applicable defaults, and every project inherits them. > > ```bash theme={"dark"} > chainloop product version applicability set --product acme-shop --version v2.0 \ > --framework slsa-level-3 --state applicable > ``` > > The platform attaches the framework in the background, so the change takes effect shortly after the command returns. Run `describe` and wait until the framework shows before you change its applicability. Until then, any other `set` or `reset` on that framework fails without changing anything, and the error gives the command that attaches it. > > **Apply a framework to only one project** > > The product-level defaults can't be not applicable, so attach the framework to the version, then mark every other project as not applicable. This example applies `slsa-level-3` only to `api-server`: > > ```bash theme={"dark"} > chainloop product version applicability set --product acme-shop --version v2.0 \ > --framework slsa-level-3 --state applicable > > # After describe shows the framework, exclude the other projects > chainloop product version applicability set --product acme-shop --version v2.0 \ > --framework slsa-level-3 --project web-frontend --state not-applicable \ > --reason "the frontend is released inside the api-server build" > chainloop product version applicability set --product acme-shop --version v2.0 \ > --framework slsa-level-3 --project docs-site --state not-applicable \ > --reason "static site, ships no runtime code" > ``` > > A project that you attach to the version later starts as inherited, so the framework applies to it until you mark it as not applicable. > > **Exclude a framework from one project** > > ```bash theme={"dark"} > chainloop product version applicability set --product acme-shop --version v2.0 \ > --framework slsa-level-3 --project docs-site --state not-applicable \ > --reason "static site, ships no runtime code" > ``` > > **Exclude requirements for every project** > > Set the product-level defaults to partial. The projects in the inherited state follow the defaults. > > ```bash theme={"dark"} > chainloop product version applicability set --product acme-shop --version v2.0 \ > --framework slsa-level-3 --state partial \ > --requirement "hermetic-build=GitHub-hosted runners don't support hermetic builds" > ``` > > **Exclude requirements for one project** > > Give one `--requirement` flag for each requirement that doesn't apply, as `NAME=REASON`, or as `NAME` with a shared `--reason`: > > ```bash theme={"dark"} > chainloop product version applicability set --product acme-shop --version v2.0 \ > --framework container-hardening --project web-frontend --state partial \ > --requirement container-signed --requirement container-scanned \ > --reason "deployed to a CDN, no container image" > ``` > > The command replaces the list of excluded requirements of that project. To add a requirement to the list, run the command again with all the requirements. > > **Apply all requirements to one project** > > Use `--state applicable` with `--project`. All the requirements apply to the project, including those that the defaults exclude. > > ```bash theme={"dark"} > chainloop product version applicability set --product acme-shop --version v2.0 \ > --framework slsa-level-3 --project web-frontend --state applicable > ``` > > **Go back to the defaults** > > With `--project`, the project inherits the product-level defaults again. Without `--project`, the defaults become applicable again, with no excluded requirements. > > ```bash theme={"dark"} > # web-frontend follows the defaults again > chainloop product version applicability reset --product acme-shop --version v2.0 \ > --framework slsa-level-3 --project web-frontend > > # The defaults of slsa-level-3 exclude no requirements > chainloop product version applicability reset --product acme-shop --version v2.0 \ > --framework slsa-level-3 > ``` > > **Detach a framework** > > ```bash theme={"dark"} > chainloop product version applicability remove --product acme-shop --version v2.0 \ > --framework slsa-level-3 > ``` > > The projects lose their applicability for the framework. Like an attach, the detach runs in the background. > > **Show the matrix** > > ```bash theme={"dark"} > chainloop product version applicability describe --product acme-shop --version v2.0 > ``` > > The output has one table for each framework: a row for the product-level defaults, then one row for each project. In this example, the `slsa-level-3` defaults exclude `hermetic-build`, `web-frontend` overrides the defaults, and the framework doesn't apply to `docs-site`. For `container-hardening`, two requirements don't apply to `web-frontend`, and the framework doesn't apply to `docs-site`: > > ``` > ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ > │ Framework: slsa-level-3 │ > ├──────────────────┬──────────────────────┬────────────────┬─────────────────────────────────────────────────────┤ > │ APPLIES TO │ STATE │ REQUIREMENT │ REASON │ > ├──────────────────┼──────────────────────┼────────────────┼─────────────────────────────────────────────────────┤ > │ Product defaults │ partially applicable │ hermetic-build │ GitHub-hosted runners don't support hermetic builds │ > ├──────────────────┼──────────────────────┼────────────────┼─────────────────────────────────────────────────────┤ > │ api-server │ inherited │ │ │ > ├──────────────────┼──────────────────────┼────────────────┼─────────────────────────────────────────────────────┤ > │ web-frontend │ applicable │ │ │ > ├──────────────────┼──────────────────────┼────────────────┼─────────────────────────────────────────────────────┤ > │ docs-site │ not applicable │ │ static site, ships no runtime code │ > └──────────────────┴──────────────────────┴────────────────┴─────────────────────────────────────────────────────┘ > ┌─────────────────────────────────────────────────────────────────────────────────────────────────────┐ > │ Framework: container-hardening │ > ├──────────────────┬──────────────────────┬───────────────────┬───────────────────────────────────────┤ > │ APPLIES TO │ STATE │ REQUIREMENT │ REASON │ > ├──────────────────┼──────────────────────┼───────────────────┼───────────────────────────────────────┤ > │ Product defaults │ applicable │ │ │ > ├──────────────────┼──────────────────────┼───────────────────┼───────────────────────────────────────┤ > │ api-server │ inherited │ │ │ > ├──────────────────┼──────────────────────┼───────────────────┼───────────────────────────────────────┤ > │ web-frontend │ partially applicable │ container-signed │ deployed to a CDN, no container image │ > │ │ │ container-scanned │ deployed to a CDN, no container image │ > ├──────────────────┼──────────────────────┼───────────────────┼───────────────────────────────────────┤ > │ docs-site │ not applicable │ │ static site, no container │ > └──────────────────┴──────────────────────┴───────────────────┴───────────────────────────────────────┘ > ``` > > `api-server` is in the inherited state, so `hermetic-build` doesn't apply to it. A change to the `slsa-level-3` defaults changes only `api-server`. > > **Things to know** > > * **Requirements.** You can exclude only active requirements. For one project, you can exclude only project-level requirements. Exclude product-level requirements in the defaults, without `--project`. > * **Concurrent changes.** Each change writes the applicability of the whole product version. If two people change the same product version at the same time, one change can overwrite the other. > * **Deprecated commands.** `chainloop product version attach-framework` and `detach-framework` still work but are deprecated. Use `applicability set` and `applicability remove`. ## Adding users and groups to a product 1. You can manage user access by clicking the "Manage members and groups" option within the product. ![The product actions menu with the Manage members and groups option](https://mintcdn.com/chainloop/mVK2LwgaKSQG2UZs/concepts/img/products-5.png?fit=max\&auto=format\&n=mVK2LwgaKSQG2UZs\&q=85\&s=50be65265fe9b910ba669f3cf35e69d7) Users and groups can be added to the product with specific roles, such as Product Admin or Product Viewer. * **Product Admins** have full access to manage the product, including attaching compliance frameworks and managing user access. * **Product Viewers** have read-only access to the product and its associated projects, unless they have a specific project role that grants them additional permissions. ![The Add Member or Group dialog with the product role selector](https://mintcdn.com/chainloop/mVK2LwgaKSQG2UZs/concepts/img/products-6.png?fit=max\&auto=format\&n=mVK2LwgaKSQG2UZs\&q=85\&s=042c1276d378ca31eac81992e6ddc835) ## Editing products Select "Edit product" in the product menu to edit the product properties. ![The product actions menu with the Edit product option](https://mintcdn.com/chainloop/mVK2LwgaKSQG2UZs/concepts/img/products-7.png?fit=max\&auto=format\&n=mVK2LwgaKSQG2UZs\&q=85\&s=ee93980a78d85820c65bb111e627bf26) ## Release a version At any time you can release a version of your product by clicking on the "Release" button in the product version menu. This will **pin** the underlying projects to the current version in practice creating an snapshot of the product compliance posture. ## Compliance Overview The Compliance Overview tab in the product view provides a comprehensive view of all compliance frameworks and requirements associated with your product version. This centralized dashboard allows you to monitor compliance status across all underlying projects and drill down into specific requirements. ![The product Compliance tab with per-framework compliance status and the requirements list](https://mintcdn.com/chainloop/mVK2LwgaKSQG2UZs/concepts/img/product-compliance.png?fit=max\&auto=format\&n=mVK2LwgaKSQG2UZs\&q=85\&s=00b205870107370e8ff6143564ed88c2) ### Key Features * **Framework-level visibility** - View all compliance frameworks attached to the product with overall status * **Requirement drill-down** - Expand requirements to see detailed information and rationale * **Project breakdown** - See which underlying projects are passing or failing each requirement through the "Project Breakdown" expandable section * **Filtering capabilities** - Filter by Framework, Status (All/Passing/Failing), and Check Type (Any/Automated/Manual) * **Status indicators**: * Green checkmark: Requirement is passing across all applicable projects * Yellow warning: Requirement has mixed results (some projects passing, some failing) * Gray: No evaluation data available * **Evaluation timestamps** - See when each requirement was last evaluated This view enables product managers and compliance teams to understand the overall compliance posture of a product and quickly identify which projects need attention for specific requirements. ## Evidence Tab The Evidence tab in the product view provides a comprehensive view of all pieces of evidence associated with a specific product version and its underlying projects. This centralized location allows you to inspect and filter all the materials that have been collected through attestations across all projects within the product. ![The product Evidence tab listing materials across all projects in the product version](https://mintcdn.com/chainloop/mVK2LwgaKSQG2UZs/concepts/img/product-evidence.png?fit=max\&auto=format\&n=mVK2LwgaKSQG2UZs\&q=85\&s=8292194e25c81efdf03159caf256ef7a) ### Filtering Evidence The Evidence tab supports filtering by Material Type, making it easy to focus on specific types of evidence: * **Artifacts** - Software artifacts, container images, Helm charts, and generic artifacts * **Provenance** - Supply chain provenance and attestation data * **SBOMs** - Software Bill of Materials in CycloneDX and SPDX formats * **VEX Documents** - Vulnerability exploitability assessments in OpenVEX and CSAF VEX formats * **Vulnerability Reports** - Vulnerability scan results in SARIF format This view helps security and compliance teams quickly access and review all evidence for a product version, supporting audit and compliance workflows at the product level. # Projects and Versions Source: https://docs.chainloop.dev/concepts/projects-versions > [!NOTE] > > **Important: A "project" is different than a ["product"](/concepts/products)**, as well as a "project version" is different than a "product version". > > Project versions represent the version of the component while product versions represent the version of the product. > Products and project versions can evolve independently. Chainloop offers a structured approach to modeling **Projects** (software components) and their **Versions**. During the attestation process, you must specify the Project to which the Workflow belongs, as Projects serve as the primary way to organize Workflows. Versions, on the other hand, are optional and can remain empty. Projects and Versions are crucial when it comes to Compliance. Compliance teams apply Requirements to these projects. *Requirements* can be written in a high-level language, like "container images must be signed", "an AGPL license is forbidden", "the software must be free from high-severity vulnerabilities", "code repositories must be configured with least privilege principle access controls", etc. Your projects can be found at the [Projects](https://app.chainloop.dev/projects) page in the Web UI. ![Project version overview with workflow health scores and vulnerability findings](https://mintcdn.com/chainloop/mVK2LwgaKSQG2UZs/concepts/img/projects-3.png?fit=max\&auto=format\&n=mVK2LwgaKSQG2UZs\&q=85\&s=dd451d08b844729efc001442f706b78a) **The goal of this view is to show you a high-level, aggregated view of your project workflows, pieces of evidence, policy evaluations and compliance score.** > [!TIP] > > You can change the project version by clicking on the version name and selecting the desired version from the dropdown menu. At the bottom of the page, you can see the list of compliance frameworks attached to the project [through products](./products). ![Framework compliance sections on the project overview showing per-framework compliance percentage and requirement statuses](https://mintcdn.com/chainloop/mVK2LwgaKSQG2UZs/concepts/img/projects-4.png?fit=max\&auto=format\&n=mVK2LwgaKSQG2UZs\&q=85\&s=52667a6f0b8ec17f410300a30aa4c2b7) The display shows the percentage of total framework requirements being met. In the center, a detailed breakdown of individual requirements is provided, categorized by status with the following color codes: * Gray: No requirement evaluations are available for the current project version. * Green: Requirements are evaluated and passing. * Red: Requirements are evaluated but not passing. * Yellow: Requirements are evaluated but not all policies are passing. * Blue: Requirements are not passing, but a team member has created an exception. Finally, on the right side, the progression of requirement evaluations over time is displayed. > [!NOTE] > > Frameworks can be associated to a project at any time by [attaching them to one of its products](./products). ## Evidence Tab The Evidence tab in the project view provides a comprehensive view of all pieces of evidence associated with a specific project version. This centralized location allows you to inspect and filter all the materials that have been collected through attestations. ![The Evidence tab of a project version listing collected materials with attestation status](https://mintcdn.com/chainloop/mVK2LwgaKSQG2UZs/concepts/img/evidence.png?fit=max\&auto=format\&n=mVK2LwgaKSQG2UZs\&q=85\&s=131354fd5a1b2aa123be01dea2122950) ### Filtering Evidence The Evidence tab supports filtering by Material Type, making it easy to focus on specific types of evidence: * **Artifacts** - Software artifacts, container images, Helm charts, and generic artifacts * **Provenance** - Supply chain provenance and attestation data * **SBOMs** - Software Bill of Materials in CycloneDX and SPDX formats * **VEX Documents** - Vulnerability exploitability assessments in OpenVEX and CSAF VEX formats * **Vulnerability Reports** - Vulnerability scan results in SARIF format This view helps security and compliance teams quickly access and review all evidence for a project version, supporting audit and compliance workflows. ## How to create a new Project There are several ways of creating new Projects: * Automatically when you perform an attestation * Through the UI in advance > [tab] Web UI > > To create a project, go to the [projects list](https://app.chainloop.dev/projects), click "Create Project" and follow the creation wizard. > > ![The Create Project wizard, starting with a repository or standalone setup](https://mintcdn.com/chainloop/mVK2LwgaKSQG2UZs/concepts/img/projects-1.png?fit=max\&auto=format\&n=mVK2LwgaKSQG2UZs\&q=85\&s=a2d7cab4572335a72a74236bd922803e) > > * Name: Unique name of the project in the organization. It normally matches a specific software product. > * Description: A description of what the project is about. > > After creating the project, if you try to view its details, you’ll be notified that you must first create a project version. > [tab] CLI > > During the attestation process, you can provide the name of the project the workflow belongs to and, optionally, a version. > > For example, the following command will initialize an attestation associated with the project `myproject` and no version: > > ```bash theme={"dark"} > chainloop att init --workflow mywf --project myproject > ``` > > > [accordion] Command output > > > > ``` > > INF Attestation initialized! now you can check its status or add materials to it > > ┌───────────────────────────┬──────────────────────────────────────┐ > > │ Initialized At │ 04 Mar 25 11:39 UTC │ > > ├───────────────────────────┼──────────────────────────────────────┤ > > │ Attestation ID │ 9b94fcc1-161b-4a97-afa5-245aa1795faf │ > > │ Organization │ demo-org │ > > │ Name │ mywf │ > > │ Project │ myproject │ > > │ Version │ none │ > > │ Contract │ myproject-mywf (revision 1) │ > > │ Timestamp Authority │ http://timestamp.digicert.com │ > > │ Policy violation strategy │ ENFORCED │ > > └───────────────────────────┴──────────────────────────────────────┘ > > ``` > > As a result, the Workflow and the Project will be associated from that moment on. ## Project Versions > [!NOTE] > > **Important: A "project" is different than a ["product"](/concepts/products)**, as well as a "project version" is different than a "product version". > > Project versions represent the version of the component while product versions represent the version of the product. > Products and project versions can evolve independently. Project versions help manage different releases or frozen states of your software component. They are essential for Compliance, as Requirement evaluations for a project occur at the project version level. This approach allows Chainloop to capture a snapshot of a project's status at a specific point in time. ### Attest to a specific version During the attestation process, alongside providing the `project` you can also provide a `version`. For example, the following line will initialize an attestation associated with the project `myproject` and version v0.0.1 ```bash theme={"dark"} chainloop att init --workflow mywf --project myproject --version v0.0.1 ``` > [accordion] Command output > > ``` > INF Attestation initialized! now you can check its status or add materials to it > ┌───────────────────────────┬──────────────────────────────────────┐ > │ Initialized At │ 05 Mar 25 09:36 UTC │ > ├───────────────────────────┼──────────────────────────────────────┤ > │ Attestation ID │ c4dd5471-b07c-4ae1-8bd6-e9642aaff455 │ > │ Organization │ demo-org │ > │ Name │ mywf │ > │ Project │ myproject │ > │ Version │ v0.0.1 (prerelease) │ > │ Contract │ myproject-mywf (revision 1) │ > │ Timestamp Authority │ http://timestamp.digicert.com │ > │ Policy violation strategy │ ENFORCED │ > └───────────────────────────┴──────────────────────────────────────┘ > ``` ### Promote a pre-release version Note how the version in the previous output is `v0.0.1 (prerelease)`. Think of **prerelease** as a work-in-progress version, not yet finished until an explicit `release` event is performed. To release an existing pre-release version, you can do it either * Performing another attestation but this time provide the `--release` flag. * From the Web UI > [tab] CLI > > ``` > chainloop att init --workflow mywf --project myproject --version v0.0.1 --release > ``` > > > [accordion] Command output > > > > ``` > > > > INF Attestation initialized! now you can check its status or add materials to it > > ┌───────────────────────────┬──────────────────────────────────────┐ > > │ Initialized At │ 05 Mar 25 09:49 UTC │ > > ├───────────────────────────┼──────────────────────────────────────┤ > > │ Attestation ID │ e903906d-e937-4bf0-828a-5bc6054e7324 │ > > │ Organization │ demo-org │ > > │ Name │ mywf │ > > │ Project │ myproject │ > > │ Version │ v0.0.1 (will be released) │ > > │ Contract │ myproject-mywf (revision 1) │ > > │ Timestamp Authority │ http://timestamp.digicert.com │ > > │ Policy violation strategy │ ENFORCED │ > > └───────────────────────────┴──────────────────────────────────────┘ > > ``` > > See how the message now has changed to v0.0.1 (will be released). Once the attestation is successfully crafted and pushed, **the version will be promoted to v0.0.1 when the attestation is pushed**. > [tab] Web UI > > Open the project actions menu and click "Release version". > > ![The project actions menu with the Release version option](https://mintcdn.com/chainloop/mVK2LwgaKSQG2UZs/concepts/img/projects-2.png?fit=max\&auto=format\&n=mVK2LwgaKSQG2UZs\&q=85\&s=11f0b27c87d2d25d6de702f90bc97602) ### Make Released Versions Immutable By default, releasing a version does not prevent further changes: new attestations can still be pushed to it. If you want a released version to represent a fixed, auditable point in time, you can enable the **"Make Released Versions Immutable"** organization setting. When this setting is enabled, pushing an attestation to a version that has already been released is rejected by the control plane, and `chainloop attestation push` fails with a clear error message. > [!NOTE] > > This setting is disabled by default and applies to the whole organization. Only organization owners and admins can change it. > [tab] Web UI > > Navigate to the [organization settings](https://app.chainloop.dev/settings) and enable the toggle in the **Attestation Process Configuration** section. > > ![Make Released Versions Immutable toggle in organization settings](https://mintcdn.com/chainloop/u-2fMwcQ1iv-IuHv/concepts/img/projects-released-immutable.png?fit=max\&auto=format\&n=u-2fMwcQ1iv-IuHv\&q=85\&s=5406312cbe721a889fb659da34abfaca) > [tab] CLI > > ```bash theme={"dark"} > chainloop org update --name [my-org-name] --block-attestations-on-released-versions > ``` > > Set the flag to `false` to disable it again: > > ```bash theme={"dark"} > chainloop org update --name [my-org-name] --block-attestations-on-released-versions=false > ``` ### Automatically load the version An alternative to provide the `--version` flag in each attestation is to use a `.chainloop.yml` file in your repo. ```yaml theme={"dark"} # your-project/.chainloop.yml projectVersion: v0.1.0 # example version ``` The CLI, during attestation init will traverse up the directory tree and load the version from the `.chainloop.yml` file automatically if it exists. # Vulnerability Management and Risk Assessment Source: https://docs.chainloop.dev/concepts/vulnerability-management Triage, assess, and remediate vulnerabilities for any project version, with automatic deduplication, AI-assisted assessments, and feedback into your control gates **Vulnerability Management and Risk Assessment turns scanner output into triaged, audited, enforceable decisions.** On any Chainloop project version, it surfaces the vulnerabilities affecting your attested components and artifacts, and lets you (or an AI agent) record formal risk assessments against them. You'll find it in the Chainloop UI under the **Security** tab. ![Risk Assessments view on a project version showing 19 assessments in a mix of Affected (with linked remediation PRs), Under Investigation (Needs Review), and Not Affected states, all authored by the Vulnerabilities Agent](https://mintcdn.com/chainloop/Bb2P7yua-ewa5kWW/concepts/img/vulnerability-management/hero.png?fit=max\&auto=format\&n=Bb2P7yua-ewa5kWW\&q=85\&s=0209fc1829740b474f8b33d77479058b) > [!NOTE] > > **Status.** Vulnerability findings are GA. AI-driven assessment and remediation are in Preview. Other finding types (SAST, license, secrets, supply-chain misconfiguration) are on the roadmap. > [!TIP] > > For a step-by-step guide on how to set it up on your project, see [Set up Vulnerability Management in your project](/guides/vulnerability-management). ## The problem it solves **Vulnerability handling is both a security baseline and a hard regulatory requirement.** The EU [Cyber Resilience Act (CRA)](/reference/cyber-resilience-act) mandates it throughout the product lifecycle (Annex I, Part II). SOC 2 (CC7.1), ISO 27001, PCI DSS, and FedRAMP carry equivalent obligations. **In practice, the data ends up scattered.** Trivy and Grype produce JSON in CI logs. SBOMs land in artifact registries. The "we're not affected" justifications live in Confluence, Slack threads, and screenshots that nobody can find when an auditor asks. **Gates built on raw scanner output don't help either.** They either over-block (every CVE breaks the build) or under-block (the team learns to ignore them). **Vulnerability Management and Risk Assessment gives you one place where every finding lands, gets triaged once, and stays reusable.** Used by your team, your control gates, your auditors, and your customers. See [Compliance](#compliance) for how the same data drives your compliance frameworks. ## How it works **In one screen, you see what's wrong with your software, who decided what to do about it, and the evidence behind every step.** Under the hood, a five-stage pipeline: 1. **Ingest**: your CI/CD attests an SBOM, a vulnerability scan report (or a single CycloneDX SBOM containing both), and an artifact reference such as a container image. 2. **Normalize**: a Chainloop policy evaluates the evidence. Findings are deduplicated across scanners and runs; components and artifacts are extracted; everything is scoped to the project version. 3. **Decide**: your team triages the findings and records risk assessments, manually or with AI agents that draft assessments using your source code as context. 4. **Distribute**: approved assessments produce a live VEX feed, PDF reports, and inputs that Chainloop control gates can read to filter false positives and false negatives. 5. **Audit**: every signal is signed. The evidence, the policy evaluation, every revision of every assessment. The page is organized around four pillars, each backed by part of this pipeline: | Pillar | What it shows | Where the data comes from | | - | - | - | | [Vulnerability findings](#vulnerability-findings) | One entry per CVE × package (or per location), deduplicated | Vulnerability scan report + Chainloop policy | | [Risk assessments](#risk-assessments) | Versioned decisions on findings | Your team and/or the Vulnerabilities Agent | | [Components and artifacts](#components-and-artifacts) | Packages discovered + the build outputs they live in | SBOM + artifact references | | [Reports](#reports) | Generated VEX feeds and PDF assessment reports | Approved risk assessments | ![Security overview dashboard showing risk assessment progress, unassessed vulnerabilities, components, and vulnerable artifacts](https://mintcdn.com/chainloop/Bb2P7yua-ewa5kWW/concepts/img/vulnerability-management/overview.png?fit=max\&auto=format\&n=Bb2P7yua-ewa5kWW\&q=85\&s=b9ea6d5e649d0c61dc7fed2b45b3e13d) ## Vulnerability findings A **finding** is a single vulnerability instance: one CVE on one package within one artifact in this project version. **Findings are deduplicated automatically.** The same CVE on the same package collapses to a single entry across attestations, regardless of which scanner reported it or how many builds saw it. The default dedup key is `(finding type, CVE id, package PURL)`; [Deduplication strategy](#deduplication-strategy) below covers how to change it. ### What becomes a finding Findings are not read straight from the scanner report. They are the output of the [`vulnerabilities` policy](/reference/policies#vulnerabilities) evaluating that report, so **the number of findings is usually lower than the number of entries in the raw report**. Two things account for the difference: 1. **The severity threshold.** The policy's `severity` input (default `MEDIUM`) is a floor: only report entries at or above it become violations, and only violations become findings. With `severity: HIGH`, medium and low vulnerabilities are not stored as findings at all. 2. **The dedup key above.** Scanners emit one entry per *component copy*: a jar shipped at three paths inside an image is three CycloneDX components with different `bom-ref` values but one PURL, so those three entries are one finding. On the `Package and location` [deduplication strategy](#deduplication-strategy) they stay three findings instead. For example, a report with 480 entries, 107 of them high or critical, evaluated with `severity: HIGH`: | Stage | Count | | - | - | | Entries in the scanner report | 480 | | Entries at or above the `HIGH` threshold | 107 | | Unique (CVE, package PURL) pairs among them | 77 | | Findings in Chainloop | 77 | The `suppress_assessed` and `suppress_triaged` inputs do not remove findings. They only exclude already-assessed or triaged vulnerabilities from the pass/fail gate; the findings stay in the list with their assessment attached. Each finding carries: * **Severity**: Critical, High, Medium, Low, Unknown * **Status**: Open, In Progress, Resolved, Rejected * **Fixability**: whether a known upstream version fixes it * **KEV flag**: whether the CVE is in CISA's Known Exploited Vulnerabilities catalog * **Affected package**: the package PURL the CVE lands on * **Location**: where inside the artifact that copy of the package was found, when the scanner reported one * **Linked artifacts**: every container image or build output the package lives in * **Evidence trail**: direct links to the signed [scanner attestation](/concepts/attestations) and the [policy](/concepts/policies) that produced the finding The Vulnerabilities view is the triage list. **Search** by CVE id or component, **filter** by severity, status, KEV, fixability, assessment state, or specific artifact. **Share a filtered view as a URL** to hand off a slice of work. Resolved and rejected findings are hidden by default, so the list reflects open work. ![Vulnerabilities list with severity, status, and assessment columns](https://mintcdn.com/chainloop/Bb2P7yua-ewa5kWW/concepts/img/vulnerability-management/vulnerabilities.png?fit=max\&auto=format\&n=Bb2P7yua-ewa5kWW\&q=85\&s=5cf3b02d9bfb4a250cffaabba8023adf) ### Deduplication strategy **How aggressively findings collapse is an organization-level setting.** The same CVE on the same package can be one row for the whole artifact, or one row per copy of that package the scanner matched: | Strategy | Dedup key | You get | | - | - | - | | **Package** (default) | `(finding type, CVE id, package PURL)` | One finding per CVE × package. Copies of the same package at different paths collapse into a single row. | | **Package and location** | `(finding type, CVE id, package PURL, location)` | One finding per CVE × package × location. Every copy the scanner matched is its own row, with its own status and assessment. | **Pick `Package and location` when your release gate requires sign-off on every occurrence**, not just on every vulnerable package. Pick `Package` — the default — when you'd rather triage a dependency once and have the decision cover every place it ships. Location comes from data that is already in the attested evidence, so **nothing changes about how you produce SBOMs or scan reports**: Chainloop reads `evidence.occurrences[].location`, falling back to the `syft:location:N:path` property and then to the component's `bom-ref`. Where a copy has no location at all, the finding falls back to package granularity. Set it under **Vulnerability Management** on the organization settings page (admins and owners only). It applies to every project in the organization and to every ingest path: CI attestations, [built-in scans](/guides/vulnerability-management), and manual SBOM ingestion. ![Deduplication strategy row on the organization settings page, described as how Chainloop groups vulnerability findings when the same package appears in more than one location, set to Package and location](https://mintcdn.com/chainloop/njfOCH_qgnBAdg_K/concepts/img/vulnerability-management/dedup-strategy-setting.png?fit=max\&auto=format\&n=njfOCH_qgnBAdg_K\&q=85\&s=a93f264a35e3c9341d389d6bd414d1ec) **Switching strategy re-keys a project version the next time it's ingested**, in either direction. The findings carrying the old key are retired rather than left alongside the new ones, so you don't end up with both views of the same vulnerability in the list. **Existing risk assessments survive the switch** and re-attach to the findings that replaced the ones they were written against. > [!NOTE] > > Notifications and absence detection stay keyed on `(CVE, package)` regardless of the strategy. One CVE in one package produces a single alert, not one per copy, and a package that merely moves between paths is not reported as gone. ## Risk assessments A **risk assessment** is a versioned record of a team's review of one or more findings: a verdict (*Affected*, *Not Affected*, *Under Investigation*, *Fixed*) and the reasoning behind it. **Assessments are how triage decisions are captured, signed, and reused.** Every approved assessment drives the status of every finding it covers, generates VEX statements automatically, and can feed back into your control gates. ### The assessment workflow * **Create**: write the assessment yourself or accept the AI agent's draft * **Discuss**: built-in thread for back-and-forth between security, dev, and compliance reviewers * **Approve**: separate "create" and "approve" actions, both captured with author and timestamp * **Revise**: every change is preserved as a new revision; the full history is auditable ![Risk assessment detail panel showing status, scope, current revision, and structured rationale](https://mintcdn.com/chainloop/Bb2P7yua-ewa5kWW/concepts/img/vulnerability-management/risk-assessment-detail.png?fit=max\&auto=format\&n=Bb2P7yua-ewa5kWW\&q=85\&s=600cf421a927b101af581bd500bd7a7a) ### Assessment scope: where a decision applies An assessment can be scoped at any level of the Chainloop data model: * **Project-version scope**: *"This CVE doesn't affect this release"* * **Project scope**: *"This CVE doesn't affect this project, ever"* **Assess once at the right level. The verdict cascades down.** A project-scoped *Not Affected* applies to every version of that project, so the same CVE doesn't have to be re-litigated every release. ### Assessment and auto-remediation using AI > [!NOTE] > > The Vulnerabilities Agent and Remediation Agent are in **Preview**. Two agents extend the assessment workflow. **Vulnerabilities Agent.** Drafts a full assessment for new findings, using vulnerability metadata (severity, KEV, fixability, CVSS), scanner context, and **your source code and Dockerfiles**. The output: a structured analysis (root cause, reachability, impact, mitigating factors, recommendation), a proposed verdict, and a **confidence score**. The assessment lands in `Under Investigation / Needs Review` until a human approves or rejects it (or [auto-approval](#configuring-automation) is enabled for that severity). **Until then, the agent's verdict doesn't affect finding status.** ![Risk assessment in Needs Review state with the Vulnerabilities Agent's proposed change and Approve/Reject buttons](https://mintcdn.com/chainloop/Bb2P7yua-ewa5kWW/concepts/img/vulnerability-management/risk-assessment-needs-review.png?fit=max\&auto=format\&n=Bb2P7yua-ewa5kWW\&q=85\&s=b678912064b873b5bbb18e50b5b742a3) **Remediation Agent.** When an assessment is *Affected* with high enough confidence, the agent **patches the affected files and opens a pull request** against your repository. Trigger it manually, or let it fire automatically via the [automation settings](#configuring-automation) below. Each PR is linked back to the assessment, so remediation history stays attached to the finding. ![Risk assessments list with Affected findings linked to remediation pull requests opened by the Vulnerabilities Agent](https://mintcdn.com/chainloop/Bb2P7yua-ewa5kWW/concepts/img/vulnerability-management/remediation-prs.png?fit=max\&auto=format\&n=Bb2P7yua-ewa5kWW\&q=85\&s=9823d6ba845848902fdb35e44d942cfc) The PR itself contains the full context (the CVE, the fix summary, and the exact changes), so reviewers can verify the remediation without leaving the pull request. ![GitHub pull request opened by the Remediation Agent fixing CVE-2025-61726 by upgrading Go, with Summary, Vulnerability Fixed, and Changes Made sections](https://mintcdn.com/chainloop/Bb2P7yua-ewa5kWW/concepts/img/vulnerability-management/remediation-pr-detail.png?fit=max\&auto=format\&n=Bb2P7yua-ewa5kWW\&q=85\&s=ab127c97f6a8cd3b0be57952575a145e) #### Configuring automation How much of this pipeline runs on its own is up to you. The **Vulnerability Management** section on the organization settings page (admins and owners only) holds the automation matrix — what the AI pipeline does with each new finding, per severity, across every project in the organization — alongside the [deduplication strategy](#deduplication-strategy): * **Auto-assess**: the Vulnerabilities Agent drafts a risk assessment for every new finding of that severity as soon as it's ingested. Findings of other severities can still be assessed on demand. * **Auto-approve**: the agent's proposed verdict is approved automatically when its confidence is high enough, skipping the human review step. Auto-approved revisions are recorded with an explanatory note instead of a reviewer, and low-confidence drafts still land in *Needs Review*. * **Auto-fix**: when an approved assessment marks a finding *Affected* and fixable with high confidence, the Remediation Agent patches it and opens the pull request automatically. A finding that already has a remediation attempt is never retried automatically. ![Organization settings automation matrix showing per-severity Auto-assess, Auto-approve, and Auto-fix toggles that apply to every project in the organization](https://mintcdn.com/chainloop/IE9GklscL_HUk0eH/concepts/img/vulnerability-management/automation-settings.png?fit=max\&auto=format\&n=IE9GklscL_HUk0eH\&q=85\&s=641f80d78c6089d087b2ae29cab10cd5) By default, only auto-assessment of **Critical** and **High** findings is enabled — everything else waits for a human. Every automated action is fully auditable. When the pipeline auto-approves an assessment revision or opens a remediation pull request on its own, the action is recorded in the [audit log](/reference/audit-logs) with a `SYSTEM` actor and the details behind the decision — including the confidence score, the threshold it met, and the resulting verdict — so you can always trace who (or what) changed a finding's status and why. ![Audit log entry showing an assessment revision auto-approved by the automation pipeline, with a SYSTEM actor and the confidence score, threshold, and verdict recorded in the event details](https://mintcdn.com/chainloop/uk6yIvMel9AZEstZ/concepts/img/vulnerability-management/assessment-audit-log.png?fit=max\&auto=format\&n=uk6yIvMel9AZEstZ\&q=85\&s=6477021626f960178c2becf7bbe73d00) ### Outputs: VEX feed, PDFs, and smarter control gates **Approved assessments don't just sit in the UI.** Chainloop produces: * A **live VEX feed** that updates as assessments are added, consumable by external tools, customers, and auditors * **PDF reports** for auditors and customers * **Inputs to your Chainloop control gates.** Chainloop already lets you build release-gating [policies](/concepts/policies) and [control gates](/concepts/control-gates) (e.g. *"block any release with an unassessed Critical vulnerability"*). Those policies can now read assessments to remove **false positives** (dismissed findings shouldn't keep blocking) and **false negatives** (findings flagged *Affected* should still block, even if a later scan misses them). The typical loop: 1. A scanner flags a vulnerability in a build. 2. A Chainloop control-gate policy blocks the release because the finding has no assessment. 3. The team writes (or accepts the agent's draft) and approves an assessment. 4. The policy re-evaluates against the updated assessment data and lets the release proceed. **Assessments carry forward**, so the same finding doesn't need to be reviewed in every pipeline. ## Components and artifacts **Findings live inside a package, which lives inside a build output.** Two views let you navigate from either side: * **Components**: every package discovered in the project version's SBOMs, with a rollup of the vulnerabilities affecting each. Useful for answering *"is this dependency a problem anywhere?"*. * **Artifacts**: every container image (or other SBOM-scoped artifact) in the version, with its vulnerability count. Drill in to see exactly which findings came from each one. ### The data model behind both Components and artifacts sit inside a broader hierarchy: | Level | What it is | | - | - | | **Component** | A package discovered in an SBOM (with PURL) | | **Artifact** | A container image or other build output that carries components | | **Project version** | A specific release of a [project](/concepts/projects-versions) | | **Project** | The software project across all versions | | **Product** | A bundle of one or more projects shipped to customers ([Products](/concepts/products)) | **That shared model is why a single risk assessment can apply at any of these levels.** See [Assessment scope](#assessment-scope-where-a-decision-applies) for how the cascade works. ![Risk assessments list with vulnerability, status, scope, and product columns](https://mintcdn.com/chainloop/Bb2P7yua-ewa5kWW/concepts/img/vulnerability-management/risk-assessments.png?fit=max\&auto=format\&n=Bb2P7yua-ewa5kWW\&q=85\&s=b0ecf4f69dbd427acef5c69b73d88c28) ## Reports **Reports is where the deliverables live**: the [VEX](https://www.cisa.gov/sites/default/files/2023-01/VEX_Use_Cases_Aprill2022.pdf) feed and PDF reports Chainloop generates from your approved assessments. Download any of them to share with auditors, customers, or downstream tools. The VEX feed follows the [OpenVEX](https://openvex.dev/) spec, so any tool that consumes OpenVEX can read it directly. Each statement maps to one approved assessment, with its verdict (`not_affected`, `affected`, `under_investigation`, `fixed`), justification, and the products (PURLs) it covers. ![OpenVEX JSON feed produced by Chainloop, with statements covering CVE-2018-20796 (not_affected, vulnerable_code_not_in_execute_path) and CVE-2019-1010022 (under_investigation), each tied to a Debian glibc PURL](https://mintcdn.com/chainloop/Bb2P7yua-ewa5kWW/concepts/img/vulnerability-management/vex-report.png?fit=max\&auto=format\&n=Bb2P7yua-ewa5kWW\&q=85\&s=aaeea49fe9a016a0c1685da808e7d520) The raw inputs (SBOMs and scanner reports) live separately in Chainloop as signed [evidence](/concepts/material-types) under the project's [attestations](/concepts/attestations). ## Compliance **Dev teams get a tool to triage and remediate vulnerabilities and other issues. Compliance teams get accurate, framework-aligned output for free.** The same SBOMs, scanner reports, and risk assessments feeding daily triage also drive Chainloop's [framework engine](/concepts/compliance-frameworks). No separate audit pipeline, no copy-paste, no spreadsheets. Take the EU [Cyber Resilience Act (CRA)](/reference/cyber-resilience-act): Annex I, Part II requires manufacturers to identify, document, address, and report vulnerabilities throughout the product lifecycle. The framework breaks each obligation into a numbered requirement (`cra-vulnerability-handling-req-1` through `req-8`), and each requirement runs automated checks against your evidence: scanner severity thresholds, SBOM presence, SLA compliance, and so on. When the checks pass, the requirement turns green; when they don't, you can drill straight into the failing workflow run, material, and finding. ![Compliance tab showing CRA vulnerability handling requirements with per-requirement check status, and a side panel showing automated severity checks against scanner output for cra-vulnerability-handling-req-2](https://mintcdn.com/chainloop/Bb2P7yua-ewa5kWW/concepts/img/vulnerability-management/compliance.png?fit=max\&auto=format\&n=Bb2P7yua-ewa5kWW\&q=85\&s=0371827acb3324ab5f6e786d2e02109a) The same model applies to **any other framework Chainloop supports that mandates vulnerability handling.** See the [CRA reference](/reference/cyber-resilience-act) for the full requirement set, the [CRA tracking guide](/guides/cra) to wire it onto a project, or [Compliance frameworks](/concepts/compliance-frameworks) for the broader model. ## Notifications and integrations **Slack is the collaboration surface for vulnerability work.** Chainloop pushes signals into your channels and lets your team ask questions back, so the whole loop happens where your team already works. Email and Microsoft Teams also support outbound notifications. ### Push: notifications that carry context Notifications include enough context to act on directly, no extra clicks needed. A new high-severity finding lands with the organization, product, project version, severity, CVE/GHSA id, and the affected package PURL: ![Slack notification from Chainloop reading '1 new high-severity finding', with organization, product, project version, severity (HIGH), GHSA id, and the affected Go package PURL](https://mintcdn.com/chainloop/Bb2P7yua-ewa5kWW/concepts/img/vulnerability-management/slack-notification-new-finding.png?fit=max\&auto=format\&n=Bb2P7yua-ewa5kWW\&q=85\&s=8371c8cb397008fb27659ac50cca311a) When the Vulnerabilities Agent drafts an assessment, the notification includes the proposed status, scope, product, project, a root-cause excerpt, and a *Review in Chainloop* button to jump straight into the assessment: ![Slack notification from Chainloop reading 'Assessment needs review — CVE-2019-1010022', showing the Vulnerabilities Agent's proposed status (NOT_AFFECTED), scope (PROJECT), product (Chainloop Enterprise), root cause excerpt, and a Review in Chainloop button](https://mintcdn.com/chainloop/Bb2P7yua-ewa5kWW/concepts/img/vulnerability-management/slack-notification.png?fit=max\&auto=format\&n=Bb2P7yua-ewa5kWW\&q=85\&s=f84a3e59916588628de8f3faaf4f0e47) ### Pull: ask Chainloop from Slack **Anyone in the workspace can ask Chainloop a question** about a project version's posture and get an answer from live data, including current assessment state: ![Slack thread where a user asks 'Do I have any high+ vulnerability in Chainloop Platform v1.73.1?' and Chainloop replies with a structured summary: one Critical (CVE-2019-1010022, libc6, In Progress, CVSS 9.8, assessment Under Investigation) and a note that other High/Critical findings are Not Affected or Rejected based on current assessments](https://mintcdn.com/chainloop/Bb2P7yua-ewa5kWW/concepts/img/vulnerability-management/ask-chainloop-slack.png?fit=max\&auto=format\&n=Bb2P7yua-ewa5kWW\&q=85\&s=ee17031060cb37a73ada2e1c70b13ca2) This means dev, security, and compliance can **answer "are we exposed?" without leaving Slack.** ### Channels and triggers * **Outbound channels**: Slack, Microsoft Teams, email * **Conversational channel**: Slack (Ask Chainloop) * **Triggers**: new vulnerabilities, assessments awaiting approval, agent activity * **Roadmap**: Jira and Linear, auto-create tickets to assign findings to owners ### Configuring notifications Notifications are configured from the **Manage Notifications** panel on a product, where you map each event type (*New High-Severity Findings*, *Assessment Needs Review*, *Auto-Remediation PRs*, and so on) to one or more integrations: ![Manage product notifications panel showing the Vulnerability Management section with three configurable event types — New High-Severity Findings, Assessment Needs Review, and Auto-Remediation PRs — each routed to a Slack App integration on channel #platform](https://mintcdn.com/chainloop/Bb2P7yua-ewa5kWW/concepts/img/vulnerability-management/manage-notifications.png?fit=max\&auto=format\&n=Bb2P7yua-ewa5kWW\&q=85\&s=669b25bc80a8a724d0ecdec2eb43e90c) See [Notifications](/concepts/notifications) for outbound setup and [Ask Chainloop](/concepts/ask-chainloop) for the conversational interface. ## Trust: signed evidence end-to-end **Every signal in this section is backed by Chainloop's signed evidence chain.** * Every scanner report is **cryptographically [attested](/concepts/attestations)** at build time * Every policy evaluation is **stored immutably** * Every assessment is **versioned and signed** * Enterprise edition adds a full **[audit log](/reference/audit-logs)** of every state change Chainloop is the evidence store for your software factory. Vulnerability Management and Risk Assessment is the layer on top where signed evidence becomes triage, assessments, VEX, and remediation, all inside the same trust boundary. ## Troubleshooting and FAQ > [accordion] I don't see any vulnerabilities > > Two things to check: > > * Confirm your vulnerability report is being evaluated by the built-in `vulnerability-management` policy group or the `vulnerabilities` policy. Vulnerabilities only surface when a policy parses the report — without it, the material is attested but not turned into findings. If neither is attached, add one to the workflow's [contract](/concepts/contracts) and re-run. > * Make sure you're on the **Enterprise Edition CLI v1.73.0 or later**. Earlier versions don't emit findings into the Security tab. > [accordion] I see fewer vulnerabilities than my scanner reports > > Expected. Entries below the policy's `severity` threshold are never ingested, and entries for the same vulnerability and package collapse into one finding. To see lower severities, lower `severity` in the workflow's contract (or the template's **Configure** panel) and re-run. To keep one finding per copy of the package instead of one per package, switch the organization's [deduplication strategy](#deduplication-strategy). See [What becomes a finding](#what-becomes-a-finding). > [accordion] The same CVE and package appears several times in the list > > Your organization is on the `Package and location` [deduplication strategy](#deduplication-strategy), which gives every copy of the package its own finding so each one can be signed off separately. Switch back to `Package` in organization settings to collapse them into a single row; the next ingest re-keys the project version and retires the per-location findings. > [accordion] I don't see any components > > Components are extracted from the SBOM. If the **Components** view is empty, your attestation is missing an SBOM material — add a `SBOM_CYCLONEDX_JSON` (or `SBOM_SPDX_JSON`) to the run and re-attest. ## Roadmap * More finding types: SAST, secrets, license, SBOM / supply-chain misconfiguration * More integrations: Jira, Linear, additional notification channels * More agent workflows on the same signed evidence base ## Set it up [Set up Vulnerability Management in your project](/guides/vulnerability-management): turn on a built-in scan against your connected repository, or push scan reports from your own CI. # Workflow Templates Source: https://docs.chainloop.dev/concepts/workflow-templates ## Overview > [!NOTE] > > **Preview.** Workflow templates are available on Chainloop's [paid plans](https://chainloop.dev/pricing) and are currently a Preview feature — the schema and behavior may change. A **Workflow Template** is a reusable blueprint for creating [workflows](/concepts/workflows). Instead of configuring a [contract](/concepts/contracts) and delivery settings from scratch for every project, you define a template once and instantiate it wherever you need it — while [onboarding a project](/concepts/projects-versions), editing an existing one, or adding a new workflow. A template bundles together everything a workflow needs: * **A contract** — either embedded inline or a reference to an existing organization contract — that defines the evidence and [policies](/concepts/policies) the resulting workflow expects. * **Delivery mode(s)** — how attestations reach Chainloop. * **Inputs** (optional) — parameters that let a single template adapt to different projects. Templates come in two flavors: * **Built-in templates** — global, Chainloop-provided blueprints (for example, vulnerability, SAST, and secret scans) available to every organization. See [Built-in Scanners](/reference/scanners) for the full list and the tool behind each one. * **Custom templates** — org-scoped blueprints you define and manage yourself with `chainloop apply`. ## Anatomy of a Template Workflow templates follow the same Kubernetes-style schema as other [declarative resources](/guides/declarative-resource-management), with `apiVersion`, `kind`, `metadata`, and `spec`: ```yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: WorkflowTemplate metadata: name: vulnerability-scan display_name: Vulnerability Scan description: >- Validates dependency / artifact vulnerability reports against the vulnerability-management policy group and verifies the commit that triggered the scan. spec: delivery: - DELIVERY_MODE_MANUAL contract: materials: - type: SARIF name: vulnerability-report - type: SBOM_CYCLONEDX_JSON name: sbom policies: attestation: - ref: source-commit materials: - ref: cves-in-kev policy_groups: - ref: vulnerability-management ``` ### Metadata | Name | Required | Description | | - | - | - | | `name` | yes | Machine-readable, globally unique identifier (lowercase letters, numbers, and hyphens — DNS-1123). | | `display_name` | no | Human-readable name shown in the UI. | | `description` | no | Short summary of what the template does, shown alongside it in the UI. | ### Spec | Name | Required | Description | | - | - | - | | `delivery` | no | List of supported [delivery modes](#delivery-modes). Defaults to manual delivery when omitted. | | `contract` | \* | An embedded [contract](/concepts/contracts) (`materials`, `policies`, `policy_groups`). Mutually exclusive with `contract_ref`. | | `contract_ref` | \* | Name of an existing organization contract to reference instead of embedding one. Mutually exclusive with `contract`. | | `inputs` | no | Configurable [inputs](#template-inputs) the template advertises. Only valid with an embedded `contract`, not with `contract_ref`. | | `singleton` | no | If `true`, only one workflow instance per repository can be created from this template. | | `scmProviders` | no | Restrict which repositories can use the template by SCM provider (`GITHUB`, `GITLAB`). Empty means all providers. | | `manual_installation_description` | no | Markdown instructions shown for manual/self-service setup. | > [!NOTE] > > Exactly one of `contract` or `contract_ref` must be set — never both, and never neither. ## Embedded vs. Referenced Contracts A template can carry its contract in one of two ways: * **Embedded** — define the contract inline under `spec.contract`. Use this when the contract is specific to the template. * **Referenced** — point at an existing organization contract by name with `spec.contract_ref`. Use this when you want several templates to share (and stay in sync with) a single contract. ```yaml theme={"dark"} spec: delivery: - DELIVERY_MODE_MANUAL contract_ref: my-org-contract ``` ## Delivery Modes `spec.delivery` declares how workflows created from the template deliver their attestations. * **`DELIVERY_MODE_MANUAL`** — the **push model**: attestations are performed from your own CI/CD pipeline and pushed to Chainloop. This is the mode you use in your own templates. When `delivery` is omitted, the template defaults to manual delivery. * **`DELIVERY_MODE_MANAGED`** — used by Chainloop's [built-in templates](/reference/scanners) to run scans server-side, against a connected repository, with no CI involvement. It is not available to custom templates. ## Template Inputs Templates can declare **inputs** — parameters that make a single template reusable across projects with different requirements. Inputs are referenced as `{{ inputs. }}` placeholders inside [policy](/concepts/policies) and [policy group](/concepts/policy-groups) parameters, so a shared template can ship policies that need organization- or project-specific values. ```yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: WorkflowTemplate metadata: name: vulnerability-scan display_name: Vulnerability Scan spec: delivery: - DELIVERY_MODE_MANUAL inputs: - name: severity description: Minimum severity that fixes are expected to address within the defined SLA. type: string default: "HIGH" contract: materials: - type: SARIF name: vulnerability-report policy_groups: - ref: vulnerability-management with: severity: "{{ inputs.severity }}" ``` Each input supports the following fields: | Name | Required | Description | | - | - | - | | `name` | yes | Identifier used in `{{ inputs. }}` placeholders (letters, numbers, and underscores; must start with a letter). | | `description` | no | Human-readable description shown in the UI. | | `type` | no | Scalar type of the input. Currently only `string` is supported. | | `enum` | no | Optional list of allowed values. | | `default` | no | Default value used when none is provided. | | `required` | no | Whether a value must be supplied. | Input values are validated when the template is applied and can be edited later from the project and workflow edit forms. ## Managing Custom Templates Custom (org-scoped) templates are managed declaratively with `chainloop apply`, the same command used for other [Chainloop resources](/guides/declarative-resource-management). Applying a template creates it if it does not exist, or updates it if a template with the same name already exists: ```bash theme={"dark"} # Apply a single template chainloop apply -f vulnerability-scan.yaml # Apply every template in a directory chainloop apply -f ./workflow-templates/ ``` Use `--dry-run` to validate a template and preview the changes without persisting them: ```bash theme={"dark"} chainloop apply -f vulnerability-scan.yaml --dry-run ``` > [!NOTE] > > Creating and updating org-scoped workflow templates requires an admin or owner role. Built-in templates are read-only. ## Using Templates Templates show up across the UI. You can: * **Create a workflow from a template** — pick a template and Chainloop provisions a workflow with the template's contract, delivery mode, and input values already wired up. * **Select templates while onboarding or editing a project** — attach one or more templates as part of project setup. For example, the **Workflows** step of the Create Project wizard lists the built-in and custom templates available for the project's repository, letting you enable each one and choose its delivery mode inline: ![The Workflows step of the Create Project wizard showing built-in workflow templates such as GitHub Actions Scan, IaC Scan, PR Validation, and SAST Scan, each with a delivery mode selector and a Configure option](https://mintcdn.com/chainloop/RILrA3e54_dbUaMB/concepts/img/workflow-templates/project-creation-templates.png?fit=max\&auto=format\&n=RILrA3e54_dbUaMB\&q=85\&s=685d3f0a324a51d76f36cc3a8f2ea61d) For what each built-in scan runs and the evidence it produces, see [Built-in Scanners](/reference/scanners). Each workflow remembers the template it was created from, so template-backed workflows can be recognized and updated consistently. # Workflows Source: https://docs.chainloop.dev/concepts/workflows ## Overview A Workflow represents a data source that sends information to Chainloop. While it typically corresponds to a CI/CD pipeline, it is not limited to that. For example, users can ingest data from other sources, such as a custom Jira integration or manual user input. Essentially, Workflows serve as an umbrella term for all data ingestions from the same source. Each Workflow is associated with a [Workflow Contract](/concepts/contracts) which can be used to set the expectations for what data should be received from that source. To create workflows from reusable, pre-configured blueprints — bundling a contract, delivery mode, and configurable inputs — see [Workflow Templates](/concepts/workflow-templates). # Product and Project Compliance Source: https://docs.chainloop.dev/get-started/add-frameworks So far we have performed attestations, attached pieces of evidence, evaluated policies and store the result in Chainloop. In this section, we'll show you how you can see the compliance posture of your whole project and product with the use of [products](/concepts/products), [project versions](/concepts/projects-versions) and [compliance frameworks](/concepts/compliance-frameworks). If you remember, during the attestation process you have been providing the `--project` flag with the value `myproject`, so let's inspect it in the [project view](https://app.chainloop.dev/projects/myproject). ![Project view in the Chainloop UI showing aggregated workflows and evidence](https://mintcdn.com/chainloop/7oUakjSb5-MKNl1B/get-started/img/project-1.png?fit=max\&auto=format\&n=7oUakjSb5-MKNl1B\&q=85\&s=388a6cf6d857c55a5fdc9e992708c507) The goal of this view is to show you a high-level, aggregated view of your project workflows, pieces of evidence, policy evaluations and compliance score. You can learn more about the project view in this [guide](/concepts/projects-versions). ### Enabling compliance through products In addition to the project concept that enables workflow, policy, and evidence aggregation, Chainloop also introduces the concept of product. [Products](/concepts/products) can be seen as a collection of projects (components) to enable product management capabilities and become an entry point to manage compliance, alerting, and user access configuration at scale. To enable compliance, you need to create a product and then 1) attach the project to it 2) attach the compliance frameworks that we want to use, in our case we will use the `SLSA` and `chainloop-best-practices` frameworks ![Creating a product and attaching compliance frameworks in the Chainloop UI](https://mintcdn.com/chainloop/7oUakjSb5-MKNl1B/get-started/img/product-create.png?fit=max\&auto=format\&n=7oUakjSb5-MKNl1B\&q=85\&s=173e56777122d03e03cf92b851134fbc) Once done, you should be able to see the list of requirements automatically fulfilled by your workflows. ![Compliance requirements automatically fulfilled by the project's workflows](https://mintcdn.com/chainloop/7oUakjSb5-MKNl1B/get-started/img/project-2.png?fit=max\&auto=format\&n=7oUakjSb5-MKNl1B\&q=85\&s=a298e4450b007cbb4ea9df6cf2782178) and you can drill down to see the details of each requirement in the frameworks tab. ![Framework requirement details in the frameworks tab of the Chainloop UI](https://mintcdn.com/chainloop/7oUakjSb5-MKNl1B/get-started/img/project-3.png?fit=max\&auto=format\&n=7oUakjSb5-MKNl1B\&q=85\&s=35ba5a87ed8498285f83e8d13f582f4a) ### Manage Project Versions > [!NOTE] > > **Important: A "project" is different than a ["product"](/concepts/products)**, as well as a "project version" is different than a "product version". > > Project versions represent the version of the component while product versions represent the version of the product. > Products and project versions can evolve independently. As you can see at the top left, there is a version selector with the `none` value for now. Chainloop allows you to create versions of your project, so all the compliance data can be aggregated by version. To learn more about versions, check this [guide](/concepts/projects-versions#project-versions). Let's try to perform the same attestation than before but this time providing the `--version` flag with the value `1.0.0`. ```bash theme={"dark"} chainloop att init --workflow build-container-image --project myproject --version 1.0.0 --replace # Provide materials chainloop att add --name container --value ghcr.io/chainloop-dev/chainloop/control-plane chainloop att add --name sbom --value https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/quickstart/sbom.json chainloop att add --name vulnerabilities-report --value https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/quickstart/vulnerability-report.json # Sign and push chainloop att push ``` You now have the version `1.0.0` in the selector up top ![Version selector showing the newly created 1.0.0 project version](https://mintcdn.com/chainloop/7oUakjSb5-MKNl1B/get-started/img/project-4.png?fit=max\&auto=format\&n=7oUakjSb5-MKNl1B\&q=85\&s=28e49cecb99c7b8bf2858b824284de7c) ### Aggregate data As mentioned before the goal of this view is to show you a high-level, aggregated view of your project workflows, pieces of evidence, policy evaluations and compliance score for each version. So let's try to perform another attestation but this time from another workflow ```bash theme={"dark"} chainloop att init --workflow build-another-service --project myproject --version 1.0.0 --replace # We can push already since it has an empty contract chainloop att push ``` Now you should be able to see the new workflow in the project view and any policy, and metadata evaluations aggregated by version. ![Project view aggregating multiple workflows and evaluations by version](https://mintcdn.com/chainloop/7oUakjSb5-MKNl1B/get-started/img/project-5.png?fit=max\&auto=format\&n=7oUakjSb5-MKNl1B\&q=85\&s=3f33ae6240b04ba27cd75e63b2decf64) # Set Metadata expectations Source: https://docs.chainloop.dev/get-started/adding-contract In the previous step, we performed an attestation process that contained two pieces of evidence, but **none of those were required**. Now, our Security and Compliance team wants to force us to always provide those pieces of evidence, this is achieved through the definition of [contracts](/concepts/contracts). ![Contract view in the Chainloop UI](https://mintcdn.com/chainloop/4m_Z_ZeRnSV7jb7V/get-started/img/adding-contract-1.png?fit=max\&auto=format\&n=4m_Z_ZeRnSV7jb7V\&q=85\&s=c9161652bc759a7b7eb6ce054a96af2b) A contract is the interface between development pipelines and the requirements defined by the Security and Compliance teams in the Chainloop Service. It defines the pieces of evidence that are expected to be received as part of the attestation process, as well as some additional constraints, like the type of source (Github, Dagger …, etc.) and the policies that must be evaluated. > [!TIP] > > See our [Contracts](/concepts/contracts) reference for more information. ## Update the contract Each workflow has attached an empty contract by default, let's update it to require a container image, an SBOM and a vulnerability report. > [tab] Web UI > > Click on ["Update Contract"](https://app.chainloop.dev/contracts/myproject-build-container-image/update), and change the contract schema to the following: > > ![Editing the contract schema in the Chainloop UI](https://mintcdn.com/chainloop/RdLV64E8QnfN95P9/get-started/img/adding-contract-3.png?fit=max\&auto=format\&n=RdLV64E8QnfN95P9\&q=85\&s=5fc5d37eed207145281e0a55b34b89d6) > > ```yaml theme={"dark"} > apiVersion: chainloop.dev/v1 > kind: Contract > metadata: > name: myproject-build-container-image > spec: > materials: > - name: container > type: CONTAINER_IMAGE > - name: sbom > type: SBOM_CYCLONEDX_JSON > - name: vulnerabilities-report > type: SARIF > ``` > [tab] CLI > > ```bash theme={"dark"} > chainloop wf contract update --contract https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/quickstart/contract-only-materials.yaml > ``` ## Initialize an Attestation process Let's perform another attestation, but note how this time the requirements have changed ```bash theme={"dark"} chainloop att init --workflow build-container-image --project myproject --replace ``` ```bash theme={"dark"} ┌───────────────────────────┬──────────────────────────────────────────────┐ │ Initialized At │ 13 May 25 09:52 UTC │ ├───────────────────────────┼──────────────────────────────────────────────┤ │ Attestation ID │ ce0a4e64-cdde-477a-8141-70cd3c198cf4 │ │ Organization │ gs-demo │ │ Name │ build-container-image │ │ Project │ myproject │ │ Version │ none │ │ Contract │ myproject-build-container-image (revision 2) │ │ Timestamp Authority │ http://timestamp.digicert.com │ │ Policy violation strategy │ ADVISORY │ └───────────────────────────┴──────────────────────────────────────────────┘ ┌───────────────────────────────────┐ │ Materials │ ├──────────┬────────────────────────┤ │ Name │ container │ │ Type │ CONTAINER_IMAGE │ │ Set │ No │ │ Required │ Yes │ ├──────────┼────────────────────────┤ │ Name │ sbom │ │ Type │ SBOM_CYCLONEDX_JSON │ │ Set │ No │ │ Required │ Yes │ ├──────────┼────────────────────────┤ │ Name │ vulnerabilities-report │ │ Type │ SARIF │ │ Set │ No │ │ Required │ Yes │ └──────────┴────────────────────────┘ ``` > [!TIP] > > Alternatively, you can create the contract on the fly during the attestation process. To do so, you can provide the reference to a remote, or local yaml file containing the contract definition. > > ```bash theme={"dark"} > chainloop att init --workflow build-container-image --project myproject --replace > ``` ## Adding materials and pushing the attestation. Note that the `attestation init` command output this time includes a section indicating that a `CONTAINER_IMAGE` is required alongside with `SBOM_CYCLONEDX_JSON` and `SARIF`. What would happen if we try to push without adding any material? ```bash theme={"dark"} chainloop att push ERR some materials have not been crafted yet: container, sbom, vulnerabilities-report ``` We can see that Chainloop expects us, according to the contract, to provide at least the container image reference, and, optionally, its SBOM. Let's add them: ```bash theme={"dark"} chainloop att add --name container --value ghcr.io/chainloop-dev/chainloop/control-plane ``` > [accordion] Command Output > > ```bash theme={"dark"} > INF material added to attestation > ┌──────────┬─────────────────────────────────────────────────────────────────────────┐ > │ Name │ container │ > ├──────────┼─────────────────────────────────────────────────────────────────────────┤ > │ Type │ CONTAINER_IMAGE │ > ├──────────┼─────────────────────────────────────────────────────────────────────────┤ > │ Required │ Yes │ > ├──────────┼─────────────────────────────────────────────────────────────────────────┤ > │ Value │ ghcr.io/chainloop-dev/chainloop/control-plane:latest │ > ├──────────┼─────────────────────────────────────────────────────────────────────────┤ > │ Digest │ sha256:1872ea6f4758de022e127de8b8062db2937195e2ebb30fef6af2271b156f5cd7 │ > └──────────┴─────────────────────────────────────────────────────────────────────────┘ > ``` > [!NOTE] > > Note that we have specified `--name container`, since that's the material name that the contract expects. You can learn more about the adding materials process in the [Adding Materials](/concepts/attestations#attestation-add) section. Now the Software Bill of Materials: ```bash theme={"dark"} chainloop att add --name sbom --value https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/quickstart/sbom.json ``` > [accordion] Command Output > > ```bash theme={"dark"} > ┌──────────┬─────────────────────────────────────────────────────────────────────────┐ > │ Name │ sbom │ > ├──────────┼─────────────────────────────────────────────────────────────────────────┤ > │ Type │ SBOM_CYCLONEDX_JSON │ > ├──────────┼─────────────────────────────────────────────────────────────────────────┤ > │ Required │ No │ > ├──────────┼─────────────────────────────────────────────────────────────────────────┤ > │ Value │ sbom.json │ > ├──────────┼─────────────────────────────────────────────────────────────────────────┤ > │ Digest │ sha256:f2888d10bcd93dc58431049a13acac1bc402231fb066e9e58fd986d91dec05f1 │ > └──────────┴─────────────────────────────────────────────────────────────────────────┘ > ``` And finally a vulnerability report created by grype in SARIF format ```bash theme={"dark"} chainloop att add --name vulnerabilities-report --value https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/quickstart/vulnerability-report.json ``` > [accordion] Command Output > > ```bash theme={"dark"} > ┌─────────────┬─────────────────────────────────────────────────────────────────────────┐ > │ Name │ vulnerabilities-report │ > ├─────────────┼─────────────────────────────────────────────────────────────────────────┤ > │ Type │ SARIF │ > ├─────────────┼─────────────────────────────────────────────────────────────────────────┤ > │ Required │ Yes │ > ├─────────────┼─────────────────────────────────────────────────────────────────────────┤ > │ Value │ vulnerability-report.json │ > ├─────────────┼─────────────────────────────────────────────────────────────────────────┤ > │ Digest │ sha256:ae9eda73fb0637921f052d65b719772a580eb8fd68c1bd6130ccdb67200e6c7a │ > ├─────────────┼─────────────────────────────────────────────────────────────────────────┤ > │ Annotations │ ------ │ > ├─────────────┼─────────────────────────────────────────────────────────────────────────┤ > │ │ chainloop.material.tool.name: grype │ > ├─────────────┼─────────────────────────────────────────────────────────────────────────┤ > │ │ chainloop.material.tool.version: 0.87.0 │ > └─────────────┴─────────────────────────────────────────────────────────────────────────┘ > ``` And now we can push the attestation: ```bash theme={"dark"} chainloop att push ``` > [tab] Web UI > > As before, we can see the details of our attestation in [Chainloop Platform](https://app.chainloop.dev/workflow-runs): > > ![Attestation details for the contract-compliant run in the Chainloop UI](https://mintcdn.com/chainloop/RdLV64E8QnfN95P9/get-started/img/adding-contract-2.png?fit=max\&auto=format\&n=RdLV64E8QnfN95P9\&q=85\&s=aea061598556d01c78703732b5b37186) > [tab] CLI > > ```bash theme={"dark"} > chainloop workflow run describe --id [my-wf-run-id] > ``` We have successfully created an attestation that matches the contract's expectations. ## Next steps In the next step, we'll learn how to run additional policies on the provided metadata # Set Policies expectations Source: https://docs.chainloop.dev/get-started/adding-policies In the previous step, we created a contract that set the expectation of a container image, an SBOM and a vulnerability report. Our Compliance team now wants to verify that those comply with the company's security and compliance criteria. We introduce [Policies](/concepts/policies), which are rules evaluated against materials and/or the whole attestation document. Policies can be grouped into [Policy Groups](/concepts/policy-groups) to be able to attach a set of policies to a workflow contract. ## Attaching policies to the contract > [tab] Web UI > > As we did before, let's ["Update our contract"](https://app.chainloop.dev/contracts/myproject-build-container-image/update), but this time the contract will contain policies and policy groups. > > ![A contract with policies attached, shown in the Chainloop UI](https://mintcdn.com/chainloop/L8kJ_PW999E2rmSI/get-started/img/adding-policies-1.png?fit=max\&auto=format\&n=L8kJ_PW999E2rmSI\&q=85\&s=04b36ff10b50135e45f399318578d2b6) > > ```yaml theme={"dark"} > apiVersion: chainloop.dev/v1 > kind: Contract > metadata: > name: myproject-build-container-image > spec: > materials: > - name: container > type: CONTAINER_IMAGE > - name: sbom > type: SBOM_CYCLONEDX_JSON > - name: vulnerabilities-report > type: SARIF > # We can attach policies from the provided library of policies https://app.chainloop.dev/policies > # or custom ones as explained here https://docs.chainloop.dev/concepts/policies > policies: > materials: > # artifact-signed checks that all OCI artifacts such as Container Images and Charts are signed > - ref: artifact-signed > # Make sure we are not using latest in the container image > - ref: artifact-tag-not-latest > # alternatively to policies you can apply policy groups > # https://docs.chainloop.dev/concepts/policy-groups#policy-groups > policyGroups: > - ref: slsa-checks > - ref: vulnerability-management > - ref: sbom-quality > with: > bannedComponents: log4j@2.14.1 > bannedLicenses: AGPL-1.0-only, AGPL-1.0-or-later, AGPL-3.0-only, AGPL-3.0-or-later > ``` > [tab] CLI > > ```bash theme={"dark"} > chainloop wf contract update --contract https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/quickstart/contract-with-policies.yaml > ``` > [tab] Chainloop OSS > > Use this command to create a contract from a remote location: > > ```bash theme={"dark"} > chainloop wf contract create --contract https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/quickstart/contract-with-policies-oss.yaml > ``` In this contract, we added two [policies](/concepts/policies) and three [policy groups](/concepts/policy-groups). * `artifact-signed` policy checks that all OCI artifacts (container images and Helm Charts) are properly signed with Cosign or Notary * `artifact-tag-not-latest` checks that the container image is not using the `latest` tag * `slsa-checks` is a policy group that makes sure the attestation is compliant with the SLSA framework * `vulnerability-management` is a policy group that makes sure the attestation is compliant with the vulnerability management policy * `sbom-quality` is a policy group that makes sure the attestation is compliant with the SBOM quality policy Chainloop comes with a set of built-in policies and policy groups. You can see them all in the ["Policies library"](https://app.chainloop.dev/policies). ![The built-in policies library in the Chainloop UI](https://mintcdn.com/chainloop/L8kJ_PW999E2rmSI/get-started/img/adding-policies-2.png?fit=max\&auto=format\&n=L8kJ_PW999E2rmSI\&q=85\&s=90a97a5104c1065cefb66dbe9f6c7711) > [!TIP] > > You can also create custom policies tailored to your needs. For more information about authoring policies, see this [guide](/guides/custom-policies). ## Evaluating policies Let's create an attestation and add our materials to see how policies are evaluated: **1. Initialize an attestation** ```bash theme={"dark"} chainloop att init --workflow build-container-image --project myproject --replace ``` **2. Add the container image** ```bash theme={"dark"} chainloop att add --name container --value ghcr.io/chainloop-dev/chainloop/control-plane ``` You'll notice how Chainloop will evaluate automatically as part of providing the container image. **3. Add the SBOM** ```bash theme={"dark"} chainloop att add --name sbom --value https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/quickstart/sbom.json ``` **4. Add the vulnerability report** ```bash theme={"dark"} chainloop att add --name vulnerabilities-report --value https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/quickstart/vulnerability-report.json ``` **5. Push the attestation** ```bash theme={"dark"} chainloop att push ``` ![CLI output showing policy evaluation results after pushing the attestation](https://mintcdn.com/chainloop/4m_Z_ZeRnSV7jb7V/get-started/img/adding-policies-push.png?fit=max\&auto=format\&n=4m_Z_ZeRnSV7jb7V\&q=85\&s=6f0649e88305299e6511dbcfc32e9900) We can see in the output that the policies have been evaluated and the only ones failing are: * the ones related to the build-environment, since we are running the attestation process locally. * the one that checks the container image is not using the `latest` tag. You can give it a try and attach an old SBOM or vulnerability report with vulnerabilities to see how the policies are evaluated and fail. ## Inspecting policy evaluations Now, the Chainloop platform gives us more insights into the status of the attestation. If we go to the [workflow run](https://app.chainloop.dev/workflow-runs) view, besides the usual attestation and material information, we can now see the result of those policy evaluations. ![Policy evaluation results shown in the workflow run view in the Chainloop UI](https://mintcdn.com/chainloop/L8kJ_PW999E2rmSI/get-started/img/adding-policies-3.png?fit=max\&auto=format\&n=L8kJ_PW999E2rmSI\&q=85\&s=283c259f4f4a784c656e944df5235d51) # Your First Attestation Source: https://docs.chainloop.dev/get-started/first-attestation An attestation is a unit of data sent to Chainloop. Users and CI systems use the Chainloop CLI to initialize an attestation process, add pieces of evidence to them, and "push" them to Chainloop service (the evidence store). In this step, we'll use the CLI locally to craft an attestation referencing a container image and a Software Bill of materials (SBOM). ## Authentication First, you need to authenticate the CLI to Chainloop service. Currently we support three authentication methods during the attestation process: **[user authentication](/reference/api-tokens#user-authentication)**, **[API token authentication](/reference/api-tokens#chainloop-api-tokens)**, and **[keyless authentication](/reference/api-tokens#keyless-oidc-authentication)**. For this step we’ll use user authentication, which can be done by running the following command: ```bash theme={"dark"} chainloop auth login ``` ## Initialize the Attestation process In a nutshell, an [attestation process](/concepts/attestations) has three steps: initialization, adding evidence, and storage. Refer to this section to learn more about the attestation lifecycle. We'll start by initializing an attestation. The attestation process requires the name of a workflow and a project to associate with it. Chainloop workflows represent any CI or process that you want to attest. Projects and project versions represent your software product lifecycle. ```bash theme={"dark"} chainloop att init --workflow build-container-image --project myproject ``` > [accordion] Command Output > > ```bash theme={"dark"} > ┌───────────────────────────┬──────────────────────────────────────────────┐ > │ Initialized At │ 13 May 25 09:44 UTC │ > ├───────────────────────────┼──────────────────────────────────────────────┤ > │ Attestation ID │ da728652-b646-41c1-a618-10d0392a102c │ > │ Organization │ gs-demo │ > │ Name │ build-container-image │ > │ Project │ myproject │ > │ Version │ none │ > │ Contract │ myproject-build-container-image (revision 1) │ > │ Timestamp Authority │ http://timestamp.digicert.com │ > │ Policy violation strategy │ ADVISORY │ > └───────────────────────────┴──────────────────────────────────────────────┘ > ``` ## Add Pieces of Evidence (a.k.a materials) Once the attestation process is initiated, we can attach as many pieces of evidence as we want. In this case, we are adding a reference to a container image. Many other material types are supported - check the [supported list](/concepts/material-types). ```bash theme={"dark"} chainloop att add --value ghcr.io/chainloop-dev/chainloop/control-plane ``` > [accordion] Command Output > > ```bash theme={"dark"} > INF material kind detected kind=CONTAINER_IMAGE > INF material added to attestation > ┌──────────┬─────────────────────────────────────────────────────────────────────────┐ > │ Name │ material-1741811432481645000 │ > ├──────────┼─────────────────────────────────────────────────────────────────────────┤ > │ Type │ CONTAINER_IMAGE │ > ├──────────┼─────────────────────────────────────────────────────────────────────────┤ > │ Required │ No │ > ├──────────┼─────────────────────────────────────────────────────────────────────────┤ > │ Value │ ghcr.io/chainloop-dev/chainloop/control-plane:latest │ > ├──────────┼─────────────────────────────────────────────────────────────────────────┤ > │ Digest │ sha256:9e0c48652ddf82e04dd1c7b8feb57b7300b74e1d39252830373f88c425fb9c63 │ > └──────────┴─────────────────────────────────────────────────────────────────────────┘ > ``` We just attached a reference to a container image, note how the digest was automatically resolved and injected. Next, let's add a Software Bill Of Materials (SBOM) by pointing to its remote URL (using the local file path works too). ```bash theme={"dark"} chainloop att add --value https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/quickstart/sbom.json ``` > [accordion] Command Output > > ```bash theme={"dark"} > ┌─────────────┬─────────────────────────────────────────────────────────────────────────┐ > │ Name │ material-1747129602198087000 │ > ├─────────────┼─────────────────────────────────────────────────────────────────────────┤ > │ Type │ SBOM_CYCLONEDX_JSON │ > ├─────────────┼─────────────────────────────────────────────────────────────────────────┤ > │ Required │ No │ > ├─────────────┼─────────────────────────────────────────────────────────────────────────┤ > │ Value │ sbom.json │ > ├─────────────┼─────────────────────────────────────────────────────────────────────────┤ > │ Digest │ sha256:f2888d10bcd93dc58431049a13acac1bc402231fb066e9e58fd986d91dec05f1 │ > ├─────────────┼─────────────────────────────────────────────────────────────────────────┤ > │ Annotations │ ------ │ > ├─────────────┼─────────────────────────────────────────────────────────────────────────┤ > │ │ chainloop.material.tool.name: syft │ > ├─────────────┼─────────────────────────────────────────────────────────────────────────┤ > │ │ chainloop.material.tool.version: 1.19.0 │ > └─────────────┴─────────────────────────────────────────────────────────────────────────┘ > ``` In this other case, the file's content will get uploaded to the [Content Addressable Storage](/concepts/cas-backend) of your choice and referenced in the attestation also by its digest. ## Sign and Store the Attestation Finally, we sign and push the attestation to Chainloop for permanent preservation using. ```bash theme={"dark"} chainloop att push ``` > [accordion] Command Output > > ```bash theme={"dark"} > INF push completed > ┌───────────────────────────┬─────────────────────────────────────────────────────────────────────────┐ > │ Initialized At │ 13 May 25 09:44 UTC │ > ├───────────────────────────┼─────────────────────────────────────────────────────────────────────────┤ > │ Attestation ID │ da728652-b646-41c1-a618-10d0392a102c │ > │ Digest │ sha256:99124501a003e3dc646711b6604d90f515b25e2cff866bce08f073bd8a734a39 │ > │ Organization │ gs-demo │ > │ Name │ build-container-image │ > │ Project │ myproject │ > │ Version │ none │ > │ Contract │ myproject-build-container-image (revision 1) │ > │ Timestamp Authority │ http://timestamp.digicert.com │ > │ Policy violation strategy │ ADVISORY │ > └───────────────────────────┴─────────────────────────────────────────────────────────────────────────┘ > ┌───────────────────────────────────────────────────────────────────────────────────────┐ > │ Materials │ > ├─────────────┬─────────────────────────────────────────────────────────────────────────┤ > │ Name │ material-1747129596943160000 │ > │ Type │ CONTAINER_IMAGE │ > │ Set │ Yes │ > │ Required │ No │ > │ Value │ ghcr.io/chainloop-dev/chainloop/control-plane:latest │ > │ Digest │ sha256:beffeac0c87b0412d3d578e1aacec67cc85121e6bb709dbae0db8e6b0e4bef6e │ > ├─────────────┼─────────────────────────────────────────────────────────────────────────┤ > │ Name │ material-1747129602198087000 │ > │ Type │ SBOM_CYCLONEDX_JSON │ > │ Set │ Yes │ > │ Required │ No │ > │ Value │ sbom.json │ > │ Digest │ sha256:f2888d10bcd93dc58431049a13acac1bc402231fb066e9e58fd986d91dec05f1 │ > │ Annotations │ ------ │ > │ │ chainloop.material.tool.name: syft │ > │ │ chainloop.material.tool.version: 1.19.0 │ > └─────────────┴─────────────────────────────────────────────────────────────────────────┘ > ``` ## Inspect the Attestation Congratulations! We've performed our first attestation, now we can head to the [workflow runs section](https://app.chainloop.dev/workflow-runs) in the platform UI and inspect the attestation we just created. ![Workflow runs view in the Chainloop UI showing the attestation we just created](https://mintcdn.com/chainloop/ojasLg-rqpG2qdaD/get-started/img/first-attestation-1.png?fit=max\&auto=format\&n=ojasLg-rqpG2qdaD\&q=85\&s=d0656de5c9336ed7fd00883a07f84214) The "Attestation" tab will provide the full attestation payload, consisting of an in-toto attestation with a Chainloop predicate. After a quick inspection, we can confirm that our pieces of evidence (the container image reference and the SBOM) are included in the attestation ![Attestation tab showing the in-toto payload with the container image and SBOM materials](https://mintcdn.com/chainloop/ojasLg-rqpG2qdaD/get-started/img/first-attestation-2.png?fit=max\&auto=format\&n=ojasLg-rqpG2qdaD\&q=85\&s=ff01caaccc7c31659cfd432d53fd4a6e) ## Verifying your attestation You can verify the integrity of the attestation by downloading the bundle (in Sigstore format) and running the verification command. ![Downloading the attestation bundle in Sigstore format from the Chainloop UI](https://mintcdn.com/chainloop/ojasLg-rqpG2qdaD/get-started/img/first-attestation-3.png?fit=max\&auto=format\&n=ojasLg-rqpG2qdaD\&q=85\&s=94ed3c8f69cd85d911e198e3bcc7b3c1) ```bash theme={"dark"} chainloop att verify -b bundle.json ``` Under the hood, the command is: * Checking the validity of the signing certificate included in the bundle, against the Chainloop trusted root * Checking the validity of the timestamp signature * Verifying the payload integrity (the in-toto attestation included in the bundle) and its signature. Visit the [signing reference](/reference/signing) for more information about signing and verification methods. # Next Steps Source: https://docs.chainloop.dev/get-started/next-steps This has been a quick tour of some of Chainloop's features, as next steps you can: > [card] [Connect your Storage backend](/concepts/cas-backend) > > Connect your storage backend to Chainloop to store your attestations and evidence. > [card] Connect your CI/CD pipeline > > Integrate Chainloop CLI in your CI/CD pipeline to perform attestations > [card] [Concepts](/concepts) > > Deep dive into the key concepts of Chainloop > [card] [Join us in Slack](https://join.slack.com/t/chainloop-community/shared_invite/zt-2k34dvx3r-u85uGP_KiLC6ic5Wy4aRnQ) > > Join our Community in Slack > [card] [Contact us](https://help.chainloop.dev) > > Contact us for support **Welcome to Chainloop!** # Overview Source: https://docs.chainloop.dev/get-started/overview Follow the steps in this Getting Started guide to learn how to onboard your organization into the Chainloop Platform and use most of the features end to end. We'll walk you through the following steps and it should not take more than 15 minutes to complete :) **1. Setup** Get access to Chainloop and install the CLI that will be used to send data to Chainloop. **2. Perform your first attestation** Perform your first [attestation](/concepts/attestations) by sending data to Chainloop. **3. Set metadata expectations** Set metadata requirements for your attestation by adding a [contract](/concepts/contracts). **4. Set policies expectations** Apply a [policies](/concepts/policies) and [policy groups](/concepts/policy-groups) to your data to ensure it complies with your organization's security and compliance requirements. **5. Attach compliance frameworks** Attach [compliance frameworks](/concepts/compliance-frameworks) to your project to ensure your attestation are evaluated against the right requirements. Ready? [Let's get started!](/get-started/setup) # Setup Source: https://docs.chainloop.dev/get-started/setup ## Get access to Chainloop This guide assumes that you have access to a [Chainloop Cloud](https://app.chainloop.dev/) account or to your own self-hosted Chainloop instance. If you don't, you can [sign up for Chainloop Cloud](https://app.chainloop.dev/login), or [contact us](https://chainloop.dev/contact) if you'd rather run Chainloop yourself. ## Install the Chainloop Command Line Interface (CLI) The Chainloop CLI is used to send pieces of evidence and attestations to the platform. During this getting started, we’ll use the CLI to perform attestations locally first, and later in a CI/CD system. To install the latest version for macOS, Linux, or Windows (using [WSL](https://learn.microsoft.com/en-us/windows/wsl/install)), choose one of the following installation methods. > [tab] Chainloop SaaS > > The install script comes pre-configured for Chainloop Cloud. > > ```bash theme={"dark"} > curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s > ``` > > > [accordion] Advanced Options > > > > you can install a specific version with > > > > ```bash theme={"dark"} > > curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s -- --version vx.x.x > > ``` > > > > and customize the install path (defaults to /usr/local/bin) > > > > ```bash theme={"dark"} > > curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s -- --path /my-path > > ``` > > > > To install without sudo, provide a user-accessible path: > > > > ```bash theme={"dark"} > > curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s -- --path ~/.local/bin > > ``` > > > > if [cosign](https://docs.sigstore.dev/quickstart/quickstart-cosign/) is present in your system, in addition to the checksum check, a signature verification will be performed. This behavior can be enforced via the --force-verification flag. > > > > ```bash theme={"dark"} > > curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s -- --force-verification > > ``` > > > > To install the open-source edition instead: > > > > ```bash theme={"dark"} > > curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s -- --oss > > ``` > [tab] On-Prem > > Two things have to be true before the CLI can talk to your instance: the binary is installed, and it points at your instance's endpoints. Installing from your own instance's domain does both in a single command. > > **1. Download and configure the CLI** > > Install from your own instance's domain and the CLI is automatically configured to talk to it — there is nothing else to set up. Copy the exact command from the Chainloop web UI — click the terminal (`>_`) icon in the top-right corner — or replace `YOUR_INSTANCE_DOMAIN` below with your own. > > ```bash theme={"dark"} > curl -sfL https://YOUR_INSTANCE_DOMAIN/cli/install.sh | bash -s > ``` > > ![Terminal icon in the top-right corner of the Chainloop web UI that opens the CLI installation dialog](https://mintcdn.com/chainloop/JFPirGFumFqtajI8/img/setup-cli-install.png?fit=max\&auto=format\&n=JFPirGFumFqtajI8\&q=85\&s=efda7dc904d93986d5d73b3c556c4ced) > > > [accordion] Advanced Options > > > > you can install a specific version with > > > > ```bash theme={"dark"} > > curl -sfL https://YOUR_INSTANCE_DOMAIN/cli/install.sh | bash -s -- --version vx.x.x > > ``` > > > > and customize the install path (defaults to /usr/local/bin) > > > > ```bash theme={"dark"} > > curl -sfL https://YOUR_INSTANCE_DOMAIN/cli/install.sh | bash -s -- --path /my-path > > ``` > > > > To install without sudo, provide a user-accessible path: > > > > ```bash theme={"dark"} > > curl -sfL https://YOUR_INSTANCE_DOMAIN/cli/install.sh | bash -s -- --path ~/.local/bin > > ``` > > > > if [cosign](https://docs.sigstore.dev/quickstart/quickstart-cosign/) is present in your system, in addition to the checksum check, a signature verification will be performed. This behavior can be enforced via the --force-verification flag. > > > > ```bash theme={"dark"} > > curl -sfL https://YOUR_INSTANCE_DOMAIN/cli/install.sh | bash -s -- --force-verification > > ``` > > > > To install the open-source edition instead: > > > > ```bash theme={"dark"} > > curl -sfL https://YOUR_INSTANCE_DOMAIN/cli/install.sh | bash -s -- --oss > > ``` > > **2. Point the CLI at your instance — only if you installed it another way** > > Skip this if you used the command above. Run it when the CLI came from somewhere else — `dl.chainloop.dev`, a package manager, or a **Manual Download** — or when you want to switch an existing install to a different instance. > > ```bash theme={"dark"} > chainloop config save \ > --control-plane my-controlplane.acme.com:443 \ > --artifact-cas cas.acme.com:443 \ > --platform my-platform.acme.com:443 > ``` > > Confirm which instance the CLI is talking to with `chainloop config view`. > [tab] Manual Download > > Download the CLI binary directly and verify its SHA256 against the published `checksums.txt`. Use this when piping a script into `bash` is not an option, or when binaries need to be validated out-of-band. > > > [accordion] v1.151.0 > > > > | OS | Architecture | Download | SHA256 | > > | - | - | - | - | > > | Linux | Intel (amd64) | [chainloop-linux-amd64](https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/v1.151.0/chainloop-linux-amd64) | `444f1d8d5fd0b127b5ded1ee3d8cd2c6284bccb31715e1bf67cb998a3dfcc6ee` | > > | Linux | ARM64 | [chainloop-linux-arm64](https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/v1.151.0/chainloop-linux-arm64) | `281187a1f86e0cf0fa420b137f6ec8f776fc641b417fe4cb7fd61ed5716e2b9d` | > > | macOS | Intel (amd64) | [chainloop-darwin-amd64](https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/v1.151.0/chainloop-darwin-amd64) | `5913f4551d31e2d273e3fd54cb7a77754013579c326b9651993b8ce18905cb4f` | > > | macOS | Apple Silicon | [chainloop-darwin-arm64](https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/v1.151.0/chainloop-darwin-arm64) | `aff54a4f2af7abfd5fd95795dd6138621c27bc8b3e774a576e0933f50c220f32` | > > | Windows | Intel (amd64) | [chainloop-windows-amd64.exe](https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/v1.151.0/chainloop-windows-amd64.exe) | `00a77b669dff1d289dd7f3ae311a72358bc83c4ad88459b3278b7a604cf4388c` | > > | Windows | ARM64 | [chainloop-windows-arm64.exe](https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/v1.151.0/chainloop-windows-arm64.exe) | `c3f8f11d46cf341bc38050331463bf28bcfbf4b2eabf3251479d2c1edf6a72ac` | > > > > Full manifest: [`checksums.txt`](https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/v1.151.0/checksums.txt) · [signature bundle](https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/v1.151.0/checksums.txt.sigstore.json) · [Release notes](/changelog) > > > > Download, verify, and install (linux/amd64 shown — swap `chainloop-linux-amd64` for another row from the table above): > > > > ```bash theme={"dark"} > > VERSION=v1.151.0 > > BASE=https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/$VERSION > > > > # Download the linux/amd64 binary and the checksum manifest > > curl -fsSLO "$BASE/chainloop-linux-amd64" > > curl -fsSLO "$BASE/checksums.txt" > > > > # Download the signature bundle and confirm the manifest itself came from Chainloop's release pipeline > > curl -fsSLO "$BASE/checksums.txt.sigstore.json" > > cosign verify-blob \ > > --bundle=checksums.txt.sigstore.json \ > > --certificate-oidc-issuer="https://token.actions.githubusercontent.com" \ > > --certificate-identity-regexp="^https://github.com/chainloop-dev/platform/\.github/workflows/release_backend\.yml@" \ > > checksums.txt > > > > # Verify the binary against the manifest > > sha256sum --ignore-missing -c checksums.txt > > # on macOS: shasum -a 256 --ignore-missing -c checksums.txt > > > > # Install it onto your PATH > > chmod +x chainloop-linux-amd64 > > sudo mv chainloop-linux-amd64 /usr/local/bin/chainloop > > ``` > > Unlike the install script, a manually downloaded binary isn't automatically configured for your instance. If you're on an **on-prem or dedicated instance**, point the CLI at your instance's endpoints (Chainloop SaaS users can skip this): > > ```bash theme={"dark"} > chainloop config save \ > --control-plane my-controlplane.acme.com:443 \ > --artifact-cas cas.acme.com:443 \ > --platform my-platform.acme.com:443 > ``` # How to collect AI agent configuration Source: https://docs.chainloop.dev/guides/ai-config-collector Automatically gather agentic development configuration files as attestation evidence > [!WARNING] > > This is a preview/beta feature. Further changes are expected. ## Overview Chainloop can automatically collect AI agent configuration files during the attestation process. This creates a `CHAINLOOP_AI_AGENT_CONFIG` material that captures how agentic development tools are configured in your project, providing visibility and policy enforcement over AI tool usage in your software delivery lifecycle. The collector currently supports **Claude** configuration files, with support for additional AI agents planned for future releases. ## How it works When you pass the `--collectors aiconfig` flag to `chainloop attestation init`, the CLI scans your project for known AI agent configuration files. The discovered files are bundled into a single `CHAINLOOP_AI_AGENT_CONFIG` material and automatically included in the attestation (no manual `attestation add` step is required). The material is named `ai-agent-config-` after the agent that was discovered — for example, `ai-agent-config-claude` for Claude configuration files. The collected material includes metadata about the agent, a hash of the overall configuration, timestamps, and details about each discovered file. ### Collected files The `aiconfig` collector currently looks for the following Claude configuration file patterns: | Pattern | Description | | - | - | | `CLAUDE.md` | Project-level instructions | | `.claude/CLAUDE.md` | Claude directory instructions | | `.claude/settings.json` | Claude settings | | `.mcp.json` | MCP server configuration | | `.claude/rules/*.md` | Custom rules | | `.claude/agents/*.md` | Agent definitions | | `.claude/commands/*.md` | Custom commands | | `.claude/skills/*/SKILL.md` | Skill definitions | > [!NOTE] > > Support for additional AI agents beyond Claude will be added in future releases. ### Material schema The `CHAINLOOP_AI_AGENT_CONFIG` material follows this structure: ```json theme={"dark"} { "schema_version": "0.1", "agent": { "name": "claude" }, "config_hash": "a0b3d547228b5b6e...", "captured_at": "2026-03-13T12:04:38Z", "config_files": [ { "path": ".claude/settings.json", "sha256": "95125ab3c3c69aa1...", "size": 258 ... } ] } ``` > [!WARNING] > > The schema version is `0.1` and may evolve as the feature matures. Always include a `valid_input` guard in your policies to handle schema changes gracefully. ## Enabling the collector **1. Initialize the attestation with the collector** Pass the `--collectors aiconfig` flag during attestation initialization: ```bash theme={"dark"} chainloop attestation init \ --workflow my-workflow \ --project my-project \ --collectors aiconfig ``` The CLI will scan for AI agent configuration files and report what it found. **2. Continue the attestation as normal** Add any other materials required by your contract and push: ```bash theme={"dark"} # Add other materials as required by your contract chainloop attestation add --value my-image:latest # Push the attestation — the AI config material is included automatically chainloop attestation push ``` > [!TIP] > > The collector works alongside any other materials defined in your contract. You can combine it with SBOMs, container images, and any other evidence types. ## Contract example While the collector automatically attaches the material, defining `CHAINLOOP_AI_AGENT_CONFIG` in your contract allows you to attach policies to it: ```yaml contract.yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Contract metadata: name: ai-config-example spec: materials: - type: CONTAINER_IMAGE name: my-app output: true - type: CHAINLOOP_AI_AGENT_CONFIG name: ai-agent-config-claude policies: materials: - ref: file://check-agent-name.yaml ``` > [!WARNING] > > The material name in the contract must match the name generated by the collector, `ai-agent-config-` (e.g. `ai-agent-config-claude`). If the names differ, Chainloop treats the contract material as never provided and the attestation fails with a "missing material" error. ## Built-in policies Chainloop ships with built-in [policies](/reference/policies) for AI agent configuration governance. Attach them to your contract to start enforcing best practices immediately — no custom Rego required: | Policy | What it checks | | - | - | | `ai-agent-present` | Detect AI agent presence via configuration materials or bot reviewers on PRs | | `ai-config-mcp-servers-allowed` | Ensure only approved MCP integrations are configured | | `ai-config-architecture-with-paths` | Verify instruction files describe project architecture | | `ai-config-code-style-specificity` | Require concrete, project-specific code style rules | | `ai-config-skill-descriptions-actionable` | Ensure skills describe what they do and when to use them | | `ai-config-subagent-descriptions-actionable` | Require subagent descriptions with trigger, scope, and purpose | | `ai-instructions-commands-documented` | Require exact, executable commands instead of vague instructions | | `ai-instructions-size-bounds` | Enforce line count limits on instruction and skill files | | `ai-instructions-verification-criteria` | Require verification mechanisms like tests or expected outputs | To use a built-in policy, reference it by name in your contract: ```yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Contract metadata: name: ai-governance spec: materials: - type: CHAINLOOP_AI_AGENT_CONFIG name: ai-agent-config-claude policies: materials: - ref: ai-config-mcp-servers-allowed with: allowed_servers: "github,slack,linear" ``` ## Writing a custom policy You can also write custom [Rego policies](/guides/custom-policies) to enforce rules on the collected AI configuration. The following example checks that the agent name is `claude` and produces a violation otherwise. ```yaml check-agent-name.yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Policy metadata: name: check-agent-name description: Validates that the AI agent configuration is from an approved agent spec: policies: - kind: CHAINLOOP_AI_AGENT_CONFIG embedded: | package main import rego.v1 valid_input if { input.agent.name } violations contains msg if { valid_input input.agent.name != "claude" msg := sprintf("AI agent '%s' is not approved. Only 'claude' is allowed.", [input.agent.name]) } ``` The policy works as follows: * `valid_input` checks that the material contains an `agent.name` field, skipping evaluation if the schema is unexpected. * The `violations` rule fires when `agent.name` is anything other than `"claude"`, producing a descriptive error message. This pattern can be extended to check other fields in the AI config, such as verifying specific config files are present or that the configuration hash matches an expected value. ## Testing the policy locally Use the [policy development CLI tools](/guides/custom-policies#getting-started-with-policy-development-cli-tools) to validate your policy before deploying it: ```bash theme={"dark"} # Lint the policy chainloop policy develop lint --policy check-agent-name.yaml # Evaluate against a sample AI config material chainloop policy develop eval \ --policy check-agent-name.yaml \ --material sample-ai-config.json \ --kind CHAINLOOP_AI_AGENT_CONFIG ``` ## Related resources * [Material Types](/concepts/material-types) — Full list of supported material types * [How to write custom policies](/guides/custom-policies) — In-depth guide on writing and testing Rego policies * [Policies concept](/concepts/policies) — How policies work in Chainloop # How to use the Chainloop MCP server Source: https://docs.chainloop.dev/guides/chainloop-mcp How to configure Chainloop MCP in your AI clients and agents Chainloop remote [Model Context Protocol](https://modelcontextprotocol.io/) (MCP) server is a new way to interact with Chainloop natively from your AI clients or agents. This allows you to **perform complex queries, craft compliance reports, or implement advanced agentic workflows**. All of this done securely, using the data already stored and [signed](/concepts/attestations) in Chainloop. ![info](https://mintcdn.com/chainloop/yJa2Iopv98OPg1FZ/guides/img/mcp-1.webp?fit=max\&auto=format\&n=yJa2Iopv98OPg1FZ\&q=85\&s=0e4593001faa9f41de83755d964e6126) ## How to connect to the MCP server > [!TIP] > > The MCP server is enabled by default. For self-hosted instances, use your instance's MCP endpoint in the configurations below. Connect your AI client to `https://api.app.chainloop.dev/mcp`. You can authenticate in two ways: * **User authentication:** Sign in with your Chainloop account through single sign-on (SSO). Your client opens a browser where you sign in and authorize access to Chainloop. * **API token:** Authenticate with a Chainloop [API token](/reference/api-tokens). The token's permissions determine what your client can access. Follow the instructions for your client below. Select **User Auth** or **API Token** where both options are available. ### Claude Code Run the command for your authentication method: > [tab] User Auth > > ```bash theme={"dark"} > claude mcp add --transport http chainloop https://api.app.chainloop.dev/mcp > ``` > > Open Claude Code. Run `/mcp`. Select **chainloop**. Complete the browser authentication. > [tab] API Token > > Set `CHAINLOOP_TOKEN` to your Chainloop [API token](/reference/api-tokens) before you run this command: > > ```bash theme={"dark"} > claude mcp add --transport http chainloop https://api.app.chainloop.dev/mcp --header "Authorization: Bearer ${CHAINLOOP_TOKEN}" > ``` > > Open Claude Code. Run `/mcp` to check the Chainloop connection. Example prompt: ```text theme={"dark"} Show me info about my Chainloop organization and projects ``` For installation scopes and other options, see the [Claude Code MCP documentation](https://code.claude.com/docs/en/mcp). ### Codex Run the commands for your authentication method: > [tab] User Auth > > ```bash theme={"dark"} > codex mcp add chainloop --url https://api.app.chainloop.dev/mcp > codex mcp login chainloop > ``` > > Complete the browser authentication when prompted. > [tab] API Token > > Set `CHAINLOOP_TOKEN` to your Chainloop [API token](/reference/api-tokens) in the environment that starts Codex. > > ```bash theme={"dark"} > codex mcp add chainloop --url https://api.app.chainloop.dev/mcp --bearer-token-env-var CHAINLOOP_TOKEN > ``` Open Codex. Run `/mcp` to check the Chainloop connection. Example prompt: ```text theme={"dark"} Show me info about my Chainloop organization and projects ``` For other configuration options, see the [OpenAI Docs for Codex MCP](https://developers.openai.com/codex/mcp/). ### GitHub Copilot CLI Run the command for your authentication method: > [tab] User Auth > > ```bash theme={"dark"} > copilot mcp add --transport http chainloop https://api.app.chainloop.dev/mcp > ``` > > Open Copilot CLI. Complete the browser authentication when prompted. > [tab] API Token > > Set `CHAINLOOP_TOKEN` to your Chainloop [API token](/reference/api-tokens) before you run this command: > > ```bash theme={"dark"} > copilot mcp add --transport http --header "Authorization: Bearer ${CHAINLOOP_TOKEN}" chainloop https://api.app.chainloop.dev/mcp > ``` The command saves the server in your user configuration, `~/.copilot/mcp-config.json`. Run `copilot mcp get chainloop` to check the configuration, or `/mcp` in Copilot CLI to check the Chainloop connection. Example prompt: ```text theme={"dark"} Show me info about my Chainloop organization and projects ``` For other configuration options, see the [GitHub Copilot CLI documentation](https://docs.github.com/copilot/how-tos/copilot-cli). ### Cursor Use the install button or add the configuration below to `.cursor/mcp.json` in your project root. For all projects, use `~/.cursor/mcp.json` instead. If the file already contains MCP servers, add `chainloop` to the existing `mcpServers` object. [![Install MCP Server](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=chainloop\&config=eyJ1cmwiOiJodHRwczovL2FwaS5hcHAuY2hhaW5sb29wLmRldi9tY3AifQ%3D%3D) > [tab] User Auth > > ```json theme={"dark"} > { > "mcpServers": { > "chainloop": { > "url": "https://api.app.chainloop.dev/mcp" > } > } > } > ``` > [tab] API Token > > ```json theme={"dark"} > { > "mcpServers": { > "chainloop": { > "url": "https://api.app.chainloop.dev/mcp", > "headers": { > "Authorization": "Bearer ${env:CHAINLOOP_TOKEN}" > } > } > } > } > ``` > > Set `CHAINLOOP_TOKEN` to your Chainloop [API token](/reference/api-tokens) in the environment that starts Cursor. Open **Customize** in Cursor's sidebar. Enable **chainloop**. For **User Auth**, complete the browser authentication when prompted. Example prompt: ```text theme={"dark"} Show me info about my Chainloop organization and projects ``` ![Chainloop MCP tools in Cursor](https://mintcdn.com/chainloop/yJa2Iopv98OPg1FZ/guides/img/mcp-3.png?fit=max\&auto=format\&n=yJa2Iopv98OPg1FZ\&q=85\&s=ca7b3b681d38cc522eddb016898a92ed) ### Visual Studio Code (GitHub Copilot) Enable GitHub Copilot Chat. Use the [install link](vscode:mcp/install?%7B%22name%22%3A%22chainloop%22%2C%22serverUrl%22%3A%22https%3A%2F%2Fapi.app.chainloop.dev%2Fmcp%22%7D) or add the server manually with these steps: 1. Open the Command Palette (**Cmd+Shift+P** on macOS or **Ctrl+Shift+P** on Windows/Linux). Run **MCP: Add Server**. 2. Select **HTTP (HTTP or Server-Sent Events)**. Enter `https://api.app.chainloop.dev/mcp`. 3. Name the server `chainloop`. Choose where to save the configuration. 4. Run **MCP: List Servers**. Select **chainloop**. Select **Start Server**. Complete the browser authentication when prompted. For self-hosted instances, use your instance's MCP endpoint. Open Copilot Chat in **Agent** mode. Enable the Chainloop tools. Example prompt: ```text theme={"dark"} Show me info about my Chainloop organization and projects ``` For other configuration options, see the [VS Code MCP documentation](https://code.visualstudio.com/docs/agent-customization/mcp-servers). ### OpenCode Add the following configuration to `opencode.json` in your project root. If the file already contains MCP servers, add `chainloop` to the existing `mcp` object. > [tab] User Auth > > ```json theme={"dark"} > { > "$schema": "https://opencode.ai/config.json", > "mcp": { > "chainloop": { > "type": "remote", > "url": "https://api.app.chainloop.dev/mcp" > } > } > } > ``` > > Run this command. Complete the browser authentication when prompted: > > ```bash theme={"dark"} > opencode mcp auth chainloop > ``` > [tab] API Token > > ```json theme={"dark"} > { > "$schema": "https://opencode.ai/config.json", > "mcp": { > "chainloop": { > "type": "remote", > "url": "https://api.app.chainloop.dev/mcp", > "oauth": false, > "headers": { > "Authorization": "Bearer {env:CHAINLOOP_TOKEN}" > } > } > } > } > ``` > > Set `CHAINLOOP_TOKEN` to your Chainloop [API token](/reference/api-tokens) in the environment that starts OpenCode. Open OpenCode in your project. Example prompt: ```text theme={"dark"} Show me info about my Chainloop organization and projects. Use the chainloop tools. ``` For other configuration options, see the [OpenCode MCP documentation](https://opencode.ai/docs/mcp-servers/). ### Claude Desktop [Claude Desktop](https://claude.ai/download) supports remote MCP servers through custom connectors. 1. Open **Connectors** in Claude. Select **Add custom connector**. For Team and Enterprise plans, an organization owner must add the connector first. 2. Name the connector `Chainloop`. Enter `https://api.app.chainloop.dev/mcp` as the remote MCP server URL. 3. Complete the connector setup. Select **Connect**. Complete the browser authentication to authorize access to Chainloop. 4. Enable the Chainloop connector from the **+** menu in your conversation. Example prompt: ```text theme={"dark"} Show me info about my Chainloop organization and projects ``` For [API token](/reference/api-tokens) authentication, open the connector's **Request headers**. Add an `Authorization` header with the value `Bearer `. For self-hosted instances, use your instance's MCP endpoint. It must be reachable from Anthropic's servers. See [Claude's custom connector documentation](https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp) for setup and network requirements. ### Claude.ai If you are using Claude.ai, follow the same [custom connector setup as Claude Desktop](#claude-desktop). ![info](https://mintcdn.com/chainloop/CxZ7jA9GjqcxH1w5/guides/img/claude-connector.png?fit=max\&auto=format\&n=CxZ7jA9GjqcxH1w5\&q=85\&s=f855f1bcc43bce7de25d8e2435130388) ### ChatGPT If you are using ChatGPT, you can connect to the Chainloop MCP server by creating a **custom connector** that points to `https://api.app.chainloop.dev/mcp`. # How to record AI coding sessions Source: https://docs.chainloop.dev/guides/chainloop-trace Record AI coding sessions with `chainloop trace` — across a repository or around a single agent run. > [!WARNING] > > This is a preview/beta feature. Further changes are expected. ## Overview `chainloop trace` records AI-assisted coding sessions and pushes them to Chainloop as signed [`CHAINLOOP_AI_CODING_SESSION`](/concepts/material-types) attestations. This guide walks through setting it up end to end. For the underlying model — what a session is, how it's correlated with PRs, and how the dashboard metrics are computed — see the [AI Coding Sessions](/concepts/ai-coding-sessions) concept page. The command is part of the open-source Chainloop CLI, so recording sessions and storing them as signed evidence works against any Chainloop instance — including the self-hosted [Evidence Store](/guides/deployment/oss). The policy library, the session UI, and pull request correlation come with the Enterprise Edition. See [Open Source vs. Enterprise Edition](#open-source-vs-enterprise-edition) at the end of this guide for the split. To keep sessions on your machine with no Chainloop instance at all, see [Record Sessions Locally](#record-sessions-locally). ![AI Coding Session](https://mintcdn.com/chainloop/SbHucyrWGe88eobH/guides/img/trace-diagram.png?fit=max\&auto=format\&n=SbHucyrWGe88eobH\&q=85\&s=567281e8c8e62802f0dc8dfbe81cc1be) ## Two Ways to Record | | [In your repository](#record-sessions-in-your-repository) | [A single agent run](#record-a-single-agent-run) | | - | - | - | | **What it records** | Every AI session in the repository, pushed on `git push` | One agent execution, attested when the command exits | | **What it leaves behind** | Committed configuration and installed hooks | Nothing — every hook and artifact is removed on exit | | **Best for** | Developer machines and shared repositories | CI jobs, containers, and sandboxed agent runs | Most teams want the first one: set a repository up once and every session in it is recorded from then on. Reach for the second when you want the record of what an agent did without leaving anything in the repository — or when there's no repository at all. ## Prerequisites * **Latest Chainloop CLI**, authenticated against your Chainloop instance: ```bash theme={"dark"} curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s chainloop auth login ``` [Local mode](#record-sessions-locally) needs the CLI but no login. `chainloop trace` ships in the open-source CLI, so either edition works — add `-- --oss` or `-- --ee` to the install command to pick one explicitly. See [CLI installation](/cli/installation) for the full set of options. Both user tokens and service accounts work. * A [Chainloop project](/concepts/projects-versions) to associate sessions with — `chainloop trace init` offers to create one if you don't have it yet. * A Git repository with one of the supported agents configured: **Claude Code**, **Codex**, **GitHub Copilot**, **Cursor**, or **OpenCode**. > [!NOTE] > > `chainloop trace` supports **Claude Code**, **Codex**, **GitHub Copilot**, and **OpenCode** sessions with full metrics (token usage, cost, tool counts, and conversation metrics). For GitHub Copilot, this covers Copilot CLI and the Copilot agent in VS Code. OpenCode reports its own cost. For the other agents, the cost is an estimate from public API prices, not your subscription bill. Cursor support is experimental and incomplete (no usage metrics or cost). Support for additional AI coding agents is planned. ## Record Sessions in Your Repository Run this once from your repository root: ```bash theme={"dark"} chainloop trace init ``` It asks which organization and project the sessions belong to, and which AI agents to record — offering whatever `.chainloop.yml` already holds, so pressing Enter in an already-configured repository keeps it. You need to be logged in: the command creates the Chainloop workflow the attestations target before it writes anything to the repository. When it finishes, the repository has: * **`.chainloop.yml`** at the root, holding the organization, project, and workflow that every push reads. * **The hook configuration for each agent you picked** — `.claude/settings.json`, `.codex/hooks.json`, `.github/hooks/chainloop-trace.json` (GitHub Copilot), `.cursor/hooks.json`, and/or `.opencode/plugins/chainloop-trace.ts`. * **Git hooks** that build and push the attestation on `git push`. Passing a flag skips the matching question. For example, use `chainloop trace init --codex` to install Codex hooks. If you use Codex, review and trust the installed hooks in Codex before starting work. Use `--copilot` for GitHub Copilot: Copilot CLI and the Copilot agent in VS Code both read the hooks in `.github/hooks/`. Copilot CLI runs the repository hooks only in a trusted folder, so trust the repository when Copilot asks, or pass `--trust-folder` in prompt mode. See the [CLI reference](/cli/reference) for the full list. > [!TIP] > > If you already have git hooks in place, `chainloop trace` backs them up automatically and chains them — your existing hooks continue to run as before. > [!NOTE] > > **Commit `.chainloop.yml` and the agent configuration files.** `chainloop trace init` runs once per repository. Contributors don't run it. After you commit those files, they work as usual, and the first traced session in their clone installs the git hooks. They only need the [Chainloop CLI](#prerequisites) installed and authenticated. ### Work as Usual Once initialized, there's nothing else to do. Write code with your agent, commit, and push. ```bash theme={"dark"} # Start an agent session and work on your code # ... make changes, commit ... git push origin my-branch # pre-push hook automatically creates the attestation ``` The pre-push hook only creates attestations for commits linked to an AI session. Regular (non-AI-assisted) commits pass through without overhead. ## Record a Single Agent Run > [!WARNING] > > This mode is newer than repository recording and still taking shape — expect its flags and output to change. `chainloop trace init` sets a repository up once and records every session in it. `chainloop trace run` does the opposite: it wraps a single agent invocation, records that one run, and leaves nothing behind. ```bash theme={"dark"} chainloop trace run \ --org my-org \ --project my-project \ --workflow ai-coding-session \ -- claude -p "fix the failing tests" ``` The command installs the agent hooks, runs the wrapped command, and attests the session once it exits successfully. On the way out it removes every hook and local artifact and restores any agent settings file it touched, so nothing leaks into the next run. If the wrapped command fails, no attestation is pushed and the command's exit code is propagated — which makes `trace run` safe to drop into a CI step. It ignores `.chainloop.yml` entirely, so the attestation identity comes from the flags: `--org`, `--project`, and `--workflow` are required on every invocation. Agent selection works the same way as in `trace init`, and `--version` pins the project version. Two things make this the mode for recording *agents* rather than *repositories*: * **It doesn't need a git repository.** Run it in a scratch directory or a sandbox and the session is still recorded, without commit attribution. * **It records the session even when it produced no commits.** A run that only read code, ran tests, or answered a question is attested like any other. > [!TIP] > > Running agents in [Docker Sandboxes](https://docs.docker.com/ai/sandboxes/)? Chainloop publishes a sandbox kit that wires this up for you, so a session inside the sandbox is recorded as signed evidence — see [How to record AI coding sessions in a Docker Sandbox](/guides/docker-sandboxes). | | `trace init` | `trace run` | | - | - | - | | **Configuration** | Reads and writes `.chainloop.yml` | Ignores `.chainloop.yml`; identity comes from flags | | **Required flags** | None — it asks | `--org`, `--project`, and `--workflow`, every time | | **Trigger** | `git push` (pre-push hook) | The wrapped command exiting successfully | | **Git repository** | Required | Optional — without one, sessions carry no commit attribution | | **Commits** | Attests commits linked to a session | Attests the session even when it produced no commits | | **On failure** | Push is warned about, or blocked with `traceRequired` | No attestation; the wrapped command's exit code is returned | > [!NOTE] > > **Everything up to this point works on any Chainloop instance**, including the open-source [Evidence Store](/guides/deployment/oss). The session UI, pull request correlation, and the AI Coding dashboard that follow are Enterprise Edition features — see [Open Source vs. Enterprise Edition](#open-source-vs-enterprise-edition). ## Capture the Context of a Session Specs, tasks, skills and screenshots are the inputs of the code. `chainloop trace` records them with each session, so a reviewer can compare what the agent was asked to build with what it built. Chainloop fetches nothing. The agent writes the text of each source, so there are no connectors or credentials to set up. * **Specs, tasks and plans.** At session start, `chainloop trace` tells the agent to capture what the session works from. That is a ticket, a design document, a spec file, or a plan that you approved in the plan mode of the agent. The agent writes one file per source into `.chainloop/specs//` and tells you in one line when it captures a file. At each prompt, `chainloop trace` reminds the agent to capture a new or changed source. The agent does not capture an agreement in the chat as a plan. * **Role, title and description.** The agent gives each source a role (`task`, `spec`, `plan` or `reference`), a title and a description. The platform uses them to group and name the sources. * **Local files.** When a source is a file on disk, the agent records only its path. Each push reads the file and records its current content, so the evidence never holds a stale copy. * **Skills.** The evidence lists the skills that the agent loaded, with the `SKILL.md` and a `.tar.gz` package of the skill folder as it ran. * **Pasted images.** `chainloop trace` stores each distinct image that you paste into the session once. On `git push`, the CLI redacts the sources, stores them as evidence of the session and signs them with the transcript, so an edit to a source breaks the signature. The CLI also replaces exact copies of a source or an image in the transcript with a pointer to its evidence, so the evidence holds each one once. The `.chainloop/specs/` folder ignores itself, so git never commits a captured source, and the session end deletes the folder. > [!NOTE] > > Spec capture works with every supported agent. `chainloop trace` records skills for Claude Code, Codex, GitHub Copilot and OpenCode, not yet for Cursor. Transcript pointers and pasted images work for Claude Code, Codex and GitHub Copilot. The [AI Session Score](/reference/ai-score#grading-against-the-spec) uses the captured specs to grade the session against what it was asked to do. ## Visualize AI Coding Sessions Once a session has been pushed, you can inspect it directly in the Chainloop Web UI. Navigate to the workflow run that contains the `CHAINLOOP_AI_CODING_SESSION` material. ### Rendered View Chainloop renders a structured summary of the session — model usage, token consumption, estimated cost, tool invocations, code changes, and per-line attribution. ![AI Coding Session material view showing session metadata, token usage, cost, git context, code changes, and tool invocations](https://mintcdn.com/chainloop/QI6jzORrpaTyj03_/guides/img/trace-rendered.png?fit=max\&auto=format\&n=QI6jzORrpaTyj03_\&q=85\&s=a33c1e22dee578beac453fe81aeae4ea) The attribution breakdown shows which files were modified by AI vs human, with exact line ranges and aggregate statistics. ![AI coding session showing per-file code attribution with AI vs human line breakdown](https://mintcdn.com/chainloop/QI6jzORrpaTyj03_/guides/img/trace-attribution.png?fit=max\&auto=format\&n=QI6jzORrpaTyj03_\&q=85\&s=60e04ecf484c7d67872b3fabc12788e9) ### Context Tab The session page in the AI Coding section has a **Context** tab. A list on the left groups the captured sources (tasks, specs and plans, attachments, and skills) next to the full transcript, and a detail pane shows each one. The pane renders Markdown, Mermaid diagrams and images. In the transcript, each captured source and image appears where it entered the conversation. ### Lineage Tab The **Lineage** tab follows the code of the session to production. It shows the pull requests and their scans, the workflows on the merge commit, the artifacts they produced, their deployments, and their findings. See [Session Lineage](/concepts/ai-coding-sessions#session-lineage) for what each column shows. ### Raw View Switch to the raw view to see the full JSON evidence as captured by the hooks. This is useful for debugging policies or understanding the exact data available for Rego evaluation. ![AI Coding Session raw JSON view showing the full evidence schema](https://mintcdn.com/chainloop/QI6jzORrpaTyj03_/guides/img/trace-raw.png?fit=max\&auto=format\&n=QI6jzORrpaTyj03_\&q=85\&s=c9bfe44f43f96f040666d1cd9ace2841) > [!TIP] > > Inspect any `CHAINLOOP_AI_CODING_SESSION` material the same way you inspect other evidence types — click on the material in the workflow run details to toggle between rendered and raw views. ## Pull Request Correlation When a pull request or merge request is opened or updated, Chainloop posts a summary comment listing every AI coding session that contributed to it and, when policies fire, a `Chainloop AI Policies` result on the head commit. Both require the repository to be connected to Chainloop. > [!NOTE] > > **GitHub and GitLab are both supported.** The summary comment is posted the same way on a GitHub pull request and a GitLab merge request. The policy result differs by provider: GitHub gets a [check run](#chainloop-ai-policies-check-run) carrying the full rendered summary, while GitLab — which has no check-run equivalent — gets a commit status named `Chainloop AI Policies` with a one-line description and a link to the details in Chainloop. ### Connect Your Repository Connecting is a one-time, organization-level action: **GitHub** installs the Chainloop GitHub App, **GitLab** registers a connection with an access token. See [Connect GitHub & GitLab](/guides/connect-repository) for both flows. If your repository is already enrolled — for [keyless attestations](/guides/github-keyless), for example — you're done. ![Installing the Chainloop GitHub App on a repository](https://mintcdn.com/chainloop/5EbdCXlXGjX3gMNX/guides/img/github.png?fit=max\&auto=format\&n=5EbdCXlXGjX3gMNX\&q=85\&s=144d1f6812dc6e3b899e5eda460e005b) On GitHub, the app requests these permissions: | Scope | Why | | - | - | | **Metadata: Read** | Identify the repository (default GitHub App requirement) | | **Code: Read & Write** | Read commit metadata to correlate sessions to PR commits | | **Pull requests: Read & Write** | Post and update the AI session summary comment on PRs | | **Checks: Read & Write** | Publish the `Chainloop AI Policies` check run | ![Chainloop GitHub App install screen showing repository selection and the requested permissions: read access to metadata, and read and write access to checks, code, and pull requests](https://mintcdn.com/chainloop/te001xgGSXW6YKVE/guides/img/trace-github-app-permissions.png?fit=max\&auto=format\&n=te001xgGSXW6YKVE\&q=85\&s=0eb85c3e616113fc39be5cf36c4f364a) Subscribed webhook events: **Pull request** — opens, syncs, and reopens trigger correlation. On GitLab, the equivalent merge request events do the same. > [!NOTE] > > Chainloop stores only repository metadata (ID and name), not your repository code. Once the provider is connected, link the repository from the project that receives the attestations — it's the **Connect a repository** step of the [Create Project wizard](/get-started/projects/create-project), and a project created without one can be linked later. Attestations from repositories that aren't linked to a project are still accepted, but **correlation won't work** — Chainloop can't tell which project the pull or merge request belongs to, so no summary comment, policy result, or dashboard PR metrics will appear. ### Summary Comment ![Chainloop AI session summary comment on a GitHub pull request](https://mintcdn.com/chainloop/TUV3mMu_aaqxPLww/guides/img/trace-pr-summary.png?fit=max\&auto=format\&n=TUV3mMu_aaqxPLww\&q=85\&s=e447ae0d1c5ad3d3fa19e1f7f7bcf9e1) Two parts: * **Aggregate table** — one row per contributing session, with the agent and version, model, [AI Session Score](/reference/ai-score), attribution %, files touched, lines added/removed, tokens in/out, estimated cost, and session duration. Attribution % counts both added and removed lines. * **Per-session file breakdown** (collapsible) — status, attribution label, file path linked to the blob at the PR head, and lines added/removed for each file the session modified. Each session block also includes its [AI Session Score](/reference/ai-score) breakdown — per-criterion scores and the findings reviewers should focus on. ### `Chainloop AI Policies` Check Run When you've attached policies to `CHAINLOOP_AI_CODING_SESSION` (see [Applying policies](#applying-policies) below), Chainloop publishes a check run on the PR head commit — or, on GitLab, a commit status of the same name: * `failure` — fails when **either** of the following is true: * **Policy violations in the aggregated session** — any attestation generated during the same AI session has a policy violation. Sessions are aggregated by their commit-message trailer, so a single failing material in any of the session's attestations fails the check. * **Missing session attestations** — a session referenced in a commit's trailer can't be found in Chainloop (typically because its attestation push failed for that session). * `neutral` — policy data couldn't be evaluated. GitLab has no neutral state, so this surfaces as a `skipped` commit status. * `success` — every referenced session is present and every aggregated session passes its policies. ![GitHub PR checks panel with the Chainloop AI Policies check run failing — 1 AI session, 1 policy violation](https://mintcdn.com/chainloop/te001xgGSXW6YKVE/guides/img/trace-pr-check-run.png?fit=max\&auto=format\&n=te001xgGSXW6YKVE\&q=85\&s=3ba0e9ac29eb5713cbb89df181a8adec) This makes AI policy compliance a first-class merge gate. On GitHub it requires the `checks:write` permission; on GitLab, a connection token that can write commit statuses. ### When It Runs * The summary is posted when the PR is opened and re-evaluated every time new commits are pushed. * Closed or merged PRs are not updated — the last posted summary stays in place. * No comment is posted when none of the PR's commits match a stored AI coding session. ## Use the AI Coding Dashboard For an organization-wide view across every recorded session, open **Dashboards → AI Coding** in the sidebar (`/u//dashboards/ai`). The dashboard aggregates every `CHAINLOOP_AI_CODING_SESSION` attestation pushed to the org. ![AI Coding dashboard showing total sessions, active users, AI-assisted PRs, AI-authored code share, top 10 users, and model breakdown](https://mintcdn.com/chainloop/te001xgGSXW6YKVE/guides/img/trace-dashboard.png?fit=max\&auto=format\&n=te001xgGSXW6YKVE\&q=85\&s=a4dc9caab9ea7a7e3a3345982ee593e1) Use the time-range selector in the top right to switch between **24 hours**, **7 days**, **30 days**, and **3 months**. Each card shows the delta vs. the previous period of the same length. The cards on the dashboard are: **Total Sessions**, **Active Users**, **AI-assisted PRs**, **AI-authored Code**, **Top Users**, and **Model Breakdown**. What each card shows and which backend metric drives it is documented in [AI Coding Sessions → AI Sessions Dashboard Metrics](/concepts/ai-coding-sessions#ai-sessions-dashboard-metrics). > [!NOTE] > > The dashboard only includes sessions that have been pushed as attestations. If a developer hasn't set up recording yet, their work won't appear here. ## Applying Policies Define `CHAINLOOP_AI_CODING_SESSION` in your contract to attach policies to recorded sessions. Chainloop ships a curated contract of [built-in policies](/concepts/ai-coding-sessions#built-in-policies) you can opt into with the Enterprise Edition; the examples below show three custom Rego policies you can write yourself, which work on any Chainloop instance since the policy engine is open source. ```yaml contract.yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Contract metadata: name: ai-session-governance spec: materials: - type: CHAINLOOP_AI_CODING_SESSION name: ai-coding-session policies: materials: - ref: file://check-approved-models.yaml ``` ### Example: Restrict to Approved Models ```yaml check-approved-models.yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Policy metadata: name: check-approved-models description: Ensure AI coding sessions only use approved models spec: policies: - kind: CHAINLOOP_AI_CODING_SESSION embedded: | package main import rego.v1 valid_input if { input.data.model.models_used } approved_models := {"claude-opus-4-6", "claude-sonnet-4-6"} violations contains msg if { valid_input some model in input.data.model.models_used not model in approved_models msg := sprintf("Model '%s' is not approved for AI coding sessions.", [model]) } ``` ### Example: Enforce a Token Budget ```yaml check-token-budget.yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Policy metadata: name: check-token-budget description: Flag sessions that exceed a token budget spec: policies: - kind: CHAINLOOP_AI_CODING_SESSION embedded: | package main import rego.v1 valid_input if { input.data.usage.total_tokens } max_tokens := 500000 violations contains msg if { valid_input input.data.usage.total_tokens > max_tokens msg := sprintf("Session used %d tokens, exceeding the %d token budget.", [input.data.usage.total_tokens, max_tokens]) } ``` ### Example: Limit the AI-Authored Code Ratio ```yaml check-ai-code-ratio.yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Policy metadata: name: check-ai-code-ratio description: Flag sessions where AI-authored code exceeds a threshold spec: policies: - kind: CHAINLOOP_AI_CODING_SESSION embedded: | package main import rego.v1 valid_input if { input.data.code_changes.lines_added > 0 } max_ai_ratio := 80 violations contains msg if { valid_input total := input.data.code_changes.lines_added ai := input.data.code_changes.ai_lines_added ratio := (ai * 100) / total ratio > max_ai_ratio msg := sprintf("AI authored %d%% of added lines (%d/%d), exceeding the %d%% threshold.", [ratio, ai, total, max_ai_ratio]) } ``` ## Enforcing Chainloop Trace Recording AI sessions is opt-in by default — if a developer hasn't set it up, or an attestation push fails for any reason, the work simply doesn't appear in Chainloop. When AI traceability is mandatory, you can enforce it at three different points: locally on push, on the attestation itself, and on the pull request. ### Block the push when attestations fail Set `traceRequired: true` in `.chainloop.yml` (or pass `--require-trace` to `chainloop trace init`) to make the pre-push hook fail the `git push` if a session attestation can't be produced — for example, when the developer isn't authenticated, the network is unreachable, or the Chainloop instance rejects the attestation. Without it, the same conditions only emit a warning and the push proceeds. In [local mode](#record-sessions-locally), it blocks the push when the session can't be stored on disk. ```yaml .chainloop.yml theme={"dark"} projectName: my-project organization: acme-corp traceRequired: true ``` > [!NOTE] > > `traceRequired` replaces `requireTrace`, which still works in an older `.chainloop.yml` but is deprecated. Both `.chainloop.yml` and `.chainloop.yaml` are accepted. If both exist, `.chainloop.yml` wins. Commit this file to the repository so your team shares one source of truth. ### Gate the attestation with policies Attach policies to `CHAINLOOP_AI_CODING_SESSION` and enable [control gates](/concepts/control-gates) at the org level (or per policy). When a gated policy fails, the attestation push returns a non-zero exit code, which propagates to the pre-push hook and **interrupts the `git push`** — the developer can't push code that violates AI policy. With the Enterprise Edition, pair this with the [built-in policies](/concepts/ai-coding-sessions#built-in-policies) for signed commits, agent allowlists, dangerous-command detection, and secret scanning; on an open-source instance, attach your own Rego or WASM policies instead. ### Detect missing sessions on the pull request This last mechanism needs the Enterprise Edition and a connected repository. `chainloop trace` adds a trailer to every commit produced by an AI session, listing the session IDs that contributed to that commit. When Chainloop correlates a pull or merge request, it compares those trailers against the session attestations it holds, and the [`Chainloop AI Policies` result](#chainloop-ai-policies-check-run) fails when any referenced session is missing — typically because its push failed and was never retried. This catches the case where `traceRequired` is off and a developer's attestation silently dropped. A developer who deliberately wants to bypass detection on a specific PR can add a `skip-ai-session` label to the pull or merge request; Chainloop will skip the missing-session check for it. Use this sparingly — it's an explicit opt-out that's visible on the PR and reviewable. ## Removing Tracing To uninstall all hooks and clean up local state: ```bash theme={"dark"} chainloop trace uninstall ``` This removes the Git hooks, the installed agent hooks (for example the Claude Code hooks in `.claude/settings.json`), and the `.git/chainloop-trace/` directory. It keeps the `local-sessions` folder that [local mode](#record-sessions-locally) writes. If existing hooks were backed up during installation, they're restored. Pass `--yes` to skip the confirmation prompt. ## Troubleshooting If hooks aren't producing attestations or the dashboard looks empty, work through this list before opening a support ticket: * **Use the latest Chainloop CLI** and confirm it's authenticated against your Chainloop instance: ```bash theme={"dark"} curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s chainloop auth login ``` Both user tokens and service accounts work. * **Cursor support is experimental and incomplete** — for example, no usage metrics or cost data are captured. Use Claude Code if you need full coverage. * **GitHub Copilot records nothing** — Copilot CLI skips the repository hooks in a folder that is not trusted. Trust the repository when Copilot asks. The older VS Code agent that GitHub calls the "Local" harness is not supported. * **Confirm the git hooks fire on `git push`** — you should see `chainloop trace` log lines in the push output. If you don't, re-run `chainloop trace init` from the repository root. * **Run from the repository root** — Claude Code hooks don't trigger when you launch the agent from a sub-folder of the repository. * **Check the hook log** at `.git/chainloop-trace/log.txt` — it records every hook invocation with full detail and is the first place to look when something silent breaks. * **PR comment warns about missing sessions** — when a commit's trailer references a session that wasn't registered in Chainloop, the PR comment shows a "missing sessions" warning and the `Chainloop AI Policies` check run lists the offending session IDs (the actual agent session IDs). Grep for those IDs in `.git/chainloop-trace/log.txt` on the developer's machine to see why the attestation push didn't land — typically auth failure, network error, or a rejected attestation. ## Open Source vs. Enterprise Edition `chainloop trace` itself is open source. Against an open-source [Evidence Store](/guides/deployment/oss), a recorded session is a signed piece of evidence like any other: it's captured with full metrics and per-line attribution, redacted of secrets, stored in your own CAS backend, and retrievable through the CLI and API. You can download it, evaluate it with your own [Rego or WASM policies](/guides/custom-policies), and gate the `git push` on the result with [control gates](/concepts/control-gates). The Enterprise Edition adds what happens once the evidence has landed: * **A curated policy library.** Instead of only the Rego you write yourself, you get Chainloop's [built-in policies](/concepts/ai-coding-sessions#built-in-policies) for signed commits, agent allowlists, dangerous-command detection, and secret scanning. * **The session UI and the organization-wide view.** [Rendered session summaries](#visualize-ai-coding-sessions) with attribution drill-down, [session lineage](#lineage-tab) to production, and the [AI Coding dashboard](#use-the-ai-coding-dashboard) aggregating every session across the org. * **[Pull request correlation](#pull-request-correlation).** The summary comment, the `Chainloop AI Policies` result on the head commit, missing-session detection, and the [AI Session Score](/reference/ai-score). | | Open Source | Enterprise Edition | | - | :-: | :-: | | Recording sessions, attribution, redaction, signed evidence | ✅ | ✅ | | Your own Rego and WASM policies, and control gates on push | ✅ | ✅ | | Curated [policy library](/concepts/ai-coding-sessions#built-in-policies) | — | ✅ | | Session UI, [session lineage](#lineage-tab), and [AI Coding dashboard](#use-the-ai-coding-dashboard) | — | ✅ | | [Pull request correlation](#pull-request-correlation) and [AI Session Score](/reference/ai-score) | — | ✅ | Enterprise Edition features are available on [paid plans](https://chainloop.dev/pricing). For the full capability-by-capability breakdown, see [Open Source vs. Platform](/concepts/ai-coding-sessions#open-source-vs-platform). ## Record Sessions Locally Everything above sends sessions to a Chainloop instance. Local mode keeps them on your machine instead: no control plane, no account, no login, and no workflow. Use it to evaluate `chainloop trace`, on a machine that can't reach Chainloop, or when session data must not leave the machine. The agent still calls its model over the network as usual. Only the traffic to Chainloop stops. ### Set Up a Repository in Local Mode Run this once from your repository root: ```bash theme={"dark"} chainloop trace init --local ``` It installs the same agent and git hooks as `chainloop trace init`, but it creates no workflow and doesn't connect to a control plane. It writes the storage mode to `.chainloop.yml`: ```yaml .chainloop.yml theme={"dark"} traceStorage: LOCAL tracePath: .git/chainloop-trace # optional, this is the default ``` `tracePath` is optional. It defaults to `.git/chainloop-trace`. Commit `.chainloop.yml` and the agent configuration files. The storage mode is a repository setting, so every clone records sessions locally. As in any traced repository, contributors don't run `trace init`, and in local mode they don't log in either. ### Push as Usual Start the agent, commit, and push. When a session starts, `chainloop trace` tells the agent that the session is in local mode and where it will be stored. On `git push`, the pre-push hook builds the same evidence that a push to Chainloop uploads. It redacts secrets and writes the evidence to disk instead of sending an attestation: ``` INF AI coding session evidence stored at /.git/chainloop-trace/local-sessions sessions=1 ``` Each session gets its own folder under `local-sessions`: ``` .git/chainloop-trace/local-sessions//statement.json .git/chainloop-trace/local-sessions//evidence/sha256- ``` * **`statement.json`** is the in-toto statement a push would sign, with the Chainloop predicate (`chainloop.dev/attestation/v0.2`). It lists every material by name, type, and digest, so you can read the whole session from it. * **`evidence/`** holds each material, named by its content digest, as the [CAS backend](/concepts/cas-backend) addresses them. The materials are the session record, the transcript, spec sources, skills, and pasted images. ### Record a Single Run Locally `chainloop trace run` has the same mode. With `--local`, it rejects `--org`, `--project`, and `--workflow`. It writes the session to disk when the command exits, also when the command fails: ```bash theme={"dark"} chainloop trace run --local -- claude -p "fix the failing tests" ``` `trace run` doesn't read `traceStorage` from `.chainloop.yml`, so `--local` is always explicit. The one value it does take from `.chainloop.yml` is `tracePath`. ### What Local Mode Doesn't Do * **Sessions aren't signed.** `statement.json` has no envelope and no signature, so it is not an attestation and nothing can verify it. Treat it as a working copy of the session, not as proof. * **No policies, UI, or pull request correlation.** Those run on a Chainloop instance. Set `traceStorage` back to `CONTROL_PLANE` (or remove it) to attest sessions to an [open-source](/guides/deployment/oss) or Enterprise instance. * **Pushes aren't blocked by default.** If a session can't be stored, the push proceeds with a warning, unless [`traceRequired`](#block-the-push-when-attestations-fail) is set. Secret redaction is on by default, as in a push. Set `CHAINLOOP_TRACE_NO_REDACT` to turn it off. The stored files can then hold secrets, so use it only for a trusted local store. ## Related Resources * [AI Coding Sessions](/concepts/ai-coding-sessions) — what sessions are, how PR correlation works, and what each dashboard card means * [Open Source vs. Platform](/concepts/ai-coding-sessions#open-source-vs-platform) — which trace capabilities need a paid plan * [AI Session Score](/reference/ai-score) — per-PR confidence signal for AI-assisted changes * [How to record AI coding sessions in a Docker Sandbox](/guides/docker-sandboxes) — record sessions from agents running in an ephemeral sandbox * [How to collect AI agent configuration](/guides/ai-config-collector) — capture static AI agent configuration files * [Keyless attestations in GitHub](/guides/github-keyless) — enroll a GitHub repository and link it to a Chainloop project * [PR-Policies control gate](/guides/pr-policies-control-gate) — enforce pull request quality standards with Chainloop policies * [Material Types](/concepts/material-types) — full list of supported material types * [Policies](/concepts/policies) — how policies work in Chainloop * [How to write custom policies](/guides/custom-policies) — write Rego policies for your evidence # Connect GitHub & GitLab Source: https://docs.chainloop.dev/guides/connect-repository Connect a source-control integration so Chainloop can list and watch your repositories. Connecting GitHub or GitLab is a **one-time, organization-level** action performed from **Integrations** — not from a per-repository "Repositories" section. Once your organization is connected, the [Create Project wizard](/get-started/projects/create-project) lists your repositories **live** from the provider's API. There's no manual repository import step to run beforehand. The two providers connect differently: **GitHub** installs the Chainloop GitHub App, while **GitLab** registers a connection with an access token. **1. Open Integrations** In the Chainloop web UI, go to [**Integrations**](https://app.chainloop.dev/integrations). Under the source-control integrations you'll find **GitHub** and **GitLab**. ![The Integrations page with GitHub and GitLab source-control integrations](https://mintcdn.com/chainloop/1mT8NsSXA9stGrW0/guides/img/connect-integrations.png?fit=max\&auto=format\&n=1mT8NsSXA9stGrW0\&q=85\&s=791fbe7e669f83a18c23a5a10ea8fc14) **2. Connect the provider you use** Follow the provider-specific flow below. > [tab] GitHub > > Click **Connect** on the GitHub integration. GitHub prompts you to install the Chainloop GitHub App on your account or organization, then choose whether to grant access to all repositories or select individual ones. > > ![GitHub App installation and authorization screen](https://mintcdn.com/chainloop/1mT8NsSXA9stGrW0/guides/img/connect-github.png?fit=max\&auto=format\&n=1mT8NsSXA9stGrW0\&q=85\&s=d5a5dded20ea8da13cb0bde5cef96c1a) > > GitHub then asks you to authorize Chainloop. This confirms that you have access to the installation you're connecting, so an installation can't be bound to an organization by someone with no authority over it. Whoever completes the connection must therefore have access to the App installation on GitHub — typically a GitHub organization owner or an App manager. > > You can change the repository selection later from GitHub without reconnecting from Chainloop. > > > [!NOTE] > > > > **GitHub organizations with SAML single sign-on:** if your organization enforces SAML SSO, authorize your GitHub session for that organization first, then start the connection again. Without it GitHub hides the installation from Chainloop's check and the connection is refused. > [tab] GitLab > > GitLab connects with an **access token** — there is no OAuth authorization to complete and no Chainloop GitLab app to install. Register the connection from the GitLab integration form: > > * **GitLab host** — `https://gitlab.com`, or the URL of your self-managed instance. > * **Access token** — a token with the `api` scope. A **group access token** or a [**service-account**](https://docs.gitlab.com/user/profile/service_accounts/) token is recommended over a personal one, so the connection isn't tied to an individual user and keeps working as people join or leave. > > Chainloop validates the token against the instance and, once accepted, uses it to list repositories, register webhooks, post merge-request feedback, and open remediation merge requests. Chainloop lists repositories the token can access at the **Developer** access level or above. > > > [!WARNING] > > > > **When the `api` scope is checked:** For **personal** and **service-account** tokens, Chainloop verifies the `api` scope and the token's expiry at registration. **Group and project access tokens can't be introspected** through the GitLab API, so Chainloop only confirms that the token authenticates and can reach at least one project at **Developer** level — the `api` scope isn't verified until first use. An under-scoped group token (for example, one with `read_api` only) connects successfully but then fails the first time Chainloop registers a webhook or opens a merge request. > > > [!NOTE] > > > > **Self-managed GitLab:** GitLab blocks webhooks to local network addresses by default. If the Chainloop backend resolves to a private IP address, a GitLab administrator must allow it, or merge-request feedback never arrives. See [GitLab (self-managed)](/guides/deployment/guides/gitlab). > > > [!NOTE] > > > > You can register **more than one** GitLab connection per organization — for example separate on-prem instances (development and production), or distinct tokens for the same host. Each connection is managed independently, and every repository remembers the connection it was imported through. > [!NOTE] > > Chainloop stores only repository metadata (ID and name), not your repository code. ## Adjusting repository access To change which repositories Chainloop can see, use the provider rather than reconnecting from Chainloop: * **GitHub**: use the **Manage access** link in Chainloop — from the Create Project wizard or the GitHub integration's detail panel. It opens that installation's configuration page on GitHub, where you update the repository selection; saving returns you to Chainloop with the updated repository list. No authorization prompt appears, since the connection already exists. * **GitLab**: grant or revoke the access token's membership on the relevant groups and projects (a token sees repositories at **Developer** level or above). To swap the token entirely, disconnect the connection from **Integrations** and register a new one. ## Reconnecting If a connection breaks, managed workflows and other repository features are paused for the affected repositories until you reconnect. * **GitHub**: if the App is uninstalled, go to **Integrations**, click **Connect**, and re-grant repository access. Because this creates a new installation, GitHub asks you to authorize Chainloop again. * **GitLab**: if the access token is revoked or expires, register the connection again from **Integrations** with a valid token. *** Once connected, [create a project](/get-started/projects/create-project) and link a repository to it. See also the [Repository Integration](/guides/repository-integration) overview for how the providers differ and what connecting enables, and the [GitHub permissions reference](/reference/github-permissions) for the exact scopes the Chainloop GitHub App requests. # EU Cyber Resilience Act (CRA) Source: https://docs.chainloop.dev/guides/cra > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). ![The CRA framework detail page in the Chainloop UI with overview and requirements](https://mintcdn.com/chainloop/7oUakjSb5-MKNl1B/guides/img/cra-chainloop-ui.png?fit=max\&auto=format\&n=7oUakjSb5-MKNl1B\&q=85\&s=fb4e6c36a88638f3e7be8b65b8c95938) The Regulation (EU) 2024/2847, also known as the Cyber Resilience Act (CRA), requires software producers to integrate cybersecurity from the design phase and implement proper vulnerability management for products with digital elements offered in the EU market. Chainloop’s current implementation focuses on the design and vulnerability management aspects (details in our [reference guide](/reference/cyber-resilience-act)). You should consider CRA compliance tracking in projects that: * Include an SBOM as part of the attestation for a generated artifact. * Periodically run an SCA vulnerability scan on officially supported, released versions of the product. While these actions could happen in the same workflow, they usually don't: * The SBOM is typically generated when the artifact is first created. * Scanners are often run later, and repeatedly, on already-built artifacts. A typical [Chainloop project](/concepts/projects-versions) managing build, test, release, and post-release workflows with CRA compliance tracking will resemble the following: ![Diagram of a project with release and vulnerability scan workflows feeding CRA compliance tracking](https://mintcdn.com/chainloop/jE0MuMTzEIYDB-H0/guides/img/cra-framework-in-project.svg?fit=max\&auto=format\&n=jE0MuMTzEIYDB-H0\&q=85\&s=906e173ef728355207d0ff23266d1a3c) You can enable CRA compliance tracking on existing projects and workflows as long as they meet these requirements: * You have a Chainloop project with at least one version. We will refer to this project as `production-project`. * Within this project there is a workflow associated with a CI process that sends an SBOM in the attestation. We'll refer to this as `release-workflow`. * Within the same project, you have a workflow associated with the CI process that sends SCA scan reports in the attestation. We'll refer to this as `vuln-scan-workflow`. When a project is set up and workflows are in place, only three steps are needed to [track compliance](/concepts/compliance-frameworks#using-frameworks) with CRA: * Step 1: Attach the CRA framework to the project * Step 2: Update or create contracts to gather SBOM, vulnerability report and run policies. * Step 3: Attach those contracts to workflows (only when previously using default-contract) Next, we’ll go over CRA compliance tracking setup in two different cases: * An existing project that already meets the workflow requirements described above. * A new project and workflows, where we’ll demonstrate the process manually by uploading attestations. This helps illustrate the mechanics of CRA compliance tracking. You can later automate this via your CI pipeline. > [!NOTE] > > This framework is available in-preview mode. [Learn how to enable in-preview compliance frameworks](/concepts/compliance-frameworks#in-preview-compliance-frameworks) in your organization. ## Step 1. Attach the CRA Framework to the Project For existing projects, simply follow the [framework attachment instructions](/concepts/compliance-frameworks#1-attach-frameworks-to-projects) selecting CRA from the frameworks list. If you are starting from scratch, [create a new project](https://app.chainloop.dev/project/new) with the name `production-project` and add the CRA framework during the project creation. ## Step 2. Update or Create Contracts If you're reusing existing workflows and those workflows already have contracts (other than the default one), update those contracts to include: * Correct material types (if you already had contracts, you probably already had the material needed, keep your existing name for each type so you don’t need to update your CI pipeline). * Required policy groups: `sbom-quality` for the `release-workflow` and `vulnerability-management` for the `vuln-scan-workflow`. Go to your [contracts list](https://app.chainloop.dev/contracts), identify the contract and edit it. For reference, see the [release-contract](https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/contracts/sbom/sbom-quality.yaml) and [vuln-scan-contract](https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/contracts/vulnerabilities/vulnerability-management.yaml) examples. If you are starting fresh or using the default (empty) contract, you will need to create new contracts: > [tab] Web UI > > Create two new contracts, `release-contract` and `vuln-scan-contract`, following the [managing contracts](/concepts/contracts#managing-contracts) instructions and including the following yaml content: > > ```yaml theme={"dark"} > #release-contract > apiVersion: chainloop.dev/v1 > kind: Contract > metadata: > name: release-contract > spec: > materials: > # SBOMs will be uploaded to your artifact registry and referenced by digest in the attestation > # Both SBOM_CYCLONEDX_JSON and SBOM_SPDX_JSON are supported > - type: SBOM_CYCLONEDX_JSON > name: sbom > policyGroups: > - ref: sbom-quality > ``` > > ```yaml theme={"dark"} > #vuln-scan-contract > apiVersion: chainloop.dev/v1 > kind: Contract > metadata: > name: vuln-scan-contract > spec: > materials: > # SCA scans will be uploaded to your artifact registry and referenced by digest in the attestation > # BLACKDUCK_SCA_JSON, SARIF, TWISTCLI_SCAN_JSON, GHAS_DEPENDENCY_SCAN > # are supported > - type: SARIF > name: vuln-scan > policyGroups: > - ref: vulnerability-management > ``` > [tab] CLI > > Assuming you have the Chainloop CLI installed (see [installation docs](/get-started/setup) if not), run: > > ```bash theme={"dark"} > # Create release-contract > chainloop workflow contract create -f https://raw.githubusercontent.com/chainloop-dev/chainloop/main/docs/examples/contracts/sbom/sbom-quality.yaml > ``` > > ```bash theme={"dark"} > # Create vuln-scan-contract > chainloop workflow contract create -f https://raw.githubusercontent.com/chainloop-dev/chainloop/main/docs/examples/contracts/vulnerabilities/vulnerability-management.yaml > ``` ## Step 3. Attach Contracts to Workflows If you’re using existing workflows that were attached to the default contract, update them to use the new contracts: > [tab] Web UI > > Follow the [associating workflows to contracts](/concepts/contracts#associating-workflows-to-contracts) documentation and assign the `release-workflow` to the `release-contract` and the `vuln-scan-workflow` to the `vuln-scan-contract`. > [tab] CLI > > Assuming you have the Chainloop CLI installed (see [installation docs](/get-started/setup) if not), run: > > ```bash theme={"dark"} > # Assign release-contract to release-worfklow > chainloop workflow update --name release-workflow --project production-project --contract release-contract > ``` > > ```bash theme={"dark"} > # Assign vuln-scan-contract to vuln-scan-worfklow > chainloop workflow update --name vuln-scan-workflow --project production-project --contract vuln-scan-contract > ``` If you are not reusing any existing workflows, create new ones: * [Create a workflow](https://app.chainloop.dev/workflows/new) with the `release-workflow` name and associate it with the `production-project` and the `release-contract` that you created in the previous step. * [Create a workflow](https://app.chainloop.dev/workflows/new) with the `vuln-scan-workflow` name and associate it with the `production-project` and the `vuln-scan-contract` that you created in the previous step. ## Step 4. Send Attestation and Create a Project Version This step is only necessary if you don’t already have your CI pipeline configured to send attestations. Assuming you have the Chainloop CLI installed (see installation docs if not), run: ```bash theme={"dark"} # send sbom attestation chainloop att init --workflow release-workflow --project production-project --version 1.0 --release chainloop att add --name sbom --value https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/quickstart/sbom.json chainloop att push ``` ```bash theme={"dark"} #send vulnerability scan attestation chainloop att init --workflow vuln-scan-workflow --project production-project --version 1.0 --release chainloop att add --name vuln-scan --value https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/quickstart/vulnerability-report.json chainloop att push ``` ## Tracking CRA Compliance Once you've completed the steps above, your project should now be configured according to the structure shown in the diagram at the beginning of this guide and your CRA compliance status will appear in the product's **Compliance** tab for each version. ![The CRA framework view in the product Compliance tab showing per-requirement status](https://mintcdn.com/chainloop/7oUakjSb5-MKNl1B/guides/img/cra-status.png?fit=max\&auto=format\&n=7oUakjSb5-MKNl1B\&q=85\&s=5d94fe61bab6ae2c3f5caf919eb33438) The compliance status is updated whenever: * Attestations are submitted through a workflow. * Manual evidence is provided. * A policy is due for evaluation (based on time-based rules or SLAs). Click on a requirement to view its per-project evaluations, associated policies, and manual evidence. ![The requirement evaluation drawer showing per-project manual evidence for a CRA requirement](https://mintcdn.com/chainloop/7oUakjSb5-MKNl1B/guides/img/cra-manual-requirement.png?fit=max\&auto=format\&n=7oUakjSb5-MKNl1B\&q=85\&s=2aad157908d0d6dbf4e65681774c641b) As you complete the manual evidence and submit valid attestations through your CI workflows, compliance indicators will turn green. # How to write custom policies Source: https://docs.chainloop.dev/guides/custom-policies > [!TIP] > > We recommend to get familiar with the [Policy concept](/concepts/policies) before writing your first policy. Chainloop platform comes with a set of [built-in policies](/concepts/policies) that can be used out of the box but in some cases you may want to write your own. ## Write your first custom policy Writing a policy in Chainloop usually involves **1. Initialize and scaffold your policy** **2. Write the policy logic in Rego** **3. Lint and validate the policy (optional)** **4. Test the policy with sample materials (optional)** **5. Store it in Chainloop (optional)** **6. Attach it to a contract and perform an attestation** ### Getting Started with Policy Development CLI Tools Chainloop provides a complete set of CLI tools under the `chainloop policy develop` command to streamline your policy development workflow. These tools help you create, validate, and test policies locally before using them in your CI/CD pipelines. #### Development Workflow Phases 1. **Initialize your policy project** - Start by generating a new policy using the [`init`](https://docs.chainloop.dev/cli/reference#chainloop-policy-develop-init) command. This will create a new policy.yaml based on the Chainloop policy template. 2. **Develop and refine your Rego logic** - Within the generated policy.yaml, add Rego code tailored to your use case. You can begin with common patterns, then incrementally build more complex logic. 3. **Validate syntax and structure early and often** - Use the [`lint`](https://docs.chainloop.dev/cli/reference#chainloop-policy-develop-lint) command to detect issues. This ensures both the YAML structure and Rego code are valid, enforcing best practices via Open Policy Agent (OPA) and Regal. 4. **Evaluate policy logic with real inputs** - Use sample SBOMs, attestations, or other artifacts to test your policy's behavior with the [`eval`](https://docs.chainloop.dev/cli/reference#chainloop-policy-develop-eval) command. Violations or pass/fail results will be shown clearly, helping you quickly spot logic issues or edge cases. 5. **Iterate and refine until policy behaves as expected** - Use the feedback from eval to adjust your Rego rules. Re-run lint and eval until you're confident in the policy behavior. 6. **Deploy to production** - Once your policy is stable and validated, it's ready to be versioned and rolled out into Chainloop and your CI/CD pipelines. This iterative approach helps catch issues early and ensures your policies work correctly before deployment. For detailed CLI usage and all available flags, see the [CLI help](https://docs.chainloop.dev/cli/reference#chainloop-policy). #### Example Let's walk through creating a policy that validates SBOM freshness: **Step 1: Initialize the policy** ```sh theme={"dark"} $ chainloop policy develop init --embedded --name cdx-fresh --description "Checks that SBOM is maximum of 30 days old" $ tree . └── cdx-fresh.yaml 1 directory, 1 file ``` This will create a new policy yaml file in the current directory including the Rego script template. For production use, we recommend to generate the template file and the rego file separately, this is done by not providing the `--embedded` flag. ```sh theme={"dark"} $ chainloop policy develop init --embedded --name cdx-fresh --description "Checks that SBOM is maximum of 30 days old" $ tree . . ├── cdx-fresh.rego └── cdx-fresh.yaml 1 directory, 2 files ``` **Step 2: Download the working example** At this point, you can start editing the policy.yaml file to add your custom logic, but for showing purposes, let's download a complete working example: ```bash theme={"dark"} # Download the complete policy example curl -O https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/policies/quickstart/cdx-fresh.yaml # Download sample materials for testing curl -O https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/policies/quickstart/cdx-old.json curl -O https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/policies/quickstart/cdx-fresh.json ``` **Step 3: Lint the policy** ```bash theme={"dark"} chainloop policy develop lint --policy cdx-fresh.yaml ``` **Step 4: Test the policy** Now that the linter is passing, we can test the policy with some sample existing inputs ```bash theme={"dark"} # Test with old SBOM (should fail) chainloop policy develop eval --policy cdx-fresh.yaml --material cdx-old.json --kind SBOM_CYCLONEDX_JSON # Test with fresh SBOM (should pass) chainloop policy develop eval --policy cdx-fresh.yaml --material cdx-fresh.json --kind SBOM_CYCLONEDX_JSON ``` > [!TIP] > > The `--policy` flag also supports loading policies from external sources including `http://`, `https://`, and `chainloop://` URLs, making it easy to evaluate materials against remote or platform managed policies. **Step 5: Debug policy evaluation (optional)** Use `--debug` flag for detailed evaluation output including input material with Chainloop context and raw evaluation results ```bash theme={"dark"} chainloop policy develop eval --policy cdx-fresh.yaml --material cdx-old.json --kind SBOM_CYCLONEDX_JSON --debug ``` That's all! For a complete step-by-step guide with working examples, see our [quickstart examples](https://github.com/chainloop-dev/chainloop/tree/main/docs/examples/policies/quickstart) and [other policies](https://github.com/chainloop-dev/chainloop/tree/main/docs/examples/policies) in our repository. ## In-Depth Policy Structure ### Chainloop Policy YAML > [!TIP] > > Remember that you can bootstrap your policy development workflow with the `chainloop policy develop` command. A policy can be defined in a YAML document, like this: ```yaml cyclonedx-licenses.yaml [expandable] theme={"dark"} apiVersion: workflowcontract.chainloop.dev/v1 kind: Policy metadata: name: cyclonedx-licenses description: Checks for components without licenses annotations: category: sbom spec: policies: - kind: SBOM_CYCLONEDX_JSON embedded: | package main import rego.v1 valid_input if { # expect at least 1 component in the SBOM count(input.components) > 0 } violations contains msg if { count(without_license) > 0 msg := sprintf("Missing licenses for %s", [components_str]) } components_str := concat(", ", [comp.purl | some comp in without_license]) without_license contains comp if { some comp in input.components not comp.licenses } ``` In this particular example, we see: * policies have a name (cyclonedx-licenses) * they can be optionally applied to a specific type of material (check [the documentation](/concepts/material-types) for the supported types). If no type is specified, a material name will need to be explicitly set in the contract, through selectors. * they have a policy script that it's evaluated against the material (in this case a CycloneDX SBOM report). Currently, only [Rego](https://www.openpolicyagent.org/docs/latest/policy-language/#learning-rego) language is supported. * there can be multiple scripts, each associated with a different material type. Policy scripts could also be specified in a detached form: ```yaml theme={"dark"} ... spec: policies: - kind: SBOM_CYCLONEDX_JSON path: my-script.rego ``` #### Supporting multiple material types Policies can accept multiple material types. This is specially useful when a material can be specified in multiple format types, but from the user perspective, we still want to maintain one single policy. For example, this policy would check for vulnerabilities in SARIF, CycloneDX and CSAF formats: ```yaml theme={"dark"} ... apiVersion: workflowcontract.chainloop.dev/v1 kind: Policy metadata: name: cve-policy spec: policies: - kind: SBOM_CYCLONEDX_JSON path: cves-cyclonedx.rego - kind: CSAF_SECURITY_ADVISORY path: cves-csaf-sa.rego - kind: SARIF path: cves-sarif.rego ``` In these cases, Chainloop will choose the right script to execute, but externally it would be seen as a single policy. If more than one path is executed (because they might have the same `kind`), the evaluation result will be the sum of all evaluations. #### Policy arguments Policies may accept arguments to customize its behavior. If defined, the `inputs` section, will be used by Chainloop to know with inputs arguments are supported by the policy For example, this policy matches a "quality" score against a "threshold" argument: ```yaml theme={"dark"} # quality.yaml apiVersion: workflowcontract.chainloop.dev/v1 kind: Policy metadata: name: quality description: Checks quality score against threshold annotations: category: sbom spec: inputs: #(1) - name: threshold description: quality threshold required: true policies: - kind: SBOM_CYCLONEDX_JSON embedded: | package main import rego.v1 default threshold := 5 threshold := to_number(input.args.threshold) # (2) violations contains msg if { input.score < threshold msg := sprintf("quality threshold not met %d < %d", [input.score, threshold]) } ``` * (1) the `input` section tells Chainloop which parameters should be expected. If missing, the argument will be ignored (an no value will be passed to the policy) * (2) input parametes are available in the `input.args` rego input field. The above example can be instantiated with a custom `threshold` parameter, by adding a `with` property in the policy attachment in the contract: ```yaml theme={"dark"} policies: materials: - ref: file://quality.yaml with: threshold: 6 (1) ``` (1) This is interpreted as a string, that's why we need to add `to_number` in the policy script ### Writing Rego Policy Logic [Rego language](https://www.openpolicyagent.org/docs/latest/policy-language/), from [Open Policy Agent](https://www.openpolicyagent.org/) initiative, has become the de-facto standard for writing software supply chain policies. It's a rule-oriented language, suitable for non-programmers that want to communicate and enforce business and security requirements in their pipelines. #### Using Chainloop Template Chainloop expects the rego scripts to expose a predefined set of rules. To simplify policy development, Chainloop automatically injects missing boilerplate rules. ```rego Injected code theme={"dark"} result := { "skipped": skipped, "violations": violations, "skip_reason": skip_reason, } default skip_reason := "" skip_reason := m if { not valid_input m := "invalid input" } default skipped := true skipped := false if valid_input ``` Chainloop will look for the main rule `result`, if present `result` object has essentially three fields: * `skipped`: whether the policy evaluation was skipped. This property would be set to true when the input, for whatever reason, cannot be evaluated (unexpected format, etc.). This property is useful to avoid false positives. * `skip_reason`: if the policy evaluation was skipped, this property will contain some informative explanation of why this policy wasn't evaluated. * `violations`: will hold the list of policy violations for a given input. Note that in this case, `skipped` will be set `false`, denoting that the input was evaluated against the policy, and it didn't pass. ```rego Template theme={"dark"} package main import rego.v1 # Validates if the input is valid and can be understood by this policy valid_input if { # insert code here } # If the input is valid, check for any policy violation here violations contains msg if { valid_input # insert code here } ``` Note policy developers will only need to fill in the `valid_input` and `violations` rules: * `valid_input` would fail if some preconditions were not met, like the input format. #### Writing the policy logic Let's say we want to write a policy that checks our SBOM in CycloneDX format to match a specific version. A `valid_input` rule would look like this: ```go theme={"dark"} # It's a valid input if format is CycloneDX and has specVersion field that we can check later valid_input if { input.bomFormat == "CycloneDX" input.specVersion } ``` `violations` rule would return the list of policy violations, given that `valid_input` evaluates to `true`. If we wanted the CycloneDX report to be version `1.5`: ```go theme={"dark"} violations contains msg if { valid_input input.specVersion != "1.5" msg := sprintf("wrong CycloneDX version. Expected 1.5, but it was %s", [input.specVersion]) } ``` When evaluated against an attestation, The policy will generate an output similar to this: ```json theme={"dark"} { "result": { "skipped": false, "violations": [ "wrong CycloneDX version. Expected 1.5, but it was 1.4" ] } } ``` Make sure you test your policies in [the Rego Playground](https://play.openpolicyagent.org/). #### Attaching it to the policy YAML spec Once we have our Rego logic for our policy, we can create a Chainloop policy like this: ```yaml theme={"dark"} # cyclonedx-version.yaml apiVersion: workflowcontract.chainloop.dev/v1 kind: Policy metadata: name: cyclonedx-version spec: policies: - kind: SBOM_CYCLONEDX_JSON name: cyclonedx-version.rego ``` ### Contract Attachment Once your policy is developed and tested, you can attach it to a contract: ```yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Contract metadata: name: example-contract spec: policies: materials: - ref: file://cyclonedx-version.yaml ``` Check our [policies reference](/concepts/policies) for more information on how to attach policies to contracts. ## Configuring Policy Inputs As we can see in the above examples, Rego policies will receive an `inputs` variable with all the payload to be evaluated. Chainloop will inject the evidence payload into that variable, for example a CycloneDX JSON document. This way, `input.specVersion` will denote the version of the CycloneDX document. Additionally, Chainloop will inject the following fields: * `input.args`: the list of arguments passed to the policy from the contract or the policy group. Each argument becomes a field in the `args` input: ```json theme={"dark"} // input.args { "severity": "MEDIUM", "foo": "bar", "licenses": ["AGPL-1.0-only", "AGPL-1.0-or-later"] } ``` All arguments are passed as `String` type. So if you expect a numeric value you'll need to convert it with the `to_number` Rego builtin. Also, for convenience, comma-separated values are parsed and injected as arrays, as in the above example. * `input.chainloop_metadata`: This is an In-toto descriptor JSON representation of the evidence, which Chainloop generates and stores in the attestation. Developers can create policies that check for specific fields in this payload. A typical `chainloop_metadata` field will look like this: ```json theme={"dark"} { "chainloop_metadata" : { "name" : "registry-1.docker.io/bitnamicharts/chainloop", "digest" : { "sha256" : "2af5745f843476bd781663eea84d3bd6bcd7a9cb9fcd54ce10cf48142bed2151" }, "annotations" : { "chainloop.material.image.tag" : "2.0.21", "chainloop.material.name" : "material-1731339792439159000", "chainloop.material.signature" : "eyJzY2hlbWFWZXJzaW9uIjoyLCJtZWRpYVR5cGUiOiJhcHBsaWNhdGlvbi92bmQub2NpLmltYWdlLm1hbmlmZXN0LnYxK2pzb24iLCJjb25maWciOnsibWVkaWFUeXBlIjoiYXBwbGljYXRpb24vdm5kLmNuY2Yubm90YXJ5LnNpZ25hdHVyZSIsImRpZ2VzdCI6InNoYTI1Njo0NDEzNmZhMzU1YjM2NzhhMTE0NmFkMTZmN2U4NjQ5ZTk0ZmI0ZmMyMWZlNzdlODMxMGMwNjBmNjFjYWFmZjhhIiwic2l6ZSI6Mn0sImxheWVycyI6W3sibWVkaWFUeXBlIjoiYXBwbGljYXRpb24vam9zZStqc29uIiwiZGlnZXN0Ijoic2hhMjU2OmMwYWFlMzc5ODE4Zjk2NDQ5Nzk1OGMzNGM4NWZhYzU0MWFiZjgyZDlhMTUxZDBlZDg2MmM4ODE0OWE3ZjQxNmUiLCJzaXplIjo3OTQ3fV0sInN1YmplY3QiOnsibWVkaWFUeXBlIjoiYXBwbGljYXRpb24vdm5kLm9jaS5pbWFnZS5tYW5pZmVzdC52MStqc29uIiwiZGlnZXN0Ijoic2hhMjU2OjJhZjU3NDVmODQzNDc2YmQ3ODE2NjNlZWE4NGQzYmQ2YmNkN2E5Y2I5ZmNkNTRjZTEwY2Y0ODE0MmJlZDIxNTEiLCJzaXplIjo0ODV9LCJhbm5vdGF0aW9ucyI6eyJpby5jbmNmLm5vdGFyeS54NTA5Y2hhaW4udGh1bWJwcmludCNTMjU2IjoiW1wiODM0NDQ2Y2E1ZDk5Mzg2NTYxYjc0OWQ3MjdlNTI1ODU3ZjU3ZDlhNjY3NDRhZjYzZmMxY2I3YzcyNzYyZTA4ZlwiLFwiNzBhMzlkMWQ1Y2Y4ZDVhMWVkNzBiYmM1YWM1NjA5M2JhZDEzYzUyOTdiMzdkOTZiNTFkZDkxZThjYzZiM2IxNlwiLFwiYzQ0MWYzMzBiMzNhYzI2ODc0NWUzYzFkZTcwZjRiYTRjNzY1OTEzNGUwODQyNWY0N2JjOTQ2ZmZiNDgxMjc2NlwiXSIsIm9yZy5vcGVuY29udGFpbmVycy5pbWFnZS5jcmVhdGVkIjoiMjAyNC0xMS0wOFQxMTo0MzoxNVoifX0=", "chainloop.material.signature.digest" : "sha256:2e3aded29ba4266d4c682694c5b45585fa0a3d92bd1ea9bfd52448528c7eb6f5", "chainloop.material.signature.provider" : "notary", "chainloop.material.type" : "HELM_CHART" } } } ``` Besides the basic information (name, digest) of the evidence, the `annotations` field will contain some useful metadata gathered by Chainloop during the attestation process. The example above corresponds to an OCI HELM_CHART evidence, for which Chainloop is able to detect the `notary` signature. You can write, for example, a policy that validates that your assets are properly signed, like this: ```go theme={"dark"} violations contains msg if { not input.chainloop_metadata.annotations["chainloop.material.signature"] msg := sprintf("Signature not found for material '%s'", [input.chainloop_metadata.name]) } ``` ## Using Custom Evidence When writing policies for custom evidence, you'll use the `EVIDENCE` material type. For details on how to structure custom evidence (JSON format, identifier conventions, and a worked example), see the [Custom Material Types](/concepts/material-types#custom-material-types) documentation. ## Troubleshooting ### Common Issues * **Rego type conflicts**: Remove `default violations := []` when using `violations contains msg if` rules * **Missing material kind**: Always specify `--kind` parameter in eval command * **Invalid JSON**: Ensure your material files are valid JSON format * **Time calculations**: Use nanoseconds for time comparisons in Rego policies ### Debugging Tips * Use `chainloop policy develop lint --format` to fix formatting issues * Test with minimal examples first, then add complexity * Check the [Rego Playground](https://play.openpolicyagent.org/) for syntax validation * Use the CLI development workflow: init → lint → eval → iterate * Add `print()` statements in your Rego code for debugging - output is shown by default by eval command * Use the `--debug` flag with eval command to see detailed input material and raw evaluation results ## Performance Best Practices * **Minimize iterations**: Use `some` and `contains` efficiently * **Early exits**: Place most restrictive conditions first in rules * **Avoid deep nesting**: Flatten complex object traversals where possible * **Cache calculations**: Store expensive computations in variables ## Policy Engine Constraints To keep the policy engine pure and fast, we have deactivated some of the OPA built-in functions. The following functions are not allowed in the policy scripts: * `opa.runtime` * `rego.parse_module` * `trace` * `http.send`, by default is limited to the following hostnames: `chainloop.dev` `cisa.gov` ### Customize allowed hostnames In some cases, you might want to allow the policy engine to make HTTP requests to additional hostnames, this can be configured through the organization settings. > [!TIP] > > You can see a full example of a policy that makes an HTTP request to a custom hostname and how this setting affects it [here](https://github.com/chainloop-dev/chainloop/tree/main/docs/examples/policies/http-hostname-validation). > [tab] Web UI > > Go to your [organization settings](https://app.chainloop.dev/settings) and set the "Allowed Hostnames" field in the "Attestation Process Configuration" section. > > ![The Allowed Hostnames field in the Attestation Process Configuration section of the organization settings](https://mintcdn.com/chainloop/L8kJ_PW999E2rmSI/guides/img/allowed-hostnames.png?fit=max\&auto=format\&n=L8kJ_PW999E2rmSI\&q=85\&s=d76a9cb172f941711406ec9e80342ec9) > [tab] CLI > > ```bash theme={"dark"} > chainloop organization update --name [org-name] --policies-allowed-hostnames [my-custom-hostname.com] > # Optionally verify the changes > chainloop organization describe > ``` Now you can give it a try by running a new attestation process that runs the custom policy. ## Parameter and Evaluation Matchers Chainloop supports custom auto-matcher Rego scipts that enable automatic policy matching for [compliance frameworks](/concepts/compliance-frameworks). These matchers allow policies to define their own logic for determining compatibility with framework requirements, providing more sophisticated matching beyond simple parameter equality. ```yaml theme={"dark"} apiVersion: workflowcontract.chainloop.dev/v1 kind: Policy metadata: name: policy spec: policies: - kind: SBOM_CYCLONEDX_JSON path: policy.rego autoMath: path: auto-match.rego ``` ### Rego rules #### `matches_parameters` Used for automatic policy matching to determine if evaluation parameters are compatible with expected parameters from compliance frameworks. **Input**: * `input.args`: The policy parameters provided during evaluation * `input.expected_args`: The expected parameters from the compliance framework requirements #### `matches_evaluation` Used for automatic policy matching to determine if evaluation results satisfy the compliance framework expectations. **Input**: * `input.expected_args`: The expected policy parameters from the compliance framework requirements * `input.violations`: Array of violation strings from the evaluation result #### Example Usage Consider a vulnerability policy that checks for security issues with different severity levels: **`matches_parameters`**: A compliance framework expects "high" severity vulnerabilities to be checked. A policy configured to check "medium" severity can satisfy this requirement (more restrictive requirement is acceptable), but a policy checking only "critical" severity cannot. **`matches_evaluation`**: A compliance framework expects to detect "high" or higher severity vulnerabilities. An evaluation that found violations containing "critical" or "high" severities satisfies this requirement. These matchers are implemented as Rego rules within your policy scripts and are automatically invoked during policy matching for compliance frameworks. When implementing these matchers, ensure they return boolean values and handle edge cases appropriately. #### Example Rego Script Here's a simplified example of an auto-matcher script for vulnerability policies: ```rego theme={"dark"} package vulnerabilities import rego.v1 severity_levels := ["low", "medium", "high", "critical"] # Check if policy parameters are compatible with framework expectations default matches_parameters := false matches_parameters if { # Requirement severity must be same or more restrictive than policy severity eval_idx := index_of(severity_levels, lower(input.args.severity)) exp_idx := index_of(severity_levels, lower(input.expected_args.severity)) eval_idx <= exp_idx } # Check if evaluation results satisfy framework expectations default matches_evaluation := true matches_evaluation := false if { count(input.violations) > 0 expected_idx := index_of(severity_levels, lower(input.expected_args.severity)) # Fails if no violations contain expected severity or higher not any_violation_has_severity(expected_idx) } # Helper functions index_of(arr, x) := idx if { some idx, val in arr val == x } any_violation_has_severity(min_idx) if { some violation in input.violations some i i >= min_idx contains(lower(violation), severity_levels[i]) } ``` This example allows policies checking for "high" vulnerabilities to satisfy framework requirements for "critical" severity checks, while ensuring evaluation results contain violations at the expected severity level or higher. ## Store Custom Policy > [!WARNING] > > This is a preview/beta feature. Further changes are expected. > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). Once you have developed and tested your custom policy using the `chainloop policy develop` tools, you can store it in your Chainloop platform. The Enterprise Edition CLI provides policy management commands that let you manage policies directly from the command line. > [!NOTE] > > Make sure you have the Enterprise Edition CLI installed. See the [CLI Installation Guide](/cli/installation) for setup instructions. Store the policy in your Chainloop platform: ```bash theme={"dark"} chainloop apply -f validation-policy.yaml ``` Once stored in the platform, your custom policy becomes available for use. You can reference it by name in your contracts using the `ref` property, just like built-in policies: ```yaml theme={"dark"} policies: materials: - ref: validation-policy # Your stored custom policy name ``` To learn more about attaching policies to contracts, see [Attaching policies to a contract](/concepts/policies#attaching-policies-to-a-contract). For more information about the policy management commands, see the [CLI Enterprise Edition Command Reference](/cli/reference#chainloop-policy). > [!TIP] > > For managing policies alongside other resource types (frameworks, requirements, policy groups, contracts, workflow templates) and CI/CD automation patterns, see the [Declarative Resource Management](/guides/declarative-resource-management) guide. ## Custom builtin functions Check [Builtin Functions](/reference/builtin-functions) for a complete reference. # Use Dagger With Chainloop Source: https://docs.chainloop.dev/guides/dagger-integration Dagger module for Chainloop that can be used to [attest](/concepts/attestations) and collect pieces of evidence from your [Dagger](https://dagger.io/) pipelines. [https://www.youtube-nocookie.com/embed/s-ZtU8PvNmk](https://www.youtube-nocookie.com/embed/s-ZtU8PvNmk) ### Usage > [!TIP] > > Check out to [this reference guide](/concepts/attestations) for more information about the attestation process in general. To learn more about how to use the Dagger module, check out the readme in [GitHub](https://github.com/chainloop-dev/chainloop/blob/main/extras/dagger/README.md) # Declarative Resource Management (GitOps) Source: https://docs.chainloop.dev/guides/declarative-resource-management Manage Chainloop policies, frameworks, contracts, and workflow templates as code, GitOps style, with YAML files and the Chainloop CLI. > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). ## Overview Chainloop supports a GitOps workflow for its configuration. You don't create policies, frameworks, contracts, and workflow templates one by one in the UI. Instead, you define them as YAML files in a Git repository and apply them with the `chainloop apply` command. The repository is the source of truth, and Chainloop follows it. This means you can: * **Version-control** every change, with its history and author * **Review changes** through pull requests before they take effect * **Automate** the rollout from CI/CD when a change merges * **Reproduce** the same configuration across organizations and environments All resources follow a Kubernetes-style schema with `apiVersion`, `kind`, `metadata`, and `spec` fields. Apply operations are idempotent: if a resource with the same name already exists, Chainloop updates it. Otherwise, Chainloop creates it. Applying an unchanged file changes nothing. ## What You Can Manage `chainloop apply` manages the resources below. They fall into two groups that you can use together or on their own: the **compliance** resources (policies, policy groups, requirements, and frameworks), and the resources that define **how your workflows attest** (contracts and workflow templates). You don't need a framework to manage contracts as code. | Kind | `apiVersion` | What it defines | Learn more | | - | - | - | - | | `Contract` | `chainloop.dev/v1` | The materials, annotations, and policies that a workflow's attestations must include | [Contracts](/concepts/contracts) | | `Policy` | `workflowcontract.chainloop.dev/v1` | A check, written in Rego, that Chainloop evaluates against attestation materials | [Policies](/concepts/policies) | | `PolicyGroup` | `workflowcontract.chainloop.dev/v1` | A reusable group of related policies, with shared inputs | [Policy Groups](/concepts/policy-groups) | | `Requirement` | `chainloop.dev/v1` | A compliance requirement, met by policies or manual proofs | [Compliance Frameworks](/concepts/compliance-frameworks) | | `Framework` | `chainloop.dev/v1` | A set of requirements, such as an internal standard or a regulation | [Compliance Frameworks](/concepts/compliance-frameworks) | | `WorkflowTemplate` | `chainloop.dev/v1` | A reusable blueprint for creating workflows, with its contract. Custom templates are available in on-premises installations only | [Workflow Templates](/concepts/workflow-templates) | `chainloop apply` doesn't manage other resources, such as projects and workflows. Create a workflow with `chainloop workflow create --contract ` to use a contract that you manage as code. ## Example Repository Layout Keep your resources in a dedicated folder of a Git repository, one folder per kind. The layout below is a good starting point: ```text theme={"dark"} chainloop/ ├── .chainloopignore # optional: paths that apply skips ├── policies/ │ ├── cyclonedx-licenses/ # one folder per policy, see `chainloop policy develop init` │ │ ├── cyclonedx-licenses.yaml # kind: Policy, points to the .rego file with `path` │ │ ├── cyclonedx-licenses.rego │ │ └── cyclonedx-licenses_test.rego │ └── sbom-quality/ │ └── policy-group.yaml # kind: PolicyGroup ├── frameworks/ │ └── my-best-practices/ │ └── my-best-practices.yaml # kind: Framework and its Requirements, separated by --- ├── contracts/ │ ├── build-contract.yaml # one Contract per file │ └── example-contract.yaml ├── workflow-templates/ │ └── vulnerability-scan.yaml # one WorkflowTemplate per file └── README.md ``` Apply the whole folder with one command: ```bash theme={"dark"} chainloop apply -f ./chainloop/ ``` Some conventions keep a repository like this easy to review: * **One folder per policy.** Keep the Rego code in `.rego` files next to the policy YAML and reference them with `path`, which is relative to the policy file. `chainloop policy develop init --directory policies/ --name ` creates this layout for you. See [How to write custom policies](/guides/custom-policies). You can then test the Rego with `opa test` in CI before you apply it. * **One resource per file, named after the resource.** Name each file after its `metadata.name`, for example `contracts/build-contract.yaml` for the contract `build-contract`. A framework and its requirements can share one multi-document file. * **Any folder structure works.** `chainloop apply` reads every YAML file under the path that you give it and applies the resources in dependency order. The folders are only for people. `chainloop apply` skips files that are not YAML, and YAML files without a `kind`, such as CI configuration. ## Prerequisites Before you begin, make sure you have: * **Chainloop CLI Enterprise Edition** installed - see the [CLI installation guide](/cli/installation) * **Authenticated** to your organization - run `chainloop auth login` ## Walkthrough: Compliance as Code This walkthrough builds a complete compliance-as-code setup from scratch around an SBOM license-compliance use case. Each step builds on the previous one. By the end, you'll have a policy, a policy group, a requirement, a framework, and a contract that all work together. The steps below apply each resource individually so you can verify as you go. In practice, you can place all your YAML files in a single directory and apply them at once with `chainloop apply -f ./chainloop/` - Chainloop resolves dependencies automatically. See [Applying Resources at Scale](#applying-resources-at-scale). ### Step 1 - Write a Policy A **policy** contains the Rego rules that Chainloop evaluates against your attestation materials. Start by defining one that checks CycloneDX SBOMs for components missing license information. Create `cyclonedx-licenses.yaml`: ```yaml theme={"dark"} apiVersion: workflowcontract.chainloop.dev/v1 kind: Policy metadata: name: cyclonedx-licenses description: Checks for components without licenses annotations: category: sbom spec: policies: # kind determines which material type this policy evaluates - kind: SBOM_CYCLONEDX_JSON # Rego code inline - you can also use `path` to point to a .rego file next to this one embedded: | package main import rego.v1 valid_input if { count(input.components) > 0 } violations contains msg if { some comp in input.components not comp.licenses msg := sprintf("Missing license for %s", [comp.purl]) } ``` Apply and verify: ```bash theme={"dark"} chainloop apply -f cyclonedx-licenses.yaml chainloop policy describe --name cyclonedx-licenses ``` > [!TIP] > > For the full Rego development workflow - scaffolding, linting, testing, and iterating on policies - see [How to write custom policies](/guides/custom-policies). ### Step 2 - Group Policies Together A **policy group** bundles related policies into a reusable unit. Let's create one that groups the `cyclonedx-licenses` policy from Step 1 with another SBOM policy to form a complete SBOM quality check. Create `sbom-quality-group.yaml`: ```yaml theme={"dark"} apiVersion: workflowcontract.chainloop.dev/v1 kind: PolicyGroup metadata: name: sbom-quality description: >- SBOM quality policies - checks that SBOMs contain license and dependency information. annotations: category: sbom spec: inputs: - name: bannedLicenses description: Comma-separated list of licenses to ban (e.g., AGPL-1.0-only) # default provides a fallback when the caller doesn't supply a value default: "" policies: # attestation policies run against the envelope itself attestation: - ref: sbom-present # materials policies run against individual attached artifacts materials: - policies: # The custom policy from Step 1 - ref: cyclonedx-licenses # A built-in policy that ships with Chainloop - ref: sbom-banned-licenses with: licenses: "{{ inputs.bannedLicenses }}" ``` The group includes the `cyclonedx-licenses` policy you just created alongside `sbom-banned-licenses`, a built-in policy that ships with Chainloop. The `attestation` section checks that an SBOM was included in the attestation; the `materials` section runs quality checks against the SBOM itself. Apply and verify: ```bash theme={"dark"} chainloop apply -f sbom-quality-group.yaml chainloop policy-group describe --name sbom-quality ``` > [!TIP] > > For full details on policy group structure and capabilities, see [Policy Groups](/concepts/policy-groups). ### Step 3 - Define a Requirement A **requirement** specifies what must be satisfied for compliance - which policies to evaluate, how often, and what manual evidence is needed. Let's create one that enforces license compliance by referencing the policy from Step 1. Create `license-compliance.yaml`: ```yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Requirement metadata: name: license-compliance displayName: License Compliance description: | All software artifacts must include license information and must not use banned licenses. annotations: categories: security, licensing spec: policies: # The custom policy from Step 1 - ref: cyclonedx-licenses # A built-in policy that ships with Chainloop - ref: sbom-banned-licenses # with passes parameters to the policy with: licenses: "AGPL-1.0-only,AGPL-3.0-only" ``` Requirements can also include `periodicity` (how often a policy is re-evaluated, e.g. `daily`, `weekly`), `sla` (grace period in hours before failures affect the compliance score), `group` (to organize policies into groups where any member passing satisfies the group), and `manual_proofs` for evidence that can't be automated (e.g., license review sign-offs). For the full schema, see [Compliance Frameworks](/concepts/compliance-frameworks). Apply and verify: ```bash theme={"dark"} chainloop apply -f license-compliance.yaml chainloop requirement describe --name license-compliance ``` ### Step 4 - Build a Framework A **framework** organizes requirements into a structured compliance program. You can group requirements into sections (and nested sub-sections) to model standards like CRA, SLSA, or your own internal policies. Let's build one that includes the requirement from Step 3. Create `best-practices.yaml`: ```yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Framework metadata: name: my-best-practices displayName: Best Practices description: Internal security and compliance best practices spec: sections: - name: Source Code description: Source code integrity and secure development practices. requirements: # Built-in requirements that ship with Chainloop - ref: branch-protection - ref: code-review - name: Supply Chain description: Ensure software dependencies are properly licensed. requirements: # The custom requirement from Step 3 - ref: license-compliance ``` This framework mixes built-in requirements (`branch-protection`, `code-review`) with the custom `license-compliance` requirement you created in Step 3. Chainloop ships with a library of built-in requirements and policies - your custom resources extend them. Apply and verify: ```bash theme={"dark"} chainloop apply -f best-practices.yaml chainloop framework describe --name my-best-practices ``` > [!NOTE] > > Each requirement can only appear once in a framework - either at the root level or within a section, not both. ### Step 5 - Tie It Together in a Contract A **contract** defines the attestation expectations for a workflow - what materials to collect and which policies and policy groups to evaluate. This is where everything comes together: the contract references the policy group from Step 2, which in turn includes the policy from Step 1. Create `example-contract.yaml`: ```yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Contract metadata: name: example-contract spec: policyGroups: # The policy group from Step 2 (which includes the policy from Step 1) - ref: sbom-quality with: bannedLicenses: AGPL-1.0-only,AGPL-3.0-only ``` When a workflow attests against this contract, Chainloop will check that an SBOM is present, verify every component has a license, and flag any banned licenses - all driven by the resources you built in the previous steps. Apply and verify: ```bash theme={"dark"} chainloop apply -f example-contract.yaml chainloop workflow contract describe --name example-contract ``` > [!TIP] > > For the full contract schema including material types and runner context, see [Contracts](/concepts/contracts). ## Managing Contracts Declaratively A contract can stand on its own: it lists the materials and annotations that a workflow's attestations must include, and optionally the policies to evaluate. Create `build-contract.yaml`: ```yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Contract metadata: name: build-contract spec: annotations: - name: team value: platform materials: # The container image is the subject of the attestation - type: CONTAINER_IMAGE name: image output: true - type: SBOM_CYCLONEDX_JSON name: sbom - type: SARIF name: static-analysis optional: true ``` Preview the change, apply it, and attach the contract to a workflow: ```bash theme={"dark"} chainloop apply -f build-contract.yaml --dry-run chainloop apply -f build-contract.yaml chainloop workflow update --name --project --contract build-contract ``` When you change the YAML and apply it again, Chainloop updates the contract. Every workflow attached to it uses the new version on its next attestation. Keep your contracts in a repository and [apply them from CI/CD](#automating-with-cicd). Then each change to what your pipelines must attest goes through a pull request. ## Applying Resources at Scale The steps above apply resources one at a time. The `chainloop apply` command can handle any resource type, including multi-document YAML files and entire directories: ```bash theme={"dark"} # Apply a single file (can contain multiple resources separated by ---) chainloop apply -f resources.yaml # Apply all YAML files in a directory chainloop apply -f ./chainloop/ ``` > [!NOTE] > > When applying multiple resources, Chainloop processes them in dependency order: Policies, then Requirements, Frameworks, Policy Groups, Contracts, and Workflow Templates. Multi-document YAML files use `---` as the separator between resources. ## Inspecting and Exporting Resources After applying resources, you can verify them, explore what's deployed, and export definitions for backup or migration. **Export** a resource as reusable YAML with the `--output schema` flag - useful for bootstrapping new configurations, backing up resources, or migrating between organizations: ```bash theme={"dark"} chainloop requirement describe --name license-compliance --output schema chainloop framework describe --name my-best-practices --output schema ``` > [!TIP] > > Add `--output json` to any describe or list command for JSON output. ## Automating with CI/CD Store your YAML resource definitions in a git repository and apply them automatically whenever changes are merged. This keeps your Chainloop configuration up to date and auditable. You'll need an [API token](/reference/api-tokens) stored as a CI secret. > [tab] GitHub Actions > > ```yaml theme={"dark"} > name: Apply Chainloop Resources > on: > push: > branches: [main] > paths: ['chainloop/**'] > jobs: > apply: > runs-on: ubuntu-latest > steps: > - uses: actions/checkout@v4 > - name: Install Chainloop CLI > run: curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s > - name: Apply resources > run: chainloop apply -f ./chainloop/ > env: > CHAINLOOP_TOKEN: ${{ secrets.CHAINLOOP_TOKEN }} > ``` > [tab] GitLab CI > > ```yaml theme={"dark"} > apply-chainloop-resources: > stage: deploy > script: > - curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s > - chainloop apply -f ./chainloop/ > rules: > - changes: [chainloop/**] > variables: > CHAINLOOP_TOKEN: $CHAINLOOP_TOKEN > ``` # Send SBOMs to Dependency-Track Source: https://docs.chainloop.dev/guides/dependency-track > [Dependency-Track](https://github.com/DependencyTrack/dependency-track) is an intelligent Component Analysis platform that allows organizations to identify and reduce risk in the software supply chain. > Dependency-Track takes a unique and highly beneficial approach by leveraging the capabilities of Software Bill of Materials (SBOM). Chainloop can be configured to **automatically send any [CycloneDX Software Bill Of Materials](https://cyclonedx.org/)** that has been received as part of an attestation **to a Dependency-Track instance**. ![](https://mintcdn.com/chainloop/yJa2Iopv98OPg1FZ/guides/img/dependency-track/overview.png?fit=max\&auto=format\&n=yJa2Iopv98OPg1FZ\&q=85\&s=1f01d3ab4e88f74118dd28543ad8e0be) Once configured, any `SBOM_CYCLONEDX_JSON` piece of evidence received during the [attestation process](/concepts/attestations) will be sent to Dependency-Track. If you don't produce SBOMs yet, Chainloop can generate them for a connected repository — see [Generate and Continuously Scan SBOMs](/guides/generate-and-scan-sboms). Those SBOMs are forwarded like any other. See below an example of a [contract](/concepts/contracts) that includes a `SBOM_CYCLONEDX_JSON` material. ```yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Contract metadata: name: skynet-contract spec: materials: # SBOMs will be uploaded to the CAS Backend of your choice, such as an OCI registry and referenced in the attestation - type: SBOM_CYCLONEDX_JSON name: skynet-sbom ``` See the integration in action in the following video: [YouTube video player](https://www.youtube-nocookie.com/embed/S1110n4C9gY) ## Configure Integration There are two steps involved to enable this integration: 1. Setup a Dependency-Track integration provider in your Chainloop account 2. Attach this integration instance to your workflow ### Prerequisites **Dependency-Track API Token** An API Token is required for the Chainloop instance to communicate securely with DependencyTrack. The required permissions are `BOM_UPLOAD`, `VIEW_PORTFOLIO` (to validate that the provided project ID exists) and optionally `PROJECT_CREATION_UPLOAD` if `project-auto-creation` is enabled, more on that later. The API Key can be created by going to Settings -> Access Management -> Teams -> Select (or create) a Team -> Set permissions -> Copy API key ![](https://mintcdn.com/chainloop/yJa2Iopv98OPg1FZ/guides/img/dependency-track/api-key.png?fit=max\&auto=format\&n=yJa2Iopv98OPg1FZ\&q=85\&s=e296a164afb4678b555305cb32c6665a) ### 1 - Setup the integration in your Chainloop account Let's register an instance of Dependency-Track that later on can be attached to any of your workflows. > [tab] Web UI > > Navigate to the [integrations section](https://app.chainloop.dev/integrations), select **dependency-track** and click the **+** button next to **Connections**. > > ![The Dependency-Track Add Registration form with instance URI and API key inputs](https://mintcdn.com/chainloop/vTuUKiGCwGJ__XFJ/guides/img/dependency-track/register.png?fit=max\&auto=format\&n=vTuUKiGCwGJ__XFJ\&q=85\&s=5c19b69770e4080315b7c7f1ce80444e) > > We can see that there are two required inputs: the instance URI and the API key. Provide those values and click on the `Register` button. > [tab] CLI > > With the [CLI](/get-started/setup), we'll use the `chainloop integration registered add` command but first let's find out what are the required inputs using the `available describe` command. > > ```bash theme={"dark"} > chainloop integration available describe --name dependency-track > ``` > > ``` > ┌──────────────────┬─────────┬──────────────────────┬────────────────────────────────────────────────────────┐ > │ ID │ VERSION │ MATERIAL REQUIREMENT │ DESCRIPTION │ > ├──────────────────┼─────────┼──────────────────────┼────────────────────────────────────────────────────────┤ > │ dependency-track │ 1.4 │ SBOM_CYCLONEDX_JSON │ Send CycloneDX SBOMs to your Dependency-Track instance │ > └──────────────────┴─────────┴──────────────────────┴────────────────────────────────────────────────────────┘ > ┌──────────────────────────────────────────────────────────────────────────────────────┐ > │ Registration inputs │ > ├─────────────────┬──────────────┬──────────┬──────────────────────────────────────────┤ > │ FIELD │ TYPE │ REQUIRED │ DESCRIPTION │ > ├─────────────────┼──────────────┼──────────┼──────────────────────────────────────────┤ > │ allowAutoCreate │ boolean │ no │ Support of creating projects on demand │ > │ apiKey │ string │ yes │ The API key to use for authentication │ > │ instanceURI │ string (uri) │ yes │ The URL of the Dependency-Track instance │ > └─────────────────┴──────────────┴──────────┴──────────────────────────────────────────┘ > ... > ``` > > We can see that there are two required inputs: `apiKey` and `instanceURI`. > > Let's go ahead and add an integration for an instance hosted at [https://dependency-track.example.com](https://dependency-track.example.com) that allows the auto-creation of projects. You'll get a prompt to introduce the API key > > ``` > chainloop integration registered add dependency-track --name [my-registration] --opt instanceURI=https://dependency-track.example.com --opt apiKey=[REDACTED] --opt=allowAutoCreate=true > ``` > > > [accordion] Command Output > > > > ``` > > ┌──────────────────────────────────────┬──────────────────┬──────────────────────────────────────────────┬─────────────────────┐ > > │ ID │ KIND │ CONFIG │ CREATED AT │ > > ├──────────────────────────────────────┼──────────────────┼──────────────────────────────────────────────┼─────────────────────┤ > > │ c48f3041-5745-4773-aed9-ccf2f288b2e4 │ Dependency-Track │ host: https://dependency-track.example.com │ 21 Dec 22 16:29 UTC │ > > │ │ │ allowAutoCreate: true │ │ > > └──────────────────────────────────────┴──────────────────┴──────────────────────────────────────────────┴─────────────────────┘ > > ``` ### 2 - Attach the Integration to a Workflow Once the integration is live, it can be **attached** to any workflow. In practice, that means that every workflow attestation that is received that contains a `SBOM_CYCLONEDX_JSON` material will be forwarded. > [!TIP] > > The same integration can be attached to multiple workflows > [tab] Web UI > > Navigate to the workflow's **Integrations** tab and click on the `Attach` button. > > ![The Integrations tab of a workflow with the Attach button](https://mintcdn.com/chainloop/vTuUKiGCwGJ__XFJ/guides/img/dependency-track/attach-1.png?fit=max\&auto=format\&n=vTuUKiGCwGJ__XFJ\&q=85\&s=4dab7e9f5934f1350fcedb56c2a2ee8f) > > During the attachment process, you can decide whether to send the SBOMs to a specific project `projectID` or create a new one defined by the provided `projectName`. For the latter to work, you need to make sure that the integration was setup with `--allow-project-auto-create` option. Furthermore, you can request the new project is created as a child of an existing one `parentID`, to enable you to group projects in Dependency Track. > > ![The Attach integration drawer with the Dependency-Track project options](https://mintcdn.com/chainloop/vTuUKiGCwGJ__XFJ/guides/img/dependency-track/attach-2.png?fit=max\&auto=format\&n=vTuUKiGCwGJ__XFJ\&q=85\&s=748065dc0f6e74901c0890ff9caefa9e) > [tab] CLI > > The attachment is done via `chainloop integration attached add` command. But as we did before, let's first find out what are the required inputs using the `available describe` command. > > ```bash theme={"dark"} > chainloop integration available describe --name dependency-track > ``` > > ``` > ┌──────────────────┬─────────┬──────────────────────┬────────────────────────────────────────────────────────┐ > │ ID │ VERSION │ MATERIAL REQUIREMENT │ DESCRIPTION │ > ├──────────────────┼─────────┼──────────────────────┼────────────────────────────────────────────────────────┤ > │ dependency-track │ 1.4 │ SBOM_CYCLONEDX_JSON │ Send CycloneDX SBOMs to your Dependency-Track instance │ > └──────────────────┴─────────┴──────────────────────┴────────────────────────────────────────────────────────┘ > ... > ┌───────────────────────────────────────────────────────────────────────────────────────────┐ > │ Attachment inputs │ > ├─────────────┬────────┬──────────┬─────────────────────────────────────────────────────────┤ > │ FIELD │ TYPE │ REQUIRED │ DESCRIPTION │ > ├─────────────┼────────┼──────────┼─────────────────────────────────────────────────────────┤ > │ parentID │ string │ no │ ID of parent project to create a new project under │ > │ projectID │ string │ no │ The ID of the existing project to send the SBOMs to │ > │ projectName │ string │ no │ The name of the project to create and send the SBOMs to │ > └─────────────┴────────┴──────────┴─────────────────────────────────────────────────────────┘ > ``` > > During the attachment process, you can decide whether to send the SBOMs to a specific project `projectID` or create a new one defined by the provided `projectName`. For the latter to work, you need to make sure that the integration was setup with `--allow-project-auto-create` option. Furthermore, you can request the new project is created as a child of an existing one `parentID`, to enable you to group projects in Dependency Track. > > > [!TIP] > > > > The workflowID can be found by running `chainloop workflow list` > > ```bash theme={"dark"} > # Attach integration to a specific workflow > $ chainloop integration attached add \ > --integration my-registered-integration \ > --workflow my-workflow --project my-workflow-project \ > --opt projectName=example-project > ``` That's all! Next time Chainloop receives an attestation, its contained SBOMs will be uploaded to [https://dependency-track.example.com](https://dependency-track.example.com) to a project called `example-project`. ## Advanced Options ### Filter SBOMs dispatch You can filter the SBOMs that are sent to Dependency-Track based on the attestation or material [annotations](/concepts/attestations#add-annotations) by providing an optional `filter` option. > [!TIP] > > * If multiple filters are provided, they will be applied in an AND operation. > * If the same annotation is provided in both the attestation and the material, the value in the material will take precedence. ```bash theme={"dark"} $ chainloop integration attached add \ ... --opt filter="environment=prod,team=security" ``` ### Dynamically set the project name You can also use interpolation to calculate the Depdendency-Track project name dynamically based on the annotations set in either the attestation and the materials. For example, let's say that you have the following contract ```yaml chainloop-contract.yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Contract metadata: name: chainloop-contract spec: annotations: - name: version value: oss materials: - type: SBOM_CYCLONEDX_JSON name: controlplane-sbom annotations: - name: component value: controlplane ``` You can then use the `{{ .Material.Annotations.Component }}` or `{{ .Attestation.Annotations.Asset }}` templates during attachment, for example ```bash theme={"dark"} $ chainloop integration attached add \ ... --opt projectName="project-{{ .Material.Annotations.component }}" # or both combined --opt projectName="project-{{ .Material.Annotations.component }}-{{ .Attestation.Annotations.version }}" ``` this will send the SBOM to a project called `project-controlplane` or `project-controlplane-oss` respectively. # Enterprise edition Source: https://docs.chainloop.dev/guides/deployment/chainloop-ee How to deploy and configure the Chainloop Enterprise in Kubernetes > [!NOTE] > > This documentation is for the proprietary Chainloop Enterprise. If you are looking for the Open Source Evidence Store documentation, please refer to the [Chainloop Evidence Store](/guides/deployment/oss) guide ## Introduction The Chainloop platform has two top-level components: Chainloop Evidence Store and Chainloop Platform. Both components are deployed using one unified Helm Chart called `chainloop-ee` (Chainloop Enterprise Edition). Once deployed, for example in an AWS Kubernetes cluster, it could look like this: ![Chainloop Enterprise Edition deployment architecture on a Kubernetes cluster](https://mintcdn.com/chainloop/mN8Q3nWm_wu3DPZF/guides/deployment/img/platform-5.png?fit=max\&auto=format\&n=mN8Q3nWm_wu3DPZF\&q=85\&s=4baacb1933bd454fc5ad7e161b670f20) ## Retrieve Private OCI Registry credentials. To pull the Helm Charts and container images you'll need to authenticate with a private OCI registry managed. If you don't have them yet, please [contact](https://chainloop.dev/contact) the Chainloop team. Once you get the creds, you can give it a try by authenticating locally and pulling the latest version of both Helm Charts. ```bash theme={"dark"} # Authenticate locally $ docker login -u [username] -p [creds] chainloop.azurecr.io # Chainloop Enterprise Edition Chart $ helm fetch oci://chainloop.azurecr.io/chart/chainloop-ee $ ls chainloop-* chainloop-ee-0.326.0.tgz ``` ## Configure credentials for deployment You have two options to consume the provided Helm Charts and container images in your Kubernetes cluster: ### Option 1: Pull images and Chart directly from Private Azure Registry To pull the images, you'll need to store these credentials as a K8s secret in the cluster where you will deploy the Helm Charts. Later, they will be referenced in the Helm charts as imagePullSecrets. ```bash theme={"dark"} $ kubectl create secret docker-registry regcred-azure \ --docker-server=https://chainloop.azurecr.io \ --docker-username=[your-username] \ --docker-password=[your credentials] ``` ### Option 2: Relocate Helm Chart and images to your own registry Both charts are compatible with relocation processes performed by the [Helm Relocation Plugin](https://github.com/vmware-labs/distribution-tooling-for-helm). This means that you can easily import the Helm Charts and Container images provided by the Chainloop team into your registry, even behind the firewall. This is a two-step process (wrap -> unwrap) * Pull all the container images and Helm chart and wrap them in an intermediate tarball. * If needed, transfer that tarball to your air-gap environment via an offline medium * Unwrap the tarball and push container images, update the Helm Chart with new image references, and push it to the target registry. For example, to relocate from Azure to your own Harbor registry. ```bash theme={"dark"} helm dt wrap oci://chainloop.azurecr.io/chart/chainloop-ee # 🎉  Helm chart wrapped into "chainloop-ee-0.326.0.wrap.tgz" # Now you can take the tarball to an air-gapped environment and unwrap it like this helm dt unwrap chainloop-ee-0.326.0.wrap.tgz oci://my-repo.harbor.io --yes #  Unwrapping Helm chart "chainloop-ee-0.326.0.wrap.tgz" #    ✔  All images pushed successfully #    ✔  Helm chart successfully pushed # # 🎉  Helm chart unwrapped successfully: You can use it now by running "helm install oci://my-repo.harbor.io/chainloop-platform --generate-name" ``` The relocated Helm Charts will be ready to be used, pointing to the images also relocated to the end registry. ## Deploy and Configure in Kubernetes ### Step 1 - Deploy Platform Chart Please **refer to the Chart README file** that can be found in the chart tarball, which can be pulled like this. ```bash theme={"dark"} # Pull the chart tarball helm fetch oci://chainloop.azurecr.io/chart/chainloop-ee # Print the README from the tarball tar -xzOf chainloop-ee-*.tgz chainloop-ee/README.md ``` The README includes examples of how to deploy the chart in both **development** and **production** modes. The chart can expose Chainloop through `Ingress` or through Kubernetes Gateway API routes. To use a Gateway such as Envoy Gateway, including its timeout and upload settings and TLS between the Gateway and the pods, follow the [Gateway API and Envoy Gateway guide](/guides/deployment/guides/gateway-api). Next steps: * Do an end-to-end run of our [getting started guide](/get-started) to test the platform * Optionally, configure the platform to enhance it with additional features following the steps below ### Step 2 - Set up a license Chainloop Enterprise instances are activated with a license key issued by the Chainloop team. If you don't have one yet, please [contact](https://chainloop.dev/contact) us. Add it to the Platform Chart `values.yaml`: ```yaml Platform Chart values.yaml theme={"dark"} backend: billing: licenseKey: "eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9..." # License key issued by Chainloop ``` > [!NOTE] > > The license key is optional during the non-enforcing rollout phase, so instances without one keep working for now. We recommend configuring it as soon as you receive it. ### Step 3 (optional) - Setup SMTP configuration To enable email notifications, you need to configure the SMTP settings in the Chainloop Platform backend Helm chart `values.yaml` file like this: ```yaml Platform Chart values.yaml theme={"dark"} backend: smtp: host: smtp.example.com # SMTP server hostname port: 587 # SMTP server port user: the-user # SMTP server username password: REDACTED # SMTP server password from: "Chainloop Notifications " # From email address ``` Without this configuration, the Chainloop platform will not be able to send email notifications for events such as weekly summaries, or org invitations. ### Step 4 (optional) - Configure users auto-onboarding This step allows automatically onboarding users to specific organizations and user groups. Follow [this guide](./guides/provisioning) to configure Chainloop Platform for auto-provisioning. ### Step 5 (optional) - Restrict organization creation This step allows restricting organization creation to specific users. Follow [this guide](./guides/restrict-org-creation) to configure Chainloop Platform for restricting organization creation. ### Step 6 (optional) - Configure integrations The platform backend can integrate with external providers to onboard repositories, run SCM checks, support [keyless attestation](/guides/github-keyless), and power AI-assisted Q\&A. Configure the provider(s) you use below. #### Configure a GitHub App Chainloop can onboard repositories and run SCM checks through a GitHub App, using App installation tokens instead of user OAuth. It also supports [GitHub keyless attestation](/guides/github-keyless). See the [GitHub permissions reference](/reference/github-permissions#cumulative-permission-set) for the full cumulative permission set, and the [GitHub App guide](/guides/deployment/guides/github-app) for the complete walkthrough. 1. Create a GitHub App (GitHub → Settings → Developer settings → GitHub Apps → New). At a minimum it needs the **Metadata: Read** permission. For the full feature set also grant **Contents** (Read & Write), **Pull requests** (Read & Write), **Issues** (Write), **Checks** (Read & Write), **Administration** (Read) and **Members** (Read). 2. Under **General → Client secrets**, click **Generate a new client secret** and record it — GitHub displays it once and never returns it from the API. Set it as `backend.githubApp.clientSecret`, and the **Client ID** shown just above it as `backend.githubApp.clientId`. Both are required: before binding an installation, Chainloop verifies that whoever completes the connection has access to that installation on GitHub, and only a user access token can establish that. 3. Add a **Callback URL** of `https://[your-backend-hostname]/enroll/github/authorize/callback` under **Identifying and authorizing users**, alongside any existing entries without reordering them, and leave **Allow wildcard matching** off. 4. Set the **Setup URL** under **Post installation** to `https://[your-backend-hostname]/enroll/github/callback` and keep **Redirect on update** checked. Leave **Request user authorization (OAuth) during installation** unchecked — selecting it removes the Setup URL field, which breaks both the connection flow and the add/remove-repositories flow with no error shown anywhere. 5. Set the **Webhook URL** to `https://[your-backend-hostname]/github/events` (the backend serves the receiver under `/github/events`), for example `https://api.app.chainloop.dev/github/events`. Set the **Webhook secret** to the same value you put in `backend.githubApp.webhookSecret` below, and subscribe to the events `pull_request` and `pull_request_review`. 6. Generate a private key (downloads a `.pem`) and note the **App ID** and the **App slug** (the slug in the App's public URL). 7. Configure the chart: ```yaml Platform Chart values.yaml theme={"dark"} backend: githubApp: appId: 123456 privateKey: | -----BEGIN RSA PRIVATE KEY----- ... -----END RSA PRIVATE KEY----- appSlug: my-chainloop-app # slug from the GitHub App's public URL baseUrl: https://github.com # optional; set to your GHES host for GitHub Enterprise Server webhookSecret: "" # shared secret to verify webhook payloads (enables webhook processing) clientId: "" # required; OAuth client ID from the App settings page clientSecret: "" # required; OAuth client secret, shown once when generated ``` > [!NOTE] > > `clientId` and `clientSecret` are required whenever `backend.githubApp` is set, and the backend must have a resolvable external URL — `backend.externalHostname`, or the `backend.ingress` / `backend.httpRoute` hostname — since the OAuth callback URL is derived from it. The backend refuses to start otherwise. Deployments with no GitHub App configured are unaffected. See the [GitHub App guide](/guides/deployment/guides/github-app#backend-external-url) for details. Repositories are then installed per organization from the Chainloop web UI (Repositories → Add Repositories → GitHub). #### Configure GitLab GitLab (gitlab.com or self-hosted) needs **no chart configuration**. Org admins register a GitLab connection at runtime with an access token from the Chainloop web UI — see [Connect GitHub & GitLab](/guides/connect-repository). The backend trusts each connection's OIDC issuer automatically, so [GitLab keyless attestation](/guides/gitlab-keyless) works without a static machine-identity issuer or a redeploy. The only optional setting is the shared webhook secret, which the chart auto-generates and persists across upgrades. Set it explicitly only if you want to manage the value yourself: ```yaml Platform Chart values.yaml theme={"dark"} backend: gitlab: webhookSecret: "" # optional; auto-generated when left unset ``` With a self-managed GitLab, GitLab must be able to send webhooks to the backend, and each side must trust the other's TLS certificate. See [GitLab (self-managed)](/guides/deployment/guides/gitlab). #### Configure a Slack App Chainloop can install a Slack App per organization to power AI-assisted Q\&A (Chainloop Ask) from Slack. Create a Slack App at [api.slack.com/apps](https://api.slack.com/apps). 1. Create a Slack App and note its **Client ID**, **Client Secret** and **Signing Secret** (Basic Information → App Credentials), those would be used for the chart. 2. Go to "App Manifest" in the Slack App settings and setup the manifest with the appropriate URLs (note the **backend URL**): ```yaml theme={"dark"} display_information: name: Chainloop description: Supply chain governance, answerable in Slack background_color: "#1A1A2E" long_description: Connect your Slack workspace directly to Chainloop with the new native Slack App integration. Once connected, you can pick specific channels for notifications, ask Chainloop directly from your workspace and more. features: bot_user: display_name: Chainloop always_online: true oauth_config: redirect_urls: - https://[your-backend-hostname]/slack/oauth/callback scopes: bot: - app_mentions:read - channels:history - channels:join - channels:read - chat:write - groups:history - groups:read - im:history - im:write - users:read - users:read.email pkce_enabled: false settings: event_subscriptions: request_url: https://[your-backend-hostname]/slack/events bot_events: - message.channels - message.im - app_uninstalled - tokens_revoked interactivity: is_enabled: true request_url: https://[your-backend-hostname]/slack/interactivity org_deploy_enabled: false socket_mode_enabled: false token_rotation_enabled: true is_mcp_enabled: false ``` 3. Enable direct messages so users can talk to Chainloop Ask directly. In the Slack App settings, go to **App Home → Show Tabs**, turn on the **Messages Tab**, and check **Allow users to send Slash commands and messages from the messages tab**. Without this, users won't be able to DM the app. ![Slack App Home settings with the Messages Tab enabled and slash commands allowed](https://mintcdn.com/chainloop/Fzn2n_BJZoSKfKRQ/guides/deployment/img/slack-messages-tab.png?fit=max\&auto=format\&n=Fzn2n_BJZoSKfKRQ\&q=85\&s=c0f1074a4f9e8b5375794ab4f6a0cf6e) 4. Configure the chart: ```yaml Platform Chart values.yaml theme={"dark"} backend: slackApp: enabled: true clientId: "" clientSecret: "" signingSecret: "" ``` This Slack App (AI-powered Q\&A) is separate from Slack incoming-webhook notifications. Those are set up at runtime in the Chainloop web UI under the organization and product notification settings, not in the chart. #### Configure Linear Chainloop integrates with Linear so that issues it creates are attributed to your own Linear app. Each organization installs it through OAuth. 1. Create a Linear OAuth application at [linear.app/settings/api/applications/new](https://linear.app/settings/api/applications/new). 2. Note its **Client ID** and **Client Secret**. 3. Configure the chart: ```yaml Platform Chart values.yaml theme={"dark"} backend: linearApp: enabled: true clientId: "" clientSecret: "" ``` ### Step 7 (optional) - Test MCP server The Chainloop Model Context Protocol (MCP) server is enabled by default. It is served by the backend under the `/mcp` path, so it is exposed through the existing backend domain. This means the MCP server is available at `https://[your-backend-hostname]/mcp`, for example `https://api.app.chainloop.dev/mcp`. Refer to the [Chainloop MCP server guide](/guides/chainloop-mcp) to learn how to connect to it from your AI clients and agents. ### Step 8 (optional) - Enable Managed CAS Auto-provision a per-organization S3 Access Point for every org in your installation, backed by a single shared bucket. Removes the need for users to bring their own CAS backend. Follow [this guide](./guides/managed-cas) to provision the AWS prerequisites and enable the feature. # Use Azure KeyVault as secrets backend Source: https://docs.chainloop.dev/guides/deployment/guides/azure-keyvault A requirement to run your own Chainloop instance, is to have a secure credentials backend where sensitive information such as API tokens can be stored. If you are running your instance in Azure, you might want to leverage the [Azure KeyVault](https://azure.microsoft.com/en-us/products/key-vault) secret backend for that purpose. During this guide we'll walk you through the process of a) create/retrieve credentials and configure the Key Vault in Azure and b) deploy Chainloop using that new configuration. ## Pre-requisites To configure your Chainloop instance with Azure KeyVault you'll need the following information from your Azure account: * Active Directory Tenant ID * Service Principal ID * Service Principal Secret * Vault URI We'll walk you through the process of how to find this information ## Register an application to create the service principal First, you'll need to register an application in your Azure Active Directory tenant. You can do this using the Azure CLI or from the Azure portal ![](https://mintcdn.com/chainloop/4m_Z_ZeRnSV7jb7V/guides/deployment/guides/img/azure-1.png?fit=max\&auto=format\&n=4m_Z_ZeRnSV7jb7V\&q=85\&s=cf4a82f083878341c748ca6367b359a1) Once done, in the application overview you should be able to find the tenantID, and Service principal ID ![](https://mintcdn.com/chainloop/4m_Z_ZeRnSV7jb7V/guides/deployment/guides/img/azure-3.png?fit=max\&auto=format\&n=4m_Z_ZeRnSV7jb7V\&q=85\&s=d645e8f897bef5766bf783753d904ca3) Next, let's create a secret for the service principal. ![](https://mintcdn.com/chainloop/4m_Z_ZeRnSV7jb7V/guides/deployment/guides/img/azure-2.png?fit=max\&auto=format\&n=4m_Z_ZeRnSV7jb7V\&q=85\&s=b5d9b8ad90e9512f8f7ca9d6eb5bc1c4) ## Create a Vault instance and give permissions Next, we'll create a Key Vault (or you can use an existing one) ![](https://mintcdn.com/chainloop/4m_Z_ZeRnSV7jb7V/guides/deployment/guides/img/azure-4.png?fit=max\&auto=format\&n=4m_Z_ZeRnSV7jb7V\&q=85\&s=4e8fbbaa1fc6634afdc648b6c947c87c) Take a note on the Vault URI ![](https://mintcdn.com/chainloop/4m_Z_ZeRnSV7jb7V/guides/deployment/guides/img/azure-7.png?fit=max\&auto=format\&n=4m_Z_ZeRnSV7jb7V\&q=85\&s=6d533aafe42d4d71b766da78db534477) Next, in the Vault IAM section, let's give permissions to the service principal by clicking on Add Role Assignment. ![](https://mintcdn.com/chainloop/4m_Z_ZeRnSV7jb7V/guides/deployment/guides/img/azure-5.png?fit=max\&auto=format\&n=4m_Z_ZeRnSV7jb7V\&q=85\&s=2bcb088130e36a3ffe5715dc72da2548) on the role assignment role, select "Key Vault Secrets officer" ![](https://mintcdn.com/chainloop/4m_Z_ZeRnSV7jb7V/guides/deployment/guides/img/azure-6.png?fit=max\&auto=format\&n=4m_Z_ZeRnSV7jb7V\&q=85\&s=af5718e18d2c61d20911ffa42343067c) and in the members, search for the application we just registered ![](https://mintcdn.com/chainloop/4m_Z_ZeRnSV7jb7V/guides/deployment/guides/img/azure-8.png?fit=max\&auto=format\&n=4m_Z_ZeRnSV7jb7V\&q=85\&s=24690dd016d61d5771bd2a9813be401d) That's all, we got all the information we need, let's just to the deployment. ## Configure Chainloop deployment As explained in the [deployment guide](../oss), you can configure the credentials backend using the `secretsBackend` section of the `values.yaml` file. Just put the information we gathered from the previous steps like this. ```yaml theme={"dark"} secretsBackend: backend: azureKeyVault azureKeyVault: tenantID: [TENANT_ID] # Active Directory Tenant ID clientID: [CLIENT_ID] # Registered application / service principal client ID clientSecret: [CLIENT_SECRET] # Service principal client secret vaultURI: [VAULT URI] # Azure Key Vault URL ``` And deploy your Chainloop Control Plane with the update values to take effect. Now your Chainloop instance will automatically store any sensitive information in the Azure KeyVault instance you just configured. # Use Keyfactor EJBCA to generate ephemeral signing certificates Source: https://docs.chainloop.dev/guides/deployment/guides/ejbca ### Summary Chainloop Evidence Store can be configured to generate signing certs by using EJBCA as the certificate authority, when signing in "key-less" mode: EJBCA is a popular open source PKI, check it out at [https://www.ejbca.org/](https://www.ejbca.org/). ### Prerequisites: If your organization doesn't have it already, you can follow these tutorials for a basic setup of EJBCA PKI solution. Requirements: 1. EJBCA is deployed following the [Quick Start Guide - Start EJBCA Container with Client Certificate Authenticated Access](https://docs.keyfactor.com/ejbca/latest/quick-start-guide-start-ejbca-container-with-clien) 2. EJBCA is configured for issuing signing certificates. Check the certificate request and installation steps at [Sign Container Images with Cosign and SignServer](https://docs.keyfactor.com/how-to/latest/sign-container-images-with-cosign-and-signserver) 3. EJBCA [Certificate Management APIs](https://doc.primekey.com/ejbca/ejbca-operations/ejbca-ca-concept-guide/protocols/ejbca-rest-interface#EJBCARESTInterface-GettingStartedgetting_started) are enabled. ### Configure Chainloop to use EJBCA as CA Check `ejbca_cA` section in Chainloop configuration options. In particular, set these values in your [config.yaml](https://github.com/chainloop-dev/chainloop/blob/main/app/controlplane/configs/config.devel.yaml) (these values are also mapped to the [chart values.yaml](https://github.com/chainloop-dev/chainloop/blob/main/deployment/chainloop/values.yaml#L668) file): ```yaml theme={"dark"} certificate_authorities: - ejbca_ca: # Where EJBCA service is located server_url: "https://localhost/ejbca" # Cert and private key for Client cert authentication against EJBCA key_path: "../../devel/devkeys/superadmin.key" cert_path: "../../devel/devkeys/superadmin.pem" # Certificate chain root_ca_path: "../../devel/devkeys/ManagementCA.pem" # EJBCA profile, end entity and CA names certificate_profile_name: "PlainSigner" end_entity_profile_name: "PlainSigner" certificate_authority_name: "ManagementCA" issuer: true ``` ### Signing Chainloop attestations with EJBCA issued certificates Using the following command (note that no `key` is provided), the following sequence of events will happen: 1. Chainloop CLI creates a certificate request, and sends it to Chainloop 2. Chainloop forwards the request to EJBCA's `v1/certificate/pkcs10enroll` API, which generates a new short-lived certificate for signing 3. Chainloop CLI signs the In-toto payload, and sends the statement to Chainloop for storage. ```shell theme={"dark"} > chainloop attestation push --bundle bundle.json ``` ![chainloop-ejbca-sequence.png](https://mintcdn.com/chainloop/4m_Z_ZeRnSV7jb7V/guides/deployment/guides/img/chainloop-ejbca-sequence.png?fit=max\&auto=format\&n=4m_Z_ZeRnSV7jb7V\&q=85\&s=0563ab2e97ad40f0c4e151cd88d48c99) ### Full example #### Crafting and signing an attestation. ```shell theme={"dark"} > chainloop att init --workflow mywf --project myproject INF Attestation initialized! now you can check its status or add materials to it ┌───────────────────┬──────────────────────────────────────┐ │ Initialized At │ 25 Jun 24 10:49 UTC │ ├───────────────────┼──────────────────────────────────────┤ │ Attestation ID │ 966b2426-e5a6-4805-91ff-e4ea1e95c5ea │ │ Name │ mywf │ │ Team │ │ │ Project │ myproject │ │ Contract Revision │ 1 │ └───────────────────┴──────────────────────────────────────┘ > chainloop att add --value evidence.txt INF material kind detected kind=ARTIFACT INF material added to attestation > chainloop --debug att push --bundle bundle-with-ejbca.json INF generating Sigstore bundle bundle-with-ejbca.json INF push completed ┌───────────────────┬──────────────────────────────────────┐ │ Initialized At │ 25 Jun 24 10:49 UTC │ ├───────────────────┼──────────────────────────────────────┤ │ Attestation ID │ 966b2426-e5a6-4805-91ff-e4ea1e95c5ea │ │ Name │ mywf │ │ Team │ │ │ Project │ myproject │ │ Contract Revision │ 1 │ └───────────────────┴──────────────────────────────────────┘ ┌────────────────────────────────────────────────────────────────────────────────────┐ │ Materials │ ├──────────┬─────────────────────────────────────────────────────────────────────────┤ │ Name │ material-1719312595918293000 │ │ Type │ ARTIFACT │ │ Set │ Yes │ │ Required │ No │ │ Value │ evidence.txt │ │ Digest │ sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 │ └──────────┴─────────────────────────────────────────────────────────────────────────┘ Attestation Digest: sha256:bafaffc629d5ffe4c3b6519b740459db6883a55c6092c438426ded7ec328f135 ``` #### Storing and inspecting the generated certificate: ```shell theme={"dark"} > cat bundle-with-ejbca.json | jq -r ".verificationMaterial.certificate.rawBytes" | base64 --decode | openssl x509 -inform DER -outform PEM > signingcert.pem > cat signingcert.pem | openssl x509 -text Certificate: Data: Version: 3 (0x2) Serial Number: 6f:42:e2:ec:6d:b3:25:41:97:6d:66:3b:73:fc:dc:d2:cc:67:c7:ce Signature Algorithm: sha256WithRSAEncryption Issuer: UID=c-0kxd0tu03vo9bdv86, CN=ManagementCA, O=EJBCA Container Quickstart Validity Not Before: Jun 25 10:49:04 2024 GMT Not After : Jun 25 10:49:03 2025 GMT Subject: CN=fce05d49-b633-4862-be1d-3345081ecaea ... ``` #### Verifying the attestation Verifying the attestation requires the signing cert extracted from the bundle and the root CA (provided by your organization out-of-band): ```shell theme={"dark"} > chainloop wf run describe --digest sha256:bafaffc629d5ffe4c3b6519b740459db6883a55c6092c438426ded7ec328f135 --verify true --cert signingcert.pem --cert-chain ../keyfactor/ManagementCA.pem WRN Both user credentials and $CHAINLOOP_TOKEN set. Ignoring $CHAINLOOP_TOKEN. ┌──────────────────────────────────────────────────────────────────────────────────────────┐ │ Workflow │ ├────────────────┬─────────────────────────────────────────────────────────────────────────┤ │ ID │ eb7b4633-96e2-4efe-b23f-f667f3f7acdc │ │ Name │ mywf │ │ Team │ │ │ Project │ myproject │ ├────────────────┼─────────────────────────────────────────────────────────────────────────┤ │ Workflow Run │ │ ├────────────────┼─────────────────────────────────────────────────────────────────────────┤ │ ID │ 966b2426-e5a6-4805-91ff-e4ea1e95c5ea │ │ Initialized At │ 25 Jun 24 10:49 UTC │ │ Finished At │ 25 Jun 24 10:59 UTC │ │ State │ success │ │ Runner Link │ │ ├────────────────┼─────────────────────────────────────────────────────────────────────────┤ │ Statement │ │ ├────────────────┼─────────────────────────────────────────────────────────────────────────┤ │ Payload Type │ application/vnd.in-toto+json │ │ Digest │ sha256:bafaffc629d5ffe4c3b6519b740459db6883a55c6092c438426ded7ec328f135 │ │ Verified │ true │ └────────────────┴─────────────────────────────────────────────────────────────────────────┘ ┌────────────────────────────────────────────────────────────────────────────────────┐ │ Materials │ ├──────────┬─────────────────────────────────────────────────────────────────────────┤ │ Name │ material-1719312595918293000 │ │ Type │ ARTIFACT │ │ Filename │ evidence.txt │ │ Digest │ sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 │ └──────────┴─────────────────────────────────────────────────────────────────────────┘ ``` # Gateway API and Envoy Gateway Source: https://docs.chainloop.dev/guides/deployment/guides/gateway-api Expose Chainloop Enterprise through Kubernetes Gateway API routes, tune Envoy Gateway timeouts and buffers, and enable TLS between the Gateway and the pods. The `chainloop-ee` chart can expose Chainloop through [Kubernetes Gateway API](https://gateway-api.sigs.k8s.io/) `HTTPRoute` and `GRPCRoute` resources instead of, or alongside, `Ingress`. When the Gateway is [Envoy Gateway](https://gateway.envoyproxy.io/), the chart also renders the traffic policies that long-running gRPC streams and large uploads need. > [!NOTE] > > This guide is for **platform operators** deploying the [Enterprise edition](/guides/deployment/chainloop-ee). The chart attaches routes to a Gateway you already run. It does not create the Gateway, its listeners or its public certificates. ## Prerequisites * Gateway API CRDs that serve `gateway.networking.k8s.io/v1` `HTTPRoute` and `GRPCRoute`. * A Gateway controller that supports HTTP/2 cleartext (h2c) to the backend Services. The chart sets `appProtocol: kubernetes.io/h2c` on the Services, so the controller must support [`HTTPRouteBackendProtocolH2C`](https://gateway-api.sigs.k8s.io/guides/user-guides/backend-protocol/). * A Gateway with listeners and public TLS certificates for the hostnames listed in [Hostnames](#hostnames). * For the [Envoy Gateway traffic policies](#envoy-gateway-traffic-policies): the Envoy Gateway CRDs that serve `gateway.envoyproxy.io/v1alpha1` `BackendTrafficPolicy`. * For [TLS between the Gateway and the pods](#tls-between-the-gateway-and-the-pods): CRDs that serve `gateway.networking.k8s.io/v1` `BackendTLSPolicy` and a controller that supports it. ## Enable Gateway API Routes Set a base domain and the Gateway the routes attach to: ```yaml values.yaml theme={"dark"} httpRoute: enabled: true hostname: chainloop.example.com parentRefs: - name: chainloop-gateway namespace: infra ``` `httpRoute.enabled` turns on routes for every component. To route only some components, leave it `false` and set `.httpRoute.enabled: true` instead. A component's `httpRoute.enabled: false` does not turn its routes off while the global flag is `true`. Each component can also override `hostname` and `parentRefs` under `frontend.httpRoute`, `backend.httpRoute`, `controlplane.httpRoute` and `cas.httpRoute`. > [!WARNING] > > Enabling Gateway API routes does **not** disable `Ingress`. The chart renders `Ingress` resources from their own flags regardless of the route settings: `ingress.enabled`, `.ingress.enabled`, `controlplane.ingressAPI.enabled`, `cas.ingressAPI.enabled`, `backend.mcpIngress.enabled` and `backend.samlDiscoverIngress.enabled`. Some chart parameter descriptions say otherwise. Set these flags to `false` if the Gateway should be the only entry point. > > While `Ingress` is also enabled, the chart builds the backend, control plane and CAS external URLs and the CLI endpoints from the `Ingress` hostnames. ### Hostnames The chart prefixes the base domain for each route. If `httpRoute.hostname` is empty, it falls back to `ingress.hostname`. | Hostname | Route | Serves | | - | - | - | | `app.` | `HTTPRoute` | Web UI | | `app-api.` | `HTTPRoute` and `GRPCRoute` | Platform API, `/mcp` and the MCP OAuth paths | | `mcp.` | `HTTPRoute` | MCP server. Set `backend.mcpHttpRoute.enabled: false` to skip it. | | `cp.` | `HTTPRoute` | Control plane: HTTP, and gRPC with [shared endpoints](#shared-control-plane-and-cas-endpoints) | | `cp-api.` | `GRPCRoute` | Control plane gRPC (legacy endpoint) | | `cas.` | `HTTPRoute` | CAS: downloads, and gRPC uploads with shared endpoints | | `cas-api.` | `GRPCRoute` | CAS gRPC (legacy endpoint) | `.httpRoute.hostname` replaces the derived hostname. The control plane and CAS gRPC routes use `.httpRouteAPI.hostname`. If neither that nor a base domain is set, they use the component's HTTP hostname. The backend URL that integrations call back to, such as the GitHub App or GitLab webhooks, is derived from these hostnames. See [backend external URL](/guides/deployment/guides/github-app#backend-external-url). ### Example: Gateway API Only, Without Ingress This example exposes Chainloop only through an Envoy Gateway, with no `Ingress` resources. It assumes the release is installed in the `chainloop` namespace, and the Gateway runs in the `infra` namespace. First, create a Gateway with an HTTPS listener for all Chainloop hostnames. A single wildcard certificate for `*.chainloop.example.com` in the Secret `chainloop-wildcard-tls` covers them. The routes live in another namespace, so the listener must allow them through `allowedRoutes`: ```yaml gateway.yaml theme={"dark"} apiVersion: gateway.networking.k8s.io/v1 kind: GatewayClass metadata: name: eg spec: controllerName: gateway.envoyproxy.io/gatewayclass-controller --- apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: name: chainloop-gateway namespace: infra spec: gatewayClassName: eg listeners: - name: https protocol: HTTPS port: 443 hostname: "*.chainloop.example.com" tls: mode: Terminate certificateRefs: - kind: Secret name: chainloop-wildcard-tls allowedRoutes: namespaces: from: All ``` Skip the `GatewayClass` if your Envoy Gateway installation already provides one, and use its name in `gatewayClassName`. To limit which namespaces can attach routes, use `from: Selector` instead of `from: All`. Then add the routes to your chart values: ```yaml values.yaml theme={"dark"} httpRoute: enabled: true hostname: chainloop.example.com parentRefs: - name: chainloop-gateway namespace: infra ``` All `Ingress` flags default to `false`, so this renders no `Ingress`. When you move an existing installation from `Ingress` to the Gateway, remove or set to `false` any of these flags your values still enable: `ingress.enabled`, `frontend.ingress.enabled`, `backend.ingress.enabled`, `backend.mcpIngress.enabled`, `backend.samlDiscoverIngress.enabled`, `controlplane.ingress.enabled`, `controlplane.ingressAPI.enabled`, `cas.ingress.enabled` and `cas.ingressAPI.enabled`. The chart renders five `HTTPRoute`s (`app`, `app-api`, `mcp`, `cp` and `cas`), three `GRPCRoute`s (`app-api`, `cp-api` and `cas-api`), and, with Envoy Gateway, one `BackendTrafficPolicy` per route. The CLI installer points to `cp-api.chainloop.example.com:443` and `cas-api.chainloop.example.com:443`, or to `cp.` and `cas.` with [shared endpoints](#shared-control-plane-and-cas-endpoints). Check that no `Ingress` is left and that the routes are attached to the Gateway: ```bash theme={"dark"} kubectl -n chainloop get ingress kubectl -n chainloop get httproute,grpcroute ``` The first command should return no resources. Each route should report `Accepted` for `chainloop-gateway`. ## Envoy Gateway Traffic Policies Without extra configuration, Envoy applies a 15-second timeout to every request, including gRPC streams. Its default 32 KiB connection buffer and 64 KiB HTTP/2 windows towards the backend also slow down large uploads. The chart therefore renders one Envoy Gateway `BackendTrafficPolicy` per route, named after the route. Each policy sets the route's request timeout. Routes that carry gRPC also get larger buffer and HTTP/2 window settings. The defaults, available in chart `0.601.1` and later: ```yaml values.yaml theme={"dark"} httpRoute: envoyGateway: enabled: auto timeouts: web: 300s # frontend and control plane HTTP routes api: 900s # backend HTTP routes (REST and MCP) casHttp: 3600s # CAS HTTP route (artifact downloads) grpc: 3600s # backend and control plane gRPC routes casGrpc: 10800s # CAS gRPC route (uploads of several GB) flowControl: # applied to the routes that carry gRPC bufferLimit: 4Mi initialStreamWindowSize: 4Mi initialConnectionWindowSize: 16Mi ``` | Route | Timeout | Flow control | | - | - | - | | Frontend `HTTPRoute` | `web` | No | | Backend `HTTPRoute` and MCP `HTTPRoute` | `api` | No | | Backend `GRPCRoute` | `grpc` | Yes | | Control plane `HTTPRoute` | `web`, or `grpc` with `useSharedEndpoints` | Only with `useSharedEndpoints` | | Control plane `GRPCRoute` | `grpc` | Yes | | CAS `HTTPRoute` | `casHttp`, or `casGrpc` with `useSharedEndpoints` | Only with `useSharedEndpoints` | | CAS `GRPCRoute` | `casGrpc` | Yes | With [shared endpoints](#shared-control-plane-and-cas-endpoints), the CLI sends its gRPC traffic to the control plane and CAS `HTTPRoute`s. Those routes then get the gRPC timeout and flow control. The request timeout also covers streaming responses, so long-lived MCP sessions can be cut after `timeouts.api`. Raise it if your clients need longer sessions. ### When the Policies Are Rendered `httpRoute.envoyGateway.enabled` accepts three values: * `auto` (default): render the policies only when Helm sees the `gateway.envoyproxy.io/v1alpha1` `BackendTrafficPolicy` API in the cluster. * `true`: always render them. * `false`: never render them. `helm template` and GitOps pipelines that render without access to the cluster do not see the API, so `auto` renders nothing. In that case, set `enabled: true`, or pass `--api-versions gateway.envoyproxy.io/v1alpha1/BackendTrafficPolicy` to `helm template`. The same flag also gates the rate limit policy for the SAML discovery route, which is rendered when `backend.samlDiscoverIngress.enabled` is `true`. Before chart `0.601.1`, that policy was rendered whenever the route was. When upgrading with `auto` and an offline render, set `enabled: true` to keep the rate limit. ### Existing Policies If you already manage `BackendTrafficPolicy` resources for the Chainloop routes, remove them before you enable the chart policies, or set `enabled: false`. Do not attach two policies to the same route. ### Other Gateway Implementations With a Gateway controller other than Envoy Gateway, keep `enabled: auto` or set it to `false`. The chart then renders no `gateway.envoyproxy.io` resources. Configure equivalent request timeouts and upload buffers in your controller, otherwise its defaults may cut gRPC streams and large uploads. ### Client-Side Settings The chart only configures the Gateway's connections towards the Chainloop pods. Listener buffers, HTTP/2 windows towards clients and header handling belong to an Envoy Gateway `ClientTrafficPolicy` attached to the Gateway, which you manage with the Gateway itself. ## Shared Control Plane and CAS Endpoints The control plane and CAS serve HTTP and native gRPC on one HTTP port, so a single hostname per component can carry both. This requires Chainloop OSS images `v1.126.0` or later. By default the chart keeps sending clients to the legacy `cp-api` and `cas-api` endpoints. To switch the backend, the control plane's CAS client, the Kubernetes sandbox CLI and the CLI installer (`/cli/install.sh`) to the shared endpoints, set: ```yaml values.yaml theme={"dark"} useSharedEndpoints: true ``` With the example above, the CLI then uses `cp.chainloop.example.com:443` and `cas.chainloop.example.com:443`. Values set in `backend.preconfiguredCliSettings` still take precedence. This flag only changes which endpoints clients use. The legacy `cp-api` and `cas-api` routes, and the `ingressAPI`, `httpRouteAPI` and `serviceAPI` settings, keep working but are deprecated. CLIs that are already installed keep their saved addresses, so reconfigure them: ```bash theme={"dark"} chainloop config save --control-plane cp.chainloop.example.com:443 --artifact-cas cas.chainloop.example.com:443 ``` To go back, set `useSharedEndpoints: false` and reconfigure the CLIs to the legacy addresses. ## TLS Between the Gateway and the Pods By default, public TLS terminates at the Gateway and the Gateway reaches the backend, control plane and CAS pods over h2c. To encrypt that hop as well: 1. Enable TLS in the pods with a Secret containing `tls.crt` and `tls.key`: `backend.tlsConfig.secret.name`, `controlplane.tls.existingSecret` and `cas.tls.existingSecret`. For the control plane and CAS, the Secret enables TLS on both the HTTP and gRPC listeners. Direct HTTP clients must then use HTTPS. 2. Let the chart render a Gateway API `BackendTLSPolicy` per component, so the Gateway connects with TLS and verifies the pod certificate. This option is available in chart releases after `0.606.0`. For a release named `chainloop-ee` in the namespace `chainloop`, create the certificate Secrets and an `internal-ca` ConfigMap with the CA bundle in `ca.crt` first, then set: ```yaml values.yaml theme={"dark"} backend: tlsConfig: secret: name: backend-tls backendTLSPolicy: enabled: true hostname: chainloop-ee-backend.chainloop.svc.cluster.local caCertificateRefs: - name: internal-ca controlplane: tls: existingSecret: controlplane-tls backendTLSPolicy: enabled: true hostname: chainloop-ee-controlplane.chainloop.svc.cluster.local caCertificateRefs: - name: internal-ca cas: tls: existingSecret: cas-tls backendTLSPolicy: enabled: true hostname: chainloop-ee-cas.chainloop.svc.cluster.local caCertificateRefs: - name: internal-ca ``` Rules for each policy: * The component's Gateway routes must be enabled. Without routes, the chart renders no policy. * A pod TLS Secret is required. Without one, rendering fails. * `hostname` must be a DNS name in the pod certificate's SANs. The Gateway uses it for SNI and certificate verification. * Set exactly one trust source: `caCertificateRefs` (ConfigMaps in the release namespace, each with a `ca.crt` key) or `wellKnownCACertificates: System` (the Gateway's system trust store). Certificate verification cannot be skipped. The backend policy targets the backend Service `http` port. The control plane and CAS policies target both the shared Service `http` port and the legacy `-api` Service `grpc` port, with the same hostname and CA. The MCP and metrics listeners stay plaintext. The upstream TLS connection must negotiate HTTP/2 through ALPN. According to the [Envoy Gateway 1.6 release notes](https://gateway.envoyproxy.io/news/releases/notes/v1.6.0/), backend TLS includes `h2` by default from that version. On older versions, set `spec.backendTLS.alpnProtocols: [h2, http/1.1]` on the `EnvoyProxy` of your GatewayClass. > [!WARNING] > > If you already manage `BackendTLSPolicy` resources for these Services in your infrastructure, either keep the chart option disabled or remove those policies before enabling it. The chart does not install CRDs, issue certificates, create a CA or change the Gateway's public certificates. ### Trust for Internal Clients The `BackendTLSPolicy` only covers the Gateway. Chainloop components also call each other directly. Add your private CA to the `customCAs` list so the backend, workers, control plane and CAS trust the pod certificates. Make sure the certificates cover the names those clients dial: the short Service names, the `-api` Service names, and the namespace-qualified names where used. The Kubernetes sandbox CLI uses one TLS setting for the platform, control plane and CAS endpoints, so either all of them use TLS or none do. Sandbox clients do not get the `customCAs` certificates, so provision private CA trust for them separately. Certificate renewal is not handled by the chart. Renew certificates through your issuer and restart or reload the workloads when the Secrets change, for example with [Reloader](https://github.com/stakater/Reloader). Test HTTP, native gRPC, internal calls and certificate renewal in a separate deployment before enabling pod TLS in production. Changing the listeners and the Gateway policies is not atomic. ## Using Ingress Instead The control plane and CAS `Ingress` resources also send HTTP/2 to the shared ports, which requires Chainloop OSS images `v1.126.0` or later. The chart sets the upstream protocol annotations for community ingress-nginx (`backend-protocol: GRPC`, or `GRPCS` with pod TLS) and F5 NGINX (`nginx.org/grpc-services` and `nginx.org/http2`) on the `Ingress`. For Traefik it sets `traefik.ingress.kubernetes.io/service.serversscheme` (`h2c`, or `https` with pod TLS) on the Service. Every backend behind an ingress-nginx `Ingress` for these components, including `extraPaths`, must accept HTTP/2. Other controllers need their own HTTP/2 upstream settings. The `/mcp` and MCP OAuth paths are served by a separate `-backend-mcp-paths` `Ingress`. F5 NGINX does not merge `Ingress` resources that share a host, so set `backend.ingress.mcpPathsInline: true` to serve those paths from the backend `Ingress`. Do not set it with community ingress-nginx, where the `GRPC` backend protocol would then apply to the MCP paths too. ## Verify Check that the routes and policies are rendered and accepted: ```bash theme={"dark"} kubectl -n chainloop get httproute,grpcroute kubectl -n chainloop get backendtrafficpolicy,backendtlspolicy kubectl -n chainloop describe backendtrafficpolicy chainloop-ee-cas-api ``` Routes should report `Accepted` and `ResolvedRefs` for their parent Gateway, and policies should report `Accepted`. Then log in with the CLI and run an attestation that uploads an artifact, to exercise the control plane and CAS gRPC paths. ## Troubleshooting | Symptom | Likely cause and fix | | - | - | | gRPC calls or uploads through Envoy Gateway are cut after about 15 seconds | No `BackendTrafficPolicy` was rendered, so Envoy's default timeout applies. With `enabled: auto` and `helm template` or GitOps, set `httpRoute.envoyGateway.enabled: true`. | | Large uploads through the Gateway are slow | The routes that carry the uploads may lack flow control. Check that the CAS policies exist. With `useSharedEndpoints: true`, check the CAS `HTTPRoute` policy too. | | Both `Ingress` and routes exist | `Ingress` is controlled separately. Set all `Ingress` flags to `false`, as in the [Gateway-only example](#example-gateway-api-only-without-ingress). | | Rendering fails with `backendTLSPolicy.enabled requires a pod TLS Secret` | Set the component's pod TLS Secret, or disable its `backendTLSPolicy`. | | A policy is not `Accepted` | Check the policy status. For example, another policy may target the same route or Service. Remove the externally managed one or disable the chart option. | | The Gateway cannot reach the pods after enabling pod TLS | Check that `backendTLSPolicy.hostname` is in the certificate SANs, the CA ConfigMap has `ca.crt`, and ALPN includes `h2`. | # GitHub App (Self-hosted) Source: https://docs.chainloop.dev/guides/deployment/guides/github-app Configure the Chainloop GitHub App on a self-hosted deployment via Helm chart values. To enable GitHub repository onboarding on a self-hosted Chainloop instance, create a GitHub App and provide its credentials to the Chainloop backend through Helm chart values. This is a one-time, operator-level setup step — once configured, your users connect their GitHub organization from the Chainloop UI following the [Connect GitHub & GitLab](/guides/connect-repository) flow. ## Create the GitHub App **1. Create the App on GitHub** Follow GitHub's [guide to creating GitHub Apps](https://docs.github.com/en/apps/creating-github-apps) to register a new App under your GitHub organization (or personal account, for testing). **2. Grant the required permissions and events** Configure the App's repository and organization permissions and subscribe to the two webhook events Chainloop needs: `pull_request` and `pull_request_review`. See the [cumulative permission set](/reference/github-permissions#cumulative-permission-set) for the full, up-to-date list of scopes, and [subscribed webhook events](/reference/github-permissions#subscribed-webhook-events) for what each event drives. > [!NOTE] > > On an App you created earlier, check that `pull_request_review` is subscribed. Without it, a pull request is not re-validated when a reviewer approves, requests changes, or has their review dismissed. The event needs no permission beyond **Pull requests: Read**, which the App already has. **3. Collect the App ID** On the App's settings page, note the **App ID** shown near the top. You'll set this as `appId`. **4. Generate a client secret and collect the client ID** Under **General → Client secrets**, click **Generate a new client secret**. GitHub displays it once and never returns it from the API — record it before leaving the page. You'll set it as `clientSecret`, and the **Client ID** shown just above it as `clientId`. **5. Register the OAuth callback URL** Under **Identifying and authorizing users**, add a **Callback URL** of `/enroll/github/authorize/callback`. Add it alongside any existing entries without reordering them. Leave **Allow wildcard matching** off. Chainloop sends `redirect_uri` explicitly on every authorization request, so ordering and wildcards are unnecessary — and a wildcard would let OAuth codes reach subdomains and sub-paths. Leave **Request user authorization (OAuth) during installation** unchecked. See the warning below. **6. Set the Setup URL** Under **Post installation**, set the **Setup URL** to `/enroll/github/callback` and keep **Redirect on update** checked. This is what returns a user to Chainloop after they install the App, or after they add or remove repositories on an existing installation. **7. Generate a private key** Under **Private keys**, click **Generate a private key**. GitHub downloads a PEM file — you'll set its contents as `privateKey`. **8. Note the app slug** The App's public URL is of the form `https://github.com/apps/`. Copy the `` segment — you'll set this as `appSlug`. **9. Set a webhook secret** Under **Webhook**, set a **Secret** — a random string used to verify that incoming webhook requests genuinely came from GitHub. You'll set this as `webhookSecret`. Set the **Webhook URL** to `/github/events`. > [!WARNING] > > **Do not enable *Request user authorization (OAuth) during installation*.** Selecting it removes the **Setup URL** field from the App's settings entirely, which breaks both the connection flow and the add/remove-repositories flow — with no error shown in the Chainloop UI or in the backend logs. Because it changes the App registration rather than the deployment, rolling back a Chainloop image does not undo it. ## Chart values Provide the App's details to the Chainloop backend under `backend.githubApp` in your Helm chart values: ```yaml theme={"dark"} backend: githubApp: appId: 123456 privateKey: | -----BEGIN RSA PRIVATE KEY----- ... -----END RSA PRIVATE KEY----- appSlug: my-chainloop-app baseUrl: https://github.com webhookSecret: "" clientId: "" clientSecret: "" ``` | Key | Description | | - | - | | `appId` | GitHub App ID. | | `privateKey` | PEM-encoded RSA private key for signing App JWTs. | | `appSlug` | App slug from the App's public URL (also acts as the enable flag; the config renders only when set). | | `baseUrl` | Optional, defaults to `https://github.com`. | | `webhookSecret` | Shared secret for verifying GitHub webhook signatures (HMAC-SHA256); required for webhook event processing. | | `clientId` | **Required.** OAuth client ID from the App's settings page. | | `clientSecret` | **Required.** OAuth client secret, generated under **General → Client secrets**. | > [!NOTE] > > `clientId` and `clientSecret` are required whenever `backend.githubApp` is set, together with a resolvable [backend external URL](#backend-external-url). The backend refuses to start without them. Deployments with no GitHub App configured are unaffected. > [!NOTE] > > These values apply to both the OSS chart (`chart: platform`) and the Enterprise chart (`chainloop-ee`) — the value paths are identical. ## Why the OAuth credentials are required When a user connects their GitHub organization, Chainloop binds a GitHub App installation to their Chainloop organization. Before creating that binding it confirms the person completing the flow has access to the installation they're binding, by sending them through the App's user-to-server OAuth flow. The App's private key cannot answer that question — it identifies the App, never the human in the browser — and minting a user access token requires the OAuth client credentials. Users see one extra GitHub authorization prompt the first time an installation is bound. Re-running the flow against an installation the organization already holds skips it, so adding and removing repositories is unaffected. See [installer verification](/reference/github-permissions#installer-verification-at-connection-time) for what Chainloop checks and which token it uses. ## Backend external URL The OAuth callback URL is derived from the backend's externally reachable origin by appending `/enroll/github/authorize/callback`. GitHub matches `redirect_uri` byte for byte against the registered **Callback URL**, so the two must agree exactly — including scheme, and with no trailing slash on the origin. You don't set this origin under `githubApp`. The chart derives it from the first of these that is set: | Value | Result | | - | - | | `backend.externalHostname` | used as-is (a full origin, e.g. `https://api.chainloop.example`) | | `backend.ingress.hostname` (with `backend.ingress.enabled`) | `https://` when `backend.ingress.tls` is enabled, otherwise `http://` | | `ingress.hostname` (with `ingress.enabled`) | `https://app-api.` when `ingress.tls` is enabled, otherwise `http://app-api.` | | `backend.httpRoute.hostname`, or `app-api.` plus `httpRoute.hostname` (falling back to `ingress.hostname`) | `https://` when Gateway API routes are enabled. See [Gateway API hostnames](/guides/deployment/guides/gateway-api#hostnames). | The resolved callback URL is logged by the backend at startup, so you can copy it verbatim into the App's **Callback URL** list: ``` initialized GitHub App installer verification callback_url=https://api.chainloop.example/enroll/github/authorize/callback ``` ## Rotating the client secret Rotating `clientSecret` invalidates connection flows that are **in progress** at the moment of the rollout — the key protecting the OAuth state parameter is derived from the secret, so a flow that started before the change fails on its return leg. Affected users simply start the connection again. Installations already bound are unaffected, and no repository data is lost. ## Troubleshooting | Symptom | Cause and fix | | - | - | | Backend panics at startup with `github_app.client_id: must be at least 1 characters` | `clientId` or `clientSecret` is unset while `backend.githubApp` is configured. Set both. | | Backend fails at startup complaining that `server.http.external_url` is not set | No [backend external URL](#backend-external-url) could be resolved. Set `backend.externalHostname`, or an ingress or HTTPRoute hostname. | | GitHub shows its own error page about a `redirect_uri` mismatch | The **Callback URL** on the App doesn't byte-match the derived one. Compare it against the URL logged at startup — scheme and trailing slash included. | | *"This connection session has expired, or it was not started from Chainloop"* | The **Setup URL** is missing or wrong, **Redirect on update** is unchecked, or **Request user authorization (OAuth) during installation** is enabled (which hides the Setup URL field). | | *"Your GitHub account does not have access to this App installation"* | The signed-in GitHub user has no access to that installation. Someone with access to it on GitHub must complete the connection. | | *"Your GitHub organization enforces SAML single sign-on"* | The user's GitHub session isn't authorized for that organization. Authorize it on GitHub, then start the connection again. | | *"Authorization was declined on GitHub"* | The user dismissed the GitHub authorization prompt. Granting it is required to confirm they administer the installation. | > [!NOTE] > > **GitHub Enterprise Server:** set `baseUrl` to your GHES URL — all features are supported the same way as on github.com. `baseUrl` also determines where the OAuth endpoints and the REST API are reached (`/login/oauth/*` and `/api/v3`), so no additional configuration is needed. # GitLab (Self-managed) Source: https://docs.chainloop.dev/guides/deployment/guides/gitlab Prepare a self-managed GitLab instance and a self-hosted Chainloop deployment so that GitLab connections, webhooks, and merge-request feedback work. A GitLab connection needs no Helm chart values. Org admins register it at runtime with an access token, as shown in [Connect GitHub & GitLab](/guides/connect-repository). But when GitLab is self-managed, Chainloop is self-hosted, or both, the two systems must reach each other over the network and trust each other's TLS certificates. This page lists what GitLab administrators and Chainloop operators must configure for that. ## Network Requirements Traffic goes in both directions: | From | To | Purpose | | - | - | - | | Chainloop backend and worker | GitLab host (HTTPS) | Validate the token, list projects, register project webhooks, post merge-request notes and commit statuses, open merge requests, and read repository configuration. | | GitLab | Chainloop backend external URL (HTTPS) | Deliver merge-request webhook events to `/gitlab/events`. | The backend external URL is the origin that the chart derives from `backend.externalHostname`, or from the `backend.ingress` or `backend.httpRoute` hostname. See [backend external URL](/guides/deployment/guides/github-app#backend-external-url) for the resolution order. GitLab must be able to resolve and reach this exact hostname. If GitLab cannot reach Chainloop, the connection still registers and repositories still appear in the Create Project wizard. Only the event-driven features stop: no merge-request summary note, no commit statuses, and no pull-request scans. ## Allow Webhooks to Chainloop in GitLab By default, GitLab blocks webhook requests to local network addresses: `127.0.0.0/8`, `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`, and their IPv6 equivalents. When the Chainloop backend hostname resolves to a private IP address, as is usual for a self-hosted Chainloop in the same network as GitLab, GitLab refuses to create the project webhook that Chainloop registers. A GitLab administrator must allow outbound requests to the Chainloop backend. This setting is available on GitLab Self-Managed and GitLab Dedicated. On gitlab.com you cannot change it, so the Chainloop backend must be reachable from the public internet. **1. Open the outbound request settings** In GitLab, select **Admin** in the upper-right corner. In the left sidebar, select **Settings** > **Network**, then expand **Outbound requests**. **2. Allow the Chainloop backend** Choose one of the options below, then select **Save changes**. > [tab] Allowlist the Chainloop host (recommended) > > In **Local IP addresses and domain names that hooks and integrations can access**, add the hostname of the Chainloop backend, for example: > > ``` > api.chainloop.example.com > ``` > > Add a port if the backend is not on the default HTTPS port (`api.chainloop.example.com:8443`). You can also add an IP address or a CIDR range. GitLab does not accept wildcards, and entries are separated by semicolons, commas, or whitespace. > > This option allows only the Chainloop backend. All other local network targets stay blocked. > [tab] Allow the whole local network > > Select **Allow requests to the local network from webhooks and integrations**. > > This allows webhooks from every GitLab project to every address in the local network. Use it only if your security policy permits it. > [!NOTE] > > If **Block all requests, except for IP addresses, IP ranges, and domain names defined in the allowlist** is selected, GitLab blocks every webhook target that is not in the allowlist, public or private. In that case, add the Chainloop backend hostname to the allowlist even when it resolves to a public IP address. For more information, see GitLab's [filtering outbound requests](https://docs.gitlab.com/security/webhooks/) documentation. ### Register the Webhooks Again Chainloop registers a project webhook each time a repository is linked to a project. If GitLab rejects the webhook, the link still succeeds and the Chainloop UI shows no error. The backend logs the warning `failed to ensure SCM webhook`. After you change the outbound request settings, link the repository to a project again: unlink it and link it again, or link it to another project. Chainloop then creates the webhook, or updates the existing one. ## Trust TLS Certificates Both directions use HTTPS with certificate verification. If GitLab or Chainloop uses a certificate signed by a private certificate authority (CA), the other side must trust that CA. ### Chainloop Trusts GitLab Add the CA that signed the GitLab certificate to the Chainloop chart. The backend and worker then trust it for all calls to GitLab. ```yaml chainloop-ee values.yaml theme={"dark"} customCAs: - |- -----BEGIN CERTIFICATE----- ... -----END CERTIFICATE----- ``` ```yaml Platform chart values.yaml theme={"dark"} backend: customCAs: - |- -----BEGIN CERTIFICATE----- ... -----END CERTIFICATE----- ``` If this CA is missing, the connection fails at registration with `token failed to authenticate against `, followed by a TLS error such as `x509: certificate signed by unknown authority`. ### GitLab Trusts Chainloop Chainloop registers every project webhook with **Enable SSL verification** turned on. You cannot change this from Chainloop, and you must not turn it off on the webhook. If the Chainloop backend certificate is signed by a private CA, add that CA to the trusted certificates of GitLab: > [tab] Linux package > > Copy the public CA certificate (PEM or DER) into `/etc/gitlab/trusted-certs`, then run: > > ```bash theme={"dark"} > sudo gitlab-ctl reconfigure > ``` > > If the chain has intermediate certificates, put each certificate in a separate file. See GitLab's [custom public certificates](https://docs.gitlab.com/omnibus/settings/ssl/#install-custom-public-certificates) documentation. > [tab] GitLab Helm chart > > Create a secret with the CA certificate and reference it under `global.certificates.customCAs`: > > ```bash theme={"dark"} > kubectl create secret generic chainloop-ca \ > --from-file=chainloop-ca.crt=chainloop-ca.pem > ``` > > ```yaml theme={"dark"} > global: > certificates: > customCAs: > - secret: chainloop-ca > ``` > > See GitLab's [custom certificate authorities](https://docs.gitlab.com/charts/charts/globals/#custom-certificate-authorities) documentation. ## Webhook Secret GitLab sends a shared secret in the `X-Gitlab-Token` header of each webhook delivery, and Chainloop rejects deliveries with a missing or incorrect token. The chart generates this secret on install and keeps it across upgrades. Set `backend.gitlab.webhookSecret` only if you want to manage the value yourself. See [Configure GitLab](/guides/deployment/chainloop-ee#configure-gitlab). Chainloop sets the same secret on every webhook it registers, so you do not need to copy it into GitLab. ## Verify the Webhook After you link a GitLab repository to a project: 1. In GitLab, open the project and select **Settings** > **Webhooks**. 2. Find the webhook with the URL `/gitlab/events?connection=`. It is subscribed to **Merge request events**. 3. Select **Test** > **Merge request events**, or open a merge request. 4. Select **Edit** on the webhook and look at **Recent events**. A successful delivery shows HTTP status `200`. If there is no webhook in the list, GitLab rejected the registration. Check the outbound request settings, then [register the webhook again](#register-the-webhooks-again). ## Troubleshooting | Symptom | Cause and fix | | - | - | | The connection fails with `token failed to authenticate against ` and a TLS error | Chainloop does not trust the GitLab certificate. Add the GitLab CA to [`customCAs`](#chainloop-trusts-gitlab). | | The connection fails with `token failed to authenticate against ` and a connection or DNS error | The Chainloop backend cannot reach the GitLab host. Check DNS, firewalls, and egress proxies between the backend and GitLab. | | The connection fails with `no repositories are accessible with the provided token` | The token has less than **Developer** access to every project. Give the token's user, group, or service account **Developer** access or higher. | | Repositories are listed, but the project has no webhook in **Settings** > **Webhooks** | GitLab refused the webhook URL, usually with `Requests to the local network are not allowed`. [Allow the Chainloop backend](#allow-webhooks-to-chainloop-in-gitlab), then [register the webhook again](#register-the-webhooks-again). | | The webhook exists, but **Recent events** shows connection errors or timeouts | GitLab cannot reach the backend external URL. Check DNS and firewalls from the GitLab host to the Chainloop backend. | | **Recent events** shows an SSL error | GitLab does not trust the Chainloop certificate. Add the CA to the [GitLab trusted certificates](#gitlab-trusts-chainloop). | | **Recent events** shows HTTP `401` | The `X-Gitlab-Token` does not match the backend webhook secret, for example after `backend.gitlab.webhookSecret` changed. [Register the webhook again](#register-the-webhooks-again) to update its secret. | | The webhook is disabled in GitLab | GitLab disables a webhook temporarily after four consecutive failures, and permanently after 40. Fix the cause, then send a test request from the webhook in GitLab. A `2xx` response re-enables it. | # Use Ory Hydra as OIDC (OpenID Connect) provider Source: https://docs.chainloop.dev/guides/deployment/guides/hydra-oauth2 A requirement to run your own Chainloop instance is to configure an OIDC provider to authenticate users who interact with the control plane. ## Pre-requisites To configure your Chainloop instance with Ory Hydra you'll need the following information: * Ory Hydra instance running * Access to your OIDC provider configuration ## Configure Ory Hydra First, you'll need to have an Ory Hydra instance running. You can follow the [official documentation](https://www.ory.sh/hydra/docs/) to set up your own instance. Then simply create a new OAuth2 client in your Ory Hydra instance. You can do this by running the following command: ```bash theme={"dark"} $ hydra create oauth2-client --name "ACME Solutions" --grant-type authorization_code,refresh_token --response-type code --scope openid,email,profile --redirect-uri http://CHAINLOOP_INSTANCE_URL/auth/callback --endpoint https://ORY_HYDRA_URL ``` Chainloop client will only request `openid`, `email` and `profile` scopes. Relevant information that can be noted from the command signature is: * `name`: The name of the OAuth2 client * `grant-type`: The grant type of the client it needs to be set `authorization_code` and `refresh_token` * `response-type`: The response type of the client: `code` * `scope`: The scopes that the client will request: `openid`, `email`, `profile` * `redirect-uri`: The redirect URI of the client: Whenever is the Chainloop instance URL plus `/auth/callback` * `endpoint`: The endpoint of the Ory Hydra instance Once the command is run, it will give back something similar to the following: ```bash theme={"dark"} CLIENT ID b028840e-8c54-4d01-91b9-eb2c4aa6fc0e CLIENT SECRET REDACTED GRANT TYPES authorization_code, refresh_token RESPONSE TYPES code SCOPE openid email profile AUDIENCE REDIRECT URIS http://0.0.0.0:8000/auth/callback, http://localhost:8000/auth/callback ``` ## Configure Chainloop deployment As explained in the [deployment guide](../oss), you can configure the ODIC configuration `oidc` section of the `values.yaml` file. Just put the information we gathered from the previous steps like this. ```yaml theme={"dark"} controlplane: oidc: url: "" # Ory Hydra URL clientID: "" # Ory Hydra OAuth2 client ID clientSecret: "" # Ory Hydra OAuth2 client secret ``` And deploy your Chainloop Control Plane with the update values to take effect. Now your Chainloop instance will automatically authenticating users using the Ory Hydra instance you just configured. # Managed CAS with AWS S3 Access Points Source: https://docs.chainloop.dev/guides/deployment/guides/managed-cas Auto-provision a per-organization S3 Access Point for every org in your Chainloop installation, backed by a single shared bucket. Managed CAS is a Chainloop Enterprise feature where the platform auto-provisions a dedicated [AWS S3 Access Point](https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points.html) for every organization in your installation, all backed by a single shared S3 bucket. End users do not need to bring their own [CAS backend](/concepts/cas-backend) — uploads and downloads work out of the box from the moment an org is created. > [!NOTE] > > This guide is for **platform operators** running Chainloop on-prem in AWS. If your users want to bring their own storage (OCI registry, their own S3 bucket, Azure Blob, etc.) instead, see the [CAS backend concepts page](/concepts/cas-backend). ## How It Works * **Single shared bucket** per Chainloop installation. There is no per-org bucket to provision or rotate. * Storage is provisioned automatically for every organization while managed CAS is enabled — no per-org action from you or your users. Each org gets: * one [S3 Access Point](https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points.html) on the shared bucket, * one **IAM managed policy**, used as a session policy to scope credentials to that access point, * one storage backend in Chainloop, named `chainloop-cloud-storage` and marked as managed. * Chainloop reaches the access point through short-lived, per-request `sts:AssumeRole` sessions scoped to a single organization. * **No long-lived AWS credentials are stored.** Chainloop persists a small record per org in its secrets backend holding only the access point ARN, the region, the tenant role ARN and the per-org session policy ARN — no access keys. * Every object is keyed under `/sha256:` inside the bucket, and the key prefix is derived from the authenticated org on each request rather than read from stored configuration. * Encryption at rest is delegated to a customer-managed **KMS key** on the bucket (`SSE-KMS`). > [!NOTE] > > Provisioning is currently one-way: Chainloop creates access points, session policies and objects, but never deletes them. Removing storage for a deleted or downgraded organization is a manual operation today. ## Authentication Model S3 Access Points have **no credentials of their own**. Authentication is ordinary AWS IAM — the access point is a resource-side scoping primitive, not an identity. Getting this model right is what most of the setup below is about. Two properties drive everything: 1. **A request must be allowed by every layer it passes through.** Effective permissions are the intersection of the tenant role's identity policy, the per-org session policy, and the resource policies — not their union. 2. **A request through an access point is authorized twice**, once against the **access point ARN** and once against the **bucket ARN**. AWS grants the access only if both contexts allow it. This is why the bucket policy must delegate to access points: without a bucket-context `Allow`, requests fail even when every access point and session policy is perfect. ### How Pods Obtain AWS Credentials Chainloop supports the two standard EKS mechanisms for giving a pod an AWS identity, and you pick one for your installation: * **EKS Pod Identity** (recommended) — the workload role trusts the `pods.eks.amazonaws.com` service principal, and you bind service accounts to it with pod identity associations. * **IRSA** — the workload role trusts your cluster's OIDC provider, and each pod exchanges a projected service-account token via `sts:AssumeRoleWithWebIdentity`. Both produce the same thing: workload credentials the pod then uses to assume the tenant role. Everything from that point on — the tenant-role session, the access point policy, the bucket policy, KMS — is identical either way. Only this first layer differs, and it is the layer that fails first when misconfigured. Configure your choice in [Configure Workload Identities](#4-configure-workload-identities). ```mermaid theme={"dark"} flowchart TB backend["backend worker pod"] -->|IRSA or Pod Identity| bwr["Backend workload role"] cas["cas and controlplane pods"] -->|IRSA or Pod Identity| cwr["Controlplane workload role"] bwr -->|"CreateAccessPoint, PutAccessPointPolicy, CreatePolicy"| prov["Per-org access point
and session policy"] cwr -->|"sts:AssumeRole as tenant role
session name cas-org-uuid
plus per-org session policy"| sess["Scoped 1h credentials"] sess --> apctx{"Access point context
AP policy checks
aws:userid"} apctx --> bkctx{"Bucket context
bucket policy delegates
to access points"} bkctx --> kmsctx{"Encryption
KMS key policy admits
the tenant role"} kmsctx --> obj[("s3://bucket/org-uuid/sha256:digest")] ``` Each layer, what must allow it, and how it fails: | Layer | Must be allowed by | What Chainloop does | Failure signature | | - | - | - | - | | Pod credentials | The **workload role's trust policy** | `sts:AssumeRoleWithWebIdentity` (IRSA) or an EKS Pod Identity association | `AccessDenied: Not authorized to perform sts:AssumeRoleWithWebIdentity` | | Tenant role | The **tenant role's trust policy** plus the workload role's permission policy | `sts:AssumeRole` with `RoleSessionName` = `cas-` and the org's session policy attached by ARN, valid one hour | `not authorized to perform: sts:AssumeRole` | | Access point context | The **access point resource policy**, intersected with the tenant role's identity policy and the session policy | Passes the access point ARN as the S3 `Bucket` parameter | `403` on `PutObject` or `GetObject` | | Bucket context | The **bucket policy's delegation `Allow`** | The same request, re-evaluated against the bucket ARN | `HeadObject` returns a bare `403 Forbidden` with no error code or message | | Encryption | The **KMS key policy** | Relies on the bucket's `SSE-KMS` default encryption | A KMS error on `PutObject` or `GetObject` | Which identity performs which call matters when reading logs: * The **backend worker** provisions: it creates access points, writes their resource policies, and creates the per-org session policies. * The **cas** and **controlplane** pods read and write objects. They only ever assume the tenant role. * The **tenant role** creates nothing. It is the principal named in every access point policy, and the role whose temporary sessions are narrowed per org. Per-org isolation rests on two independent mechanisms: the session policy limits the credentials to a single access point, and the access point policy requires `aws:userid` to equal `:cas-` — a session name Chainloop derives from the authenticated request, not from stored configuration. A tampered record pointing org A at org B's access point still assumes a session named for org A, and is denied. > [!WARNING] > > Access point resource policies and per-org session policies are **machine-generated**. Never hand-author or edit them: > > * A hand-written access point policy is silently overwritten on the next reconciliation. > * A hand-edited session policy is **never** corrected — Chainloop creates each per-org policy once and does not update existing ones, so a modified document stays modified until you delete the policy and let it be recreated. > > The only policies you own are the ones in this guide: the bucket policy, the KMS key policy, and the IAM roles. ## Prerequisites You will provision the following resources in your AWS account before enabling the feature in Chainloop. We recommend managing them with Terraform or OpenTofu. * A single **S3 bucket** for the installation * A customer-managed **KMS key** for `SSE-KMS` on the bucket * A **tenant IAM role** — the role Chainloop workloads assume per-request to reach the access points * **Workload identities** (EKS Pod Identity or IRSA) attached to the Chainloop `backend`, `controlplane`, and `cas` pods so they can call AWS APIs You also need a **secrets backend** (HashiCorp Vault or AWS Secrets Manager) configured in your installation. Managed CAS stores each org's access point record there, and provisioning fails without it. ### Resource Naming Chainloop derives access point and session policy names — they are **not configurable**. Both include a slug taken from `backend.environment`, and the bucket and IAM policies you write below must match it: | `backend.environment` | Access point names | Session policy names | | - | - | - | | `production` | `chainloop-prod-` | `cas-p-<12-hex>` | | `canary` | `chainloop-canary-` | `cas-c-<12-hex>` | | unset | `chainloop-dev-` | `cas-d-<12-hex>` | `` is the organization UUID with hyphens stripped (32 characters); `<12-hex>` is its last 12 characters. Throughout the policies below, substitute `[env]` with `prod` or `canary` to match the environment you will configure. Setting `backend.environment` is mandatory in production: if you leave it unset, Chainloop creates `chainloop-dev-*` access points that your bucket policy — scoped to `chainloop-prod-*` — will reject. ### 1. Create the S3 Bucket Create one bucket in the region you want to operate from. Block all public access. Enable default encryption with the KMS key you create in the next step. Attach this **bucket policy** exactly as shown, substituting only `[bucketName]`, `[region]`, `[accountId]`, and `[env]`. It is the [AWS-documented delegation pattern for access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points-policies.html#access-points-delegating-control): the bucket defers every access decision to the access point policies, which Chainloop generates per organization with a per-tenant `aws:userid` guard. Any request that does not arrive through one of your installation's access points is denied by default. ```json theme={"dark"} { "Version": "2012-10-17", "Statement": [ { "Sid": "DelegateAccessControlToAccessPoints", "Effect": "Allow", "Principal": "*", "Action": "*", "Resource": [ "arn:aws:s3:::[bucketName]", "arn:aws:s3:::[bucketName]/*" ], "Condition": { "StringEquals": { "s3:DataAccessPointAccount": "[accountId]" }, "StringLike": { "s3:DataAccessPointArn": "arn:aws:s3:[region]:[accountId]:accesspoint/chainloop-[env]-*" } } } ] } ``` > [!WARNING] > > Do not narrow this policy into a hand-scoped grant — for example naming the tenant role as the `Principal` or listing individual actions such as `s3:GetObject`/`s3:PutObject`. As described in [Authentication Model](#authentication-model), every access point request is authorized in **two** contexts, and the bucket context requires the bucket policy itself to allow the access. The per-org session policies Chainloop generates speak only access-point ARNs, so a partial bucket grant fails the bucket-context check and surfaces as opaque `403 Forbidden` errors on the data path (typically on `HeadObject`), even when every access point and session policy is correct. > > This delegation form is not a loosening: the real access control lives in the machine-generated access point policies with per-tenant `aws:userid` guards, and access to the bucket other than through your installation's access points remains denied. If your security review requires an explicit block on direct bucket access, add a `Deny` statement **alongside** the delegation `Allow` — never instead of it. Narrow that `Deny` to object actions rather than `s3:*`: a blanket `s3:*` deny conditioned on the absence of an access point also denies bucket administration, including `PutBucketPolicy`, which leaves account-root access as the only way back in. ### 2. Create the KMS Key Create a customer-managed KMS key in the same region as the bucket and set it as the bucket's default encryption key. The **key policy** must admit the **tenant role**, either directly or by delegating to IAM for the account (a statement granting the account root, so identity-based policies can grant key use). An identity-based grant alone is not enough — a KMS key policy cannot be overridden by an IAM policy, so a key that does not admit the tenant role fails every upload and download with a KMS error. The tenant role is the only identity that touches objects; the backend workload identity only manages access points and needs no key access. Chainloop's per-org session policies grant `kms:GenerateDataKey` and `kms:Decrypt`, matching `SSE-KMS` on `PutObject` and `GetObject`. ### 3. Create the Tenant IAM Role This is the role the Chainloop workloads assume per-request via STS. Note its name — you will pass it to the chart as `baseRoleName`. **Trust policy** — allow the backend and controlplane workload identities to assume it. Grant `sts:TagSession` alongside `sts:AssumeRole`: workload sessions minted by EKS can carry session tags, and the assume call fails if propagating them is not permitted. ```json theme={"dark"} { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": [ "arn:aws:iam::[accountId]:role/[backendWorkloadRoleName]", "arn:aws:iam::[accountId]:role/[controlplaneWorkloadRoleName]" ] }, "Action": [ "sts:AssumeRole", "sts:TagSession" ] } ] } ``` **Permission policy** — let it speak through any access point that matches your installation's prefix, and use the KMS key: ```json theme={"dark"} { "Version": "2012-10-17", "Statement": [ { "Sid": "AccessPointObjectAccess", "Effect": "Allow", "Action": [ "s3:GetObject", "s3:PutObject", "s3:DeleteObject", "s3:AbortMultipartUpload", "s3:ListBucket" ], "Resource": [ "arn:aws:s3:[region]:[accountId]:accesspoint/chainloop-[env]-*", "arn:aws:s3:[region]:[accountId]:accesspoint/chainloop-[env]-*/object/*" ] }, { "Sid": "AccessPointKMS", "Effect": "Allow", "Action": [ "kms:Decrypt", "kms:GenerateDataKey", "kms:DescribeKey" ], "Resource": "[kmsKeyArn]" } ] } ``` > [!WARNING] > > `s3:AbortMultipartUpload` and `s3:ListBucket` are both load-bearing, and both fail in ways that look unrelated to this policy: > > * Without `s3:AbortMultipartUpload`, small uploads succeed and **large (multipart) uploads fail** — the generated access point policy grants the action, but effective access is the intersection. > * Without `s3:ListBucket`, S3 hides object existence: a lookup for an object that is simply absent returns `403 Forbidden` instead of `404`, which Chainloop cannot distinguish from a real denial. ### 4. Configure Workload Identities The Chainloop pods need AWS credentials to call AWS APIs. We recommend [EKS Pod Identity](https://docs.aws.amazon.com/eks/latest/userguide/pod-identities.html); [IRSA](https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html) works equivalently. You need **two** workload identity roles: a **controlplane workload role** (shared by the controlplane and cas pods) and a **backend workload role**. Each one needs a **trust policy** that lets the pod's Kubernetes service account assume it, plus the **permission policy** shown below. #### Trust policy The trust policy is what bootstraps the pod's credentials. If it doesn't allow the service account, every AWS call fails with `AccessDenied` **before** any tenant `sts:AssumeRole` is attempted — so getting this right is a prerequisite for everything else. The shape depends on the mechanism: > [tab] EKS Pod Identity > > The role trusts the EKS service principal. Which service accounts may use it is expressed as an association (see [Enable in Chainloop EE](#enable-in-chainloop-ee)), not in the trust policy: > > ```json theme={"dark"} > { > "Version": "2012-10-17", > "Statement": [ > { > "Effect": "Allow", > "Principal": { "Service": "pods.eks.amazonaws.com" }, > "Action": ["sts:AssumeRole", "sts:TagSession"] > } > ] > } > ``` > [tab] IRSA > > The role trusts your cluster's OIDC provider, conditioned on the exact service-account subject(s) allowed to assume it. The controlplane role is shared by the controlplane and cas pods, so both subjects must be listed: > > ```json theme={"dark"} > { > "Version": "2012-10-17", > "Statement": [ > { > "Effect": "Allow", > "Principal": { > "Federated": "arn:aws:iam::[accountId]:oidc-provider/oidc.eks.[region].amazonaws.com/id/[oidcId]" > }, > "Action": "sts:AssumeRoleWithWebIdentity", > "Condition": { > "StringEquals": { > "oidc.eks.[region].amazonaws.com/id/[oidcId]:aud": "sts.amazonaws.com", > "oidc.eks.[region].amazonaws.com/id/[oidcId]:sub": [ > "system:serviceaccount:[namespace]:[controlplaneServiceAccount]", > "system:serviceaccount:[namespace]:[casServiceAccount]" > ] > } > } > } > ] > } > ``` > [!WARNING] > > The **cas** pod runs the data path but shares the **controlplane** workload role (it is annotated with that role in [Enable in Chainloop EE](#enable-in-chainloop-ee)). The controlplane role must therefore be assumable by **both** the controlplane **and** the cas service accounts: > > * **IRSA**: list both subjects in the `sub` condition, as shown above. > * **Pod Identity**: create an association for **each** of the two service accounts. > > Forgetting the cas service account is the most common misconfiguration: reads fail for **every** org with `AccessDenied: Not authorized to perform sts:AssumeRoleWithWebIdentity`, because the cas pod can never bootstrap its credentials. #### Permission policies **Controlplane workload role** — used by the controlplane and cas pods on the data path. Needs to call `sts:AssumeRole` against the tenant role: ```json theme={"dark"} { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "sts:AssumeRole", "sts:TagSession" ], "Resource": "arn:aws:iam::[accountId]:role/[tenantRoleName]" } ] } ``` **Backend workload role** — used by the platform backend's reconciler. Needs the controlplane permissions above **plus** the access point lifecycle and per-org session policy permissions: ```json theme={"dark"} { "Version": "2012-10-17", "Statement": [ { "Sid": "AssumeTenantRole", "Effect": "Allow", "Action": [ "sts:AssumeRole", "sts:TagSession" ], "Resource": "arn:aws:iam::[accountId]:role/[tenantRoleName]" }, { "Sid": "ManageAccessPoints", "Effect": "Allow", "Action": [ "s3:CreateAccessPoint", "s3:TagResource", "s3:PutAccessPointPolicy", "s3:GetAccessPointPolicy", "s3:DeleteAccessPoint" ], "Resource": "arn:aws:s3:[region]:[accountId]:accesspoint/chainloop-[env]-*" }, { "Sid": "ManageTenantSessionPolicies", "Effect": "Allow", "Action": [ "iam:CreatePolicy", "iam:DeletePolicy" ], "Resource": "arn:aws:iam::[accountId]:policy/cas-*" } ] } ``` The backend assumes the tenant role once at startup to read its unique ID (needed for the `aws:userid` condition in every access point policy), then creates each org's access point, writes its resource policy, and creates its session policy. `s3:TagResource` is required even though Chainloop never calls the `TagResource` API: it tags each access point as part of the `CreateAccessPoint` call, and [AWS requires both actions to allow tagging on create](https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points-tagging.html). Without it, provisioning fails with `AccessDenied` on `CreateAccessPoint`. `s3:DeleteAccessPoint` and `iam:DeletePolicy` are not exercised today — provisioning is one-way — but granting them now means teardown support will not require a policy change. > [!NOTE] > > The IAM "1500 customer-managed policies per account" service quota applies because Chainloop creates one managed policy per organization. Request a quota increase if you expect to scale past it. ## Enable in Chainloop EE In your `chainloop-ee` Helm chart `values.yaml`, set `backend.environment` and configure `backend.managedCas`: ```yaml chainloop-ee values.yaml theme={"dark"} backend: environment: production managedCas: enabled: true bucket: [bucketName] region: [region] accountId: "[accountId]" baseRoleName: [tenantRoleName] ``` > [!WARNING] > > `backend.environment` selects the access point name prefix (see [Resource Naming](#resource-naming)) and must match the prefix in your bucket and IAM policies. The chart accepts only `production` or `canary`. Leaving it unset produces `chainloop-dev-*` access points, and every `CreateAccessPoint` call is then denied by the bucket policy. Bind the workload identities to the Chainloop service accounts. The exact mechanism depends on whether you are using EKS Pod Identity or IRSA — both come down to associating an IAM role with the Kubernetes service account. For IRSA, annotate the service accounts: ```yaml chainloop-ee values.yaml theme={"dark"} backend: serviceAccount: annotations: eks.amazonaws.com/role-arn: arn:aws:iam::[accountId]:role/[backendWorkloadRoleName] controlplane: serviceAccount: annotations: eks.amazonaws.com/role-arn: arn:aws:iam::[accountId]:role/[controlplaneWorkloadRoleName] cas: serviceAccount: annotations: eks.amazonaws.com/role-arn: arn:aws:iam::[accountId]:role/[controlplaneWorkloadRoleName] ``` For EKS Pod Identity, create an `aws_eks_pod_identity_association` per `(namespace, service account)` pair instead — including one binding the **cas** service account to the controlplane workload role, matching the IRSA annotation above. Apply the values and roll out the chart. ### Restricting Access Points to a VPC By default the per-org access points are internet-facing (access is still governed entirely by the policies above). To make them reachable only from inside a VPC, set: ```yaml chainloop-ee values.yaml theme={"dark"} backend: managedCas: vpcId: vpc-0123456789abcdef0 ``` Two caveats: * **Existing access points are not migrated.** The network origin is fixed at creation, and reconciliation treats an already-existing access point as done. Only orgs provisioned after you set `vpcId` get VPC-scoped access points. * **An invalid VPC ID stalls provisioning.** The value is not validated up front; a wrong ID turns into a per-org `CreateAccessPoint` failure that blocks the reconciler from progressing to the remaining orgs. ## Verify 1. Create a new organization in the Chainloop UI. Open **Storage Backends** for that org — you should see a default backend named `chainloop-cloud-storage` provided by Chainloop. ![Chainloop UI showing a default storage backend managed by Chainloop](https://mintcdn.com/chainloop/2DV8Wt8Zh2ib38eQ/guides/deployment/guides/img/managed-cas-storage-backend.png?fit=max\&auto=format\&n=2DV8Wt8Zh2ib38eQ\&q=85\&s=ddcf31fbac8fa2853af770dbe70be0d0) 2. Confirm the access point exists in the AWS console under **S3 → Access Points**, named `chainloop-[env]-`. If it isn't there yet, give it a moment and check the backend logs — provisioning runs in both the backend and its worker, so select by label to avoid reading just one pod: ```bash theme={"dark"} kubectl -n [namespace] logs -l app.kubernetes.io/component=backend --tail=200 kubectl -n [namespace] logs -l app.kubernetes.io/component=backend-worker --tail=200 ``` 3. As a user of that org, [run an attestation](/get-started/first-attestation) or upload an artifact: ```bash theme={"dark"} chainloop artifact upload -f myfile ``` 4. Inspect the bucket — the object should be under the org's prefix, encrypted with your KMS key: ``` s3://[bucketName]//sha256: ``` > [!WARNING] > > If no access point is ever created and the logs show no provisioning errors either, grep the backend logs for `continuing with managed CAS disabled`. When the AWS client cannot be constructed — a misconfigured base role, a missing `sts:AssumeRole` permission, the wrong region — Chainloop logs a warning and starts with managed CAS silently switched off rather than crash-looping. ## Troubleshooting Read any chained STS error **inside-out** — the innermost operation is the one that actually failed. A `HeadObject` error wrapping an `AssumeRole` error wrapping `AssumeRoleWithWebIdentity` is a credential-bootstrap failure, not an S3 policy problem. When you hit a bare `403 Forbidden` with no error code or message, that is `HeadObject`: it is an HTTP `HEAD` request, so S3 cannot return an error body and cannot tell you which layer denied it. **Re-run the same access as a request that can return a body.** Both of these name the denying layer in one line — use the access point ARN as `--bucket`: ```bash theme={"dark"} AP=arn:aws:s3:[region]:[accountId]:accesspoint/chainloop-[env]- ORG= aws s3api list-objects-v2 --bucket "$AP" --prefix "$ORG/" --region [region] echo probe | aws s3api put-object --bucket "$AP" --key "$ORG/probe.txt" --body - --region [region] ``` Then match what you get: | Signature | Cause | | - | - | | `AccessDenied: Not authorized to perform sts:AssumeRoleWithWebIdentity` | The pod's credential bootstrap, *before* any tenant `AssumeRole`. The workload role does not trust the service account — most often the **cas** service account is missing from the controlplane role's OIDC `sub` condition. See [Configure Workload Identities](#4-configure-workload-identities). | | `not authorized to perform: sts:AssumeRole` | The workload role's permission policy does not allow assuming the tenant role, or the tenant role's trust policy does not name the workload role. | | Everything returns `403`, including `list-objects-v2` | The bucket policy is not the delegation form. A hand-scoped grant fails the bucket-context check. Apply the policy from [Create the S3 Bucket](#1-create-the-s3-bucket) as written, and verify its access point prefix matches the names Chainloop is creating. | | `NoSuchAccessPoint` | The access point does not exist for that org. Either provisioning never ran, or `backend.environment` does not match the prefix in your policies — check for `chainloop-dev-*` names. | | `AccessDenied` naming a KMS action or key | The KMS key policy does not admit the tenant role. See [Create the KMS Key](#2-create-the-kms-key). | | `list-objects-v2` succeeds but the object lookup still `403`s | The access point policy's `aws:userid` or `s3:prefix` condition does not match the request. Confirm the tenant role's unique ID in the policy is the **tenant** role's, not a workload role's. | | Object lookups return `404` | Permissions are fine — the object genuinely isn't there. | | Small uploads succeed, large ones fail | The tenant role is missing `s3:AbortMultipartUpload`. See [Create the Tenant IAM Role](#3-create-the-tenant-iam-role). | # Migrating to chainloop-ee chart Source: https://docs.chainloop.dev/guides/deployment/guides/migration-guide How to migrate from OSS+Platform to unified EE chart This guide helps you migrate from: * the [Platform chart](/guides/deployment/platform) * the [OSS chart](/guides/deployment/oss) to the combined Enterprise chart: * Chainloop [Enterprise edition](/guides/deployment/chainloop-ee) ## What Changed * `chainloop-ee` combines both distributions in one chart. * Some configuration is no longer required as it's handled by the chart itself * Most Platform keys under `frontend`, `backend`, `global`, and `nats` remain in the same sections. * Most OSS keys under `controlplane` and `cas` remain in the same sections. * Database configuration is centralized in top-level `chainloopDatabase` and `platformDatabase`. * Development dependencies (`vault`, `dex`, `postgresql`) are now wired for the combined install path. ### Top-Level Ingress Defaults `chainloop-ee` introduces a top-level `ingress` block that works as a global fallback for component ingress settings. * Supported keys: `ingress.enabled`, `ingress.hostname`, `ingress.ingressClassName`, `ingress.annotations`, `ingress.tls`. * Precedence: component-specific values (`frontend.ingress.*`, `backend.ingress.*`, `controlplane.ingress.*`, `cas.ingress.*`, and `*.ingressAPI.*`) override top-level values when both are set. * Rendering behavior: ingress resources render when either the component ingress is enabled or top-level `ingress.enabled` is true. * Hostname derivation from top-level `ingress.hostname`: * frontend: `app.` * backend: `app-api.` * controlplane: `cp.` * controlplane API: `cp-api.` * cas: `cas.` * cas API: `cas-api.` * `ingress.annotations` and `ingress.tls` are reused as shared defaults (for example, cert-manager annotations and HTTPS defaults). * The separate `controlplane.ingressAPI` and `cas.ingressAPI` endpoints (`cp-api` and `cas-api`) still work but are deprecated in favor of [shared control plane and CAS endpoints](/guides/deployment/guides/gateway-api#shared-control-plane-and-cas-endpoints). As an alternative to `Ingress`, `chainloop-ee` can render Gateway API routes from a top-level `httpRoute` block with the same hostname prefixes. Both can be enabled at the same time, so disable `ingress` explicitly if you move to a Gateway. See [Gateway API and Envoy Gateway](/guides/deployment/guides/gateway-api). ## Migration Checklist > [!TIP] > > Make sure to get familiar with [Removed Keys](/guides/deployment/guides/migration-guide#removed-keys) section before you start copying your values. 1. Start from [Enterprise edition](/guides/deployment/chainloop-ee) chart values.yaml. Refer to README.md for more details about configuration options. 2. Copy your Platform customizations (`frontend`, `backend`, `nats`) into the same sections. 3. Copy your OSS customizations (`controlplane`, `cas`, `secretsBackend`, `casJWT*`) into the same sections. 4. Apply the key remaps from the tables below. 5. Run `helm template` / `helm upgrade --dry-run` and validate rendered secrets, DB endpoints, and ingress hosts (or HTTPRoute and GRPCRoute hostnames when using Gateway API). ## Platform -> `chainloop-ee` Mapping ### Mostly Unchanged Paths These sections are largely drop-in: * `global.*` * `frontend.*` * `backend.*` * `nats.*` ### Required Remaps | Old path (platform) | New path (`chainloop-ee`) | Notes | | - | - | - | | `backend.auth.chainloopAuthPassphrase` | `chainloopAuthPassphrase` | Moved to top-level. Required in non-development installs. | | `backend.externalChainloopDatabase.*` | `chainloopDatabase.*` | Chainloop (control plane) DB connection is now top-level. | | `backend.externalDatabase.*` | `platformDatabase.*` | Platform DB connection is now top-level. | | `frontend.service.port` | `frontend.service.ports.http` | Service schema follows chart conventions with `ports`. | | `backend.service.port` | `backend.service.ports.http` | Same schema update as frontend. | | `backend.mcpService.port` | `backend.mcpService.ports.http` | Same schema update for MCP service. | | `frontend.service.targetPort` | n/a | Not exposed in values in the combined chart. | | `backend.service.targetPort` | n/a | Not exposed in values in the combined chart. | | `backend.mcpService.targetPort` | n/a | Not exposed in values in the combined chart. | ### Notable Default/Model Changes * `frontend.service` / `backend.service` / `backend.mcpService` now include additional service fields (`clusterIP`, `nodePorts`, `externalTrafficPolicy`, etc.). * `frontend` and `backend` include explicit pod/container security context defaults in `chainloop-ee`. * `ingress.*` at top-level acts as a shared default for all component ingresses. ## OSS -> `chainloop-ee` Mapping ### Mostly Unchanged Paths These are generally reusable as-is: * `controlplane.*` * `cas.*` * `secretsBackend.*` * `casJWTPrivateKey` * `casJWTPublicKey` ### Required Remaps | Old path (OSS) | New path (`chainloop-ee`) | Notes | | - | - | - | | `controlplane.auth.passphrase` | `chainloopAuthPassphrase` | Moved to top-level. Required in non-development installs. | | `controlplane.externalDatabase.*` | `chainloopDatabase.*` | DB endpoint/user/database moved to top-level shared model. | | `controlplane.customCAs` + `cas.customCAs` | `customCAs` | Unified top-level CA injection list. | ## Removed Keys Use this section as a quick reference for keys that existed in Platform or OSS values but are not present in `chainloop-ee` as the same path. | Removed key | Replacement / action | | - | - | | `controlplane.externalDatabase.*` | Use `chainloopDatabase.*` (top-level). | | `controlplane.customCAs` | Use top-level `customCAs`. | | `controlplane.uiDashboardURL` | No replacement in values (chart-managed). | | `controlplane.ingress.selfSigned` | No direct replacement in `chainloop-ee` values. | | `controlplane.ingressAPI.selfSigned` | No direct replacement in `chainloop-ee` values. | | `controlplane.auth.passphrase` | Use `chainloopAuthPassphrase` (top-level). | | `cas.customCAs` | Use top-level `customCAs`. | | `frontend.service.port` | Use `frontend.service.ports.http`. | | `frontend.service.targetPort` | No replacement in values (chart-managed). | | `backend.auth.chainloopAuthPassphrase` | Use `chainloopAuthPassphrase` (top-level). | | `backend.externalDatabase.*` | Use `platformDatabase.*` (top-level). | | `backend.externalChainloopDatabase.*` | Use `chainloopDatabase.*` (top-level). | | `backend.service.port` | Use `backend.service.ports.http`. | | `backend.mcpService.port` | Use `backend.mcpService.ports.http`. | | `backend.service.targetPort` | No replacement in values (chart-managed). | | `backend.mcpService.targetPort` | No replacement in values (chart-managed). | | `backend.cas_api` | No direct replacement in `chainloop-ee` values. Backend CAS API wiring is chart-managed. | | `backend.cas_api.addr` | No direct replacement in `chainloop-ee` values. Backend CAS API wiring is chart-managed. | | `backend.cas_api.insecure` | No direct replacement in `chainloop-ee` values. Backend CAS API wiring is chart-managed. | | `backend.controlplane_api` | No direct replacement in `chainloop-ee` values. Backend control plane API wiring is chart-managed. | | `backend.controlplane_api.addr` | No direct replacement in `chainloop-ee` values. Backend control plane API wiring is chart-managed. | | `backend.controlplane_api.insecure` | No direct replacement in `chainloop-ee` values. Backend control plane API wiring is chart-managed. | | `backend.customCAs` | Use top-level `customCAs`. | | `backend.ingress.selfSigned` | No direct replacement in `chainloop-ee` values. | | `backend.mcp` | No replacement in values (chart-managed). | | `backend.mcp.oauth` | No replacement in values (chart-managed). | | `backend.mcp.oauth.enabled` | No replacement in values (chart-managed). | | `backend.mcp.oauth.authProvider` | No replacement in values (chart-managed). | | `backend.mcp.oauth.authProvider.clientId` | No replacement in values (chart-managed). | | `backend.mcp.oauth.authProvider.clientSecret` | No replacement in values (chart-managed). | | `backend.mcp.oauth.authProvider.issuerUrl` | No replacement in values (chart-managed). | | `backend.mcpIngress.selfSigned` | No replacement in values | | `global.compatibility.openshift.adaptSecurityContext` | No direct replacement in `chainloop-ee` values. | | `cas.ingress.selfSigned` | No direct replacement in `chainloop-ee` values. | | `cas.ingressAPI.selfSigned` | No direct replacement in `chainloop-ee` values. | ## Vault in `chainloop-ee` `chainloop-ee` vendors the Vault subchart (`chainloop-ee/charts/vault/values.yaml`) and only overrides a small subset at top-level `vault.*`: * `vault.server.command` * `vault.server.args` * `vault.server.config` * `vault.server.extraVolumes` * `vault.server.extraVolumeMounts` * `vault.extraDeploy` If you previously customized standard Vault chart keys, keep using the same key paths under `vault.*` in `chainloop-ee`. ## Minimal Migrated Values Example ```yaml theme={"dark"} chainloopAuthPassphrase: "replace-me" chainloopDatabase: host: "chainloop-db" port: 5432 user: "chainloop" database: "chainloop" password: "replace-me" platformDatabase: host: "platform-db" port: 5432 user: "backenduser" database: "backend" password: "replace-me" secretsBackend: backend: "vault" secretPrefix: "chainloop" vault: address: https://vault.example.com token: "s.1234567890" casJWTPrivateKey: |- -----BEGIN RSA PRIVATE KEY----- MIIEpAIBAAKCAQEA -----END RSA PRIVATE KEY----- casJWTPublicKey: |- -----BEGIN PUBLIC KEY----- MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA -----END PUBLIC KEY----- controlplane: auth: oidc: url: "replace-me" clientID: "replace-me" clientSecret: "replace-me" keylessSigning: enabled: true backends: - type: fileCA fileCA: cert: |- -----BEGIN CERTIFICATE----- MIIEpAIBAAKCAQEA -----END CERTIFICATE----- key: |- -----BEGIN ENCRYPTED RSA PRIVATE KEY----- MIIEowIBAAKCAQEA -----END ENCRYPTED RSA PRIVATE KEY----- keyPass: "replace-me" issuer: true ingress: enabled: true hostname: "chainloop.example.com" ingressClassName: "nginx" annotations: cert-manager.io/cluster-issuer: letsencrypt-prod tls: true ``` ## Validation Steps * Render manifests: * `helm template chainloop-ee ./deployment/chainloop-ee -f .yaml` * Dry-run upgrade: * `helm upgrade --install chainloop-ee ./deployment/chainloop-ee -f .yaml --dry-run` * Verify: * ingress hosts/TLS per component * secretsBackend configuration * machineIdentityIssuers and chainloopAuthPassphrase configuration * All custom configuration about autoOnboarding, restrictOrgCreation, keylessSigning, etc. * casJWTPrivateKey and casJWTPublicKey configuration ## References * OSS values reference: [chainloop OSS values.yaml](https://github.com/chainloop-dev/chainloop/blob/main/deployment/chainloop/values.yaml) # Use Active Directory as Single Sign-On provider Source: https://docs.chainloop.dev/guides/deployment/guides/oidc-ad Chainloop authentication backend is delegated to an OpenID Connect (OIDC) compatible Identity Provider (IdP) such as Google, GitHub, Auth0 or Azure Active Directory. This guide will show you how to configure your Chainloop instance to run authentication over Azure Active Directory. The process comprises two steps: 1. Register a new App in your Azure Active Directory tenant 2. Configure Chainloop deployment with the new OIDC settings ## Register a new App In your Azure console go to **App registrations** and click on **New registration**. ![Register a new App](https://mintcdn.com/chainloop/4m_Z_ZeRnSV7jb7V/guides/deployment/guides/img/register-app.png?fit=max\&auto=format\&n=4m_Z_ZeRnSV7jb7V\&q=85\&s=21011a7bc979796c27f52af55854be3b) Fill out a descriptive name and your custom callback URL that should point to your instance of Chainloop control plane. ![Register a new App](https://mintcdn.com/chainloop/4m_Z_ZeRnSV7jb7V/guides/deployment/guides/img/register-app-2.png?fit=max\&auto=format\&n=4m_Z_ZeRnSV7jb7V\&q=85\&s=976e0ae4b3b4eb3e880cba2128bd7956) Once done, take note of the generated **Application (client) ID** and the tenant ID. ![Register a new App](https://mintcdn.com/chainloop/4m_Z_ZeRnSV7jb7V/guides/deployment/guides/img/register-app-0.png?fit=max\&auto=format\&n=4m_Z_ZeRnSV7jb7V\&q=85\&s=b5212a5c0005d2ce0a2a85eafbfacce7) ## Create a new client secret Next Create a new client secret and copy the generated value by clicking on "Certificate & secrets" > "New client secret" ![Register a new App](https://mintcdn.com/chainloop/4m_Z_ZeRnSV7jb7V/guides/deployment/guides/img/register-app-3.png?fit=max\&auto=format\&n=4m_Z_ZeRnSV7jb7V\&q=85\&s=9db5b26002f6884abb79d0438d686499) Once done, copy the "value" which will be used as the `clientSecret` in the next step. ![Register a new App](https://mintcdn.com/chainloop/4m_Z_ZeRnSV7jb7V/guides/deployment/guides/img/register-app-4.png?fit=max\&auto=format\&n=4m_Z_ZeRnSV7jb7V\&q=85\&s=f5e5fbf49a80901646210217e3ca57c2) ## Setup ODIC claims Finally, we need to configure the OIDC claims that Chainloop will use to show information about the user. Specifically, we need to set the `given_name` and `family_name` claims. This option can be found in the **Token configuration** section of your app registration. ![Choose ODIC Claims](https://mintcdn.com/chainloop/4m_Z_ZeRnSV7jb7V/guides/deployment/guides/img/azure-ad-optional-claims.png?fit=max\&auto=format\&n=4m_Z_ZeRnSV7jb7V\&q=85\&s=b5df6665b671526e958046a1d29ba927) ## (Optional) Enable automatic provisioning of user roles and groups Enable automatic provisioning of user roles and groups by following the [Automatic provisioning of user roles and groups](/guides/deployment/guides/provisioning#dynamic-provisioning-through-single-sign-on-oidc) guide. ## Configure Chainloop deployment As explained in the [deployment guide](../oss), Open ID Connect configuration is done using the `auth.oidc` section of the `values.yaml` file. Use the ClientID, Secret and URL from the previous step to configure the OIDC backend as shown below ```yaml theme={"dark"} auth: oidc: url: https://login.microsoftonline.com/[TENANT_ID]/v2.0 clientID: [APP-CLIENT-ID] clientSecret: "[APP-CLIENT-SECRET]" ``` And deploy your Chainloop Control Plane with the update values to take effect. Finally give it a try by running `chainloop auth login` and that's all! Your Chainloop users are now authenticated against your Active Directory tenant. # Organization provisioning with API tokens Source: https://docs.chainloop.dev/guides/deployment/guides/org-provisioning > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). Chainloop Enterprise Edition provides instance-level API tokens that enable automated organization provisioning workflows. These tokens allow administrators to programmatically create and configure organizations across the entire Chainloop instance. ## Overview Instance-level API tokens are designed for automation scenarios where you need to: * Provision new organizations programmatically * Invite members to any organization in the instance * Configure CAS backends for organizations This is particularly useful for: * Multi-tenant deployments where organizations need to be created on-demand * Integration with external provisioning systems (e.g., customer onboarding workflows) * Infrastructure-as-code approaches to Chainloop configuration ## Prerequisites Before creating instance-level API tokens, ensure you have: * **Instance administrator role**: Your user account must have the instance admin role configured. See [Automatic provisioning of user roles and groups](/guides/deployment/guides/provisioning#instance-administrators) for details on configuring instance administrators. * **Chainloop CLI (EE)**: The Enterprise Edition CLI with the `admin` command available. ## Creating an instance-level API token Use the `chainloop admin api-token create` command to generate a token with instance-wide permissions. ```bash theme={"dark"} $ chainloop admin api-token create --name ┌──────────────────────────────────────┬─────────┬─────────────┬─────────────────────┬────────────┬────────────┬──────────────┐ │ ID │ NAME │ DESCRIPTION │ CREATED AT │ EXPIRES AT │ REVOKED AT │ LAST USED AT │ ├──────────────────────────────────────┼─────────┼─────────────┼─────────────────────┼────────────┼────────────┼──────────────┤ │ 73126f23-5a92-4845-b1bc-15d3ba159255 │ token15 │ │ 05 Feb 26 16:34 UTC │ │ │ │ └──────────────────────────────────────┴─────────┴─────────────┴─────────────────────┴────────────┴────────────┴──────────────┘ Save the following token since it will not printed again: ... ``` Copy the token contents and store it securely. > [!NOTE] > > Instance-level tokens should be treated as highly sensitive credentials. Store them securely and rotate them regularly. The `chainloop admin api-token create` also supports an `--expiration` that can be used to set a custom expiration time for the token (e.g., `--expiration 1h`). Check the [command line reference](/cli/reference) for more options. ## Using instance-level tokens Once you have an instance-level API token, you can use it to authenticate CLI commands that operate across the entire instance. ### Authenticating with the token The CLI will automatically use any token stored in the `CHAINLOOP_TOKEN` environment variable. ```sh theme={"dark"} export CHAINLOOP_TOKEN= ``` Alternatively, you can use the `--token` flag to specify the token contents directly: ```sh theme={"dark"} chainloop --token $TOKEN ... ``` ### Creating organizations With an instance-level token, you can create new organizations programmatically: ```sh theme={"dark"} $ chainloop org create --name ... INF Organization "my-org" created! ``` > [!NOTE] > > The `chainloop org create` command is also available to users with the instance admin role through interactive authentication. See [Restrict organization creation to specific users](/guides/deployment/guides/restrict-org-creation) for more details. ### Inviting members to organizations Instance-level tokens can invite members to any organization in the instance. Note that the `--org` flag is required for this command, since the token has instance-wide permissions: ```sh theme={"dark"} chainloop org member invitation create --org --receiver ... ``` See the [org member invitation reference](/cli/reference#chainloop-organization-member-invitation) for more details. ### Configuring CAS backends You can also create and configure CAS (Content Addressable Storage) backends for any organization: ```sh theme={"dark"} chainloop cas-backend add aws-s3 --access-key-id $ACCESS_KEY --secret-access-key $SECRET_ACCESS_KEY --bucket chainloop --endpoint http://localhost:9002 --name minio_local --default --org ``` See the [CAS backend reference](/cli/reference#chainloop-cas-backend-add) for more details. ## Security considerations > [!WARNING] > > Instance-level API tokens have broad permissions across all organizations. Follow these security best practices: * **Principle of least privilege**: Only create instance-level tokens when truly needed for cross-organization operations. * **Secure storage**: Store tokens in a secrets manager (e.g., HashiCorp Vault, AWS Secrets Manager). * **Token rotation**: Implement regular token rotation policies. * **Audit logging**: Monitor token usage through Chainloop's audit logs. * **Expiration**: Set appropriate expiration times based on your security requirements. ## Related guides * [Automatic provisioning of user roles and groups](/guides/deployment/guides/provisioning) - Configure instance administrators and automatic user onboarding * [Restrict organization creation to specific users](/guides/deployment/guides/restrict-org-creation) - Control who can create organizations # Automatic provisioning of user roles and groups Source: https://docs.chainloop.dev/guides/deployment/guides/provisioning > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). Chainloop platform can be configured to automatically onboard users to specific organizations and user groups by leveraging either static or dynamic provisioning through Single Sign-on (OIDC). ## Static provisioning ### Users and groups Static provisioning is useful in scenarios where **all** logged-in users should be automatically added to an organization with a specific role, and optionally, added to one or more groups. To enable this behaviour, add this configuration to the `backend` section in your [Platform deployment](/guides/deployment/platform#step-2-deploy-platform-chart) `values.yaml`: ```yaml theme={"dark"} backend: # ... autoOnboarding: enabled: true static_config: specs: - name: acme-corp # organization name where all users will be joined role: ORG_MEMBER # default role for new users. Other possible values: ORG_ROLE_ORG_OWNER, ORG_ROLE_ORG_ADMIN, ORG_ROLE_ORG_VIEWER groups: # user group names - name: compliance-team - name: development-team ``` In this example configuration, all logged-in users will be automatically added to `acme-corp` with the `OrgViewer` role. If the user already existed with a different role, it will be kept. Additionally, they will be added to the `compliance-team` and `development-team` teams. Note that existing user memberships will remain unchanged. ### Instance Administrators You can also configure instance administrators by providing a `instance_admin_spec` in the `static_config` section. ```yaml Platform Chart values.yaml theme={"dark"} backend: auto_onboarding: enabled: true static_config: instance_admin_spec: rules: - "user1@example.com" # Specific user - "@mydomain.com" # All users in the domain ``` These administrators will be able to create organizations even if the `restrictOrgCreation` flag is set to `true` in the Chainloop Controlplane. Learn more in this [guide](/guides/deployment/guides/restrict-org-creation). ## Dynamic provisioning through Single Sign-on (OIDC) > [!WARNING] > > In this scenario, user membership will become **managed** by the external Identity Provider configuration. Existing membership will > be overridden by the incoming configuration inferred from the OIDC token claims. Follow these steps to configure auto-onboarding based on user claims. ### Configuring your IDP to provide group claims Make sure user OIDC tokens come with a `groups` claim. You'll need to check your provider configuration options. For example, Azure Entra ID provides the option through the [Enterprise Applications SSO configuration](https://learn.microsoft.com/en-us/entra/identity/hybrid/connect/how-to-connect-fed-group-claims#add-group-claims-to-tokens-for-saml-applications-using-sso-configuration). ![entra groups](https://mintcdn.com/chainloop/4m_Z_ZeRnSV7jb7V/guides/deployment/guides/img/entra-groups.png?fit=max\&auto=format\&n=4m_Z_ZeRnSV7jb7V\&q=85\&s=d1c31c2300af78c14444c377ae49c7c1) Check [How to configure Azure for SSO](./oidc-ad) for more information. ### Configuring Chainloop platform to parse `groups` claims In your chart `values.yaml` file, add this snippet to your `backend` section: ```yaml theme={"dark"} backend: # ... autoOnboarding: enabled: true dynamic_config: sync_mode: ADDITIVE # (1) groups_pattern: "chainloop_{ORG_NAME}_{GROUP_NAME}" # (2) default_role: ORG_MEMBER # (3) ``` This configuration will be applied to parse all groups claim coming in the OIDC token (it can have multiple values) * (1) `sync_mode`: It can take two values: `ADDITIVE` (default) and `MANAGED`. In the the fault configuration (ADDITIVE), users will be provisioned to the orgs and groups mapped from claims, but existing group and org memberships will be kept. In `MANAGED` mode, however, only org and group membership from SSO claims will be considered, and others will be removed. * (2) `groups_pattern`: this is the pattern that group claims should follow. Reserved placeholders `{ORG_NAME}` and `{GROUP_NAME}` will be mapped to the actual values coming in the claims. Note that both are mandatory, and the claim will be ignored if (1. it doesn't match the pattern, or 2. it doesn't provide both org and group names). For example, the above pattern will match: * `chainloop_acme-corp_developers` * `chainloop_acme-corp_org-viewer` Another example, this pattern `#{GROUP_NAME}@{ORG_NAME}#` will match: * `#developers@acme-corp#` * `#org-admin@acme-corp#` * (3) `default_role`: it will be used as the default role when joining users to an organization. #### Using dynamic configuration to provide a role instead of a group The above configuration can also be used to map Organization roles instead of user groups. The following "groups" are reserved and will be considered org roles instead: * `org-owner` will be mapped to the Org Owner role in the organization. * `org-admin` will be mapped to the Org Admin role. * `org-viewer` to Org Viewer. * `org-member` and `org-contributor` will be mapped to Org Member and Org Contributor (enabling [project-level RBAC](../../../reference/rbac)). * `admin` will be identified as the instance admin role if organization is `instance`, allowing users to create organizations even if the `restrictOrgCreation` flag is set to `true` in the Chainloop Controlplane. See the [Restrict organization creation to specific users](/guides/deployment/guides/restrict-org-creation) guide for more information. ### Requiring at least one entitlement to access the system As stated at the beginning of the section, Dynamic provisioning can set user in a managed state. Information coming from `groups` claim will take precedence. If the setting `sync_mode` is set to `MANAGED`, at least one matching entitlement (group or role) in group claims is needed to allow users to access the system. If that's not the case, users will be blocked from accessing the system. For this process to work, two settings must be configured, one in the chainloop Helm chart and another in the platform one. In Chainloop, you need to enable the `allowlist` feature with `allowDbOverrides` set to `true` and optionally provide a custom message to be shown to the user. ```yaml theme={"dark"} # In Chainloop Helm chart controlplane: ... auth: allowlist: allowDbOverrides: true customMessage: "please contact your administrator to request access" # this message will be shown to deactivated users through UI and CLI ``` In Chainloop platform Helm chart, make sure you set the `sync_mode` flag to `MANAGED` in the `autoOnboarding` section. ```yaml theme={"dark"} # In Chainloop platform backend: # ... autoOnboarding: enabled: true dynamic_config: sync_mode: MANAGED # ... ``` > [!WARNING] > > Make sure you understand and test carefully these settings before enabling Dynamic Provisioning # Restrict organization creation to specific users Source: https://docs.chainloop.dev/guides/deployment/guides/restrict-org-creation > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). By default, Chainloop allows any registered user to create as many organizations as they want. This behavior can be changed to restrict organization creation to specific users. This is done in two steps: 1. In the Chainloop Controlplane, set a flag to restrict the creation of organizations. 2. In the Chainloop Platform, indicate which users are allowed to create organizations. ## Step 1: Restrict organization creation in the Chainloop Controlplane ```yaml Chainloop Chart values.yaml theme={"dark"} controlplane: # tell the chainloop controlplane to restrict organization creation to instance admins restrictOrgCreation: true ``` Once this flag is set, regular users will receive the following error when trying to create an organization: ```sh theme={"dark"} $ chainloop org create --name testing ERR creation of organizations is restricted to instance admins ``` ## Step 2: Configure instance admins in the Chainloop Platform The second step is to tell Chainloop who is `instance admin` in the platform and hence can create organizations. This is done by leveraging the [`auto_onboarding`](/guides/deployment/guides/provisioning) feature configured in the platform Helm Chart values.yaml file. Use this snippet if you have configured static provisioning in the platform: ```yaml Platform Chart values.yaml theme={"dark"} backend: auto_onboarding: enabled: true static_config: instance_admin_spec: rules: - "user1@example.com" # Specific user - "@mydomain.com" # All users in the domain ``` For dynamic provisioning, make sure your claims contain the special `instance` organization and `admin` role. For example, if you are using OIDC, your groups claim would look like this: ```json theme={"dark"} { ... "groups": ["chainloop_instance_admin"], ... } ``` Check [provisioning documentation](/guides/deployment/guides/provisioning) for more details on how to configure dynamic provisioning. # Configure your Identity Provider for SAML SSO Source: https://docs.chainloop.dev/guides/deployment/guides/saml-idp How to configure your Identity Provider (IdP) to use SAML Single Sign-On with Chainloop Cloud > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). Chainloop Cloud supports SAML 2.0 Single Sign-On so your team can authenticate with your organization's Identity Provider (IdP). This guide walks you through configuring your IdP to work with Chainloop. SAML SSO is set up in **concierge mode**: you configure your IdP using the values below, then share the IdP metadata with the Chainloop team to complete the integration. ## Chainloop Service Provider Details When configuring a new SAML application in your IdP, you will need the following Chainloop Service Provider (SP) values: | Setting | Value | | - | - | | **SP Entity ID** (Audience URI) | `https://api.app.chainloop.dev/auth/saml` | | **Assertion Consumer Service (ACS) URL** | `https://api.app.chainloop.dev/auth/saml/acs` | | **SP Metadata URL** | `https://api.app.chainloop.dev/auth/saml/metadata` | | **ACS Binding** | `HTTP-POST` | | **AuthnRequest Binding** | `HTTP-Redirect` | | **Name ID Format** | `urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress` | ## Required and Optional SAML Attributes Chainloop expects the following attributes in the SAML assertion. Only `email` is required. | Attribute | Required | SAML Attribute Name | Description | | - | - | - | - | | **Email** | Yes | `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress` or `NameID` (email format) | User's email address. Used to identify and provision the user. | | **First name** | No | `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname` | User's first name. | | **Last name** | No | `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname` | User's last name. | | **Display name** | No | `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/displayname` | Fallback display name if first/last name are not provided. | | **Groups** | No | `groups` | List of group memberships. Used for [automatic provisioning of user roles and groups](/guides/deployment/guides/provisioning#dynamic-provisioning-through-single-sign-on-oidc). | ## IdP-Specific Configuration > [tab] Okta > > ### Step 1: Create a New SAML Application > > 1. In the Okta Admin Console, go to **Applications** > **Applications** > 2. Click **Create App Integration** > 3. Select **SAML 2.0** and click **Next** > 4. Enter a name (e.g. `Chainloop`) and click **Next** > > ### Step 2: Configure SAML Settings > > In the **SAML Settings** section, fill in: > > | Field | Value | > | - | - | > | **Single sign-on URL** | `https://api.app.chainloop.dev/auth/saml/acs` | > | **Audience URI (SP Entity ID)** | `https://api.app.chainloop.dev/auth/saml` | > | **Name ID format** | `EmailAddress` | > | **Application username** | `Email` | > > ### Step 3: Configure Attribute Statements > > Under **Attribute Statements**, add: > > | Name | Value | > | - | - | > | `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress` | `user.email` | > | `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname` | `user.firstName` | > | `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname` | `user.lastName` | > > Under **Group Attribute Statements** (optional, for [automatic provisioning](/guides/deployment/guides/provisioning)): > > | Name | Filter | > | - | - | > | `groups` | Choose a filter that matches the groups you want to send (e.g. **Matches regex** `.*`) | > > ### Step 4: Assign Users (if Applicable) > > Go to the **Assignments** tab of your new application and assign the users or groups that should have access to Chainloop. Depending on your Okta configuration, all users may already have access by default. > > ### Step 5: Share the IdP Metadata > > Go to the **Sign On** tab and copy the **Metadata URL** (under **SAML Signing Certificates** > **Actions** > **View IdP metadata**). Share this URL with the Chainloop team. > [tab] Azure AD / Microsoft Entra ID > > ### Step 1: Create a new Enterprise Application > > 1. In the Azure portal, go to **Microsoft Entra ID** > **Enterprise Applications** > 2. Click **New application** > **Create your own application** > 3. Enter a name (e.g. `Chainloop`), select **Integrate any other application you don't find in the gallery (Non-gallery)**, and click **Create** > > ### Step 2: Set up Single Sign-On > > 1. In your new application, go to **Single sign-on** and select **SAML** > 2. In the **Basic SAML Configuration** section, click **Edit** and enter: > > | Field | Value | > | - | - | > | **Identifier (Entity ID)** | `https://api.app.chainloop.dev/auth/saml` | > | **Reply URL (ACS URL)** | `https://api.app.chainloop.dev/auth/saml/acs` | > > ### Step 3: Configure Attributes and Claims > > Click **Edit** in the **Attributes & Claims** section. Verify or add the following claims: > > | Claim name | Source attribute | > | - | - | > | `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress` | `user.mail` | > | `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname` | `user.givenname` | > | `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname` | `user.surname` | > > To send group claims (optional, for [automatic provisioning](/guides/deployment/guides/provisioning)): > > 1. Click **Add a group claim** > 2. Select **Groups assigned to the application** > 3. Set **Source attribute** to the value that matches your group naming convention > > ### Step 4: Assign Users and Groups (if Applicable) > > Go to **Users and groups** and assign the users or groups that should have access to Chainloop. Depending on your Entra ID configuration, all users may already have access by default. > > ### Step 5: Share the IdP Metadata > > In the **SAML Certificates** section, copy the **App Federation Metadata Url**. Share this URL with the Chainloop team. > [tab] Google Workspace > > ### Step 1: Create a Custom SAML Application > > 1. In the Google Admin console, go to **Apps** > **Web and mobile apps** > 2. Click **Add app** > **Add custom SAML app** > 3. Enter a name (e.g. `Chainloop`) and click **Continue** > 4. On the **Google Identity Provider details** page, copy the **SSO URL**, **Entity ID**, and download the **Certificate**. You will share these with the Chainloop team. Click **Continue**. > > ### Step 2: Configure Service Provider Details > > Enter the following values: > > | Field | Value | > | - | - | > | **ACS URL** | `https://api.app.chainloop.dev/auth/saml/acs` | > | **Entity ID** | `https://api.app.chainloop.dev/auth/saml` | > | **Name ID format** | `EMAIL` | > | **Name ID** | `Basic Information > Primary email` | > > ### Step 3: Configure Attribute Mapping > > Add the following attribute mappings: > > | Google Directory attribute | App attribute | > | - | - | > | **Primary email** | `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress` | > | **First name** | `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname` | > | **Last name** | `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname` | > > If you want to send group memberships for [automatic provisioning](/guides/deployment/guides/provisioning), configure a group membership attribute with the name `groups`. > > ### Step 4: Enable the Application > > 1. Click **Finish** to create the application > 2. Click on the application, then go to **User access** > 3. Turn the service **ON** for the organizational units or groups that should have access > > ### Step 5: Share the IdP Metadata > > Share the **SSO URL**, **Entity ID**, and **Certificate** you copied in Step 1 with the Chainloop team. > [tab] Other SAML 2.0 IdP > > For any SAML 2.0 compatible Identity Provider, configure a new application with the following settings: > > 1. Set the **SP Entity ID** (also called Audience URI or Identifier) to `https://api.app.chainloop.dev/auth/saml` > 2. Set the **Assertion Consumer Service (ACS) URL** to `https://api.app.chainloop.dev/auth/saml/acs` > 3. Set the **Name ID format** to email address > 4. Configure the attribute mappings as described in the [attributes table above](#required-and-optional-saml-attributes) > 5. If applicable, assign the users or groups that should have access > > Then share your IdP metadata URL (or XML file) with the Chainloop team to complete the setup. ## Complete the Setup Once you have configured your IdP, send the following to the Chainloop team at [support@chainloop.dev](mailto:support@chainloop.dev): 1. Your **IdP metadata URL** (preferred) or **metadata XML file** 2. The **email domains** that should be routed to this IdP (e.g. `acme.com`, `acme.io`) The Chainloop team will register your IdP and confirm when SSO is ready. After that, users with the configured email domains will see a **Log in with SSO** option on the [Chainloop login page](https://app.chainloop.dev/login). ## How It Works 1. A user opens the Chainloop login page and clicks **Log in with SSO** 2. They enter their email address, and Chainloop discovers the matching IdP based on the email domain 3. The user is redirected to their IdP for authentication 4. After successful authentication, the IdP sends a signed SAML assertion back to Chainloop 5. Chainloop validates the assertion, provisions the user account if needed, and issues a session token 6. The user is logged in — this works for both the web application and the CLI > [!NOTE] > > SAML SSO works with the Chainloop CLI as well. The CLI opens the login page in a browser, and after the SAML flow completes, the token is automatically passed back to the CLI. ## Automatic User Provisioning Chainloop can automatically provision users into organizations and groups based on the `groups` attribute in the SAML assertion. To enable this, let the Chainloop team know when requesting your SAML setup and make sure your IdP is configured to send the `groups` attribute (see the IdP-specific steps above). For more details on how provisioning rules work, see the [automatic provisioning guide](/guides/deployment/guides/provisioning). ## Troubleshooting **Users see "domain not allowed" after authenticating** The email domain returned in the SAML assertion does not match the domains registered for your IdP. Verify that the email domain(s) provided to the Chainloop team match the domains in your IdP user directory. **Users are not automatically added to organizations** Ensure your IdP is configured to send a `groups` attribute in the SAML assertion and that [auto-onboarding rules](/guides/deployment/guides/provisioning) are configured on the Chainloop side. Contact the Chainloop team to verify the setup. **"SSO" option does not appear on the login page** The Chainloop team has not yet completed the IdP registration. Confirm that you have sent the metadata URL and email domains to [support@chainloop.dev](mailto:support@chainloop.dev). # Open Source Evidence Store Source: https://docs.chainloop.dev/guides/deployment/oss > [!NOTE] > > This documentation is for the open source Chainloop Evidence Store. If you are looking for the Chainloop Platform documentation, please refer to the [Chainloop Enterprise edition](/guides/deployment/chainloop-ee) guide. ## Kubernetes deployment Chainloop Evidence Store can be deployed in Kubernetes using the [Helm](https://helm.sh/) package manager. The Helm Chart can be found both in the [Chainloop GitHub Repository](https://github.com/chainloop-dev/chainloop/blob/main/deployment/chainloop/README.md) as well as in [Artifact Hub](https://artifacthub.io/packages/helm/bitnami/chainloop). To learn more about how to deploy the Chainloop Evidence Store, please refer to the [Chainloop GitHub Repository](https://github.com/chainloop-dev/chainloop/blob/main/deployment/chainloop/README.md). # How to record AI coding sessions in a Docker Sandbox Source: https://docs.chainloop.dev/guides/docker-sandboxes Run Claude Code inside a Docker Sandbox with `chainloop trace` already set up, so every session in the sandbox is recorded and attested. > [!WARNING] > > This is a preview/beta feature. Further changes are expected. ## Overview A [Docker Sandbox](https://docs.docker.com/ai/sandboxes/) is an isolated VM you hand to an AI coding agent. It gets a workspace, a controlled network, and no access to the rest of your machine. It is also disposable: when the sandbox is torn down, the record of what the agent did goes with it. **`chainloop/sbx-kit-claude`** is a Chainloop-published [sandbox kit](https://docs.docker.com/ai/sandboxes/customize/kits/) that runs Claude Code with [`chainloop trace`](/guides/chainloop-trace) already set up. Each session is recorded as an [AI coding session](/concepts/ai-coding-sessions) and pushed to Chainloop as signed evidence. The kit wraps Claude Code, the agent Docker Sandboxes ships built in. For what a session contains, how it is correlated with pull requests, and which other agents `chainloop trace` supports, see the [chainloop trace guide](/guides/chainloop-trace). ## What It's For Inside the sandbox the agent edits files, runs commands, and calls tools and MCP servers. Afterwards you want to know which model ran, what it touched, what it cost, and whether it broke a rule. Sandbox logs can't answer that, because they don't outlive the sandbox. The kit captures it as signed evidence instead. Chainloop stores that evidence, runs [policies](/guides/chainloop-trace#applying-policies) against it, and [summarizes it on the pull request](/guides/chainloop-trace#pull-request-correlation). That gives you three things: * **Security policy on the session itself.** Check that only sanctioned agents and models ran, that the agent reached only allowlisted MCP servers, that it ran no destructive commands, and that no secret leaked into a tool output. Chainloop ships [built-in policies](/concepts/ai-coding-sessions#built-in-policies) for each, and a failing one can block the merge. * **Cost and model usage.** Token counts and estimated cost per session, attributable to a project, a feature, or a single pull request. * **A read on the contribution itself.** Per-file AI-vs-human line attribution and an [AI Session Score](/reference/ai-score) per run, so reviewers can tell which changes need a closer look — and, across many runs, which agents and models produce better work. Developers run the agent as they always have. Because the kit is a published artifact, everyone launching from the same tag gets the same CLI version and the same egress allowlist. Releases are signed, carry [SLSA provenance](/reference/slsa-provenance), and are published under a version tag when you need to pin one. ## Get Started ### Prerequisites * **[Docker Sandboxes](https://docs.docker.com/ai/sandboxes/install/) installed**, with Docker running. Use `sbx` **v0.42.0 or later** — earlier versions record nothing without reporting an error, see [Troubleshooting](#troubleshooting-and-faq). On macOS: ```bash theme={"dark"} brew trust docker/tap brew install docker/tap/sbx sbx daemon restart # so the daemon matches the CLI ``` * **A repository configured for Chainloop Trace.** Run `chainloop trace init` in it once and commit what it writes — see [Record your first session](/ai-sessions#record-your-first-session). The kit takes the organization, project, and workflow from that committed configuration. * **A Chainloop [API token](/reference/api-tokens#chainloop-api-tokens) and an Anthropic token.** Create the first with `chainloop organization api-token create`; the second is Claude Code's own credential, supplied as a host-side secret (`sbx secret set -g anthropic`) or an interactive login inside the sandbox. ### Launch the Sandbox Two ways to launch: a standalone `sbx run`, or a committed environment file. > [tab] Standalone > > Run `sbx run` from the repository you want the agent to work in. The kit defines a complete sandbox environment rather than mixing into an existing one, so its reference goes in the positional slot, not behind `--kit`. **The token is the only argument you need**: > > ```bash theme={"dark"} > sbx run --clone \ > --kit-arg chainloopToken="$CHAINLOOP_TOKEN" \ > chainloop/sbx-kit-claude > ``` > > `--clone` gives the sandbox a private clone of the repository, which per-file attribution needs. `--kit-args-file` reads the same arguments from a file, keeping the token out of your shell history. > > ![Docker Sandboxes launching the Chainloop kit: the resolved configuration shows the chainloop/sbx-kit-claude kit and the detected git repository, and the network log lists the allowed Chainloop and Anthropic hosts](https://mintcdn.com/chainloop/FZRRM9giN-FDnkla/guides/img/docker-sandbox-run.png?fit=max\&auto=format\&n=FZRRM9giN-FDnkla\&q=85\&s=8e34b4424dbbedefa4e95e3f9f59128f) > [tab] Environment file > > An [`sbxenv.yaml`](https://docs.docker.com/ai/sandboxes/configuration/environment-files/) at the repository root pins the setup for the whole team, so nobody has to remember the flags: > > ```yaml sbxenv.yaml theme={"dark"} > schemaVersion: "1" > name: chainloop-traced-claude > > args: > chainloopToken: > default: "" > description: Chainloop API token with access to the organization in .chainloop.yml. > > agent: chainloop-trace-claude > kits: > - source: chainloop/sbx-kit-claude > args: > chainloopToken: ${{ env.args.chainloopToken }} > traceMode: persistent > > workspace: > path: . > clone: true > ``` > > `agent:` names what to run and `kits:` loads the artifact it comes from. `traceMode: persistent` makes a sandbox launched against a repository that was never initialized fail loudly. > > Launch it from the repository root, passing only the token: > > ```bash theme={"dark"} > sbx env run --env-arg chainloopToken="$CHAINLOOP_TOKEN" > ``` > > Everyone then gets the same sandbox, and the configuration is reviewed like any other file in the repository. ### Work as Usual Attach to the sandbox and use Claude Code as you would outside it. At the start of the session the agent confirms that recording is on, naming the organization and project the evidence will go to. Check for it before you start working — if it isn't there, the session isn't being recorded: ![Claude Code starting inside the sandbox with the message: Chainloop Trace is recording this session. Evidence will be sent to https://app.chainloop.dev, naming the organization and project](https://mintcdn.com/chainloop/FZRRM9giN-FDnkla/guides/img/docker-sandbox-session-start.png?fit=max\&auto=format\&n=FZRRM9giN-FDnkla\&q=85\&s=eb52ab1c31119cc30f37d1d2f2be2f83) The evidence is pushed by the pre-push hook, so **push from inside the sandbox** before it is reclaimed. Once it lands, the session appears in Chainloop like any other: [rendered in the workflow run](/guides/chainloop-trace#visualize-ai-coding-sessions), aggregated in the [AI Coding dashboard](/guides/chainloop-trace#use-the-ai-coding-dashboard), and [summarized on the pull request](/guides/chainloop-trace#pull-request-correlation) for a connected repository. ## Troubleshooting and FAQ > [accordion] The session recorded nothing, and nothing reported an error > > Almost always an `sbx` older than v0.42.0. Earlier versions drop part of what a kit inherits from the agent it extends ([docker/sbx-releases#415](https://github.com/docker/sbx-releases/issues/415)), leaving the agent unable to write the transcript `chainloop trace` reads. The sandbox still starts normally, which is what makes it hard to spot. > > Check a sandbox with: > > ```bash theme={"dark"} > sbx exec -- stat -c '%U:%G' /home/agent/.claude/projects > ``` > > It should print `agent:agent`. If it prints `root:root`, upgrade `sbx` and recreate the sandbox. > [accordion] My session finished but nothing appears in Chainloop > > The evidence is pushed by the pre-push git hook, so it is only sent when you `git push` from inside the sandbox. Push before the sandbox is reclaimed. > [accordion] The sandbox refuses to start > > The kit fails at launch when it has no Chainloop credentials, rather than run a session that records nothing. Pass `--kit-arg chainloopToken=`. > [accordion] Can I use an agent other than Claude Code? > > Not with this kit — it wraps the Claude Code agent that Docker Sandboxes ships built in. `chainloop trace` itself supports other agents outside a sandbox; see [supported agents](/guides/chainloop-trace#prerequisites). > [accordion] Does this work against a self-hosted Chainloop? > > Not yet. The kit ships preconfigured for Chainloop's hosted platform and its endpoints aren't configurable — see [Current Limitations](#current-limitations). ## Current Limitations **The kit only talks to Chainloop's hosted platform.** The control plane, CAS, and platform endpoints ship baked into the kit and are not configurable yet, so it cannot be pointed at a self-hosted Chainloop instance. Support for that is planned. **The Chainloop token reaches the sandbox as an environment variable.** Docker Sandboxes can keep a secret on the host and inject it per request, so the value never enters the VM. That does not work for Chainloop yet: injection requires the egress proxy to terminate TLS, and the intercepted connection only negotiates HTTP/1.1, while `chainloop trace` reaches the control plane over gRPC and needs HTTP/2 ([docker/sbx-releases#574](https://github.com/docker/sbx-releases/issues/574)). Until that is fixed, the kit takes the token as a value and keeps the Chainloop hosts off the intercepted path. While that stands: * Scope the token to the organization it needs and rotate it like any other credential. * **Do not bind a Chainloop host to an `sbx` credential**, for example with `sbx secret set-custom --host api.cp.chainloop.dev`. That flips the host to the intercepted path and silently stops attestation. We are working with Docker on this. Once it is fixed, the token will no longer be passed as an environment variable. ## Further Reading * [How to record AI coding sessions](/guides/chainloop-trace) — setting up `chainloop trace`, applying policies, and enforcing it * [AI Coding Sessions](/concepts/ai-coding-sessions) — what sessions are, how PR correlation works, and what each dashboard card means * [AI Session Score](/reference/ai-score) — per-PR confidence signal for AI-assisted changes * [Docker Sandboxes documentation](https://docs.docker.com/ai/sandboxes/) — sandboxes, kits, and the `sbx` CLI # Evaluate Chainloop Platform Source: https://docs.chainloop.dev/guides/evaluate-platform Different ways to evaluate the Chainloop Platform - SaaS, Kubernetes, or Docker Compose ## Overview There are different ways to evaluate the Chainloop Platform: 1. **Software as a Service** - Use our hosted instance (quickest way to get started) 2. **Kubernetes** - Deploy using the Enterprise Edition Helm chart (easiest transition to production) 3. **Local Docker Compose** - Deploy locally in development mode for quick evaluation ## Software as a Service The quickest way to evaluate the Chainloop Platform is to use our hosted instance: 1. [Sign up](https://app.chainloop.dev/login) for a Chainloop Cloud account 2. Start using the Chainloop Platform right away, without any local setup ## Kubernetes Kubernetes is the recommended self-hosted evaluation path since it maps directly to a production setup. The Enterprise Edition Helm chart includes a development mode for easy evaluation. To get started: 1. Visit the [Chainloop contact page](https://chainloop.dev/contact) to request access credentials for the Enterprise Edition container images 2. Follow the [Enterprise Edition Deployment](/guides/deployment/chainloop-ee) guide. The chart README includes a **development mode** example for a quick evaluation setup ## Local Docker Compose If you prefer a lightweight local evaluation without Kubernetes, you can use Docker Compose: 1. Visit the [Chainloop contact page](https://chainloop.dev/contact) 2. In your message, mention that you are **interested in running an evaluation lab environment locally** 3. The Chainloop team will send you the lab environment package, which includes: * Complete setup instructions * Credentials to pull the container images * All necessary configuration files ## Evaluate Open Source If you are only interested in the open source Chainloop Evidence Store, you can deploy it directly using the [Helm chart on GitHub](https://github.com/chainloop-dev/chainloop/blob/main/deployment/chainloop/README.md). ## Additional Resources * [Getting Started Guide](/get-started/overview) - Learn the basics after setup * [Enterprise Edition Deployment](/guides/deployment/chainloop-ee) - Full Kubernetes deployment * [Open Source Evidence Store](/guides/deployment/oss) - OSS-only deployment * [Contact Chainloop Team](https://chainloop.dev/contact) - Request access or get help # Generate and Continuously Scan SBOMs Source: https://docs.chainloop.dev/guides/generate-and-scan-sboms Produce CycloneDX SBOMs from a connected repository — or bring your own — and keep them checked against newly disclosed CVEs. > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). An SBOM is only worth having if it exists and stays current. Chainloop covers both halves: it can build the SBOM for you from a connected repository, and it can keep re-checking any SBOM in the project against newly disclosed CVEs. All of it runs server-side, so none of it needs a change to your CI. ## Which Path You Need | What you want | Turn on | | - | - | | An SBOM of your source **and** vulnerability findings from it | **Vulnerability Scan** | | An SBOM of your source, nothing more | **SBOM Generation** | | Periodic CVE checks on the SBOMs already in the project | **Vulnerability Scan from SBOMs** | All three are [built-in scans](/reference/scanners) you enable per project. Add one from the **Workflows** step of the [Create Project wizard](/get-started/projects/create-project), or to an existing project from its **Workflows** tab with **Create Workflow**. ![The Workflows tab of a project with the Create Workflow button](https://mintcdn.com/chainloop/Br4V6GyJD3flcZYF/guides/img/sbom-create-workflow.png?fit=max\&auto=format\&n=Br4V6GyJD3flcZYF\&q=85\&s=e3bea76ca3e7d77e6d86508c5a8cab7f) The paths are not exclusive — the sections below note where running two together makes sense. ## Generate an SBOM and Analyze It **Vulnerability Scan** does both halves in one workflow: [syft](https://github.com/anchore/syft) builds a CycloneDX SBOM from the connected repository, and [grype](https://github.com/anchore/grype) scans it for known CVEs. Both are attested, under the names `sbom` and `vulnerability-report`, and the commit that triggered the scan is verified. ![The Vulnerability Scan card, which generates an SBOM from the project's source with syft and scans it with grype](https://mintcdn.com/chainloop/Br4V6GyJD3flcZYF/guides/img/sbom-vuln-scan-source.png?fit=max\&auto=format\&n=Br4V6GyJD3flcZYF\&q=85\&s=19ec01cce95563d1f6b36f8ac16e12b4) It needs a GitHub or GitLab repository connected to your organization and linked to the project — see [Connect GitHub & GitLab](/guides/connect-repository). It supports **Run periodically**, **Run in PRs**, and manual delivery. Its inputs are `path`, to scope it to one directory of a monorepo, and `severity`, which sets the lowest severity that counts as a violation and defaults to `HIGH`. Start here if you want both an inventory and findings and have nothing else set up — this one scan covers the ground that **SBOM Generation** and **Vulnerability Scan from SBOMs** cover together. ## Generate an SBOM Only **SBOM Generation** produces the inventory and leaves the analysis to you. Every run produces a signed [attestation](/concepts/attestations) carrying a CycloneDX SBOM named `sbom`, built by syft from the repository's source and its declared dependencies. Chainloop re-runs it at least once a day, so the SBOM follows the default branch rather than aging out. It needs a connected repository too, and its only run mode is **Run periodically** — there is no schedule to configure. Its one input is `path`, relative to the repository root, which defaults to the whole repository. For a monorepo, add one configuration per component: each becomes its own workflow with its own SBOM. > [!NOTE] > > The SBOM describes your repository, not a build output — it is not an SBOM of your container image. If that's what you need, see [Generate SBOMs in Your Own CI Instead](#generate-sboms-in-your-own-ci-instead). ### SBOM Quality Checks Each run is evaluated against the [`sbom-quality`](/reference/policies#sbom-quality) policy group, which checks the SBOM for banned licenses and components, NTIA minimum elements, license coverage, and freshness. The verdicts are stored with the evidence and never fail the run. The built-in template exposes only `path`, so the policy group's own inputs — the banned-license and banned-component lists, and the freshness window — keep their defaults. To choose your own values, attach the policy group to a [contract](/concepts/contracts) you control with `with:` parameters, the same way [Set up Vulnerability Management](/guides/vulnerability-management#add-the-policy-group-to-your-contract) does it. ## Analyze the SBOMs You Already Have Continuous here means a fresh scan at least once a day against an updated vulnerability database: a package that was clean last week gets flagged today without anyone touching the code. **Vulnerability Scan from SBOMs** does that for every SBOM already attested on the project version, however it got there — one that **SBOM Generation** produced and one your own pipeline attested are both ordinary evidence, so the scanner picks up either without being told which is which, and keeps picking up new ones as they arrive. ![The Vulnerability Scan from SBOMs card in the Security Scanning category](https://mintcdn.com/chainloop/Br4V6GyJD3flcZYF/guides/img/sbom-vuln-scan-on.png?fit=max\&auto=format\&n=Br4V6GyJD3flcZYF\&q=85\&s=d0e27ee67aa3f76c4e1daaff6e371bcf) Chainloop runs grype over each SBOM and re-attests the results alongside it. Its one input, `severity`, sets the lowest severity that counts as a violation and defaults to `HIGH`. It reads evidence rather than code, so it needs no connected repository at all. It runs periodically only, and a run that finds no SBOM to scan is skipped rather than failed — so the scanner sits quiet until the first one lands. Pair it with **SBOM Generation** for a source-derived SBOM that gets re-checked daily, or run it alongside **Vulnerability Scan** to keep scanning SBOMs your pipeline attests as well. The workflows are independent, and their findings merge in the same place. ## Where the Findings Land Findings flow into the project's **Security** tab: deduplicated across runs and scanners, flagged when a CVE appears in the CISA KEV catalog, and eligible for AI risk assessment and auto-remediation. [Vulnerability Management and Risk Assessment](/concepts/vulnerability-management) covers the triage loop, the VEX feed, and the reports. ## Generate SBOMs in Your Own CI Instead Managed generation needs a connected repository and gives you a source-derived SBOM. When neither fits — no repository connection, or you need an SBOM of a built image — produce the SBOM in your pipeline and attest it: * [Attestations](/concepts/attestations#ci-integration) has working syft examples for GitHub Actions, GitLab CI, and other systems. * Declare the material in your workflow [contract](/concepts/contracts): ```yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Contract metadata: name: skynet-contract spec: materials: # SBOMs will be uploaded to the CAS Backend of your choice, such as an OCI registry and referenced in the attestation - type: SBOM_CYCLONEDX_JSON name: skynet-sbom ``` * [Set up Vulnerability Management](/guides/vulnerability-management) covers the rest of the CI wiring, including the vulnerability report itself. An SBOM attested this way is ordinary evidence, so **Vulnerability Scan from SBOMs** picks it up and keeps scanning it — you can hand generation to your CI and still get continuous checks from Chainloop. ## Send SBOMs Onward Any CycloneDX SBOM that reaches Chainloop, generated or attested from your CI, can be forwarded automatically to a Dependency-Track instance for component analysis — see [Send SBOMs to Dependency-Track](/guides/dependency-track). Approved risk assessments also publish as a live VEX feed you can share with customers, covered in [Vulnerability Management](/concepts/vulnerability-management). ## Troubleshooting > [accordion] The SBOM Generation workflow has no runs > > Check that the project has a repository linked and that its provider is GitHub or GitLab — managed scans are skipped when there is no linked source repository. Periodic runs are also dispatched by a sweep rather than the moment you save, so a workflow you just enabled can take a while to show its first run. > [accordion] Vulnerability Scan from SBOMs is skipped > > That scanner reads SBOMs already attested on the project version, so it has nothing to do until one arrives. Either turn on **SBOM Generation** or attest an SBOM from your CI, and the next run will pick it up. > [accordion] The SBOM is missing dependencies I expected > > Two usual causes. The SBOM is source-derived, so anything introduced at build time — base image packages, vendored binaries — won't appear; attest an artifact SBOM from your pipeline instead. Or `path` points at a subdirectory that doesn't contain the manifest or lockfile declaring those dependencies. > [accordion] I want banned licenses enforced on the generated SBOM > > The built-in template exposes only `path`, so `sbom-quality` runs with its default lists. Attach the policy group to a contract of your own with `with:` parameters to set them, and add a [control gate](/concepts/control-gates) if a violation should block a release — policy verdicts on managed runs are recorded, not enforced. ## Next Steps * [Built-in Scanners](/reference/scanners) — every built-in scan, the tool it runs, and the evidence it produces. * [Vulnerability Management and Risk Assessment](/concepts/vulnerability-management) — what happens to findings after a scan. * [Cyber Resilience Act](/reference/cyber-resilience-act) — how SBOMs and vulnerability handling map onto CRA obligations. # Keyless Attestations in GitHub Source: https://docs.chainloop.dev/guides/github-keyless How to configure Chainloop attestations from GitHub Actions without using Chainloop API tokens. > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). You can perform attestations from GitHub Actions without using Chainloop API tokens. This removes token management from your workflows and helps you align with [SLSA 3](/guides/slsa) checks by default. To achieve this you'll need to: * Connect your GitHub repository to a project * Configure workflow permissions for OIDC ## 1 - Connect your GitHub repository to a project Before attesting, connect the Chainloop GitHub integration and link the repository to a project: * [Connect GitHub & GitLab](/guides/connect-repository) — one-time organization setup. * [Create a project](/get-started/projects/create-project) — link the repository to the project that will receive attestations. > [!NOTE] > > Attestations from repositories that are not connected to a project will not be accepted. ## 2 - Configure the workflow for keyless attestation You can leverage GitHub OIDC tokens directly from your workflow. Keep the workflow configuration simple and include these permissions: ```yaml theme={"dark"} permissions: # Lets the workflow request an OIDC token that Chainloop uses to identify your org: id-token: write ``` An example workflow: ```yaml theme={"dark"} name: Chainloop Keyless Attestation on: push: branches: [main] pull_request: jobs: attest: runs-on: ubuntu-latest permissions: # Lets the workflow request an OIDC token that Chainloop uses to identify your org: id-token: write steps: - name: Checkout uses: actions/checkout@v4 - name: Install Chainloop CLI run: curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s - name: Init attestation (keyless) run: | chainloop att init \ --project demo \ --workflow test-github - name: Push attestation run: chainloop attestation push ``` > [!NOTE] > > Do not set `CHAINLOOP_TOKEN` in your workflow environment. In keyless mode, the CLI automatically requests a GitHub OIDC token and uses it to authenticate with Chainloop — no manual token configuration needed. > [!NOTE] > > If you have onboarded the same repository to more than one Chainloop organization, pass the `--org` flag to the init command: > > ```bash theme={"dark"} > chainloop att init --workflow test-github --project demo --org my-org > ``` # Keyless Attestations in GitLab Source: https://docs.chainloop.dev/guides/gitlab-keyless How to configure Chainloop to perform attestation from GitLab without the need to provide Chainloop API tokens. > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). You can now perform attestations from GitLab runners without the need to use Chainloop API tokens. In addition to the benefit of not having to manage API tokens, this also allows you to enable [SLSA 3](/guides/slsa) compliance checks by default. To achieve this you'll need to: * Connect your GitLab repository to a project * Send GitLab token during the attestation process ## 1 - Connect your GitLab repository to a project Before attesting, connect the Chainloop GitLab integration and link the repository to a project: * [Connect GitHub & GitLab](/guides/connect-repository) — one-time organization setup. * [Create a project](/get-started/projects/create-project) — link the repository to the project that will receive attestations. > [!NOTE] > > Attestations from repositories that are not connected to a project will not be accepted. ## 2 - Send GitLab token during the attestation process You are now ready to leverage GitLab's OIDC tokens from your pipelines. The requirement is to create an ID token that has the chainloop audience. To achieve this in GitLab, you can add the following snippet to your pipeline yaml file. ```yaml theme={"dark"} id_tokens: CHAINLOOP_TOKEN: aud: chainloop # make sure the audience is chainloop ``` A full pipeline example could look like ```yaml theme={"dark"} stages: - build build-job: stage: build id_tokens: CHAINLOOP_TOKEN: aud: chainloop script: - curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s - chainloop att init --workflow test-gitlab --project demo - chainloop attestation push after_script: - chainloop attestation reset || true ``` > [!NOTE] > > Note that if you have onboarded the same repository to more than one Chainloop organization, you'll need to pass the --org flag to the init command, for example. > > ```bash theme={"dark"} > chainloop att init --workflow test-gitlab --project demo --org my-org > ``` # How to run LLM-driven policies Source: https://docs.chainloop.dev/guides/llm-policies Use AI-powered prompts to evaluate evidence and attestations in your supply chain > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). ## Overview Chainloop can use Large Language Models (LLMs) to evaluate evidence using natural-language prompts. This allows you to define flexible, human-readable compliance checks that go beyond what traditional rule-based policies can express. There are two approaches: * **Built-in `evidence-prompt` policy** — No code needed. Define a prompt directly in your workflow contract and Chainloop handles the rest. * **Custom Rego policies with `chainloop.evidence_prompt`** — For advanced use cases where you need to combine AI analysis with programmatic logic. Both approaches work with any AI provider integration you have configured (Anthropic or OpenAI). ## Prerequisites Before using LLM-driven policies, you need to register an AI Provider integration in your Chainloop organization. Navigate to **Integrations** and filter by **AI Provider** to see the available options: ![AI Provider integrations](https://mintcdn.com/chainloop/r0_rGYnGJ8QnTsJY/guides/img/llm-policies-ai-providers.png?fit=max\&auto=format\&n=r0_rGYnGJ8QnTsJY\&q=85\&s=8face813991318190d407665cd70509a) > [!WARNING] > > Register at least one AI provider (Anthropic or OpenAI) with a valid API key. See the [LLM Support reference](/reference/llm-support) for details on each supported provider, custom endpoints such as Microsoft Foundry and OpenRouter, and the model requirements. ## Option 1: Using the built-in `evidence-prompt` policy The simplest way to run LLM-driven evaluations is using the built-in `evidence-prompt` policy. It requires no Rego code — just a natural-language prompt. ![evidence-prompt policy detail](https://mintcdn.com/chainloop/r0_rGYnGJ8QnTsJY/guides/img/llm-policies-evidence-prompt.png?fit=max\&auto=format\&n=r0_rGYnGJ8QnTsJY\&q=85\&s=1877556a1afe13c70eb78b9a975a6442) The policy accepts a single required input, `prompt`, which describes what the AI should analyze in the evidence. ### Adding to a workflow contract Reference the `evidence-prompt` policy in your workflow contract under `policies.attestation`, `policies.materials`, or both depending on what you want to evaluate. ```yaml contract.yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Contract metadata: name: llm-policy-example spec: policies: attestation: - ref: evidence-prompt with: prompt: "Check that all container images referenced in this attestation come from a trusted registry (e.g. ghcr.io or docker.io/chainloop)" materials: - ref: evidence-prompt with: prompt: "Analyze this SBOM and report any components with non-OSS compatible licenses such as AGPL, SSPL, or proprietary licenses" materials: - type: SBOM_CYCLONEDX_JSON name: my-sbom ``` * **Under `policies.attestation`**: the prompt runs against the full attestation envelope, useful for cross-material checks like verifying all container images come from trusted registries. * **Under `policies.materials`**: the prompt runs against each matching material individually (e.g., each SBOM), useful for per-artifact analysis like license compliance or vulnerability assessment. > [!TIP] > > You can use both attestation-level and material-level prompts in the same contract to layer different checks. ### Evaluation results Like any other policy, the evaluation results are cryptographically signed and embedded in the attestation. LLM-driven evaluations are clearly marked with an AI indicator so you can distinguish them from traditional rule-based checks. ![An AI policy evaluation in the workflow run view, showing the violations found per piece of evidence](https://mintcdn.com/chainloop/L8kJ_PW999E2rmSI/guides/img/llm-policies-evaluation-results.png?fit=max\&auto=format\&n=L8kJ_PW999E2rmSI\&q=85\&s=2f4ce21431f16d100beefcbca8dba84d) Each evaluation lists the violations returned by the AI provider for every piece of evidence, giving full traceability into what was checked and why it failed. ## Option 2: Using `chainloop.evidence_prompt` in custom policies For more control, you can call the `chainloop.evidence_prompt` builtin function from within a custom Rego policy. This lets you combine AI analysis with programmatic checks in a single policy. See [How to write custom policies](/guides/custom-policies) for the full custom policy workflow. ### The `chainloop.evidence_prompt` function ```rego theme={"dark"} result := chainloop.evidence_prompt(evidence, prompt) ``` * `evidence` (string): a CAS digest (`sha256:...`) or raw evidence content * `prompt` (string): the prompt describing what to analyze * Returns an object with `skipped` (boolean) and `violations` (array of strings) See the [builtin functions reference](/reference/builtin-functions#chainloopevidence_prompt) for full details. ### Example: combining AI analysis with programmatic checks The following policy uses the AI prompt to find license issues, then adds a programmatic check to ensure a minimum number of components exist in the SBOM: ```rego policy.rego theme={"dark"} package main import rego.v1 # AI-powered license analysis violations contains msg if { result := chainloop.evidence_prompt(input.material.hash, "List any components with AGPL, SSPL, or proprietary licenses") not result.skipped some msg in result.violations } # Programmatic check: ensure SBOM has components violations contains "SBOM contains no components" if { count(input.material.content.components) == 0 } ``` ## How it works When a policy with an LLM prompt is evaluated during an attestation: 1. Chainloop extracts the relevant evidence content (the full attestation or an individual material). 2. The evidence content and your prompt are sent to whichever AI provider is configured in your organization. 3. The LLM analyzes the evidence according to your prompt and returns any violations it finds. 4. Those violations surface in the attestation results alongside violations from any other policies. # Using PR Policies as Control Gates Source: https://docs.chainloop.dev/guides/pr-policies-control-gate Enforce pull request quality standards with Chainloop control gates in GitHub Actions and GitLab CI ## Overview Chainloop provides a set of built-in policies that enforce pull request quality standards in your CI/CD pipeline. These policies evaluate PR metadata automatically gathered by the Chainloop CLI and can act as control gates to block workflows when requirements aren't met. When used as control gates, PR policies help ensure: * Code reviews are properly conducted * PRs have meaningful descriptions and linked issues * Security requirements like code owner approval are satisfied * Conversation resolution and stale review dismissal rules are followed ## Available PR Policies The following PR policies are available: | Policy Name | Description | | - | - | | `pr-review-required` | Ensures PRs require a minimum number of reviewers before merging | | `pr-code-owner-review-required` | Verifies that code owners have reviewed and approved changes | | `pr-conversation-resolution-required` | Checks that all PR conversations are resolved before merging | | `pr-description-required` | Ensures PRs have meaningful descriptions | | `pr-stale-reviews-dismissed` | Verifies that stale reviews are dismissed when new commits are pushed | | `pr-user-story-linked` | Ensures PRs reference a user story or issue for traceability | | `pr-bot-author-allowed` | Verifies PRs/MRs are authored by approved bot accounts | All policies support both GitHub and GitLab. The code review policies (`pr-review-required`, `pr-code-owner-review-required`, `pr-conversation-resolution-required` and `pr-stale-reviews-dismissed`) check the **repository settings** (branch protection rules and rulesets on GitHub, protected branches and approval settings on GitLab), not the pull request itself. They read the runner context, which you gather with `chainloop gather-runner-context` (see the quick start below). To check the approvals of the pull request, use `pr-min-approvals`, which reads the PR metadata. The description, user story and bot author policies read the PR metadata too. For what each code review policy checks and the setting to change when it fails, see [SCM Protection Policies](/reference/branch-protection-policies). > [!NOTE] > > The Chainloop CLI collects PR metadata only for `pull_request` and `pull_request_target` events on GitHub. To read the review states it needs `GITHUB_TOKEN` in the environment of the step (`env: GITHUB_TOKEN: ${{ github.token }}`, with the `pull-requests: read` permission). On GitLab the CLI does not collect merge request approvals, so `pr-min-approvals` reports 0 approvals for merge requests collected by the CLI. ## How It Works 1. **Automatic PR Detection**: The Chainloop CLI automatically detects when running in a pull request context and gathers PR metadata 2. **Material Collection**: PR information is collected as a `CHAINLOOP_PR_INFO` material type 3. **Policy Evaluation**: Attached PR policies evaluate the gathered metadata 4. **Control Gate**: If a policy is configured as a gate and fails, the workflow is blocked (exit code != 0) ## Quick Start ### Prerequisites * Chainloop CLI configured in GitHub Actions or GitLab CI * A workflow contract configured in Chainloop with PR policies attached that runs in PR or MR events * Chainloop CLI Enterprise Edition and a token to read the repository settings, see [CI/CD Runner Context](/reference/runner-context#create-the-access-token) ### Step 1: Create a Contract with PR Policies Create a workflow contract that includes PR policies attached with the `gate: true` flag: ```yaml pr-quality-gate.contract.yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Contract metadata: name: pr-quality-gate description: Enforce PR quality standards before merge spec: policies: materials: # Check that branch protection requires at least 2 approvals # (reads the runner-context material added in the workflow below) - ref: pr-review-required selector: name: runner-context gate: true with: min_reviewers: "2" branches: "main,release/*" # Check that branch protection requires code owner approval - ref: pr-code-owner-review-required selector: name: runner-context gate: true with: branches: "release/*" # Require meaningful PR description - ref: pr-description-required gate: true with: min_length: "50" allow_empty: "false" # Require linked issue or user story - ref: pr-user-story-linked gate: true with: patterns: "[A-Z]+-[0-9]+,#[0-9]+" ``` ### Step 2: Set Up GitHub Workflow Configure your GitHub Actions workflow to use the Chainloop CLI with runner context gathering: ```yaml .github/workflows/pr-quality-gate.yml theme={"dark"} name: PR Quality Gate on: pull_request: types: [opened, synchronize, reopened, edited] jobs: pr-quality-check: runs-on: ubuntu-latest permissions: contents: read pull-requests: read steps: - name: Checkout code uses: actions/checkout@v4 - name: Install Chainloop CLI EE run: | curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s - name: Initialize attestation (gathers PR info automatically) env: CHAINLOOP_TOKEN: ${{ secrets.CHAINLOOP_TOKEN }} # Needed to read the review states of the pull request GITHUB_TOKEN: ${{ github.token }} run: | chainloop attestation init \ --workflow pr-quality-gate \ --project my-project - name: Gather runner context run: | chainloop gather-runner-context \ --runner-token ${{ secrets.ADMIN_PERSONAL_ACCESS_TOKEN }} \ --branches "main,release/*" - name: Add runner context to the attestation env: CHAINLOOP_TOKEN: ${{ secrets.CHAINLOOP_TOKEN }} run: | chainloop attestation add \ --name runner-context \ --value runner-context.json \ --kind CHAINLOOP_RUNNER_CONTEXT - name: Push attestation env: CHAINLOOP_TOKEN: ${{ secrets.CHAINLOOP_TOKEN }} run: | # Push attestation - this will evaluate control gates chainloop attestation push ``` The `gather-runner-context` step needs a token that can read the repository settings. The default `GITHUB_TOKEN` cannot read classic branch protection, so use a GitHub App or a personal access token. See [CI/CD Runner Context](/reference/runner-context#create-the-access-token) for the permissions, and for GitLab. The `permissions` of the job in the example include `contents: read` and `pull-requests: read`. The `branches` input of the code review policies selects **which repository branches' protection settings are checked**. It is not the target branch of the pull request. Use the same patterns in `--branches` so that the collected data includes those branches. `*` does not cross `/` (`release/*` matches `release/1.0`), `**` does. ### Step 3: Configure Control Gate Enforcement Enable control gate enforcement at the organization level or per-policy: > [tab] Organization-wide > > ```bash theme={"dark"} > chainloop org update --name my-org --block > ``` > [tab] Per-policy (in contract) > > Already configured above using `gate: true` in the contract ## Policy Configuration Examples ### Example 1: Branch-specific Review Requirements Require different numbers of approvals in the protection settings of each branch: ```yaml theme={"dark"} policies: materials: # Stricter requirements for main branch - ref: pr-review-required gate: true with: min_reviewers: "3" branches: "main" # Lighter requirements for feature branches - ref: pr-review-required gate: true with: min_reviewers: "1" branches: "feature/*" ``` ### Example 2: Enforce Conversation Resolution Ensure all PR discussions are resolved before merge: ```yaml theme={"dark"} policies: materials: - ref: pr-conversation-resolution-required gate: true with: branches: "main,release/*" ``` ### Example 3: Require Meaningful PR Descriptions Enforce PR descriptions with specific sections: ```yaml theme={"dark"} policies: materials: - ref: pr-description-required gate: true with: min_length: "100" allow_empty: "false" required_sections: "summary,testing,motivation" ``` ### Example 4: Ensure Stale Reviews Are Dismissed Verify that old approvals are dismissed when new code is pushed: ```yaml theme={"dark"} policies: materials: - ref: pr-stale-reviews-dismissed gate: true with: branches: "main" ``` ## Gating Bot-Authored PRs In addition to enforcing quality on human PRs, you can use Chainloop to verify and gate bot-authored PRs from tools like Dependabot or Renovate. This ensures only approved bots can create PRs in your repository and provides an attestation trail for automated dependency updates. ### How Bot Detection Works > [tab] GitHub > > GitHub bot accounts have a platform-reserved `[bot]` suffix (e.g., `dependabot[bot]`, `renovate[bot]`) and a `type: "Bot"` field on the user object. The Chainloop CLI detects this automatically during `attestation init` when running in a pull request context. > > The approach uses two layers of defense: > > 1. **Workflow trigger**: A GitHub Actions workflow triggers for any bot-authored PR using `github.event.pull_request.user.type == 'Bot'` > 2. **Policy gate**: The `pr-bot-author-allowed` policy restricts which specific bots are permitted. An unrecognized bot triggers the workflow but fails the policy gate. > [tab] GitLab > > The Chainloop CLI calls `GET /api/v4/projects/:id/merge_requests/:iid` using the `CI_JOB_TOKEN` environment variable and reads the [`author.bot`](https://docs.gitlab.com/api/users.html) boolean field from the response. The result is mapped to the `Author.Type` field in the `CHAINLOOP_PR_INFO` material: > > | `author.bot` value | `Author.Type` | Meaning | > | - | - | - | > | `true` | `"Bot"` | Project/group access token bot users, [service accounts](https://docs.gitlab.com/api/group_service_accounts.html) (GitLab 16.1+, Premium/Ultimate), built-in GitLab bots | > | `false` | `"User"` | Regular user account, including automation running under a personal access token | > | API call fails | `"unknown"` | Falls back to `GITLAB_USER_LOGIN` environment variable | > > The same logic applies to merge request reviewers. For forked merge requests, the CLI prefers `CI_MERGE_REQUEST_PROJECT_PATH` over `CI_PROJECT_PATH` to resolve the correct project. > > > [!WARNING] > > > > **Common pitfall with Renovate on GitLab**: If Renovate runs under a regular user account with a Personal Access Token (PAT) — which is the most common self-hosted setup — GitLab reports `author.bot = false`. The detected `Author.Type` will be `"User"` even though the merge requests are automated. See [recommended setups](#recommended-setup-for-renovate-on-gitlab) below. > > **When `author.bot` is `true`:** > > * Bot users created by project or group access tokens > * [Service accounts](https://docs.gitlab.com/api/group_service_accounts.html) (GitLab 16.1+, requires Premium or Ultimate) > * Built-in GitLab bots (e.g., `alert_bot`, `support_bot`, `ghost`) > > **When `author.bot` is `false`:** > > * Regular user accounts — even if used exclusively for automation > * This is the default for self-hosted Renovate configured with a standard user and PAT ### Recommended Setup for Renovate on GitLab If you use self-hosted Renovate on GitLab, choose one of these approaches so the `pr-bot-author-allowed` policy works correctly: > [tab] Option A: GitLab Service Account (Preferred) > > Provision the Renovate user as a [GitLab service account](https://docs.gitlab.com/api/group_service_accounts.html) (requires GitLab 16.1+, Premium or Ultimate). Service accounts have `author.bot = true` automatically, so the policy detects them as bots without additional configuration. > > 1. Create a service account via the GitLab Groups API > 2. Generate a personal access token for the service account > 3. Configure Renovate to authenticate with that token > 4. No `allowed_bots` override is needed — the default policy configuration works > [tab] Option B: Project or Group Access Token > > If you cannot use a service account (e.g., GitLab Free tier or GitLab versions before 16.1), run Renovate with a [project or group access token](https://docs.gitlab.com/user/project/settings/project_access_tokens/). GitLab creates a bot user for the token, which has `author.bot = true`, and you can add that bot's username to the `allowed_bots` input: > > ```yaml theme={"dark"} > policies: > materials: > - ref: pr-bot-author-allowed > gate: true > with: > allowed_bots: "project_123_bot_abc123" > ``` > > Replace the value with the username of the bot user created for the token. > > > [!WARNING] > > > > `pr-bot-author-allowed` skips any author that is not a bot. Adding the login of a regular user (for example a user running Renovate with a personal access token) to `allowed_bots` has no effect: the author is detected as `"User"`, so the policy is skipped instead of evaluated. > > > [!NOTE] > > > > The default allowed list (`dependabot[bot]`, `renovate[bot]`) uses GitHub-style names with the `[bot]` suffix. These will **not** match GitLab usernames, so you must specify the correct GitLab username explicitly. ### Contract ```yaml bot-pr-gate.contract.yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Contract metadata: name: bot-pr-gate description: Verify and gate bot-authored PRs spec: policies: materials: - ref: pr-bot-author-allowed gate: true with: allowed_bots: "dependabot[bot],github-actions[bot]" ``` ### CI Configuration > [tab] GitHub Actions > > ```yaml .github/workflows/bot-pr-attestation.yml theme={"dark"} > name: Bot PR Attestation > > on: > pull_request: > types: [opened, synchronize, reopened, closed] > branches: > - main > > permissions: > contents: read > id-token: write > pull-requests: read > > jobs: > bot-attestation: > if: ${{ github.event.pull_request.user.type == 'Bot' }} > name: Attest Bot PR > runs-on: ubuntu-latest > env: > CHAINLOOP_WORKFLOW_NAME: bot-pr-gate > CHAINLOOP_PROJECT_NAME: my-project > steps: > - uses: actions/checkout@v4 > > - name: Install Chainloop > run: | > curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s > > - name: Initialize Attestation > run: | > chainloop attestation init \ > --workflow $CHAINLOOP_WORKFLOW_NAME \ > --project $CHAINLOOP_PROJECT_NAME > > - name: Push Attestation > if: ${{ success() }} > run: chainloop attestation push > > - name: Mark attestation as failed > if: ${{ failure() }} > run: chainloop attestation reset > > - name: Mark attestation as cancelled > if: ${{ cancelled() }} > run: chainloop attestation reset --trigger cancellation > ``` > [tab] GitLab CI > > ```yaml .gitlab-ci.yml theme={"dark"} > bot-mr-attestation: > stage: attestation > rules: > - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' > variables: > CHAINLOOP_WORKFLOW_NAME: bot-pr-gate > CHAINLOOP_PROJECT_NAME: my-project > script: > - curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s > - chainloop attestation init > --workflow $CHAINLOOP_WORKFLOW_NAME > --project $CHAINLOOP_PROJECT_NAME > - chainloop attestation push > after_script: > - chainloop attestation reset > ``` > > > [!NOTE] > > > > GitLab CI does not have a built-in variable equivalent to GitHub's `github.event.pull_request.user.type` for filtering pipelines by author type at the trigger level. The `pr-bot-author-allowed` policy handles bot verification at the attestation layer instead, so the pipeline runs for all merge request events and the policy gate determines whether the author is an approved bot. The `pr-bot-author-allowed` policy supports both string-based author names (e.g., `"dependabot[bot]"`) and structured author objects with explicit bot type detection, ensuring backwards compatibility with existing attestations. ### GitHub vs GitLab: Bot Detection Differences | Aspect | GitHub | GitLab | | - | - | - | | Bot identifier | `[bot]` suffix on username (e.g., `dependabot[bot]`) | [`author.bot`](https://docs.gitlab.com/api/users.html) boolean field on user object | | API field | `user.type == "Bot"` | `author.bot == true` | | Service automation | GitHub Apps get the `[bot]` type automatically | Requires a [service account](https://docs.gitlab.com/api/group_service_accounts.html) (Premium/Ultimate, 16.1+) | | Regular user with PAT | Detected as `"User"` | Detected as `"User"` | | CI-level bot filter | `github.event.pull_request.user.type == 'Bot'` | Not available — use the policy gate only | | Fallback on API failure | N/A (uses GitHub event payload) | `GITLAB_USER_LOGIN` env var, type = `"unknown"` | ## Handling Policy Failures When a PR policy control gate fails: 1. **The workflow is blocked**: `chainloop attestation push` returns a non-zero exit code 2. **The attestation is still recorded**: Chainloop tracks the non-compliant activity for audit purposes 3. **Developers see clear error messages**: Policy violations are displayed in the CLI output Example failure output: ```bash theme={"dark"} INF push completed ┌───────────────────────────┬─────────────────────────────────────────────────────────────────────────┐ │ Initialized At │ 26 Dec 25 10:37 UTC │ ├───────────────────────────┼─────────────────────────────────────────────────────────────────────────┤ │ Attestation ID │ 1ecd79e7-2886-46e5-901b-a9a66482187c │ │ Digest │ sha256:f78bd5337ae68ec58b14fffb0e5317f9ecf3d5ee61afd615a165b3243fbcb045 │ │ Organization │ my-org │ │ Name │ pr-quality-gate │ │ Project │ my-project │ │ Version │ v1.65.0+next (prerelease) │ │ Contract │ pr-quality-gate (revision 1) │ │ Policy violation strategy │ ADVISORY │ │ Policies │ ------ │ │ │ pr-review-required (gate): Branch main in repository corp/my-repo │ │ │ requires 1 approving review, but this policy requires at least 2. │ │ │ To fix: in Settings > Branches, raise "Required number of │ │ │ approvals before merging" in the classic rule for main. │ └───────────────────────────┴─────────────────────────────────────────────────────────────────────────┘ ERR the policy "pr-review-required" is configured as a gate and has violations ``` ### Bypassing Control Gates (Emergency Use) In urgent situations (hotfixes, false positives), you can bypass control gates: ```bash theme={"dark"} chainloop attestation push --exception-bypass-policy-check ``` **Important**: The bypass is recorded and exposed to the compliance team for review. ## Best Practices 1. **Start with non-blocking policies**: Test policies without `gate: true` first to ensure they work as expected 2. **Use branch-specific requirements**: Apply stricter rules to production branches (main, release/\*) and lighter rules to development branches 3. **Combine multiple policies**: Use multiple PR policies together for comprehensive quality checks 4. **Monitor policy violations**: Review Chainloop's UI regularly to identify patterns in policy failures 5. **Document bypass procedures**: Establish clear guidelines for when and how to use `--exception-bypass-policy-check` 6. **Keep policies updated**: Review and adjust policy parameters based on team feedback and compliance requirements ## Troubleshooting ### PR Info Not Being Gathered **Problem**: The `CHAINLOOP_PR_INFO` material is not being collected automatically. **Solutions**: * Check that the workflow is triggered by a `pull_request` or `pull_request_target` event, the CLI collects PR info only for these * On GitHub, export `GITHUB_TOKEN` in the step (`env: GITHUB_TOKEN: ${{ github.token }}`) so the CLI can read the reviews * On GitLab, the CLI does not collect merge request approvals ### Policy Always Passes Despite Invalid PR State **Problem**: Policy evaluates successfully even when PR doesn't meet requirements. **Solutions**: * Verify the policy's `branches` parameter includes the branch whose protection settings you want to check (for the code review policies this is a repository branch, not the pull request target) * Check that the PR metadata is being gathered correctly (inspect attestation in Chainloop UI) * Review policy parameters in the contract's `with` section * Ensure the policy is compatible with your CI/CD platform (GitHub vs GitLab) ### Control Gate Not Blocking Workflow **Problem**: Workflow continues even when policy fails. **Solutions**: * Verify `gate: true` is set in the policy attachment * Check organization-wide enforcement settings (`chainloop org describe`) * Ensure you're not using `--exception-bypass-policy-check` flag * Confirm the workflow doesn't have error handling that catches the non-zero exit code ## Additional Resources * [Control Gates Concept](/concepts/control-gates) * [Policies Concept](/concepts/policies) * [Custom Policies Guide](/guides/custom-policies) * [Branch Protection Policies Reference](/reference/branch-protection-policies) # How to monitor your CI/CD systems with Chainloop and Prometheus Source: https://docs.chainloop.dev/guides/prometheus Chainloop is an open-source Software Supply Chain control plane, a single source of truth for metadata and artifacts, plus a declarative attestation process. ![chainloop-overview](https://mintcdn.com/chainloop/yJa2Iopv98OPg1FZ/guides/img/prometheus/overview.png?fit=max\&auto=format\&n=yJa2Iopv98OPg1FZ\&q=85\&s=1fc35c62b1078b39ed3ebf76c46aae51) Using Chainloop, you can effortlessly integrate your CI/CD pipelines or processes by defining a Chainloop [Workflow](/concepts/workflows). These workflows can include a Chainloop [Contract](/concepts/contracts) if desired, based on your requirements. As a result, Chainloop can serve as the central authority for your CI/CD operational health. ## Prometheus Integration Chainloop integrates with Prometheus, allowing end users to gain insights into their CI/CD pipelines automatically, in an standardized way. ![integration-diagram](https://mintcdn.com/chainloop/yJa2Iopv98OPg1FZ/guides/img/prometheus/integration-diagram.png?fit=max\&auto=format\&n=yJa2Iopv98OPg1FZ\&q=85\&s=c8b8409ee0e3b6f02fb31bda70942740) For the moment, the following metrics are being exposed but, more can be expected: * `chainloop_workflow_up`: Indicate if the last run was successful. * `chainloop_workflow_run_duration_seconds`: Duration of a workflow runs in seconds. Chainloop provides a dedicated endpoint for Prometheus instances to fetch metrics, which varies based on your instance settings. For example: ```bash theme={"dark"} https://CHAINLOOP_CONTROLPLANE_URL/prom/ORG_NAME/metrics ``` Where: * `CHAINLOOP_CONTROLPLANE_URL`: The URL of your Chainloop control plane. * `ORG_NAME`: The name of the organization from which to gather metrics. It's important to note that the endpoint is authenticated and can be accessed under two conditions for a given organization: * Prometheus Integration is activated for the organization. * A valid API Token is included in the metrics request. ### How to activate Prometheus Integration? In order to use the Prometheus integration there a few steps that need to be performed: 1. Create or use an existing Chainloop organization. 2. Generate an API Token for the organization. 3. Update Chainloop Controlplane configuration to activate prometheus endpoint for that org. #### Create or use an existing Chainloop organization If you already have a Chainloop Organization, you only need to know its name. If you don't have an existing Chainloop Organization, log in and run the following command: ```bash theme={"dark"} chainloop organization create --name cyberdyne ``` #### Generate an API Token for the organization Make sure your current organization is the one you want to create an API Token for and run the following replacing `API_TOKEN_NAME` with your desired API Token name: ```bash theme={"dark"} chainloop organization api-token create --name API_TOKEN_NAME ``` Save the output token for later. #### Update Chainloop Controlplane configuration When using the Chainloop Open Source Chart, there are a few configurations you can tweak to activate the integration of an existing organization. On your values.yaml add: ```yaml theme={"dark"} controlplane: # existing or previous values.yaml configuration prometheus_org_metrics: - org_name: cyberdyne ``` In the example above, we have added the `prometheus_org_metrics` entry to the top level `controlplane` key. The value `org_name: cyberdyne` refers to the fact that we want to activate the metrics for the organization with the name `cyberdyne`. If you want to activate it for more organizations, simply add them below: ```yaml theme={"dark"} controlplane: # existing or previous values.yaml configuration prometheus_org_metrics: - org_name: cyberdyne - org_name: acme-corp ``` ### Test the metrics endpoint With the generated API Token and changed configuration, we can test that everything works as expected by making a request to the Chainloop’s Controlplane to gather metrics for cyberdyne organization: ```bash theme={"dark"} curl -H 'Authorization: Bearer API_TOKEN' \ 'https://CHAINLOOP_CONTROLPLANE_URL/prom/cyberdyne/metrics' ``` Which, will return similar metrics in [Prometheus compatible format](https://prometheus.io/docs/instrumenting/exposition_formats/): ```text theme={"dark"} # HELP chainloop_workflow_up Indicate if the last run was successful. # TYPE chainloop_workflow_up gauge chainloop_workflow_up{org="cyberdyne",workflow="backend-release-production"} 1 chainloop_workflow_up{org="cyberdyne",workflow="chainloop-docs-release"} 1 chainloop_workflow_up{org="cyberdyne",workflow="chainloop-labs-tests"} 1 chainloop_workflow_up{org="cyberdyne",workflow="chainloop-platform-deploy"} 0 chainloop_workflow_up{org="cyberdyne",workflow="chainloop-platform-qa-approval"} 1 chainloop_workflow_up{org="cyberdyne",workflow="chainloop-platform-release-canary"} 1 chainloop_workflow_up{org="cyberdyne",workflow="chainloop-platform-release-production"} 1 chainloop_workflow_up{org="cyberdyne",workflow="chainloop-vault-build-and-package"} 1 ``` ### How to connect to your Prometheus instance? Depending on how Prometheus is deployed in your infrastructure, there could be several ways to do it, the most common way is by updating the configuration yaml of Prometheus: ```yaml theme={"dark"} scrape_configs: - job_name: chainloop-metrics metrics_path: /prom/cyberdyne/metrics scheme: https bearer_token: CHAINLOOP_API_TOKEN static_configs: - targets: - https://CHAINLOOP_CONTROLPLANE_URL ``` In the previous configuration we can see how we have added a new scrape config called `chainloop-metrics` with several options, the most important ones: * metrics_path: `/prom/cyberdyne/metrics` * bearer_token: The Chainloop API Token previously generated * target: `https://CHAINLOOP_CONTROLPLANE_URL` With the configuration we will retrieve the metrics for cyberdyne using an authenticated API Token against the installation of Chainloop’s Controlplane. On another hand you are using the [Prometheus Operator](https://prometheus-operator.dev), you can also leverage almost the same configuration using a [ScrapeConfig](https://prometheus-operator.dev/docs/api-reference/api/#monitoring.coreos.com/v1alpha1.ScrapeConfig): ```yaml theme={"dark"} apiVersion: monitoring.coreos.com/v1alpha1 kind: ScrapeConfig metadata: name: test spec: scrapeInterval: 15s authorization: type: Bearer credentials: name: cyberdyne-metrics-token key: token staticConfigs: - targets: - https://CHAINLOOP_CONTROLPLANE_URL metricsPath: /prom/cyberdyne/metrics ``` Where we have created a scrape entry to be added to the global Prometheus configuration with Chainloop’s Controlplane as target and the API Token as secret used for authentication. ## What's next? Having these metrics is quite powerful, as they enable you to consider further integrations and data visualization methods, such as using Grafana. You can also set up alerts based on these metrics with Alertmanager. Below is an example of visualization using Grafana within a real Chainloop organization. ![grafana-dashboard](https://mintcdn.com/chainloop/yJa2Iopv98OPg1FZ/guides/img/prometheus/grafana.png?fit=max\&auto=format\&n=yJa2Iopv98OPg1FZ\&q=85\&s=4008a277ee92fb727de6f0db30ac68c6) Here, we can observe how we monitor the latest status of workflows across our CI pipelines and processes. If you wish to use this dashboard, you can find it at Grafana Labs [here](https://grafana.com/grafana/dashboards/21641-chainloop-organization-metrics/). And in Alertmanager we can set up alerts based on the metrics we have gathered, for example, if a workflow fails, we can send an alert to the responsible team. ```yaml theme={"dark"} # previous or existing configuration groups: - name: WorkflowDownAlerts rules: - alert: WorkflowDown expr: sum by (org, workflow) (avg_over_time(chainloop_workflow_up[30m])) == 0 for: 30m labels: severity: critical annotations: summary: "Workflow {{ $labels.workflow }} has been down for at least 30 minutes" description: "The workflow {{ $labels.workflow }} in organization {{ $labels.org }} has been down for at least 30 minutes." ``` # Repository Integration Source: https://docs.chainloop.dev/guides/repository-integration Connect GitHub or GitLab so Chainloop can list repositories, run managed workflows, and act on your pull and merge requests. > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). **Repository Integration** connects a Chainloop organization to a source-code provider so Chainloop can list your repositories, onboard projects and workflows from them, and act on their pull/merge requests. This page is the entry point; it links out to the detailed setup, permissions, and attestation guides. > [!NOTE] > > Only **GitHub** and **GitLab** are supported. Other providers (e.g. Bitbucket) are not available. ## What you get, tier by tier The integration's capabilities are layered — they are **not** all enabled the moment you connect. **Connecting alone scans nothing.** | Tier | Action | What it enables | | - | - | - | | **1. Connect** | Install the GitHub App (GitHub) or register a connection with an access token (GitLab), from **Integrations** (one-time, org-level) | Chainloop can **list** your repositories, live from the provider. Nothing runs yet. | | **2. Managed delivery** | Link a repository to a project and set its delivery mode to **Managed** | Chainloop **auto-creates and runs** the [built-in scans](/reference/scanners) (SAST, secret, vulnerability, IaC, GitHub-Actions, SBOM generation, SCM-configuration-check), server-side, no CI changes. | | **3. PR/MR events** | (Automatic once connected) | On each pull/merge request, Chainloop can post a **summary comment** and publish **checks/statuses**. See the table below for provider differences. | See [Built-in Scanners](/reference/scanners) for run modes and what each scan does, and [Connect GitHub & GitLab](/guides/connect-repository) for the hands-on connect flow. ## GitHub vs. GitLab The two providers are genuinely asymmetric. The essentials: | Aspect | GitHub | GitLab | | - | - | - | | Auth model | GitHub **App** (installation tokens) | **Access token** (personal, group, or service-account) with the `api` scope | | Connect action | Install the App | Register a connection with a host + access token | | Repository visibility | Repos **selected at install time** (installation-scoped) | Projects the token can access at **Developer** level or above, **shared org-wide** to all Chainloop members | | Webhooks | Auto-provisioned by the App | Chainloop registers a **per-project** hook on link, and removes it on disconnect | | Webhook verification | `X-Hub-Signature-256` (HMAC-SHA256) | `X-Gitlab-Token` shared secret (auto-generated on install) | | Managed workflows | GA | GA | | PR/MR summary comment | Posted as a **PR comment** (when AI traces are present) | Posted as an **MR note**; identical content | | PR quality checks (`pr-validation`) | Runs when at least one scan has **Run in PRs** enabled | Same | | Check surface | Rich **Check Runs** (`Chainloop AI Policies`, `Chainloop PR Validation`) | **Commit statuses** (GitLab has no Check Runs) — pass/fail + link; full detail lives in the MR note | | Multiple connections | one `github_app` per instance | **multiple** token connections per org (different hosts, or distinct tokens for the same host) | | Self-managed host | GHES via `baseUrl` | self-managed via the connection's **host** | ## Configuration Configuration splits by **audience**, not by product edition: > [tab] Everyone (connect a repository) > > On both Chainloop Cloud and self-hosted instances, an org admin connects the provider from **Integrations**, then links repositories to projects and picks a delivery mode. This is the same flow everywhere. > > See [Connect GitHub & GitLab](/guides/connect-repository). > [tab] On-prem operators > > On a self-hosted instance, an operator must first **create your own** GitHub App and wire it via Helm **before** the GitHub connect flow becomes available to org admins. **GitLab needs no Helm values** — connections are registered at runtime with an access token. But with a self-managed GitLab or a self-hosted Chainloop, GitLab must be allowed to send webhooks to the Chainloop backend, and each side must trust the other's TLS certificate. > > * [GitHub App (self-hosted)](/guides/deployment/guides/github-app) — app creation + `backend.githubApp` Helm values. > * [GitLab (self-managed)](/guides/deployment/guides/gitlab) — network access, GitLab outbound request settings, and custom CAs. ## Must-knows > [!NOTE] > > **Connecting alone scans nothing.** You must link a repository to a project **and** choose **Managed** delivery mode for any workflow to run. * **PR feedback is gated.** The AI-trace summary comment only appears when there are AI coding sessions/traces (or a `pr-validation` run). PR quality checks only run once at least one scan has **Run in PRs** enabled — you don't create the `pr-validation` workflow yourself, Chainloop provisions it on the project's first pull request. See [Scanning in Pull Requests](/reference/scanners#scanning-in-pull-requests). * **GitLab connections are org-wide and token-backed.** Every Chainloop org member operates through the access token registered for the connection, so use a **group or service-account** token (not a personal one) to avoid tying access to an individual. Visible projects are those the token can reach at **Developer** level or above. You can register multiple connections per org. * **On-prem has a GitHub operator prerequisite.** Until an operator creates the GitHub App and sets its Helm values, the GitHub connect flow does not appear. GitLab has no such step. * **Self-managed GitLab may block Chainloop webhooks.** GitLab blocks webhooks to local network addresses by default. If the Chainloop backend resolves to a private IP address, a GitLab administrator must allow it under **Admin** > **Settings** > **Network** > **Outbound requests**, or merge-request feedback never arrives. See [GitLab (self-managed)](/guides/deployment/guides/gitlab#allow-webhooks-to-chainloop-in-gitlab). * **Built-in templates are hidden in the on-prem UI.** Self-hosted installs don't surface Chainloop's built-in workflow templates in the UI. You can manage custom, org-scoped templates via the CLI (`chainloop apply -f`), but only in **Manual** delivery mode. ## Related guides > [card] [Connect GitHub & GitLab](/guides/connect-repository) > > The hands-on connect flow. > [card] [Built-in Scanners](/reference/scanners) > > Run modes, and the tool behind each built-in scan. > [card] [GitHub App (self-hosted)](/guides/deployment/guides/github-app) > > Create the app and set Helm values. > [card] [GitLab (self-managed)](/guides/deployment/guides/gitlab) > > Network, webhook, and TLS setup. > [card] [GitHub permissions](/reference/github-permissions) > > Exact scopes the Chainloop GitHub App requests. > [card] [GitHub keyless attestation](/guides/github-keyless) > > Attest from GitHub Actions via OIDC. > [card] [GitLab keyless attestation](/guides/gitlab-keyless) > > Attest from GitLab CI via OIDC. > [card] [Integrations catalog](/concepts/integrations) > > All Chainloop integrations. # Use Keyfactor SignServer for attestation signing Source: https://docs.chainloop.dev/guides/signserver ### Summary Chainloop CLI can sign attestations using a preconfigured SignServer instance, by providing a key reference during the signing process: ```shell theme={"dark"} > chainloop attestation push --key signserver://mysignserver/PlainSigner --signserver-ca-path mysignserver-chain.pem ``` SignServer is a platform for digitally signing code, documents and timestamps. Check it out at [https://www.signserver.org/about/](https://www.signserver.org/about/). ### Setting up SignServer If your organization doesn't have it already, you can follow these tutorials for a basic setup of Keyfactor's KPI solutions: * [Quick Start Guide - Start EJBCA Container with Client Certificate Authenticated Access.](https://docs.keyfactor.com/ejbca/latest/quick-start-guide-start-ejbca-container-with-clien) * [Quick Start Guide - Issue Client Authentication Certificate using EJBCA](https://docs.keyfactor.com/ejbca/latest/quick-start-guide-issue-client-authentication-cert) * [Quick Start Guide - Start SignServer Container with Client Certificate Authenticated Access.](https://docs.keyfactor.com/how-to/latest/quick-start-signserver-container-with-client-certi) Finally, you must have a Crypto and Signing workers configured in SignServer. You can follow [this Cosign tutorial](https://docs.keyfactor.com/how-to/latest/sign-container-images-with-cosign-and-signserver), since the steps for worker configuration are similar. Once you have it configured, you can reach SignServer signer worker at, for example, `https://mysignserver/PlainSigner`. Note that, at this moment, SignServer authentication is not implemented. ### Signing Chainloop attestations with SignServer Using the CLI options above, Chainloop will prepare the signed In-toto payload and send it to SignServer for signing. The returned signature is then included in the final attestation and sent to Chainloop Evidence Store for storage. ![chainloop-signserver-sequence.png](https://mintcdn.com/chainloop/yJa2Iopv98OPg1FZ/guides/img/chainloop-signserver-sequence.png?fit=max\&auto=format\&n=yJa2Iopv98OPg1FZ\&q=85\&s=8ac39cf1ed65225b9f848679e09a676d) This is an example of a Chainloop session integrated with SignServer: Crafting and signing an attestation. ```shell theme={"dark"} ➜ chainloop att init --workflow mywf --project myproject INF Attestation initialized! now you can check its status or add materials to it ┌───────────────────┬──────────────────────────────────────┐ │ Initialized At │ 18 Jun 24 09:10 UTC │ ├───────────────────┼──────────────────────────────────────┤ │ Attestation ID │ 32c7eeed-ae4d-4a07-8a85-44a6b05458dc │ │ Name │ mywf │ │ Team │ │ │ Project │ myproject │ │ Contract Revision │ 1 │ └───────────────────┴──────────────────────────────────────┘ ➜ chainloop att add --value evidence.txt INF material kind detected kind=ARTIFACT INF material added to attestation ➜ chainloop att push --key signserver://localhost:8443/PlainSigner --bundle mybundle.json --signserver-ca-path ../keyfactor/localhost-chain.pem INF generating Sigstore bundle mybundle.json INF push completed ┌───────────────────┬──────────────────────────────────────┐ │ Initialized At │ 18 Jun 24 09:10 UTC │ ├───────────────────┼──────────────────────────────────────┤ │ Attestation ID │ 32c7eeed-ae4d-4a07-8a85-44a6b05458dc │ │ Name │ mywf │ │ Team │ │ │ Project │ myproject │ │ Contract Revision │ 1 │ └───────────────────┴──────────────────────────────────────┘ ┌────────────────────────────────────────────────────────────────────────────────────┐ │ Materials │ ├──────────┬─────────────────────────────────────────────────────────────────────────┤ │ Name │ material-1718701829813801000 │ │ Type │ ARTIFACT │ │ Set │ Yes │ │ Required │ No │ │ Value │ evidence.txt │ │ Digest │ sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 │ └──────────┴─────────────────────────────────────────────────────────────────────────┘ Attestation Digest: sha256:8b247c21e201e1bd1367add9ee8bfd12c5a0866add39225fda6240c0ef10a64e% ``` ### Using a TLS Client certificate for authentication If your SignServer signer worker has been configured for client certificate authentication, you can add the flag `--signserver-client-cert` to the `push` command: ```shell theme={"dark"} ➜ chainloop att push --key signserver://localhost:8443/PlainSigner --signserver-ca-path ../keyfactor/localhost-chain.pem --signserver-client-cert ../keyfactor/client.pem ``` ### Verifying the attestation Verifying the attestation requires the signing cert and root CA (both provided by your organization out-of-band): ```shell theme={"dark"} ➜ chainloop workflow run describe --digest sha256:8b247c21e201e1bd1367add9ee8bfd12c5a0866add39225fda6240c0ef10a64e --verify true --cert PlainSigner.pem --chain ManagementCA.pem ┌──────────────────────────────────────────────────────────────────────────────────────────┐ │ Workflow │ ├────────────────┬─────────────────────────────────────────────────────────────────────────┤ │ ID │ eb7b4633-96e2-4efe-b23f-f667f3f7acdc │ │ Name │ mywf │ │ Team │ │ │ Project │ myproject │ ├────────────────┼─────────────────────────────────────────────────────────────────────────┤ │ Workflow Run │ │ ├────────────────┼─────────────────────────────────────────────────────────────────────────┤ │ ID │ ea1a7d69-21ef-406a-aef3-d6ccd360775c │ │ Initialized At │ 18 Jun 24 09:25 UTC │ │ Finished At │ 18 Jun 24 09:25 UTC │ │ State │ success │ │ Runner Link │ │ ├────────────────┼─────────────────────────────────────────────────────────────────────────┤ │ Statement │ │ ├────────────────┼─────────────────────────────────────────────────────────────────────────┤ │ Payload Type │ application/vnd.in-toto+json │ │ Digest │ sha256:8b247c21e201e1bd1367add9ee8bfd12c5a0866add39225fda6240c0ef10a64e │ │ Verified │ true │ └────────────────┴─────────────────────────────────────────────────────────────────────────┘ ┌────────────────────────────────────────────────────────────────────────────────────┐ │ Materials │ ├──────────┬─────────────────────────────────────────────────────────────────────────┤ │ Name │ material-1718702726579398000 │ │ Type │ ARTIFACT │ │ Filename │ evidence.txt │ │ Digest │ sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 │ └──────────┴─────────────────────────────────────────────────────────────────────────┘ ``` # SLSA Levels Source: https://docs.chainloop.dev/guides/slsa How Chainloop enables SLSA compliance through automated provenance generation, source track validation, and policy enforcement for both build and source code security. > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). ![The SLSA 1.2 framework detail page in the Chainloop UI with overview and requirements](https://mintcdn.com/chainloop/7oUakjSb5-MKNl1B/guides/img/slsa-overview.png?fit=max\&auto=format\&n=7oUakjSb5-MKNl1B\&q=85\&s=e8b14e0e4bde1ed32aec1573706a26e0) With Chainloop, you can continuously evaluate SLSA compliance posture of your projects for both **source track** and **build track** requirements in three steps: 1. **Create a product and attach the SLSA framework** to enable compliance tracking. 2. **Create and configure workflows and projects** for both source track and build track validation. 3. **Verify SLSA compliance** for your source code and build environment using Chainloop platform. ## 1 - Create Product and Attach SLSA Framework Before configuring workflows, you need to create a product and attach the SLSA framework to enable compliance tracking. Frameworks are attached at the product level, not the project level. ### Create a Product Create a product that will contain your projects and have the SLSA framework attached (full docs available [here](/concepts/products)): 1. Go to the [Web UI](https://app.chainloop.dev/products/new) and create a new product 2. **Name**: Unique name for your product (e.g., "Skynet Platform") 3. **Description**: Description of what the product encompasses ### Attach SLSA Framework Once you have a product, attach the SLSA framework to it (full docs available [here](/get-started/add-frameworks)): 1. **Attach Framework**: Add the **SLSA 1.2** framework to your product ## 2 - Create and Configure Workflows and Projects This step involves creating workflows for both tracks, attaching the project to your product, and configuring attestation processes. We assume you already have the chainloop command line tool available ([installation docs](/get-started/setup)). ### Step 2.1: Create Workflows and Project Create Chainloop workflows for both source track and build track validation. Both workflows will use the same project `skynet`, which will be automatically created: #### Build Track Workflow ```bash theme={"dark"} chainloop workflow create --name "build" --project "skynet" --team "cyberdyne core" ``` > [!NOTE] > > Replace "skynet" with your actual project name and "cyberdyne core" with your team name. This example uses "skynet" consistently throughout the guide. Update the workflow contract to include materials and SLSA checks. You can use this [example file](https://raw.githubusercontent.com/chainloop-dev/chainloop/main/docs/examples/contracts/slsa/github.yaml): ```bash theme={"dark"} chainloop workflow contract update -f https://raw.githubusercontent.com/chainloop-dev/chainloop/main/docs/examples/contracts/slsa/github.yaml ``` > [!NOTE] > > **GitLab users**: If you're using GitLab CI, download the contract file and update the runner type from `GITHUB_ACTION` to `GITLAB_PIPELINE` before applying it. #### Source Track Workflow ```bash theme={"dark"} chainloop workflow create --name "source-code" --project "skynet" --team "cyberdyne core" ``` Update the workflow contract for source track validation. You can use this [example file](https://raw.githubusercontent.com/chainloop-dev/chainloop/main/docs/examples/contracts/slsa/source-code.yaml): ```bash theme={"dark"} chainloop workflow contract update --name skynet-source-code -f https://raw.githubusercontent.com/chainloop-dev/chainloop/main/docs/examples/contracts/slsa/source-code.yaml ``` > [!NOTE] > > **GitLab users**: If you're using GitLab CI, download the contract file and uncomment the runner section, changing it from `GITHUB_ACTION` to `GITLAB_PIPELINE`. > [!NOTE] > > The contract name follows the pattern `{project-name}-{workflow-name}`. Since we created workflows for the "skynet" project, the contracts are named `skynet-build` and `skynet-source-code`. > > The build track example file above targets the `skynet-build` contract through its `metadata.name` field. If you used a different project or workflow name, download the file and set `metadata.name` to your contract name before applying it. ### Step 2.2: Attach Project to Product After creating your workflows (which automatically created the `skynet` project), attach it to your product: 1. Go to the [products page](https://app.chainloop.dev/products) in the Web UI 2. Select your product (created in step 1) 3. Click "Edit Product" 4. In the "Projects" section, attach the automatically created project: * `skynet` (created by the workflows above) 5. Save the changes ### Step 2.3: Send Attestations to Chainloop Configure attestation processes for both tracks to continuously validate SLSA compliance. #### Build Track Attestations Configure your CI workflow to perform runner verification and send build attestations: > [tab] GitHub Action > > Add `id_token write` permission to your GitHub workflow file: > > ```yaml theme={"dark"} > permissions: > id-token: write > ``` > > Then perform regular [attestation process](/concepts/attestations) in your build pipeline. > [tab] GitLab Pipeline > > For GitLab CI, the chainloop CLI will expect a GitLab OIDC token that's retrieved either from an environment variable called `GITLAB_OIDC` or performing [keyless attestations](/guides/gitlab-keyless#2-send-gitlab-token-during-the-attestation-process). > > In either way, the `.gitlab-ci.yml` file could look like this: > > ```yaml theme={"dark"} > id_tokens: > GITLAB_OIDC: > aud: chainloop # make sure the audience is chainloop > ``` > > Then perform regular [attestation process](/concepts/attestations) in your build pipeline. #### Source Track Attestations > [!WARNING] > > Source track validation requires proper SCM configuration and permissions. The `gather-runner-context` command needs access tokens with specific permissions to collect repository security settings. See the [CI/CD Runner Context documentation](/reference/runner-context#create-the-access-token) for required permissions for GitHub (Administration, Contents, Members) and GitLab (read_api scope). Set up periodic GitHub or GitLab actions for continuous source compliance monitoring: > [tab] GitHub Action > > Create `.github/workflows/slsa-source-validation.yml`: > > ```yaml theme={"dark"} > name: SLSA Source Validation > on: > schedule: > - cron: '0 0 * * *' # Daily > workflow_dispatch: # Manual trigger > > jobs: > source-validation: > runs-on: ubuntu-latest > permissions: > id-token: write > contents: read > steps: > - uses: actions/checkout@v4 > - name: Install Chainloop > run: | > curl -sfL https://raw.githubusercontent.com/chainloop-dev/chainloop/main/install.sh | bash > - name: Run source validation > run: | > chainloop att init --workflow source-code --project "skynet" > # Writes runner-context.json. Pass a token with the Administration permission (the default GITHUB_TOKEN does not have it) > chainloop gather-runner-context --runner-token ${{ secrets.ADMIN_PERSONAL_ACCESS_TOKEN }} > chainloop att add --name runner-context --value runner-context.json --kind CHAINLOOP_RUNNER_CONTEXT > chainloop att push > ``` > [tab] GitLab Pipeline > > Add to `.gitlab-ci.yml`. This configuration allows the job to run automatically via a pipeline schedule or manually when needed: > > ```yaml theme={"dark"} > stages: > - validate > > slsa-source-validation: > image: ubuntu:latest > stage: validate > rules: > - if: $CI_PIPELINE_SOURCE == "schedule" > - when: on_success > id_tokens: > CHAINLOOP_TOKEN: > aud: chainloop > GITLAB_OIDC: > aud: chainloop > script: > - apt-get update > - apt-get install -y curl > - curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s > - chainloop att init --workflow source-code --project "skynet" > - chainloop gather-runner-context --runner-token $CHAINLOOP_GITLAB_TOKEN --debug > - chainloop att add --name runner-context --value ./runner-context.json --kind CHAINLOOP_RUNNER_CONTEXT > - chainloop att push > artifacts: > paths: > - runner-context.json > when: always > ``` > [!NOTE] > > The `gather-runner-context` command collects comprehensive repository security configuration data including: > > * Branch protection settings (admin enforcement, push restrictions, deletion controls, and linear history requirements) > * Pull request protection (review requirements, conversation resolution, and dismissal rules) > * Commit protection (signing requirements) > * Repository access settings (team access and custom roles) > > This command requires Chainloop CLI Enterprise Edition (CLI EE) and appropriate access tokens. For detailed setup instructions including GitHub App configuration and access token requirements, see the [CI/CD Runner Context documentation](/reference/runner-context). ## 3 - Verify SLSA Compliance Now that you are generating SLSA provenance and source track attestations through your configured workflows, you can monitor SLSA compliance in Chainloop. The SLSA framework attached to your product (configured in step 1) will automatically evaluate both automated policies and manual requirements. ### View SLSA Compliance Status Go to your project in the Chainloop platform to view compliance status: 1. Navigate to your project (e.g., "skynet") 2. Go to the **Frameworks** section 3. View the SLSA 1.2 framework compliance status ![The SLSA 1.2 framework view in the Compliance tab showing build and source track requirement status](https://mintcdn.com/chainloop/7oUakjSb5-MKNl1B/guides/img/slsa-compliance.png?fit=max\&auto=format\&n=7oUakjSb5-MKNl1B\&q=85\&s=265868babd303c2adb7a16e606094981) You'll see compliance status for both tracks: * **Build Track**: Requirements automatically validated through your build workflows with signed provenance * **Source Track**: Requirements automatically validated through your source validation workflows with repository security configuration data > [!NOTE] > > By default, Chainloop runs in **ADVISORY** mode for policy violations, meaning failing policies won't block attestation submission but will be flagged for review. This allows you to identify compliance gaps while maintaining development velocity. Policy violations can be configured as **ENFORCED** to block attestations when policies fail. ### Manual Evidence and Configuration Confirmation > [!WARNING] > > SLSA compliance includes both automated validations and manual evidence requirements. While Chainloop automatically validates technical controls, you must manually confirm organizational processes and security configurations to achieve higher SLSA levels. In addition to the automated validations from your workflows, SLSA compliance requires manual confirmation of: * **Organizational processes** (e.g., code review practices, access control policies) * **Security configuration verification** (e.g., multi-factor authentication enforcement, build platform isolation) * **Documentation of security controls** (e.g., evidence files for strong platform controls) To learn more about each automatic and manual evidence requirement, head over to the **Frameworks** section in the Chainloop Platform UI and check the **SLSA 1.2** framework for detailed requirement descriptions and manual evidence forms. ## 4 - Troubleshooting When working with SLSA attestation you might run into the following errors: ### Runner not Authenticated Chainloop will report that runner is not authenticated or that the workflow file path is missing when the OIDC token can't be retrieved. The errors that you might see in your SLSA policies execution are: * `Runner is not authenticated` * `Runner workflow file path is missing or is empty` The remediation depends on the build platform you are using: > [tab] GitHub > > When using GitHub Actions, make sure that the `id_token` permission is set on the workflow level, not job level. For example: > > ```yaml theme={"dark"} > permissions: > id-token: write > ``` > [tab] GitLab > > When using GitLab make sure that the `GITLAB_OIDC` environment variable is set. For example: > > ```yaml theme={"dark"} > id_tokens: > GITLAB_OIDC: > aud: chainloop > ``` ### Runner Environment is not Valid Chainloop will report that runner environment is not valid when the runner environment is not as the one provided in the policy. This means that the build runner platform is not as expected. The expected and actual runner platform are provided in the error message. The errors that you might see in your SLSA policies execution are: * `Runner environment is not valid` ### Keyless Signatures not Supported Chainloop will report that keyless signatures are not supported when the provenance is not signed. Verify that your build platform is using the newest version of Chainloop. The errors that you might see in your SLSA policies execution are: * `Keyless signing configuration is invalid or not found` ## 5 - Manual Evidence Explained Chainloop uses a number of manual evidence to verify the SLSA requirements that you need to ensure are fulfilled in order to get SLSA Level 3 compliance. The description of the evidence can be found in [Chainloop SLSA reference](/reference/slsa-provenance). # SSDF Source: https://docs.chainloop.dev/guides/ssdf > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). ![The SSDF framework detail page in the Chainloop UI with overview and requirements](https://mintcdn.com/chainloop/7oUakjSb5-MKNl1B/guides/img/ssdf-chainloop-ui.png?fit=max\&auto=format\&n=7oUakjSb5-MKNl1B\&q=85\&s=0e272205ff608bf02aef424175992da7) The Secure Software Development Framework (SSDF) v1.1, published by NIST, offers a structured approach to embedding secure-by-design principles throughout the software development life cycle (SDLC) and emphasizes the organizational policies, roles, and processes needed to make these practices effective. Its ultimate goal is to reduce software vulnerabilities and limit the impact of potential exploitation. Originally released as voluntary guidance in 2020, SSDF has since become a foundational part of U.S. federal software security requirements, with growing emphasis on measurable compliance. Chainloop’s current implementation offers an overall SSDF self-assessment checklist, extended with more granular manual evidence and automated policies specifically for the Respond to Vulnerabilities (RV) activities (details in our [reference guide](/reference/ssdf)). You should consider SSDF compliance tracking in projects that: * Include an SBOM as part of the attestation for a generated artifact. * Periodically run an SCA vulnerability scan on officially supported, released versions of the product. While these actions could happen in the same workflow, they usually don't: * The SBOM is typically generated when the artifact is first created. * Scanners are often run later, and repeatedly, on already-built artifacts. A typical [Chainloop project](/concepts/projects-versions) managing build, test, release, and post-release workflows with SSDF compliance tracking will resemble the following: ![Diagram of a project with workflows feeding SSDF compliance tracking](https://mintcdn.com/chainloop/jE0MuMTzEIYDB-H0/guides/img/ssdf-framework-in-project.svg?fit=max\&auto=format\&n=jE0MuMTzEIYDB-H0\&q=85\&s=e39397a214eb4a909d1b10834c3cfbf6) You can enable SSDF compliance tracking on existing projects and workflows as long as they meet these requirements: * You have a Chainloop project with at least one version. We will refer to this project as `production-project`. * Within this project there is a workflow associated with a CI process that sends an SBOM in the attestation. We'll refer to this as `release-workflow`. * Within the same project, you have a workflow associated with the CI process that sends SCA scan reports in the attestation. We'll refer to this as `vuln-scan-workflow`. When a project is set up and workflows are in place, only three steps are needed to [track compliance](/concepts/compliance-frameworks#using-frameworks) with SSDF: * Step 1: Attach the SSDF framework to the project * Step 2: Update or create contracts to gather SBOM, vulnerability report and run policies. * Step 3: Attach those contracts to workflows (only when previously using default-contract) Next, we’ll go over SSDF compliance tracking setup in two different cases: * An existing project that already meets the workflow requirements described above. * A new project and workflows, where we’ll demonstrate the process manually by uploading attestations. This helps illustrate the mechanics of SSDF compliance tracking. You can later automate this via your CI pipeline. > [!NOTE] > > This framework is available in-preview mode. [Learn how to enable in-preview compliance frameworks](/concepts/compliance-frameworks#in-preview-compliance-frameworks) in your organization. ## Step 1. Attach the SSDF Framework to the Project For existing projects, simply follow the [framework attachment instructions](/concepts/compliance-frameworks#1-attach-frameworks-to-projects) selecting SSDF from the frameworks list. If you are starting from scratch, [create a new project](https://app.chainloop.dev/project/new) with the name `production-project` and add the SSDF framework during the project creation. ## Step 2. Update or Create Contracts If you're reusing existing workflows and those workflows already have contracts (other than the default one), update those contracts to include: * Correct material types (if you already had contracts, you probably already had the material needed, keep your existing name for each type so you don’t need to update your CI pipeline). * Required policy groups: `sbom-quality` for the `release-workflow` and `vulnerability-management` for the `vuln-scan-workflow`. Go to your [contracts list](https://app.chainloop.dev/contracts), identify the contract and edit it. For reference, see the [release-contract](https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/contracts/sbom/sbom-quality.yaml) and [vuln-scan-contract](https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/contracts/vulnerabilities/vulnerability-management.yaml) examples. If you are starting fresh or using the default (empty) contract, you will need to create new contracts: > [tab] Web UI > > Create two new contracts, `release-contract` and `vuln-scan-contract`, following the [managing contracts](/concepts/contracts#managing-contracts) instructions and including the following yaml content: > > ```yaml theme={"dark"} > #release-contract > apiVersion: chainloop.dev/v1 > kind: Contract > metadata: > name: release-contract > spec: > materials: > # SBOMs will be uploaded to your artifact registry and referenced by digest in the attestation > # Both SBOM_CYCLONEDX_JSON and SBOM_SPDX_JSON are supported > - type: SBOM_CYCLONEDX_JSON > name: sbom > policyGroups: > - ref: sbom-quality > ``` > > ```yaml theme={"dark"} > #vuln-scan-contract > apiVersion: chainloop.dev/v1 > kind: Contract > metadata: > name: vuln-scan-contract > spec: > materials: > # SCA scans will be uploaded to your artifact registry and referenced by digest in the attestation > # BLACKDUCK_SCA_JSON, SARIF, TWISTCLI_SCAN_JSON, GHAS_DEPENDENCY_SCAN > # are supported > - type: SARIF > name: vuln-scan > policyGroups: > - ref: vulnerability-management > ``` > [tab] CLI > > Assuming you have the Chainloop CLI installed (see [installation docs](/get-started/setup) if not), run: > > ```bash theme={"dark"} > # Create release-contract > chainloop workflow contract create -f https://raw.githubusercontent.com/chainloop-dev/chainloop/main/docs/examples/contracts/sbom/sbom-quality.yaml > ``` > > ```bash theme={"dark"} > # Create vuln-scan-contract > chainloop workflow contract create -f https://raw.githubusercontent.com/chainloop-dev/chainloop/main/docs/examples/contracts/vulnerabilities/vulnerability-management.yaml > ``` ## Step 3. Attach Contracts to Workflows If you’re using existing workflows that were attached to the default contract, update them to use the new contracts: > [tab] Web UI > > Follow the [associating workflows to contracts](/concepts/contracts#associating-workflows-to-contracts) documentation and assign the `release-workflow` to the `release-contract` and the `vuln-scan-workflow` to the `vuln-scan-contract`. > [tab] CLI > > Assuming you have the Chainloop CLI installed (see [installation docs](/get-started/setup) if not), run: > > ```bash theme={"dark"} > # Assign release-contract to release-worfklow > chainloop workflow update --name release-workflow --project production-project --contract release-contract > ``` > > ```bash theme={"dark"} > # Assign vuln-scan-contract to vuln-scan-worfklow > chainloop workflow update --name vuln-scan-workflow --project production-project --contract vuln-scan-contract > ``` If you are not reusing any existing workflows, create new ones: * [Create a workflow](https://app.chainloop.dev/workflows/new) with the `release-workflow` name and associate it with the `production-project` and the `release-contract` that you created in the previous step. * [Create a workflow](https://app.chainloop.dev/workflows/new) with the `vuln-scan-workflow` name and associate it with the `production-project` and the `vuln-scan-contract` that you created in the previous step. ## Step 4. Send Attestation and Create a Project Version This step is only necessary if you don’t already have your CI pipeline configured to send attestations. Assuming you have the Chainloop CLI installed (see installation docs if not), run: ```bash theme={"dark"} # send sbom attestation chainloop att init --workflow release-workflow --project production-project --version 1.0 --release chainloop att add --name sbom --value https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/quickstart/sbom.json chainloop att push ``` ```bash theme={"dark"} #send vulnerability scan attestation chainloop att init --workflow vuln-scan-workflow --project production-project --version 1.0 --release chainloop att add --name vuln-scan --value https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/quickstart/vulnerability-report.json chainloop att push ``` ## Tracking SSDF Compliance Once you've completed the steps above, your project should now be configured according to the structure shown in the diagram at the beginning of this guide and your SSDF compliance status will appear in the Project Overview for each version. ![The SSDF compliance status shown for a project version](https://mintcdn.com/chainloop/yJa2Iopv98OPg1FZ/guides/img/ssdf-status.png?fit=max\&auto=format\&n=yJa2Iopv98OPg1FZ\&q=85\&s=6e83f4dfe899a97a1d50fcefd1cf8e08) The compliance status is updated whenever: * Attestations are submitted through a workflow. * Manual evidence is provided. * A policy is due for evaluation (based on time-based rules or SLAs). Click “See details” to view all SSDF requirements, associated policies, and manual evidence. ![An SSDF requirement with its policies and manual evidence](https://mintcdn.com/chainloop/yJa2Iopv98OPg1FZ/guides/img/ssdf-manual-requirement.png?fit=max\&auto=format\&n=yJa2Iopv98OPg1FZ\&q=85\&s=735f5eab85d3b1fb7f5e1c3420cc4d51) As you complete the manual evidence and submit valid attestations through your CI workflows, compliance indicators will turn green. # Set up Vulnerability Management in your project Source: https://docs.chainloop.dev/guides/vulnerability-management Wire Vulnerability Management and Risk Assessment onto a project This guide walks through wiring [Vulnerability Management and Risk Assessment](/concepts/vulnerability-management) onto a project. Your CI or a Chainloop built-in scanner attests a vulnerability report, a policy turns it into findings, and the **Security** tab fills in: deduplicated findings, components, artifacts, risk assessments, VEX feed, and PDF reports. ## 1. Get a vulnerability report into Chainloop Findings come from a workflow that attests a vulnerability report. The quickest way to create one is from a [workflow template](/concepts/workflow-templates): in your project, click **Create Workflow** and search for "vulnerability". Three templates cover the three ways to produce the report: ![Create Workflow template picker filtered by 'vulnerabil', showing the Vulnerability Scan and Vulnerability Scan from SBOMs templates under the Automated by Chainloop tab, next to the Manual push from your CI tab](https://mintcdn.com/chainloop/KklhDFP_zAoMZ57V/guides/img/vulnerability-management/choose-template.png?fit=max\&auto=format\&n=KklhDFP_zAoMZ57V\&q=85\&s=c7de6c919e3af5ca181dc4dd27ed3e22) | Template | Tab | Where the report comes from | | - | - | - | | **Vulnerability Scan** | Automated by Chainloop | Chainloop builds an SBOM from your connected repository with syft and scans it with grype, periodically and on pull requests. No CI changes. | | **Vulnerability Scan from SBOMs** | Automated by Chainloop | Chainloop periodically scans the SBOMs already attested in the project with grype. No access to your source needed. | | **Vulnerability Scan** | Manual push from your CI | Your own scanner (Trivy, Grype, Snyk, and so on) produces the report and your pipeline pushes it with the Chainloop CLI. | All three attach the same `vulnerability-management` policy group, so the **Security** tab looks the same whichever you pick. Each exposes a `severity` input (default `HIGH`) that sets the lowest severity ingested as a finding. ### Automated by Chainloop Pick either automated template, choose its run modes and severity in **Configure**, and you're done. The scan runs server-side against a repository connected through GitHub or GitLab. [Generate and Continuously Scan SBOMs](/guides/generate-and-scan-sboms) walks through both modes, and [Built-in Scanners](/reference/scanners#vulnerability-scan) lists their inputs and the materials they produce. ### Manual push from your CI Pick **Vulnerability Scan** under the **Manual push from your CI** tab. Chainloop creates the workflow and this [contract](/concepts/contracts) for it: ```yaml chainloop.contract.yaml theme={"dark"} apiVersion: chainloop.dev/v1 kind: Contract metadata: name: vulnerabilities spec: materials: - type: SARIF name: vulnerability-report - type: SBOM_CYCLONEDX_JSON name: sbom optional: true policies: attestation: - ref: source-commit # verifies the commit that produced the report materials: - ref: cves-in-kev # fails the run on CVEs listed in the CISA KEV catalog policyGroups: - ref: vulnerability-management with: severity: "HIGH" # entries below this level never become findings ``` If you already have a workflow, add the `policyGroups` block to its contract instead. Only the vulnerability report is required. The other two materials are optional but unlock additional views and traceability; for a report format other than SARIF, change the `vulnerability-report` material type accordingly. | Evidence | Required | Supported formats | Unlocks | | - | - | - | - | | **Vulnerability scan report** | Yes | **SARIF** from Trivy, Grype, Stackhawk, Prisma Cloud, WizCLI, or Snyk; **BlackDuck SCA JSON**; **TwistCLI scan JSON**; **GHAS dependency scan**; or a **CycloneDX SBOM with vulnerabilities embedded** | Findings, severity, KEV flag, fixability | | **SBOM** | Optional | Any **CycloneDX JSON** (`SBOM_CYCLONEDX_JSON`) or **SPDX JSON** (`SBOM_SPDX_JSON`). Tool-agnostic: Syft, Trivy, cdxgen, Maven/Gradle plugins all work. | Components view, package PURLs, and the project/version scoping that lets one assessment cover many releases | | **Artifact reference** | Optional | Container image digest (`ghcr.io/...@sha256:...`), declared as a `CONTAINER_IMAGE` material | Each finding links back to the exact build output it came from | A CycloneDX SBOM that carries vulnerabilities covers the report and SBOM inputs in one file. Without an artifact reference, Chainloop uses the one declared inside the SBOM, but it won't be tied to an attested build. #### Attest your materials Inside your CI/CD pipeline, initialize an attestation, add the vulnerability report (plus any optional materials), and push it to Chainloop: ```bash theme={"dark"} # Initialize the attestation against your workflow chainloop attestation init --workflow my-workflow --project my-project # Add vulnerability scan report (required) chainloop attestation add --name vulnerability-report --value trivy-report.sarif # Add SBOM (optional — populates the Components view) chainloop attestation add --name sbom --value sbom.cyclonedx.json # Add container image reference (optional — links findings to attested builds) chainloop attestation add --name image --value ghcr.io/acme/app@sha256:... # Sign and push the attestation chainloop attestation push ``` For the full set of options (signing modes, runner detection, dry-run, kms backends, and more), see [Attestations](/concepts/attestations). ### Run the workflow Whichever path you chose, once the first run lands and the policy evaluates the evidence, the **Security** tab fills in: * **Components** as soon as the SBOM is parsed * **Vulnerabilities** when the scan report runs through the policy * **Artifacts** under the image reference * **Reports** with PDFs and VEX once you approve assessments ## 2. Perform your first risk assessment With findings flowing into the Security tab, walk through the triage loop end-to-end on a single CVE so you've seen every step before scaling up. 1. Open **Overview** and check the unassessed Critical/High count. 2. Click **View Unassessed** to land on the filtered Vulnerabilities list. 3. Open a finding and write (or accept the agent's draft) assessment. 4. Approve the assessment. The finding moves out of the active backlog. 5. Share the auto-generated VEX feed URL with your customers and control gates. ## Next Steps * **Attach a [compliance framework](/concepts/compliance-frameworks)** to your product — for example, the [Cyber Resilience Act (CRA)](/reference/cyber-resilience-act), [SSDF](/reference/ssdf), or your own best-practices framework — so the same SBOMs, scanner reports, and assessments drive your compliance posture automatically * **Enable the Vulnerabilities Agent** to draft assessments automatically *(Preview)* * **Wire [notifications](/concepts/notifications)** to Slack, Teams, or email * **Update your [control-gate policies](/concepts/control-gates)** to read assessments, so dismissed findings stop blocking the release ## Troubleshooting and FAQ > [accordion] I don't see any vulnerabilities > > Two things to check: > > * Confirm your vulnerability report is being evaluated by the built-in `vulnerability-management` policy group or the `vulnerabilities` policy. Vulnerabilities only surface when a policy parses the report — without it, the material is attested but not turned into findings. If neither is attached, add one to the workflow's [contract](/concepts/contracts) and re-run. > * Make sure you're on the **Enterprise Edition CLI v1.73.0 or later**. Earlier versions don't emit findings into the Security tab. > [accordion] I see fewer vulnerabilities than my scanner reports > > Expected. Entries below the policy's `severity` threshold are never ingested, and entries for the same vulnerability and package collapse into one finding. To see lower severities, lower `severity` in the workflow's contract (or the template's **Configure** panel) and re-run. See [What becomes a finding](/concepts/vulnerability-management#what-becomes-a-finding). > [accordion] I don't see any components > > Components are extracted from the SBOM. If the **Components** view is empty, your attestation is missing an SBOM material — add a `SBOM_CYCLONEDX_JSON` (or `SBOM_SPDX_JSON`) to the run and re-attest. # WASM Policy Examples & Patterns Source: https://docs.chainloop.dev/guides/wasm-policies/examples Common patterns and complete examples for writing WASM policies > [!WARNING] > > **Experimental Feature - WASM Policy Engine** > > These examples are specifically for writing **WASM policies** using Chainloop's experimental WASM policy engine. The WASM policy engine is **NOT the default policy engine** in Chainloop. > > * **Default engine**: Rego-based (recommended for most users) > * **WASM engine**: Experimental alternative for Go/JavaScript policies > * **Currently supported languages**: Go and JavaScript only > * **Status**: Experimental preview - APIs may change in future releases > > For the default Rego-based policy engine, see [Writing Custom Policies](/guides/custom-policies). ## Common Patterns ### Required Fields Validation Ensure critical fields are present and non-empty. ```go Go theme={"dark"} func validateRequiredFields(comp Component) chainloop.Result { result := chainloop.Success() if comp.Name == "" { result.AddViolation("name is required") } if comp.Version == "" { result.AddViolation("version is required") } return result } ``` ```javascript JavaScript theme={"dark"} function validateRequiredFields(comp) { const result = success(); if (!comp.name || comp.name === "") { result.addViolation("name is required"); } if (!comp.version || comp.version === "") { result.addViolation("version is required"); } return result; } ``` ### Allowlist/Blocklist Validation Check values against approved or forbidden lists. ```go Go theme={"dark"} func validateLicense(license string, approved, forbidden []string) chainloop.Result { result := chainloop.Success() // Check blocklist first for _, blocked := range forbidden { if license == blocked { result.AddViolationf("%s is forbidden", license) return result } } // Check allowlist if len(approved) > 0 { found := false for _, allowed := range approved { if license == allowed { found = true break } } if !found { result.AddViolationf("%s not approved", license) } } return result } ``` ```javascript JavaScript theme={"dark"} function validateLicense(license, approved, forbidden) { const result = success(); // Check blocklist if (forbidden.includes(license)) { result.addViolation(`${license} is forbidden`); return result; } // Check allowlist if (approved.length > 0 && !approved.includes(license)) { result.addViolation(`${license} not approved`); } return result; } ``` ### Nested Structure Validation Validate arrays of objects (SBOM components, attestation subjects). ```go Go theme={"dark"} func validateComponents(components []Component) chainloop.Result { result := chainloop.Success() if len(components) == 0 { result.AddViolation("must contain at least one component") } for i, comp := range components { if comp.Name == "" { result.AddViolationf("component %d missing name", i) } if comp.Version == "" { result.AddViolationf("component %d missing version", i) } } return result } ``` ```javascript JavaScript theme={"dark"} function validateComponents(components) { const result = success(); if (!components || components.length === 0) { result.addViolation("must contain at least one component"); } components.forEach((comp, i) => { if (!comp.name) result.addViolation(`component ${i} missing name`); if (!comp.version) result.addViolation(`component ${i} missing version`); }); return result; } ``` ### External API Validation Verify data against external sources. ```go Go theme={"dark"} func validateWithAPI(name, version string) chainloop.Result { url := fmt.Sprintf("https://registry.npmjs.org/%s", name) var data RegistryResponse err := chainloop.HTTPGetJSON(url, &data) if err != nil { return chainloop.Skipf("API unavailable: %v", err) } result := chainloop.Success() if _, exists := data.Versions[version]; !exists { result.AddViolationf("version %s not found", version) } return result } ``` ```javascript JavaScript theme={"dark"} function validateWithAPI(name, version) { try { const url = `https://registry.npmjs.org/${name}`; const data = httpGetJSON(url); const result = success(); if (!data.versions[version]) { result.addViolation(`version ${version} not found`); } return result; } catch (e) { return skip(`API unavailable: ${e.message}`); } } ``` > [!WARNING] > > **Important HTTP Request Notes:** > > * Always use `skip()` when external APIs are unavailable - don't fail policies due to network issues > * **All domains are blocked by default** except `www.chainloop.dev` and `www.cisa.gov` > * Use `--allowed-hostnames` flag to allowlist domains: `--allowed-hostnames registry.npmjs.org` ## Complete Examples ### SBOM License Validation Validate component licenses in a CycloneDX SBOM. ```go Go theme={"dark"} package main import ( "fmt" chainloop "github.com/chainloop-dev/chainloop/labs/wasm-policy-sdk/go" "github.com/extism/go-pdk" ) type SBOM struct { Components []Component `json:"components"` } type Component struct { Name string `json:"name"` Version string `json:"version"` Licenses []License `json:"licenses"` } type License struct { ID string `json:"id"` } //export Execute func Execute() int32 { return chainloop.Run(validate) } func validate() error { var sbom SBOM if err := chainloop.GetMaterialJSON(&sbom); err != nil { return chainloop.Skip("Not a valid CycloneDX SBOM") } approved := []string{"MIT", "Apache-2.0", "BSD-3-Clause"} forbidden := []string{"GPL-3.0", "AGPL-3.0"} result := chainloop.Success() for _, comp := range sbom.Components { for _, lic := range comp.Licenses { // Check forbidden for _, f := range forbidden { if lic.ID == f { result.AddViolationf("component '%s' uses forbidden license: %s", comp.Name, lic.ID) } } // Check approved approved := false for _, a := range approved { if lic.ID == a { approved = true } } if !approved { result.AddViolationf("component '%s' license not approved: %s", comp.Name, lic.ID) } } } return chainloop.OutputResult(result) } func main() {} ``` ```javascript JavaScript theme={"dark"} const { getMaterialJSON, success, skip, outputResult, run } = require('@chainloop-dev/policy-sdk'); function Execute() { return run(() => { const sbom = getMaterialJSON(); if (!sbom.components) { outputResult(skip("Not a valid CycloneDX SBOM")); return; } const approved = ["MIT", "Apache-2.0", "BSD-3-Clause"]; const forbidden = ["GPL-3.0", "AGPL-3.0"]; const result = success(); sbom.components.forEach(comp => { (comp.licenses || []).forEach(lic => { // Check forbidden if (forbidden.includes(lic.id)) { result.addViolation( `component '${comp.name}' uses forbidden license: ${lic.id}` ); } // Check approved if (!approved.includes(lic.id)) { result.addViolation( `component '${comp.name}' license not approved: ${lic.id}` ); } }); }); outputResult(result); }); } module.exports = { Execute }; ``` **Test data** (`sbom.json`): ```json theme={"dark"} { "components": [ { "name": "lodash", "version": "4.17.21", "licenses": [{ "id": "MIT" }] }, { "name": "gpl-package", "version": "1.0.0", "licenses": [{ "id": "GPL-3.0" }] } ] } ``` **Test:** ```bash theme={"dark"} chainloop policy devel eval \ --policy policy.yaml \ --material sbom.json \ --kind SBOM_CYCLONEDX_JSON ``` ### Attestation Signature Validation Validate in-toto attestation has git commit subjects. ```go Go theme={"dark"} package main import ( chainloop "github.com/chainloop-dev/chainloop/labs/wasm-policy-sdk/go" "github.com/extism/go-pdk" ) type Attestation struct { Subject []Subject `json:"subject"` } type Subject struct { Name string `json:"name"` } //export Execute func Execute() int32 { return chainloop.Run(validate) } func validate() error { var att Attestation if err := chainloop.GetMaterialJSON(&att); err != nil { return chainloop.Skip("Not a valid attestation") } result := chainloop.Success() if len(att.Subject) == 0 { result.AddViolation("attestation must have at least one subject") } for _, subj := range att.Subject { if subj.Name == "" { result.AddViolation("subject missing name field") } } return chainloop.OutputResult(result) } func main() {} ``` ```javascript JavaScript theme={"dark"} const { getMaterialJSON, success, skip, outputResult, run } = require('@chainloop-dev/policy-sdk'); function Execute() { return run(() => { const att = getMaterialJSON(); if (!att.subject) { outputResult(skip("Not a valid attestation")); return; } const result = success(); if (att.subject.length === 0) { result.addViolation("attestation must have at least one subject"); } att.subject.forEach(subj => { if (!subj.name || subj.name === "") { result.addViolation("subject missing name field"); } }); outputResult(result); }); } module.exports = { Execute }; ``` ### HTTP API Integration Verify package version exists in npm registry. > [!WARNING] > > **Domain Allowlisting Required** > > By default, all HTTP requests are **blocked** except for: > > * `www.chainloop.dev` > * `www.cisa.gov` > > You must explicitly allowlist any domains your policy needs to access using the `--allowed-hostnames` flag: > > ```bash theme={"dark"} > chainloop policy devel eval \ > --policy policy.yaml \ > --material data.json \ > --kind EVIDENCE \ > --allowed-hostnames registry.npmjs.org,api.example.com > ``` > > In production, configure allowed hostnames in your policy engine settings. ```go Go theme={"dark"} package main import ( "fmt" chainloop "github.com/chainloop-dev/chainloop/labs/wasm-policy-sdk/go" "github.com/extism/go-pdk" ) type PackageData struct { Name string `json:"name"` Version string `json:"version"` } type RegistryResponse struct { Versions map[string]interface{} `json:"versions"` } //export Execute func Execute() int32 { return chainloop.Run(validate) } func validate() error { var pkg PackageData if err := chainloop.GetMaterialJSON(&pkg); err != nil { return chainloop.Skip("Invalid JSON") } url := fmt.Sprintf("https://registry.npmjs.org/%s", pkg.Name) var registry RegistryResponse if err := chainloop.HTTPGetJSON(url, ®istry); err != nil { return chainloop.Skipf("npm registry unavailable: %v", err) } result := chainloop.Success() if _, exists := registry.Versions[pkg.Version]; !exists { result.AddViolationf("version %s not found in registry", pkg.Version) } return chainloop.OutputResult(result) } func main() {} ``` ```javascript JavaScript theme={"dark"} const { getMaterialJSON, success, skip, outputResult, httpGetJSON, run } = require('@chainloop-dev/policy-sdk'); function Execute() { return run(() => { const pkg = getMaterialJSON(); try { const url = `https://registry.npmjs.org/${pkg.name}`; const registry = httpGetJSON(url); const result = success(); if (!registry.versions[pkg.version]) { result.addViolation(`version ${pkg.version} not found in registry`); } outputResult(result); } catch (e) { outputResult(skip(`npm registry unavailable: ${e.message}`)); } }); } module.exports = { Execute }; ``` **Test:** ```bash theme={"dark"} chainloop policy devel eval \ --policy policy.yaml \ --material package.json \ --kind EVIDENCE \ --allowed-hostnames registry.npmjs.org ``` ### Artifact Discovery Check if related attestations have policy violations. ```go Go theme={"dark"} package main import ( "fmt" chainloop "github.com/chainloop-dev/chainloop/labs/wasm-policy-sdk/go" "github.com/extism/go-pdk" ) type ContainerImage struct { ChainloopMetadata struct { Digest struct { SHA256 string `json:"sha256"` } `json:"digest"` } `json:"chainloop_metadata"` } //export Execute func Execute() int32 { return chainloop.Run(validate) } func validate() error { var img ContainerImage if err := chainloop.GetMaterialJSON(&img); err != nil { return chainloop.Skip("Not a container image") } digest := fmt.Sprintf("sha256:%s", img.ChainloopMetadata.Digest.SHA256) discoverResult, err := chainloop.Discover(digest, "") if err != nil { return chainloop.Skipf("Discovery unavailable: %v", err) } result := chainloop.Success() for _, ref := range discoverResult.References { if ref.Kind == "ATTESTATION" { if ref.Metadata["hasPolicyViolations"] == "true" { result.AddViolationf( "attestation %s contains policy violations", ref.Digest) } } } return chainloop.OutputResult(result) } func main() {} ``` ```javascript JavaScript theme={"dark"} const { getMaterialJSON, success, skip, outputResult, discover, logInfo, run } = require('@chainloop-dev/policy-sdk'); function Execute() { return run(() => { const img = getMaterialJSON(); if (!img.chainloop_metadata?.digest?.sha256) { outputResult(skip("Not a container image")); return; } const digest = `sha256:${img.chainloop_metadata.digest.sha256}`; let discoverResult; try { discoverResult = discover(digest, ""); } catch (e) { outputResult(skip(`Discovery unavailable: ${e.message}`)); return; } const result = success(); discoverResult.references.forEach(ref => { if (ref.kind === "ATTESTATION") { if (ref.metadata.hasPolicyViolations === "true") { result.addViolation( `attestation ${ref.digest} contains policy violations` ); } } }); outputResult(result); }); } module.exports = { Execute }; ``` ## Next Steps > [card] [Go SDK Guide](/guides/wasm-policies/go-sdk) > > Learn how to use the Go SDK > [card] [JavaScript SDK Guide](/guides/wasm-policies/javascript-sdk) > > Learn how to use the JavaScript SDK # Go SDK for WASM Policies Source: https://docs.chainloop.dev/guides/wasm-policies/go-sdk Complete guide to writing Chainloop policies in Go with TinyGo > [!WARNING] > > **Experimental Feature - WASM Policy Engine** > > This SDK is specifically for writing **WASM policies** using Chainloop's experimental WASM policy engine. The WASM policy engine is **NOT the default policy engine** in Chainloop. > > * **Default engine**: Rego-based (recommended for most users) > * **WASM engine**: Experimental alternative for Go/JavaScript policies > * **Status**: Experimental preview - APIs may change in future releases > > For the default Rego-based policy engine, see [Writing Custom Policies](/guides/custom-policies). ## Prerequisites The Chainloop Go SDK for WASM policies is built on top of the [Extism Go PDK](https://github.com/extism/go-pdk), which provides the WebAssembly plugin interface. **Required tools:** > [accordion] TinyGo (0.30.0 or later) > > TinyGo compiles Go code to WebAssembly with minimal binary size. > > ```bash theme={"dark"} > # macOS > brew install tinygo > > # Linux > wget https://github.com/tinygo-org/tinygo/releases/download/v0.30.0/tinygo_0.30.0_amd64.deb > sudo dpkg -i tinygo_0.30.0_amd64.deb > > # Verify installation > tinygo version > ``` > [accordion] Go (1.21 or later) > > For dependency management and module support. > > ```bash theme={"dark"} > # Verify installation > go version > ``` **Dependencies:** * `github.com/chainloop-dev/chainloop/labs/wasm-policy-sdk/go` - Chainloop WASM Policy SDK * `github.com/extism/go-pdk` - Extism Plugin Development Kit (auto-installed) The Extism Go PDK provides the low-level WASM interface, while Chainloop's WASM Policy SDK provides high-level policy-specific functions for material validation. ## Project Setup ### Create go.mod ```go theme={"dark"} module myorganization.com/chainloop-policies/my-policy go 1.25 require ( github.com/chainloop-dev/chainloop/labs/wasm-policy-sdk/go v0.0.0 github.com/extism/go-pdk v1.0.0 ) // Replace with local path during development replace github.com/chainloop-dev/chainloop/labs/wasm-policy-sdk/go => /path/to/chainloop/sdks/go ``` ### Create policy.yaml ```yaml theme={"dark"} apiVersion: workflowcontract.chainloop.dev/v1 kind: Policy metadata: name: my-go-policy description: My custom Go policy spec: policies: - kind: EVIDENCE # Or SBOM_CYCLONEDX_JSON, ATTESTATION, etc. path: policy.wasm ``` ## Complete Example Here's a complete policy that validates SBOM components: ```go theme={"dark"} package main import ( "fmt" chainloop "github.com/chainloop-dev/chainloop/labs/wasm-policy-sdk/go" "github.com/extism/go-pdk" ) // SBOM represents a CycloneDX SBOM structure type SBOM struct { Components []Component `json:"components"` } type Component struct { Name string `json:"name"` Version string `json:"version"` Licenses []License `json:"licenses"` } type License struct { ID string `json:"id"` Name string `json:"name"` } //export Execute func Execute() int32 { return chainloop.Run(validateSBOM) } func validateSBOM() error { // Parse the SBOM material var sbom SBOM if err := chainloop.GetMaterialJSON(&sbom); err != nil { return chainloop.Skip("Material is not a valid CycloneDX SBOM") } chainloop.LogInfo(fmt.Sprintf("Validating SBOM with %d components", len(sbom.Components))) // Create result result := chainloop.Success() // Approved licenses approved := []string{"MIT", "Apache-2.0", "BSD-3-Clause", "ISC"} // Validate each component for _, component := range sbom.Components { // Check version if component.Version == "" { result.AddViolationf("component '%s' missing version", component.Name) } // Check licenses if len(component.Licenses) == 0 { result.AddViolationf("component '%s' missing license", component.Name) continue } // Validate license against approved list for _, license := range component.Licenses { licenseID := license.ID if licenseID == "" { licenseID = license.Name } if !contains(approved, licenseID) { result.AddViolationf("component '%s' has unapproved license: %s", component.Name, licenseID) } } } if result.HasViolations() { chainloop.LogError(fmt.Sprintf("SBOM validation failed with %d violations", len(result.Violations))) } else { chainloop.LogInfo("SBOM validation passed") } return chainloop.OutputResult(result) } func contains(slice []string, item string) bool { for _, s := range slice { if s == item { return true } } return false } func main() {} ``` ## API Quick Reference The Go SDK provides functions for: * **Execution**: `Run()` - Entry point wrapper * **Material Extraction**: `GetMaterialJSON()`, `GetMaterialString()`, `GetMaterialBytes()` * **Arguments**: `GetArgs()`, `GetArgString()`, `GetArgStringDefault()` * **Results**: `Success()`, `Fail()`, `Skip()`, `OutputResult()`, `AddViolation()`, `HasViolations()` * **Logging**: `LogInfo()`, `LogDebug()`, `LogWarn()`, `LogError()` * **HTTP Requests**: `HTTPGet()`, `HTTPGetJSON()`, `HTTPPost()`, `HTTPPostJSON()` * **Artifact Discovery**: `Discover()`, `DiscoverByDigest()` ## Building ### Basic Build ```bash theme={"dark"} tinygo build -target=wasi -o policy.wasm policy.go ``` ### Build Flags * `-target=wasi` - WebAssembly System Interface target * `-o policy.wasm` - Output file name ### Typical File Sizes * Simple policy: \~770KB * SBOM policy: \~770KB * HTTP policy: \~793KB ## Testing ### Create Test Script `test.sh`: ```bash theme={"dark"} #!/bin/bash # Build policy tinygo build -target=wasi -o policy.wasm policy.go # Test with valid SBOM echo "Testing valid SBOM..." chainloop policy devel eval \ --policy policy.yaml \ --material test-data/valid-sbom.json \ --kind SBOM_CYCLONEDX_JSON # Test with invalid SBOM echo "Testing invalid SBOM..." chainloop policy devel eval \ --policy policy.yaml \ --material test-data/invalid-sbom.json \ --kind SBOM_CYCLONEDX_JSON ``` Make executable: ```bash theme={"dark"} chmod +x test.sh ./test.sh ``` ## TinyGo Compatibility TinyGo has some limitations compared to standard Go: **Supported:** * ✅ Flat structs with simple types * ✅ Slices and maps with string keys * ✅ json.Unmarshal for parsing * ✅ String manipulation * ✅ Basic math operations **Limited/Unsupported:** * ⚠️ Generics (limited support) * ❌ Reflection (limited) * ❌ Goroutines (limited) ## Best Practices 1. **Keep types simple** - Use flat structs with concrete types 2. **Validate early** - Check input format before complex logic 3. **Return specific violations** - Include field names and values in messages 4. **Use skip for non-applicable cases** - Don't fail policies for wrong material types 5. **Test with real data** - Use actual SBOMs/attestations from your projects 6. **Log validation progress** - Use logging for debugging 7. **Handle errors gracefully** - Always check error returns ## Next Steps > [card] [Examples](/guides/wasm-policies/examples) > > See complete policy examples and common patterns > [card] [JavaScript SDK](/guides/wasm-policies/javascript-sdk) > > Learn about the JavaScript SDK alternative # JavaScript SDK for WASM Policies Source: https://docs.chainloop.dev/guides/wasm-policies/javascript-sdk Complete guide to writing Chainloop policies in JavaScript/TypeScript > [!WARNING] > > **Experimental Feature - WASM Policy Engine** > > This SDK is specifically for writing **WASM policies** using Chainloop's experimental WASM policy engine. The WASM policy engine is **NOT the default policy engine** in Chainloop. > > * **Default engine**: Rego-based (recommended for most users) > * **WASM engine**: Experimental alternative for Go/JavaScript policies > * **Status**: Experimental preview - APIs may change in future releases > > For the default Rego-based policy engine, see [Writing Custom Policies](/guides/custom-policies). ## Prerequisites The Chainloop JavaScript SDK for WASM policies is built on top of the [Extism JavaScript PDK](https://github.com/extism/js-pdk), which enables JavaScript code to run inside WebAssembly with QuickJS. **Required tools:** > [accordion] Node.js (16 or later) > > For package management and building. > > ```bash theme={"dark"} > # Verify installation > node --version # Should be v16+ > ``` > [accordion] extism-js compiler > > Compiles JavaScript to WebAssembly. > > ```bash theme={"dark"} > # Install globally > npm install -g @extism/js-pdk > > # Verify installation > extism-js --version > ``` **Dependencies:** * `@chainloop-dev/policy-sdk` - Chainloop WASM Policy SDK (npm package) * `@extism/js-pdk` - Extism JavaScript PDK (auto-installed) * `esbuild` - JavaScript bundler (dev dependency) The Extism JS PDK handles JavaScript-to-WASM compilation using QuickJS, while Chainloop's WASM Policy SDK provides policy-specific APIs for material validation. ## Project Setup ### Install Dependencies ```bash theme={"dark"} npm init -y npm install @chainloop-dev/policy-sdk npm install --save-dev esbuild ``` ### Configure Build **esbuild.js:** ```javascript theme={"dark"} const esbuild = require('esbuild'); esbuild.build({ entryPoints: ['policy.js'], outdir: 'dist', bundle: true, format: 'cjs', target: ['es2020'], platform: 'node', }).catch(() => process.exit(1)); ``` **package.json:** ```json theme={"dark"} { "name": "my-policy", "scripts": { "build": "node esbuild.js && extism-js dist/policy.js -i policy.d.ts -o policy.wasm" }, "dependencies": { "@chainloop-dev/policy-sdk": "^0.1.0" }, "devDependencies": { "esbuild": "^0.19.0" } } ``` **policy.d.ts:** ```typescript theme={"dark"} declare module "main" { export function Execute(): I32; } ``` **policy.yaml:** ```yaml theme={"dark"} apiVersion: workflowcontract.chainloop.dev/v1 kind: Policy metadata: name: my-js-policy description: My custom JavaScript policy spec: policies: - kind: EVIDENCE path: policy.wasm ``` ## Complete Example ```javascript theme={"dark"} const { getMaterialJSON, success, skip, outputResult, logInfo, logError, run } = require('@chainloop-dev/policy-sdk'); function Execute() { return run(() => { // Parse the SBOM material const sbom = getMaterialJSON(); if (!sbom.components) { outputResult(skip("Not a valid CycloneDX SBOM")); return; } logInfo(`Validating SBOM with ${sbom.components.length} components`); const result = success(); const approved = ["MIT", "Apache-2.0", "BSD-3-Clause", "ISC"]; // Validate each component sbom.components.forEach((component, index) => { // Check version if (!component.version || component.version === "") { result.addViolation(`component '${component.name}' missing version`); } // Check licenses if (!component.licenses || component.licenses.length === 0) { result.addViolation(`component '${component.name}' missing license`); return; } // Validate licenses component.licenses.forEach(license => { const licenseID = license.id || license.name; if (!approved.includes(licenseID)) { result.addViolation( `component '${component.name}' has unapproved license: ${licenseID}` ); } }); }); if (result.hasViolations()) { logError(`SBOM validation failed with ${result.violations.length} violations`); } else { logInfo("SBOM validation passed"); } outputResult(result); }); } module.exports = { Execute }; ``` ## API Quick Reference The JavaScript SDK provides functions for: * **Execution**: `run()` - Entry point wrapper * **Material Extraction**: `getMaterialJSON()`, `getMaterialString()`, `getMaterialBytes()` * **Arguments**: `getArgs()`, `getArgString()`, `getArgStringDefault()` * **Results**: `success()`, `fail()`, `skip()`, `outputResult()`, `addViolation()`, `hasViolations()` * **Logging**: `logInfo()`, `logDebug()`, `logWarn()`, `logError()` * **HTTP Requests**: `httpGet()`, `httpGetJSON()`, `httpPost()`, `httpPostJSON()` * **Artifact Discovery**: `discover()`, `discoverByDigest()` ## Building ```bash theme={"dark"} npm run build ``` This runs: 1. **esbuild** - Bundles policy.js and SDK 2. **extism-js** - Compiles bundle to WASM **Output:** * `dist/policy.js` - Bundled JavaScript (\~7KB) * `policy.wasm` - Compiled WASM (\~2.1MB, includes QuickJS runtime) ## Testing **test.sh:** ```bash theme={"dark"} #!/bin/bash npm run build echo "Testing valid SBOM..." chainloop policy devel eval \ --policy policy.yaml \ --material test-data/valid-sbom.json \ --kind SBOM_CYCLONEDX_JSON echo "Testing invalid SBOM..." chainloop policy devel eval \ --policy policy.yaml \ --material test-data/invalid-sbom.json \ --kind SBOM_CYCLONEDX_JSON ``` ## JavaScript Compatibility **Supported:** * ✅ ES2020 JavaScript features * ✅ JSON parsing and manipulation * ✅ String operations and regex * ✅ Arrays, objects, and basic types * ✅ Synchronous operations **Not Supported:** * ❌ async/await (no Promise support) * ❌ Node.js built-ins (fs, path, http) * ❌ ES modules (use CommonJS) * ❌ Browser APIs (fetch, localStorage) * ❌ setTimeout/setInterval * ❌ Symbols and WeakMaps **Recommended:** ```javascript theme={"dark"} // ✅ Good: Simple objects const component = { name: "lodash", version: "4.17.21" }; // ✅ Good: Synchronous operations components.forEach(comp => { if (!comp.name) { result.addViolation("Missing name"); } }); // ❌ Avoid: Async operations // async function validate() { // Not supported // const data = await fetch(...); // } ``` ## Best Practices 1. **Use simple data structures** - Plain objects and arrays 2. **Validate early** - Check material format first 3. **Clear violation messages** - Include specific details 4. **Use skip appropriately** - Don't fail for wrong material types 5. **Test with real data** - Use actual artifacts 6. **Log progress** - Aid debugging 7. **Handle errors** - Use try-catch for parsing ## Next Steps > [card] [Examples](/guides/wasm-policies/examples) > > Explore complete policy examples > [card] [Go SDK](/guides/wasm-policies/go-sdk) > > Compare with the Go SDK # Writing WASM Policies Source: https://docs.chainloop.dev/guides/wasm-policies/overview Learn how to write custom validation policies using WebAssembly with Go or JavaScript > [!WARNING] > > **Experimental Preview Feature - Alternative Policy Engine** > > The **WASM policy engine is NOT the default policy engine in Chainloop**. The default policy engine uses [Rego](https://www.openpolicyagent.org/docs/latest/policy-language/) (Open Policy Agent). > > This WASM policy engine is currently in **experimental preview** for users who want to write policies in Go or JavaScript instead of Rego. APIs and features may change in future releases. We recommend testing thoroughly before using in production. > > **Currently supported languages for WASM policies:** > > * ✅ Go (via TinyGo) > * ✅ JavaScript (via Extism JS) > * 🚧 Additional languages coming soon > > **For most users, we recommend using the default Rego-based policy engine** documented in [Writing Custom Policies](/guides/custom-policies). > [!TIP] > > We recommend getting familiar with the [Policy concept](/concepts/policies) before writing your first WASM policy. ## What are WASM Policies? WASM (WebAssembly) policies are custom validation rules that run in a secure sandbox environment using Chainloop's **experimental WASM policy engine**. This is an alternative to Chainloop's default Rego-based policy engine. Unlike Rego policies (the default), WASM policies let you write validation logic in familiar programming languages like Go or JavaScript, with full access to standard libraries and ecosystem tools. **Key benefits of WASM policies:** * Write policies in Go or JavaScript using high-level SDKs * Access to language ecosystems (JSON parsing, HTTP clients, etc.) * Type safety and IDE support * Secure execution in WebAssembly sandbox * Portable across platforms ## When to Use WASM vs Rego | Feature | WASM Policies (Experimental) | Rego Policies (Default) | | - | - | - | | **Status** | Experimental preview | Production-ready default | | **Languages** | Go, JavaScript, Rust, etc. | Rego only | | **Learning Curve** | Use familiar languages | Learn Rego syntax | | **Libraries** | Full language ecosystem | Limited built-ins | | **Type Safety** | Full type checking | Dynamic typing | | **Performance** | Fast (native code) | Fast (optimized) | | **Sandbox** | WASM isolation | OPA runtime | **Use WASM policies when:** * You need complex logic with external libraries * Your team prefers Go/JavaScript over Rego * You need HTTP API integration * You want strong type safety and IDE support * You're willing to use experimental features **Use Rego policies (recommended default) when:** * You want production-ready, stable policy engine * You need declarative policy syntax * Your policies are simple queries and filters * You're already familiar with OPA/Rego * You prefer the standard, widely-adopted approach ## How WASM Policies Work ### Execution Architecture WASM policies run in a **host/guest architecture** where: * **Host (Chainloop)**: The policy engine that loads and executes WASM modules * **Guest (Policy)**: Your WASM policy code running in an isolated sandbox ![WASM Policy Architecture](https://mintcdn.com/chainloop/QD1a_grgddUxmCO1/guides/img/wasm-policy-architecture.png?fit=max\&auto=format\&n=QD1a_grgddUxmCO1\&q=85\&s=afc9142ac204e0c89d7485deb00e4866) **Key characteristics:** * **In-process execution**: Policies run embedded in the control plane process (not as sidecars) * **Sandboxed environment**: WebAssembly isolation prevents filesystem access and unsafe operations * **Single-threaded**: Each policy execution is single-threaded and deterministic * **Bytes-in/bytes-out**: Material data flows through a simple byte interface * **Host functions**: Controlled capabilities (HTTP, discovery) exposed by Chainloop > [!WARNING] > > **The Execute Function is Required** > > Every WASM policy **must** export an `Execute()` function as the entry point. This is how Chainloop invokes your policy: > > ```go theme={"dark"} > //export Execute > func Execute() int32 { > return chainloop.Run(validate) > } > ``` > > ```javascript theme={"dark"} > function Execute() { > return run(() => { > // validation logic > }); > } > > module.exports = { Execute }; > ``` > > Without the `Execute` export, the policy will fail to load. ### Technology Stack Chainloop WASM policies are powered by [Extism](https://extism.org/), a universal plugin system that allows policies written in different languages to run securely in WebAssembly sandboxes. **Why Extism?** * **Multi-language support**: Extensible architecture for multiple languages * **Security**: WASM sandbox isolates policies from the host system * **Performance**: Fast in-process execution with minimal overhead * **Portability**: Same policy runs anywhere WASM is supported * **Flexible serialization**: Supports JSON, Protocol Buffers, and other formats **Chainloop SDKs wrap Extism PDKs:** * **Go**: Built on [extism/go-pdk](https://github.com/extism/go-pdk) - Provides idiomatic Go APIs * **JavaScript**: Built on [extism/js-pdk](https://github.com/extism/js-pdk) - Runs JS in QuickJS WASM runtime > [!NOTE] > > While Extism supports additional languages (Rust, Python, C#, etc.), Chainloop currently provides official SDKs for **Go and JavaScript only**. Additional language support is planned for future releases. You don't need to interact with Extism directly - Chainloop's SDKs provide all the high-level functions you need for policy development. ## Quick Start ### 1. Choose Your Language > [card] [Go SDK](/guides/wasm-policies/go-sdk) > > Write policies in Go with TinyGo > [card] [JavaScript SDK](/guides/wasm-policies/javascript-sdk) > > Write policies in JavaScript/TypeScript ### 2. Create Your First Policy Here's a minimal policy that validates a string message: ```go Go theme={"dark"} package main import ( "encoding/json" chainloop "github.com/chainloop-dev/chainloop/labs/wasm-policy-sdk/go" "github.com/extism/go-pdk" ) //export Execute func Execute() int32 { return chainloop.Run(validate) } func validate() error { // Get the material to validate var input struct { Message string `json:"message"` } if err := chainloop.GetMaterialJSON(&input); err != nil { return chainloop.Skip("Material is not valid JSON") } // Validate the message result := chainloop.Success() if input.Message == "" { result.AddViolation("message cannot be empty") } return chainloop.OutputResult(result) } func main() {} ``` ```javascript JavaScript theme={"dark"} const { getMaterialJSON, success, skip, outputResult, run } = require('@chainloop-dev/policy-sdk'); function Execute() { return run(() => { // Get the material to validate const input = getMaterialJSON(); // Check if material has the required field if (!input.message) { outputResult(skip("Material missing 'message' field")); return; } // Validate the message const result = success(); if (input.message === "") { result.addViolation("message cannot be empty"); } outputResult(result); }); } module.exports = { Execute }; ``` ### 3. Build the Policy ```bash Go theme={"dark"} # Install TinyGo first brew install tinygo # macOS # or download from https://tinygo.org/ # Build to WASM tinygo build -target=wasi -o policy.wasm policy.go ``` ```bash JavaScript theme={"dark"} # Install extism-js compiler npm install -g @extism/js-pdk # Install dependencies npm install @chainloop-dev/policy-sdk esbuild # Build to WASM npm run build # Uses esbuild + extism-js ``` ### 4. Create Policy Configuration Create a `policy.yaml` file: ```yaml theme={"dark"} apiVersion: workflowcontract.chainloop.dev/v1 kind: Policy metadata: name: my-first-policy description: Validates message field in materials spec: policies: - kind: EVIDENCE # Material type to validate path: policy.wasm ``` ### 5. Test Locally Create test data (`test.json`): ```json theme={"dark"} { "message": "hello world" } ``` Test the policy: ```bash theme={"dark"} chainloop policy devel eval \ --policy policy.yaml \ --material test.json \ --kind EVIDENCE ``` **Expected output:** ```json theme={"dark"} { "result": { "violations": [], "skip_reasons": [], "skipped": false } } ``` ## Policy Result States Every policy execution returns one of three states: ### Success Material passes all validation rules. ```go theme={"dark"} result := chainloop.Success() return chainloop.OutputResult(result) ``` ### Fail Material violates one or more rules. Include specific violation messages. ```go theme={"dark"} result := chainloop.Success() result.AddViolation("license GPL-3.0 not approved") result.AddViolation("missing required field 'version'") return chainloop.OutputResult(result) ``` ### Skip Policy doesn't apply to this material (wrong format, missing fields, etc.). ```go theme={"dark"} return chainloop.Skip("Material is not a CycloneDX SBOM") ``` > [!WARNING] > > **Important**: Use `Skip` when the material isn't applicable to your policy. Don't fail policies for materials they weren't designed to validate. ## Testing Workflow 1. **Write the policy** in Go or JavaScript 2. **Build to WASM** using TinyGo or extism-js 3. **Test locally** with `chainloop policy devel eval` 4. **Iterate** based on test results 5. **Deploy** to Chainloop once validated See the [Policies concept](/concepts/policies) for details on policy management. ## Next Steps > [card] [Go SDK Guide](/guides/wasm-policies/go-sdk) > > Learn the Go SDK and build your first Go policy > [card] [JavaScript SDK Guide](/guides/wasm-policies/javascript-sdk) > > Learn the JavaScript SDK and build your first JS policy > [card] [Examples](/guides/wasm-policies/examples) > > Explore complete policy examples and common patterns # Frequently Asked Questions Source: https://docs.chainloop.dev/misc/faq > [accordion] Is Chainloop Open Source? > > Partially; The Chainloop platform is comprised of the following components > > * An Open Source Evidence store and CLI, which code can be found [here](https://github.com/chainloop-dev/chainloop) > * A proprietary web UI dashboard > * A proprietary library of policies and compliance capabilities. > > The chainloop platform can be deployed on-premises by our customers, but we also have an instance of it running at [https://app.chainloop.dev](https://app.chainloop.dev) > [accordion] Does Chainloop store my Artifacts and Attestation metadata? > > No. They are stored in [your Content-Addressable Storage (CAS)](/concepts/cas-backend). > [accordion] Our firewall is flagging a request to crb.chainloop.dev, what's this? > > That is our telemetry endpoint. We collect telemetry data to help us enhance Chainloop by gaining > insights into its usage. > > You can learn more about it and even how to deactivate it > [here](/cli/telemetry). # Quickstart Source: https://docs.chainloop.dev/quickstart This quickstart will guide you through performing your first attestation. An [attestation](/concepts/attestations) is a **signed and verifiable unit of data** sent to Chainloop. It can capture metadata about any artifact or process in your Software Delivery Lifecycle. From references to source code, a reference to an artifact, a Software Bill of Materials, a Vulnerability Scan results, environment details, and [more](/concepts/material-types). ## Install the Chainloop CLI > [!WARNING] > > This guide assumes that you have access to a [Chainloop Cloud](https://app.chainloop.dev/) account or to your own self-hosted Chainloop instance. If you don't, you can [sign up for Chainloop Cloud](https://app.chainloop.dev/login), or [contact us](https://chainloop.dev/contact) if you'd rather run Chainloop yourself. Typically attestations are created by CI/CD pipelines, but in our quickstart we'll do it locally using the Chainloop CLI. > [tab] Chainloop SaaS > > The install script comes pre-configured for Chainloop Cloud. > > ```bash theme={"dark"} > curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s > ``` > > > [accordion] Advanced Options > > > > you can install a specific version with > > > > ```bash theme={"dark"} > > curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s -- --version vx.x.x > > ``` > > > > and customize the install path (defaults to /usr/local/bin) > > > > ```bash theme={"dark"} > > curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s -- --path /my-path > > ``` > > > > To install without sudo, provide a user-accessible path: > > > > ```bash theme={"dark"} > > curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s -- --path ~/.local/bin > > ``` > > > > if [cosign](https://docs.sigstore.dev/quickstart/quickstart-cosign/) is present in your system, in addition to the checksum check, a signature verification will be performed. This behavior can be enforced via the --force-verification flag. > > > > ```bash theme={"dark"} > > curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s -- --force-verification > > ``` > > > > To install the open-source edition instead: > > > > ```bash theme={"dark"} > > curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s -- --oss > > ``` > [tab] On-Prem > > Two things have to be true before the CLI can talk to your instance: the binary is installed, and it points at your instance's endpoints. Installing from your own instance's domain does both in a single command. > > **1. Download and configure the CLI** > > Install from your own instance's domain and the CLI is automatically configured to talk to it — there is nothing else to set up. Copy the exact command from the Chainloop web UI — click the terminal (`>_`) icon in the top-right corner — or replace `YOUR_INSTANCE_DOMAIN` below with your own. > > ```bash theme={"dark"} > curl -sfL https://YOUR_INSTANCE_DOMAIN/cli/install.sh | bash -s > ``` > > ![Terminal icon in the top-right corner of the Chainloop web UI that opens the CLI installation dialog](https://mintcdn.com/chainloop/JFPirGFumFqtajI8/img/setup-cli-install.png?fit=max\&auto=format\&n=JFPirGFumFqtajI8\&q=85\&s=efda7dc904d93986d5d73b3c556c4ced) > > > [accordion] Advanced Options > > > > you can install a specific version with > > > > ```bash theme={"dark"} > > curl -sfL https://YOUR_INSTANCE_DOMAIN/cli/install.sh | bash -s -- --version vx.x.x > > ``` > > > > and customize the install path (defaults to /usr/local/bin) > > > > ```bash theme={"dark"} > > curl -sfL https://YOUR_INSTANCE_DOMAIN/cli/install.sh | bash -s -- --path /my-path > > ``` > > > > To install without sudo, provide a user-accessible path: > > > > ```bash theme={"dark"} > > curl -sfL https://YOUR_INSTANCE_DOMAIN/cli/install.sh | bash -s -- --path ~/.local/bin > > ``` > > > > if [cosign](https://docs.sigstore.dev/quickstart/quickstart-cosign/) is present in your system, in addition to the checksum check, a signature verification will be performed. This behavior can be enforced via the --force-verification flag. > > > > ```bash theme={"dark"} > > curl -sfL https://YOUR_INSTANCE_DOMAIN/cli/install.sh | bash -s -- --force-verification > > ``` > > > > To install the open-source edition instead: > > > > ```bash theme={"dark"} > > curl -sfL https://YOUR_INSTANCE_DOMAIN/cli/install.sh | bash -s -- --oss > > ``` > > **2. Point the CLI at your instance — only if you installed it another way** > > Skip this if you used the command above. Run it when the CLI came from somewhere else — `dl.chainloop.dev`, a package manager, or a **Manual Download** — or when you want to switch an existing install to a different instance. > > ```bash theme={"dark"} > chainloop config save \ > --control-plane my-controlplane.acme.com:443 \ > --artifact-cas cas.acme.com:443 \ > --platform my-platform.acme.com:443 > ``` > > Confirm which instance the CLI is talking to with `chainloop config view`. > [tab] Manual Download > > Download the CLI binary directly and verify its SHA256 against the published `checksums.txt`. Use this when piping a script into `bash` is not an option, or when binaries need to be validated out-of-band. > > > [accordion] v1.151.0 > > > > | OS | Architecture | Download | SHA256 | > > | - | - | - | - | > > | Linux | Intel (amd64) | [chainloop-linux-amd64](https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/v1.151.0/chainloop-linux-amd64) | `444f1d8d5fd0b127b5ded1ee3d8cd2c6284bccb31715e1bf67cb998a3dfcc6ee` | > > | Linux | ARM64 | [chainloop-linux-arm64](https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/v1.151.0/chainloop-linux-arm64) | `281187a1f86e0cf0fa420b137f6ec8f776fc641b417fe4cb7fd61ed5716e2b9d` | > > | macOS | Intel (amd64) | [chainloop-darwin-amd64](https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/v1.151.0/chainloop-darwin-amd64) | `5913f4551d31e2d273e3fd54cb7a77754013579c326b9651993b8ce18905cb4f` | > > | macOS | Apple Silicon | [chainloop-darwin-arm64](https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/v1.151.0/chainloop-darwin-arm64) | `aff54a4f2af7abfd5fd95795dd6138621c27bc8b3e774a576e0933f50c220f32` | > > | Windows | Intel (amd64) | [chainloop-windows-amd64.exe](https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/v1.151.0/chainloop-windows-amd64.exe) | `00a77b669dff1d289dd7f3ae311a72358bc83c4ad88459b3278b7a604cf4388c` | > > | Windows | ARM64 | [chainloop-windows-arm64.exe](https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/v1.151.0/chainloop-windows-arm64.exe) | `c3f8f11d46cf341bc38050331463bf28bcfbf4b2eabf3251479d2c1edf6a72ac` | > > > > Full manifest: [`checksums.txt`](https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/v1.151.0/checksums.txt) · [signature bundle](https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/v1.151.0/checksums.txt.sigstore.json) · [Release notes](/changelog) > > > > Download, verify, and install (linux/amd64 shown — swap `chainloop-linux-amd64` for another row from the table above): > > > > ```bash theme={"dark"} > > VERSION=v1.151.0 > > BASE=https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/$VERSION > > > > # Download the linux/amd64 binary and the checksum manifest > > curl -fsSLO "$BASE/chainloop-linux-amd64" > > curl -fsSLO "$BASE/checksums.txt" > > > > # Download the signature bundle and confirm the manifest itself came from Chainloop's release pipeline > > curl -fsSLO "$BASE/checksums.txt.sigstore.json" > > cosign verify-blob \ > > --bundle=checksums.txt.sigstore.json \ > > --certificate-oidc-issuer="https://token.actions.githubusercontent.com" \ > > --certificate-identity-regexp="^https://github.com/chainloop-dev/platform/\.github/workflows/release_backend\.yml@" \ > > checksums.txt > > > > # Verify the binary against the manifest > > sha256sum --ignore-missing -c checksums.txt > > # on macOS: shasum -a 256 --ignore-missing -c checksums.txt > > > > # Install it onto your PATH > > chmod +x chainloop-linux-amd64 > > sudo mv chainloop-linux-amd64 /usr/local/bin/chainloop > > ``` > > Unlike the install script, a manually downloaded binary isn't automatically configured for your instance. If you're on an **on-prem or dedicated instance**, point the CLI at your instance's endpoints (Chainloop SaaS users can skip this): > > ```bash theme={"dark"} > chainloop config save \ > --control-plane my-controlplane.acme.com:443 \ > --artifact-cas cas.acme.com:443 \ > --platform my-platform.acme.com:443 > ``` Authenticate to the Control Plane: ```bash theme={"dark"} chainloop auth login ``` ## Perform an attestation We are now ready to perform our first attestation. In a nutshell, an attestation process has three steps: initialization, adding evidence, and storage. See [lifecycle](/concepts/attestations#attestation-lifecycle) for more details. #### Initialization We'll start with the [initialization](/concepts/attestations#attestation-init) of an attestation. The command requires the name of a [workflow](/concepts/workflows), a [project](/concepts/projects-versions) and optionally a [contract](/concepts/contracts). Copy the command that suits your environment: > [tab] Chainloop Platform > > ```bash theme={"dark"} > chainloop att init \ > --workflow mywf \ > --project myproject \ > --contract https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/quickstart/quickstart-contract.yaml > ``` > [tab] Chainloop OSS > > ```bash theme={"dark"} > chainloop att init \ > --workflow mywf \ > --project myproject \ > --contract https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/quickstart/quickstart-contract-oss.yaml > ``` ![attestation init](https://mintcdn.com/chainloop/xJ5hNAgMrS6U1u_m/img/quickstart-1.png?fit=max\&auto=format\&n=xJ5hNAgMrS6U1u_m\&q=85\&s=4cf911b7ba4e508387d151133ea182af) We can see that the command output tell us that we should provide three materials, a container image, an SBOM, and a vulnerability report. These requirements are part of the [contract](/concepts/contracts) that we attached during the initialization. #### Add Pieces of Evidence Once attestation is initialized, we can start adding materials to it. In this case, we are attesting the latest version of the Chainloop's control-plane image as an example. > [!TIP] > > For a complete list of supported material types, see the [material types](/concepts/material-types) reference. ```bash theme={"dark"} chainloop att add --name container --value ghcr.io/chainloop-dev/chainloop/control-plane ``` Next we'll attest a Software Bill Of Materials (SBOM), note that we are pointing to a remote file location, a local filepath would work too. ```bash theme={"dark"} chainloop att add --name sbom --value https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/quickstart/sbom.json ``` As you can see in the output below, the CLI has automatically 1) validated the SBOM format, 2) uploaded the file to the [content addressable storage](/concepts/cas-backend) and 3) run a set of [policies](/concepts/policies). ![attestation add sbom](https://mintcdn.com/chainloop/xJ5hNAgMrS6U1u_m/img/quickstart-2.png?fit=max\&auto=format\&n=xJ5hNAgMrS6U1u_m\&q=85\&s=25982cc4ebf2d7793808422d4e6066ac) And finally, we'll add the vulnerability report: ```bash theme={"dark"} chainloop att add --name vulnerabilities-report --value https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/quickstart/vulnerability-report.json ``` #### Sign and Store Once we've gathered all the pieces of evidence, we can [push the attestation](concepts/attestations#attestation-push) for permanent storage. ```bash theme={"dark"} chainloop att push ``` Transparently, Chainloop has [signed](/reference/signing) and stored the attestation. You can now use either the CLI or the web UI to inspect the attestation, verify the signature, and learn more about the data. > [tab] Web UI > > You can find your attestation in the [workflows](https://app.chainloop.dev/workflows) section. > > ![The Attestation tab of a workflow run showing the signed in-toto statement](https://mintcdn.com/chainloop/hibEOkV5XjWISiDa/img/quickstart-3.png?fit=max\&auto=format\&n=hibEOkV5XjWISiDa\&q=85\&s=347bf9f1d8c8ecca9198625da5f53e4e) > [tab] CLI > > ```bash theme={"dark"} > # List workflow runs (attestations) > chainloop workflow run ls > # Get information about a specific run > chainloop workflow run describe --id [runID] > # Get the raw output of an attestation > chainloop workflow run describe --id [runID] --output attestation > ``` Great! You've completed this guide. Now you are ready to dive deeper into our [Getting Started](/get-started) guide. Good luck, and have fun with Chainloop! 🚀 # AI Session Score Source: https://docs.chainloop.dev/reference/ai-score Per-PR confidence signal for AI-assisted code changes — scoring criteria, how to read results, and how to improve scores ## Overview AI Session Score is a per-PR confidence signal for AI-assisted and AI-driven code changes. It reads what the AI did, what the user asked for, and what the diff contains, and turns it into a single reviewer-facing verdict: a color-coded score, a one-sentence summary, and a per-criterion breakdown of findings worth looking into. AI Session Score is powered by session data captured through [`chainloop trace`](/guides/chainloop-trace), the source code changes in the PR, and other contextual signals such as AI code review bot comments. When developers use AI coding agents with `chainloop trace` enabled, every session — models used, tool calls, code changes, and the full conversation — is automatically recorded and attested. AI Session Score evaluates all of this data together on each PR to produce its verdict. > [!TIP] > > To start generating AI Session Scores, enable [`chainloop trace`](/guides/chainloop-trace) in your repositories. No additional configuration is needed — once session data flows in, scores are computed automatically on PRs. * **PR authors** — expand the yellow and red criteria in the breakdown and work through their 💡 recommendations. Each criterion's "Improving the score" section in this reference explains the patterns behind them. * **Reviewers** — start with the summary sentence, then use the findings under each non-green criterion to decide where to focus attention. ### Where the Score Appears * **AI session page — Score & Policies tab.** Open a session from the AI Coding dashboard and switch to the **Score & Policies** tab. The **AI session scoring** panel there is the full result, shown below. * **PR summary comment.** Each session block in the [PR comment](/guides/chainloop-trace#summary-comment) renders the same result as a table — one row per criterion with its score and findings. * **AI Coding dashboard.** The org-wide [dashboard](/concepts/ai-coding-sessions#ai-sessions-dashboard-metrics) aggregates scores across sessions into an AI Score Breakdown with per-criterion averages for the period. ### What You'll See ![AI session scoring panel on the Score & Policies tab, showing the overall percentage score with a one-sentence summary, and a per-criterion breakdown with color-coded findings and lightbulb recommendations](https://mintcdn.com/chainloop/6btqG_GiYaYG46wq/reference/img/ai-score-panel.png?fit=max\&auto=format\&n=6btqG_GiYaYG46wq\&q=85\&s=bfe27502868c23c6e1b8c212ffbbcd5e) The **AI session scoring** panel reads top to bottom: 1. **Score** — a 0-100 percentage indicating how well the PR met the criteria for a good change done with or by AI. The badge color is the flag: green, yellow, or red, indicating confidence in the AI part of the PR. 2. **Summary** — the sentence next to the score: the headline judgment and the most important reason. 3. **Breakdown** — one row per criterion, each with its own color-coded percentage (the per-criterion sub-flag). Click a row's chevron to expand it. 4. **Findings** — inside an expanded criterion, each bullet is one observation, weighted by its dot color: green is a positive signal, yellow is worth attention, red is a serious concern. The text names the files, commands, or session moments involved. 5. **💡 Recommendations** — findings that deserve action carry a lightbulb row underneath: a concrete next step for the developer and reviewer. ### How to Read a Result **Start at the summary sentence.** It tells you the headline and the dominant reason in one sentence. If you only have a minute, this is what to read. **Use the colors for triage, not the numbers.** The overall flag color is derived from the *distribution* of the criterion colors, not from the number. A change with one red criterion will be yellow even if everything else is green — that's intentional. The score is a band, not a precise measurement; the same input can return 65 on one run and 72 on the next. **Score and flag color are independent.** There is no fixed score band that maps to red, yellow, or green. A score of 75 might be green on one PR and yellow on another, depending on which criteria fired. **The breakdown tells you what kind of concern this is.** A yellow `verification` means something different from a yellow `user-trust-signal`. Each criterion section in the [Score References](#score-references) below explains what its flag means and what to check when it fires. **Treat the findings as the product.** A green score does **not** mean "skip review." It means "use the findings to focus where you look." Expand the yellow and red criteria first, read their findings, and work through the 💡 recommendations attached to them. ### The Six Criteria AI Session Score is built from six independent criterion judges plus a final aggregator. Each criterion scores one axis of confidence, and each appears as its own row in the breakdown: | Score | In the breakdown | What it asks | | - | - | - | | [Context & Planning Score](#context--planning-score) | `context-and-planning` | Was the AI set up to succeed, or set up to wing it? | | [Alignment Score](#alignment-score) | `alignment` | Did the AI stay on the task that was actually asked? | | [Scope Discipline Score](#scope-discipline-score) | `scope-discipline` | Did changes stay within scope, or did the AI feature-creep? | | [Solution Quality Score](#solution-quality-score) | `solution-quality` | Is the change a real fix, or a workaround that masks the problem? | | [Verification Score](#verification-score) | `verification` | Was the change actually validated? | | [User Trust Signal Score](#user-trust-signal-score) | `user-trust-signal` | What does the user's behavior across the session tell us? | > [!NOTE] > > Five of the six criteria can be addressed by changing how you work. **User trust signal** is the exception — it's interpretive. A flagged result there scores how the session went and is best used as input for the *next* session, not as something to fix on the current PR. A criterion can **abstain** when there isn't enough evidence to judge. Abstention is **not** the same as green — an explicit "this wasn't checked" finding will appear in the breakdown, so you can decide whether to look harder yourself. ### What AI Session Score Is Not * **Not a merge gate.** AI Session Score does not block PRs. * **Not a substitute for review.** A green score still requires review; a red score does not mean the code is wrong, only that a reviewer should look harder. * **Not a developer score.** It scores a *change*, not a person. ### When the Score Updates * **A PR is opened.** The score computes on the initial content. * **A new commit lands on the PR.** The score recomputes, with a small delay so session data finishes syncing. * **A recognized AI code review bot comments.** The score takes that feedback into account and recomputes. Other events do not trigger a recompute. If you've addressed a finding and don't see the score change, push a commit — that's the trigger. AI Session Score only runs on PRs that have session data captured by [`chainloop trace`](/guides/chainloop-trace). A PR authored without AI assistance is not scored at all — the absence of an AI Session Score means "this flow does not apply," not "green." ### Grading Against the Spec When `chainloop trace` [captured the context](/guides/chainloop-trace#capture-the-context-of-a-session) of a session, the score grades the change against what the session was asked to do, not only against the conversation. * **Inputs.** The scoring run reads the captured spec sources (tasks, specs and plans) and the code change of the most recent pull request that shares commits with the session. A source with the `reference` role is background, not the baseline. A later instruction from the user in the session still takes precedence over the spec. * **Requirements.** Scoring first lists the requirements in the captured spec. The delivery and verification checklists account for every applicable requirement. A requirement outside the task keeps the reason it is out of scope, and each result cites the lines of code that support it. * **Criteria.** [Context & Planning](#context--planning-score) counts a task spec that states the scope and the tests as the plan. [Scope Discipline](#scope-discipline-score) compares the diff with the spec. [Alignment](#alignment-score) compares the claims and the diff with the spec, and counts a reversed user choice as drift. [Verification](#verification-score) reports each test that the spec asks for as added, ran, missing or parked. [Solution Quality](#solution-quality-score) checks the design constraints that the spec states. * **In the breakdown.** The Score & Policies tab shows the requested outcomes, the scope assessments and the verification checks, with how many passed and how many need attention. Each assessment links to the spec source it cites, and the source opens beside the breakdown at that requirement. When a session has no captured spec or no linked pull request, or the scoring run cannot read the code, the score uses the session and its conversation as before. *** ## Score References ### Context & Planning Score This criterion asks whether the AI was set up to succeed — the framing, planning, and guidance available before substantive work began. It does not check whether the code is good (that's [Solution Quality Score](#solution-quality-score)) or whether the user reacted well later (that's [User Trust Signal Score](#user-trust-signal-score)). #### What it checks Setup quality — what guidance and framing the AI had before substantive editing began. This includes the user's initial framing, any plan or spec produced before code was written, and any project-level guidance loaded at session start. **What counts as a plan:** The judge is format-agnostic. A structured planning artifact, a spec committed before code was written, or freeform prose that lays out the approach all count. What matters is the *content* — a plan that names files-to-touch, the chosen approach, and acknowledged unknowns counts. A plan that is just "I'll fix it" doesn't count, regardless of where it appears. #### What raises the flag * **Yellow:** vague initial prompt that the user steered actively as work progressed; AI asked some clarifying questions; a partial plan appeared. * **Red:** one-line prompt with no constraints; AI dives straight into code; consequential decisions made silently; no acknowledgment of unknowns. A small task with a thin prompt is not automatically Yellow — context proportionate to the task is fine. The problem is a thin prompt that *should have been* thicker for the task that followed. #### Why this isn't green Three patterns commonly trigger Yellow or Red on Context & Planning: 1. **Vague one-liner, no plan, scope drift.** The first user turn was a thin instruction with no context, no constraints, and no acceptance criteria. The AI did not produce a plan or surface assumptions before editing. 2. **Silent decisions on consequential choices.** The AI made decisions that materially shape the change — choosing one library over another, picking an architectural pattern — without naming the decision or surfacing a tradeoff. 3. **Plan landed too late to frame the work.** A plan appeared in the session, but only after substantial editing was already done. The plan documented work that had happened rather than guiding work that was about to happen. #### Improving the score Most of the leverage on this criterion is on the **next session**, not the current PR: 1. **State intent, then constraints.** Lead with what you want and what you do not want. "Add X to file Y, but don't refactor the surrounding code" gives the AI more to work with than "add X." 2. **Ask for a plan before editing.** A short plan covering files to touch, the approach, and unknowns is cheap to produce and lets you redirect before any code is written. 3. **Surface decisions explicitly.** When you notice the AI reaching a fork (library choice, schema design, naming), ask which options it considered and why it picked one. 4. **For an in-flight session, write the plan late if needed.** Even a late plan is more useful than no plan. *** ### Alignment Score This criterion asks whether the AI stayed on the task that was actually asked, and whether what the AI *said* it did matches what the diff *actually* does. This is *only* about whether work matches what was asked. The *quality* of the work is judged by [Solution Quality Score](#solution-quality-score). Unsolicited extras are judged by [Scope Discipline Score](#scope-discipline-score). #### What it checks Two questions, evaluated together: 1. **Intent vs. behavior.** The user stated an intent; did the AI do that, or something else? 2. **Claim vs. reality.** Along the way and at the end, the AI summarized what it did. Do those summaries match the diff? #### What raises the flag * **Yellow:** mostly aligned with some drift the user caught and corrected; AI summaries that overstate what was done; one volunteered side-action that was rolled back. * **Red:** AI did something materially different from what was asked; claimed coverage or behavior does not match the diff; user had to redirect repeatedly across the session. Recovery does not save the score. A session in which the AI eventually delivered correctly, but burned the user's time on multiple confirmed misalignments along the way, is still flagged. #### Why this isn't green 1. **Claim doesn't match the diff.** The AI summarized the work in a way that sounds right but is subtly wrong. 2. **Premature "done".** The AI declared the change finished one or more times before it actually was. 3. **Volunteered action the user didn't ask for.** The AI took a step that wasn't part of the request — removing something extra, bypassing a check, "while-I'm-here" cleanup. #### Improving the score 1. **Read each finding against both ends.** Findings on this criterion typically name *both* the AI's claim and the code it doesn't match. Open the session turn and the diff side by side. 2. **Audit other claims, not just the flagged ones.** A claim-vs-reality miss is rarely isolated. 3. **Revert anything you didn't ask for.** If the AI did something extra and you don't actively want it, take it out. 4. **For "premature done" patterns, add a verification step.** A small test that pins the actual behavior makes future "done" claims auditable. *** ### Scope Discipline Score This criterion asks whether the changes stayed within the requested scope, or whether the AI feature-crept beyond the asked-for work. **User-originated scope expansion is in-scope.** If the user asks for additional changes mid-session, those count as part of the ask and don't trigger this criterion. The signal it looks for is **AI-volunteered** scope. #### What it checks The change in the diff vs. what the user actually asked for. This is the only criterion that fundamentally requires the diff — scope is a comparison between *what was asked* and *what got changed*. #### What raises the flag * **Yellow:** small unsolicited cleanups — a renamed nearby variable, a fixed typo, a drive-by formatting change. * **Red:** unsolicited refactors of unrelated code; "while I was here" moments; touching files unrelated to the stated task; opportunistic abstractions ("I made this more reusable"). #### Why this isn't green 1. **Drive-by fix bundled with the feature.** A small unrelated change shipped in the same commit or PR — a typo correction in a different module, a path fix in a build file. 2. **Opportunistic refactor of pre-existing code.** The AI was reading or modifying a file for the feature and decided to also rename, restructure, or "improve" something it noticed along the way. 3. **Auto-regenerated files outside the feature surface.** A tool or generator was run and produced changes in modules unrelated to the feature. #### Improving the score 1. **Identify the unrelated changes.** Look at the file list. Which files map to the feature, and which don't? 2. **Split or revert.** Move drive-by fixes into their own commit or their own PR. 3. **For opportunistic refactors, judge case-by-case.** A rename that genuinely makes the feature clearer can be worth keeping — but it should be acknowledged in the PR description. 4. **For auto-regenerated noise, check whether the regeneration was actually needed.** Limit the regeneration to what the change requires. *** ### Solution Quality Score This criterion asks whether the change is a real fix, or a workaround that masks the underlying problem. It is not about whether the work matches the ask (that's [Alignment Score](#alignment-score)) and not about whether the change is verified (that's [Verification Score](#verification-score)). #### What it checks How the work was done — root-cause fix vs. shortcut, hack, or test-disabled-to-make-CI-green. Most shortcuts get announced in the session — the AI will say "let me just disable this" or "let me wrap this in a try/except" — so the transcript is the primary signal. The diff catches the shortcuts that were taken silently. #### What raises the flag * **Yellow:** working solution with code smells the user accepted; a `TODO` left behind; a one-off hack that's labeled and justified; a check-bypass *attempt* that was caught and reverted before shipping. * **Red:** errors silently swallowed; tests modified or disabled to make them pass; a check-bypass that landed in the diff (pre-commit hook bypassed, signing disabled, type-check suppressed); commented-out failing assertions. A bypass attempt that was rejected before it shipped is still a signal — attempt is Yellow, shipped is Red. #### Why this isn't green 1. **Speculative fix shipped alongside the real fix.** A genuine root-cause change landed, but a guess-fix shipped in the same commit — a sleep added "in case there's a race," a retry added "in case the request fails sometimes." 2. **Silent error-swallow.** A specific error or status code is treated as having a known meaning without verifying that's actually what the underlying call returns in that case. 3. **Volunteered bypass of a check.** The AI ran into a check it couldn't satisfy — a pre-commit hook, a signing requirement, a type error — and bypassed it on its own initiative rather than fixing the underlying cause. #### Improving the score 1. **Look for changes to existing tests.** If a previously-passing test was modified to make a new change pass, the test was usually telling you something the change broke. 2. **Find the speculative pieces.** Anything that looks like "let's also do X just in case" without a cited reason. If you remove that piece, does the real fix still work? 3. **Verify any error-as-meaning assumptions.** For each place where a specific error or status is being mapped to a domain meaning, confirm that mapping is correct. 4. **Revert any bypasses.** If a check was skipped, the change should re-engage it. *** ### Verification Score This criterion asks whether the change was actually validated — whether anyone, AI or human, observed the new behavior working. #### What it checks Two questions: 1. **Did tests run, and did they pass?** Sessions tell you this directly via tool-call traces. 2. **Do the tests assert real behavior?** A test can run and pass without actually exercising the change. A test that mocks the function being tested and asserts against the mock doesn't count — real tests pass real input to the real function and assert on real output. #### What raises the flag * **Yellow:** tests added but only happy path; ran locally but not in CI; user said "looks good" without explicit testing; compile/lint/format only on a small change. * **Red:** no tests added for new behavior; tests assert against mocks instead of real behavior; AI claimed to test something it never ran; user never verified. #### Why this isn't green 1. **Build / lint / type-check only.** Compile-time validation passed, but no test runner was invoked at any point in the session. 2. **Test suite exists but was never run.** The codebase has a test framework set up. The AI may have grepped for an existing test file, found none for the specific function, and proceeded without running the broader suite. 3. **Compile-checked, never exercised end-to-end.** The change builds, but no one started a dev server, replayed a request, opened the UI, or hit the endpoint to confirm the new behavior. #### Improving the score 1. **Check that existing tests actually exercise the new code path.** Tests can pass while testing the *old* code path — if a test only loaded a happy-path fixture, the new branch may never have run. 2. **Run the existing test suite.** If the project has one, invoke it. Lint and type-check are not substitutes. 3. **Add at least one test that pins the new behavior.** A single test exercising the change is more verification than any amount of compile-time checking. 4. **Exercise the change end-to-end at least once.** For UI: open it. For endpoint: hit it. For configuration: apply it in a sandbox or staging. *** ### User Trust Signal Score This criterion asks what the *user's* behavior across the session tells us. The other criteria score what the AI produced; this one scores how the user reacted along the way. **Unlike the other five criteria, this one scores something you cannot retroactively change.** A session is a historical record. The value of this criterion is as an interpretive lens for the other flags, and as input for the *next* session you run. #### How to use this criterion The most concrete reviewer move: **ask whether the user was steering, or being assisted.** If the session looks more like the user manually directing the AI step-by-step, the change may need a closer human read. Read the result alongside the other flags: * **Yellow here + Yellow on Alignment or Solution Quality** is the strongest version of this signal. The user's friction was tied to something that actually went wrong. * **Yellow here + everything else Green** is informational. The user worked harder than usual, but the result looks fine. * **Green here + a hacky session in the other criteria** is also information — the user appears comfortable with the shortcuts. #### What it checks The user's reaction arc across the session — corrections, interrupts, frustration markers, abandoned approaches, restarts. #### What raises the flag * **Yellow:** several mid-session corrections; user re-explained intent once or twice; mild friction with no abandonment. * **Red:** sharp repeated corrections; explicit frustration markers; user restarted from scratch; user abandoned the AI's approach and finished manually. #### Why this isn't green 1. **Substantive correction after the work was declared complete.** The AI declared the change finished and then the user came back with a real correction. 2. **Repeated mid-task interrupts.** The user had to interrupt the AI multiple times during the session to redirect. 3. **Steady low-grade friction without escalation.** No "stop", no caps — but the user re-explained intent more than once, asked the AI to redo a piece of work, or quietly took over part of the task. #### Improving the score on the next session * A clearer initial framing (state intent, constraints, and acceptance criteria upfront). * Asking for a plan before editing. * Earlier checkpoints — "show me what you're about to do before doing it." * Choosing a different agent or workflow if the same friction recurs. *** ### Final Scoring The final stage rolls up the six per-criterion verdicts into the headline score, summary sentence, and flag color a reviewer sees at the top of the panel. #### Reading a result step by step 1. **Read the summary sentence.** One sentence with the headline judgment and the dominant reason. 2. **Glance at the breakdown.** The color of each criterion's percentage tells you *where* the concern is. 3. **Expand the yellow and red criteria.** Read their findings and the 💡 recommendations attached to them. 4. **For any criterion that is not green, open its section above.** The criterion docs explain what triggered the flag. 5. **Treat abstention findings with the same weight as flagged ones.** "This wasn't checked" is not "no concern." #### How the rollup works The rollup is itself a judgment, not a deterministic function. Two runs on the same input may produce slightly different scores or shuffle findings of similar weight. The flag and the broad shape of the findings are more stable than the exact numbers. **Score:** Each criterion's score, flag, and contributed findings are taken into account. **Verification** and **Solution Quality** carry the most weight. Red sub-flags lower the ceiling so green elsewhere cannot wash out a serious concern. Abstained criteria do not penalize the score; their weight is removed and the abstention is surfaced as a finding. **Flag:** A single Red sub-flag forces the headline to at least Yellow, even when everything else is Green. Abstained criteria are no-signal — they neither push toward green nor toward red. **Findings:** De-duplicated when judges flag the same underlying problem from different angles, and kept to a small number to stay skimmable. Abstentions are surfaced as explicit "this wasn't checked" findings. #### Patterns that surprise people | What you see | Why it happens | | - | - | | Headline Yellow with mostly green sub-flags | A single Red sub-flag forces at least Yellow. Two or more Yellow sub-flags also typically produce Yellow. | | Headline Yellow on a config-only or docs-only change | Some changes are hard to verify in the usual ways. The rollup keeps the flag at Yellow rather than Red, but the verification gap is still surfaced. | | Headline Green with an abstention finding visible | A criterion abstained — it had no signal, not "looks fine." | | Headline biased toward Yellow when only a few criteria ran | A result built on two active judges is not the same as one built on six, and the summary line will say so. | | Score number drifted on a recompute | The score is a band. A few points of drift between runs is expected. The flag is more stable. | #### Special cases * When the AI worked **autonomously** without user follow-up, the rollup does not bias the flag toward Yellow because of it, but does surface the absence of human verification as a finding. * When the only concern is **verification on a non-testable change** (configuration, documentation), the rollup may keep the flag at Yellow rather than Red. The gap is still surfaced. * When **few criteria had enough signal** to run, the rollup biases one step toward Yellow and the summary line says so. *** ### Troubleshooting #### The score didn't update after I changed something The score recomputes when a new commit lands on the PR (and when a recognized AI code review bot leaves a comment). It does not recompute on edits-without-commit, on session updates alone, or on time. Push a commit; the recompute follows. #### I addressed a finding but it's still there A few possibilities: * The recompute hasn't happened yet. There is a small delay after a commit so session data finishes syncing. * The fix didn't address the underlying pattern. Re-read the finding against the current diff or session. * The finding references a session turn from an earlier session in the PR. Some criteria evaluate sessions individually, and a session's verdict is computed once when the session arrives and reused for all subsequent commits. The diff-level fix doesn't change what already happened in the session record. #### I disagree with a flag or finding The score is a triage hint, not a verdict. If a yellow finding points at something you've decided is fine, that's a legitimate reviewer call. Disagreeing with the AI Session Score does not require "fixing" anything. #### A criterion abstained — what do I do? Abstention means "I had no signal here," not "looks fine." Read the abstention finding to see what specifically wasn't checked. Decide whether you can check it yourself. #### The score drifted between runs even though nothing changed LLM-based evaluation has run-to-run drift on the number. The flag is more stable than the number; treat the score as a band, not a measurement. #### A PR has no AI Session Score at all AI Session Score only runs on PRs with session data from [`chainloop trace`](/guides/chainloop-trace). A PR authored without AI assistance is not scored. Absence of an AI Session Score is **not Green** — it means the flow does not apply. #### A session I expected to see isn't represented Sessions are picked up at commit time. A session that arrived after the latest commit will be picked up when the next commit lands. #### The headline went Yellow even though most sub-flags are Green Designed behavior. A single non-green sub-flag is usually enough to keep the headline at Yellow. See [Patterns that surprise people](#patterns-that-surprise-people). #### I want to lower a Yellow without changing the code The score follows the work, not the other way around. If a Yellow is informational rather than actionable, it's reasonable to merge anyway — the score does not block merges. *** ### Glossary | Term | Definition | | - | - | | **AI Session Score** | The per-PR confidence signal. Produces a 0-100 score, a flag, a summary sentence, and a per-criterion breakdown of findings. | | **Criterion** | One of the six axes AI Session Score evaluates. Each is a row in the breakdown. | | **Breakdown** | The per-criterion section of the panel: one expandable row per criterion, with its score, flag color, and findings. | | **Judge** | The LLM-driven evaluator that produces a verdict for one criterion. | | **Rollup** | The LLM-driven evaluator that combines the criterion verdicts into the headline result. | | **Verdict** | A criterion judge's output: a sub-score, a sub-flag (or abstention), a summary, and findings. | | **Session** | The transcript of one AI coding session captured by [`chainloop trace`](/guides/chainloop-trace): user prompts, AI responses, tool calls, and results. | | **Session turn** | A single message within a session. | | **Sub-flag** | The Red / Yellow / Green flag a single criterion produces — shown as the color of that criterion's percentage in the breakdown. | | **Headline flag** | The overall Red / Yellow / Green of a result — shown as the color of the score at the top of the panel. | | **Finding** | A single observation under a criterion — a bullet in the expanded row. Its dot color marks its weight: green is a positive signal, yellow and red are concerns. | | **Recommendation** | The 💡 row under a finding: the concrete next step suggested to the developer and reviewer. | | **Abstention** | A criterion's "I had no signal here" output. Surfaced as an explicit finding; not the same as Green. | | **Recompute** | Re-running AI Session Score for a PR. Triggered by a new commit or recognized AI code review bot comment. | #### Common pattern names | Pattern | Score | Meaning | | - | - | - | | **Drive-by fix** | [Scope Discipline](#scope-discipline-score) | A small unrelated change shipped alongside the feature. | | **Premature done** | [Alignment](#alignment-score) | The AI declares the change finished before it actually is. | | **Claim-vs-reality miss** | [Alignment](#alignment-score) | The AI's summary does not match the diff. | | **Speculative fix** | [Solution Quality](#solution-quality-score) | A guess-fix shipped alongside or instead of a real fix. | | **Silent error-swallow** | [Solution Quality](#solution-quality-score) | An error is treated as having a known meaning without verification. | | **Volunteered bypass** | [Solution Quality](#solution-quality-score) | The AI bypasses a check on its own initiative. | | **Abstention finding** | All scores | An explicit "this wasn't checked" entry. | # API Source: https://docs.chainloop.dev/reference/api Please refer to [API reference](/api-reference/overview) to get more information about the API endpoints and how to use them. # Authentication Methods Source: https://docs.chainloop.dev/reference/api-tokens The Chainloop CLI supports three methods to authenticate with the Chainloop Platform: ## User Authentication * Purpose: For interactive use and attestations * Association: Tied to a user account. * Duration: Valid for 24 hours They can be obtained by running the `chainloop auth login` command. ## Chainloop API tokens * Purpose: * For non-interactive use (automation) such as CI/CD. * To perform attestations * Association: Project-scoped, product-scoped, or organization-scoped. * Features: * Customizable expiry and manual revocation. * Supports fine-grained ACL for access control. You can operate on your organization API tokens using the `chainloop organization api-token` command. > [tab] Web UI > > You can manage your API tokens in the [API Tokens Section](https://app.chainloop.dev/settings?tab=api-tokens). > > ![The API Tokens settings page listing organization tokens](https://mintcdn.com/chainloop/vTuUKiGCwGJ__XFJ/reference/img/api-tokens.png?fit=max\&auto=format\&n=vTuUKiGCwGJ__XFJ\&q=85\&s=ecf2531be1bf7dc9eedbb26288e1b320) > [tab] CLI > > ```sh theme={"dark"} > $ chainloop organization api-token -h > Manage API tokens to authenticate with the Chainloop API. > > Usage: > chainloop organization api-token [command] > > Aliases: > api-token, token > > Available Commands: > create Create an API Token > list List API tokens in this organization > revoke revoke API Token > ``` and then they can be used by the CLI by either setting `CHAINLOOP_TOKEN` environment variable or by using the `--token` flag, for example ```sh theme={"dark"} CHAINLOOP_TOKEN= chainloop attestation init --workflow --project ``` ### Product-Scoped API Tokens A product-scoped API token belongs to one [product](/concepts/products). It reaches every project assigned to the product, and it follows the product: * When you assign a project to the product, the token reaches that project. * When you unassign a project, the token loses access to it, unless another version of the product still includes it. * A token of a product with no projects reaches no project. On each project that it reaches, a product-scoped token can do what a [project-scoped token](/reference/rbac#project-scoped-api-tokens) can do there, for example [perform attestations](/concepts/attestations) and read the project's data. It has no access to the product itself, such as its versions or its compliance. It cannot list, create, or revoke API tokens, and it cannot change organization-level resources such as policies, policy groups, requirements, frameworks, workflow templates, or organization contracts. These callers can manage the tokens of a product: * Organization owners and admins, and the [Product Admins](/reference/rbac#product-roles) of the product, can create, list, and revoke them. * Product Viewers can list them with the CLI or the API. * Organization API tokens can create, list, and revoke them, for example to provision tokens unattended. Users whose organization role is Org Viewer cannot manage or list product-scoped tokens, whatever their product role. Project-scoped and product-scoped API tokens cannot manage them either. A revoked token is refused on its next request. When you delete a product, its tokens reach no project. They stay in the organization's API token list, where you can revoke them. > [tab] Web UI > > To manage the tokens of one product, open the product, open the **Actions** menu, and select **Manage API tokens**. The sheet lists the product's tokens. Use **Filter** to show revoked tokens, **Create** to create a token, and the row action to revoke a token. When you create a token, the form states how many projects the product's tokens reach, and warns you when the product has no projects. > > ![The Manage API tokens sheet of a product, listing its tokens](https://mintcdn.com/chainloop/UGTyOFPmiIoOdQN3/reference/img/product-api-tokens.png?fit=max\&auto=format\&n=UGTyOFPmiIoOdQN3\&q=85\&s=96b9eecc55c01086ed28c461d8e758d1) > > You can also create a product-scoped token in the [API Tokens Section](https://app.chainloop.dev/settings?tab=api-tokens): select **Create**, set **Scope** to **Product**, and select the product. The organization's list shows the product as the scope of its tokens. > > ![The Create API Token sheet with the product scope selected](https://mintcdn.com/chainloop/UGTyOFPmiIoOdQN3/reference/img/api-tokens-product-scope.png?fit=max\&auto=format\&n=UGTyOFPmiIoOdQN3\&q=85\&s=be7767ac51360b201760a1ff304b7d23) > > The token value is shown once, right after you create the token. Copy it then: you cannot see it again. > [tab] CLI > > ```sh theme={"dark"} > # Create a token for a product. The token value is printed once. > chainloop product api-token create --product --name > > # List the product's tokens. Add --all to include revoked tokens. > chainloop product api-token list --product > > # Revoke a token > chainloop product api-token revoke --product --id > ``` > > See the [CLI reference](/cli/reference#chainloop-product-api-token) for all the options. Use a product-scoped token like any other API token. In commands that need a project, name one of the product's projects: ```sh theme={"dark"} CHAINLOOP_TOKEN= chainloop attestation init --workflow --project ``` ### Auto-Revocation of Inactive Tokens Organization administrators can configure Chainloop to automatically revoke API tokens that have not been used within a defined period. This helps reduce the risk of long-lived, forgotten tokens being misused. A background job runs **hourly** and checks all active tokens in your organization. A token is considered inactive if: * Its **last used** timestamp is older than the configured threshold, **or** * It has **never been used** and was created before the threshold. #### Enable Auto-Revocation > [tab] Web UI > > Navigate to the [API Tokens settings page](https://app.chainloop.dev/settings?tab=api-tokens) and click the **Auto revoke** button to configure the inactivity threshold. > > ![The Auto revoke dialog configuring the days of inactivity threshold](https://mintcdn.com/chainloop/vTuUKiGCwGJ__XFJ/reference/img/api-token-auto-revocation.png?fit=max\&auto=format\&n=vTuUKiGCwGJ__XFJ\&q=85\&s=501272d7288b04a019c8def379f07359) > [tab] CLI > > Use the `chainloop organization update` command to set the maximum number of inactive days. Valid values are **1 to 365**. > > ```bash theme={"dark"} > # Revoke tokens inactive for more than 90 days > chainloop organization update --api-token-max-days-inactive 90 > ``` > [!NOTE] > > This feature is **off by default**. You must explicitly set a threshold to enable it. The setting is configured per organization. #### Disable Auto-Revocation To turn off auto-revocation, set the threshold to `0` or toggle it off in the Web UI: ```bash theme={"dark"} chainloop organization update --api-token-max-days-inactive 0 ``` #### View the Current Setting To check the current auto-revocation threshold for your organization: ```bash theme={"dark"} chainloop organization describe ``` If enabled, the output will include the configured threshold, for example `API token auto-revoke after: 90 days inactive`. ## Keyless OIDC Authentication In some cases, like in GitLab, you can leverage their CI/CD machine identity to authenticate with Chainloop instead of Chainloop API tokens. More info here * Purpose: * For non-interactive use (automation) such as CI/CD. * To perform attestations Check the [GitLab Keyless Attestations](/guides/gitlab-keyless) guide for more information. # Audit Logs Source: https://docs.chainloop.dev/reference/audit-logs Audit logs are structured records that chronologically document events and activities within a system, application, or network. They capture and store details of actions performed by users, system components, or external entities, ensuring transparency, security, and regulatory compliance. > [!NOTE] > > Audit logs do not contain all the events in the system yet, this is an ongoing effort and more events will be added in future updates. ## Key Concepts Audit logs in Chainloop revolve around two main concepts: **Actor Type** and **Target Type**. ### Actor Type The Actor Type represents the entity responsible for triggering an event. * User – Events initiated by users within your organization. * API Token – Events initiated by an API Token, such as updating a Workflow Contract. * System – Events triggered by the system itself or the Chainloop Team. Currently, these events occur when modifications are made to built-in resources such as Policies, Requirements, or Frameworks. These changes are logged across all organizations for transparency. ### Target Type The Target Type represents the entity affected by an action performed by an Actor. ## Audit Log Forwarders > [!WARNING] > > This feature is only available for on-premise installations of Chainloop. The Audit Log Forwarder allows platform operators to send event logs to external services. Currently, this is supported via a Webhook. To configure an Audit Log Forwarder, the following configuration can be modified from the Platform's Helm Chart `values.yaml`. ```yaml theme={"dark"} backend: ## @param backend.auditLogForwarders Audit log forwarders configuration. Configure forwarders ## to send audit logs to external services ## @extra backend.auditLogForwarders[].kind The kind of forwarder, currently only webhook is supported ## @extra backend.auditLogForwarders[].uri The URL of the webhook ## @extra backend.auditLogForwarders[].token The bearer token to authenticate with the webhook ## @extra backend.auditLogForwarders[].method The HTTP method to use when sending the audit logs auditLogForwarders: [] ``` Example configuration: ```yaml theme={"dark"} backend: auditLogForwarders: - kind: webhook uri: https://webhook.site token: THE-SECRET-TOKEN method: POST ``` Note that the request sent has the user-agent `Chainloop-Audit-Logger/1.0` and the application/json content type. # SCM Protection Policies Source: https://docs.chainloop.dev/reference/branch-protection-policies > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). While using the Chainloop CLI Enterprise Edition to gather the extended [runner context](/reference/runner-context) Chainloop allows you to define policies that verify the good practices and security configuration related to your CI/CD environment. ## Supported policies The following policies are supported and can be used with the [runner context](/reference/runner-context) data. ### Branch protection * **branch-deletion-blocked** - Ensures that branch deletion is blocked to protect important branches from accidental deletion. * **branch-force-push-blocked** - Ensures that force pushes are blocked on branches to prevent bypassing code review and history integrity. * **branch-linear-history-required** - Ensures that branches require linear history to prevent merge commits and maintain a clean commit history. * **repository-rules-change-restricted** - Ensures that repository rules can only be changed by approved teams, protecting against unauthorized modifications to security policies. | Policy | What it checks | GitHub classic setting | GitHub ruleset rule | GitLab setting | GitLab tier | | - | - | - | - | - | - | | `branch-deletion-blocked` | The branch cannot be deleted | Uncheck **Allow deletions** | Check **Restrict deletions** | The branch is protected | All tiers | | `branch-force-push-blocked` | Force pushes to the branch are blocked | Uncheck **Allow force pushes** | Check **Block force pushes** | The branch is protected and **Allowed to force push** is off (the default) | All tiers | | `branch-linear-history-required` | The branch history has no merge commits | Check **Require linear history** | Check **Require linear history** | Project merge method is **Fast-forward merge** or **Merge commit with semi-linear history**. Also protect the branch to block direct pushes | All tiers | | `repository-rules-change-restricted` | Only authorized users and teams can change or remove branch protection | Admins and custom roles with the **Edit repository rules** permission | Admins and custom roles with the **Edit repository rules** permission | **Allowed to unprotect** on each protected branch (set through the protected branches API) | Premium or Ultimate | On GitHub, new rulesets start as **Disabled**: set the enforcement status to **Active** or the policies do not see the ruleset. To allow specific users or teams to change branch protection, set the `allowlist` input of `repository-rules-change-restricted` (`authorized_admins` in the **branch-protection** policy group). On GitHub, use `user:` (or `collaborator:`) and `team:`, for example `user:alice,team:security`. On GitLab, use role names such as `Maintainers`, user display names or group names. A GitLab allowlist replaces the default `Maintainers`, so list `Maintainers` explicitly to keep it. ### Pull request protection * **pr-code-owner-review-required** - Ensures that code owner reviews are required for pull requests. * **pr-conversation-resolution-required** - Ensures that all conversations on pull requests must be resolved before merging. * **pr-review-required** - Ensures that pull requests require a minimum number of reviewers before merging. * **pr-stale-reviews-dismissed** - Ensures that stale pull request reviews are automatically dismissed when new commits are pushed. These policies check the repository settings, not a specific pull request. To check the approvals of a pull request, use `pr-min-approvals`. | Policy | What it checks | GitHub classic setting | GitHub ruleset rule | GitLab setting | GitLab tier | | - | - | - | - | - | - | | `pr-review-required` | Minimum number of approvals required before merging (the highest value that applies to the branch) | **Required number of approvals before merging** | **Required approvals** in **Require a pull request before merging** | **Approvals required** in an approval rule whose target branch is the branch or **All protected branches**. Rules that target **All branches** are not read | Premium or Ultimate | | `pr-stale-reviews-dismissed` | Approvals are dismissed when new commits are pushed | **Dismiss stale pull request approvals when new commits are pushed** | Same option in **Require a pull request before merging** | Project approval setting **When a commit is added** set to **Remove all approvals** | Premium or Ultimate | | `pr-code-owner-review-required` | Changes to files with code owners need a code owner's approval (owners come from a `CODEOWNERS` file) | **Require review from Code Owners** | **Require review from Code Owners** | **Code owner approval** on the protected branch | Premium or Ultimate | | `pr-conversation-resolution-required` | All review conversations must be resolved before merging | **Require conversation resolution before merging** | **Require conversation resolution before merging** in **Require a pull request before merging** | Merge check **All threads must be resolved** (a project setting, applies to every branch) | All tiers | ### Commit protection * **commits-signed-required** - Ensures that all commits are signed to verify their authenticity and integrity. | Policy | What it checks | GitHub classic setting | GitHub ruleset rule | GitLab setting | GitLab tier | | - | - | - | - | - | - | | `commits-signed-required` | The branch rejects unsigned commits | **Require signed commits** | **Require signed commits** | Push rule **Reject unsigned commits** | Premium or Ultimate | Once signed commits are required on GitHub, **Rebase and merge** cannot be used in the GitHub UI because GitHub cannot sign rebased commits. On GitLab, commits created in the UI or API are still accepted unsigned. ### Using the policy groups The branch protection policies and the code review policies are also available as the **branch-protection** and **code-review** policy groups. Both evaluate the `runner-context` material, so name it that way when you [add it to the attestation](/reference/runner-context#add-the-runner-context-to-the-attestation). ```yaml theme={"dark"} policyGroups: - ref: branch-protection with: branches: "main" ``` ```yaml theme={"dark"} policyGroups: - ref: code-review with: branches: "main" min_reviewers: "2" ``` > [!NOTE] > > **Branch patterns.** The `branches` input is a comma-separated list of patterns, for example `main,release/*`. `*` matches within one path segment (`release/*` matches `release/1.0` but not `release/1.0/hotfix`) and `**` also crosses `/`. If `branches` is not set, every branch in the runner context is checked, including unprotected feature branches, so set it to the branches you protect. The `--branches` flag of `chainloop gather-runner-context` uses the same rule. > [!NOTE] > > **GitLab notes.** > > * Protected branches cannot be deleted with Git, but Maintainers and Owners can still delete them from the GitLab UI or API. `branch-deletion-blocked` passes when the branch is protected. > * **Merge commit with semi-linear history** passes `branch-linear-history-required`, but it still adds a merge commit for every merge. Use **Fast-forward merge** for a strictly linear history. > * **Allowed to unprotect** is available on GitLab Premium and Ultimate and can only be set through the protected branches API. > * Protected branch settings are in **Settings > Repository > Branch rules** (**Protected branches** on older GitLab versions). ### Pull request quality These policies evaluate built-in attestation metadata captured automatically by Chainloop and do not require runner context data. * **pr-description-required** - Ensures that pull requests have a description providing context about the changes. * **pr-user-story-linked** - Ensures that pull requests are linked to a user story or issue for traceability. ### Tag protection * **tag-deletion-blocked** - Ensures that tag deletion is blocked to prevent supply chain attacks via tag manipulation. * **tag-force-push-blocked** - Ensures that force pushes to tags are blocked to prevent tag history rewriting. * **tag-rules-change-restricted** - Ensures that tag protection rules can only be changed by authorized actors. These policies are also available as the **tag-protection** policy group, which bundles all three together: ```yaml theme={"dark"} policyGroups: - ref: tag-protection with: tags: "v**" authorized_bypass: "role:Repository Admin" ``` ### Patch management * **patch-policy-present** - Verifies that automated patch management tooling is configured and actively monitoring third-party dependencies for known vulnerabilities. On GitHub, checks that Dependabot security updates are enabled. On GitLab, checks for the presence of a Renovate configuration file. This policy evaluates the runner context data and can be added to your existing SCM configuration check contract: ```yaml theme={"dark"} policies: materials: - ref: patch-policy-present ``` ### Immutable releases * **immutable-releases-enabled** - Verifies that GitHub Immutable Releases is enabled for the repository. When enabled, published release artifacts and their associated tags cannot be modified or deleted, protecting the integrity of the software supply chain. This is a GitHub-specific feature; the policy skips on GitLab repositories. ```yaml theme={"dark"} policies: materials: - ref: immutable-releases-enabled ``` ### Bot PR verification * **pr-bot-author-allowed** - Verifies that a PR/MR was authored by one of the allowed bot accounts. Useful for gating workflows that should only accept PRs from automated tools such as Dependabot or Renovate. This policy evaluates `CHAINLOOP_PR_INFO` metadata and accepts an optional `allowed_bots` input (comma-separated list of bot login names). If not specified, it defaults to `dependabot[bot]` and `renovate[bot]`. > [!NOTE] > > On GitLab, bot detection relies on the [`author.bot`](https://docs.gitlab.com/api/users.html) field from the Merge Request API. Regular user accounts used for automation (e.g., Renovate with a PAT) will **not** be detected as bots unless provisioned as a [GitLab service account](https://docs.gitlab.com/api/group_service_accounts.html). Adding a regular user's login to `allowed_bots` has no effect, because the policy skips any author that is not a bot. See the [Gating Bot-Authored PRs guide](/guides/pr-policies-control-gate#gating-bot-authored-prs) for details. > [tab] GitHub > > ```yaml theme={"dark"} > policies: > materials: > - ref: pr-bot-author-allowed > gate: true > with: > allowed_bots: "dependabot[bot],github-actions[bot]" > ``` > [tab] GitLab > > ```yaml theme={"dark"} > policies: > materials: > - ref: pr-bot-author-allowed > gate: true > with: > allowed_bots: "project_123_bot_abc123" > ``` # Builtin functions for Rego policies Source: https://docs.chainloop.dev/reference/builtin-functions In addition to the [Rego builtin functions](https://www.openpolicyagent.org/docs/policy-reference/builtins), Chainloop's Rego engine has been enhanced with additional functions that can be used to interact with Chainloop APIs and features. All API calls to Chainloop services will use the same authentication context configured in the CLI (by using `chainloop auth login` or `CHAINLOOP_TOKEN`). This is the list of APIs supported currently: #### chainloop.discover Calls Chainloop's Discover API. It's the same as `chainloop discover --digest sha256:foobar` **Usage**: `chainloop.discover(digest, kind)` **Arguments**: * `digest` (string): artifact digest in the form of `sha256:foobar` * `kind` (string, optional): optional filter by [kind](/concepts/material-types) to disambiguate **Returns**: same payload as [`chainloop discover`](/cli/reference#chainloop-discover) CLI call. A JSON with the artifact metadata and the list of referenced artifacts. Example: ```json theme={"dark"} { "digest": "sha256:79261a7ebb2955f1c54c092bee6ee0e16ad6d096ed51f599412a50b356b247c9", "kind": "CONTAINER_IMAGE", "downloadable": false, "public": true, "createdAt": "2025-11-19T10:37:45.937172Z", "references": [ { "digest": "sha256:5319f1abba10ae602a92c0e4b5bfd6e59e6dcadaae68c57f0b55cc7ff96d7e57", "kind": "ATTESTATION", // ... other metadata }, { "digest": "sha256:d0d10a109a55c16118c622daefd276a5641be81bb024e1f30eedbef3eb9b9c49", "kind": "ATTESTATION", // ... other metadata }, { "digest": "sha256:ad71aa55f6016aa83a1418bdb1337a889f1df47173ec640813911f0cbb00d3b1", "kind": "ATTESTATION", // ... other metadata } ] } ``` #### chainloop.evidence Lists evidence stored in the platform by querying the Evidence service (see **[API Reference](/api-reference/overview) - EvidenceService/List**). Use this to retrieve evidence metadata across projects and workflows for compliance validation. > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). **Usage**: `chainloop.evidence(filters)` **Arguments**: * `filters` (object): filter object with optional fields: * `project_name` (string, optional): name of the project to filter by * `project_version_name` (string, optional): name of the project version to filter by * `kind` (array of strings, optional): array of [material types](/concepts/material-types) to filter by (e.g., `["SBOM_CYCLONEDX_JSON", "HELM_CHART"]`) * `workflow_name` (array of strings, optional): array of workflow names to filter by * `search` (string, optional): search term to filter evidence by name or subject name * `latest` (boolean, optional): if true, only the latest evidence for each kind and name is returned * `hide_attestation` (boolean, optional): if true, excludes attestation evidence from the results * `product_id` (string, optional): ID of the product to filter evidence by * `product_version_id` (string, optional): ID of the product version to filter evidence by * `limit` (number, optional): maximum number of results to return per page **Returns**: object with evidence data. Example: ```json theme={"dark"} { "results": [ { "id": "550e8400-e29b-41d4-a716-446655440000", "name": "my-helm-chart", "digest": "sha256:abc123...", "kind": "HELM_CHART", "subject_name": "myapp", "subject_version": "1.0.0", "annotations": { "key": "value" }, "organization_id": "660e8400-e29b-41d4-a716-446655440000", "organization_name": "My Org", "workflow_id": "770e8400-e29b-41d4-a716-446655440000", "workflow_name": "build-pipeline", "workflow_run_id": "880e8400-e29b-41d4-a716-446655440000", "project_id": "990e8400-e29b-41d4-a716-446655440000", "project_name": "my-project", "project_version_id": "aa0e8400-e29b-41d4-a716-446655440000" } ] ``` **Example usage**: ```rego theme={"dark"} violations contains msg if { ev := chainloop.evidence({ "project_name": input.args.project_name, "kind": ["HELM_CHART"], }) count(evidences.results) == 0 msg := sprintf("No HELM_CHART found for project '%s'", [input.args.project_name]) } ``` #### chainloop.project_compliance Retrieves project-level compliance data (see **[API Reference](/api-reference/overview) - ComplianceService/Get project-level compliance evaluation**) for all requirements. Use this to check compliance status for a project version. > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). **Usage**: `chainloop.project_compliance(filters)` **Arguments**: * `filters` (object): filter object with: * `project_version_id` (string, required): UUID of the project version to check compliance for * `framework_ids` (optional): array of framework IDs. If not provided, returns requirements from all frameworks associated with the project version * `limit` (number, optional): maximum number of results to return per page **Returns**: object with compliance evaluation data. Example: ```json theme={"dark"} { "evaluations": [ { "requirement_id": "bb0e8400-e29b-41d4-a716-446655440000", "requirement_version_id": "cc0e8400-e29b-41d4-a716-446655440000", "requirement_revision": 1, "name": "sbom-required", "display_name": "SBOM Required", "description": "All builds must generate an SBOM", "project_version_id": "dd0e8400-e29b-41d4-a716-446655440000", "framework_id": "ee0e8400-e29b-41d4-a716-446655440000", "status": "fail", "created_at": "2025-12-10T10:00:00Z" } ] } ``` **Example usage**: ```rego theme={"dark"} violations contains msg if { ev := chainloop.project_compliance({ "project_version_id": input.args.project_version_id, }) some eval in ev.evaluations eval.status == "fail" msg := sprintf("Requirement '%s' is failing in project", [eval.name]) } ``` #### chainloop.evidence_prompt Evaluates evidence using AI-powered analysis. The function sends evidence content along with a prompt to an AI agent for evaluation, enabling automated compliance checks such as license analysis, vulnerability assessment, or custom validation logic. > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). **Usage**: `chainloop.evidence_prompt(evidence, prompt)` **Arguments**: * `evidence` (string): CAS digest (`sha256:...`) or raw evidence content to evaluate * `prompt` (string): the prompt to be passed on to the AI agent for evaluation **Returns**: response object with the AI evaluation result. Example: ```json theme={"dark"} { "skipped": false, "violations": [ "License 'AGPL-3.0' found in component 'libfoo' is not approved" ] } ``` When the AI analysis is skipped (e.g., if the feature is not enabled), `skipped` will be `true` and `violations` will be empty. **Example usage**: ```rego theme={"dark"} # Call the evidence_prompt built-in function prompt_result := chainloop.evidence_prompt(material.hash, "Analyze this SBOM for non-OSS licenses") # Return violations from AI analysis violations contains violation if { not prompt_result.skipped some violation in prompt_result.violations } ``` #### chainloop.download_artifact Downloads an artifact using the Chainloop CAS service. It allows to inject content into policy evaluation context. Note that binary content will be encoded as base64. > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). **Usage**: `chainloop.download_artifact(digest)` **Arguments**: * `digest` (string): CAS digest (`sha256:...`) of the artifact to download **Returns**: raw artifact content. **Example usage**: ```rego theme={"dark"} sbom_content := chainloop.download_artifact(input.args.digest) parsed := json.unmarshal(sbom_content) # Return violations from SBOM content violations contains msg if { parsed.bomFormat != "CycloneDX" msg := "Only CycloneDX format is supported" } ``` # EU Cyber Resilience Act (CRA) Source: https://docs.chainloop.dev/reference/cyber-resilience-act The EU Cyber Resilience Act (CRA) is an European Union regulation, [Regulation (EU) 2024/2847](https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:02024R2847-20241120), part of the EU Cybersecurity Strategy. With this regulation, the EU aims to ensure that software producers take cybersecurity seriously from the design and development phases through to production and post-market activities — including vulnerability handling and security updates — to minimize risks once products are placed on the EU market. It also seeks to encourage users to consider cybersecurity when selecting such products. ![CRA Summary](https://mintcdn.com/chainloop/Ek6H2Gqmn0rZEN4y/reference/img/cra-summary.svg?fit=max\&auto=format\&n=Ek6H2Gqmn0rZEN4y\&q=85\&s=c085d09e4d47bf08745bea3fb0f8a603) The regulation sets the boundary conditions for the development of secure products and enhances the visibility of cybersecurity-related information for both notified bodies (auditors) and consumers. The regulation also covers the European Commission's obligations to oversee and facilitate the effective implementation of the CRA and defines processes for the conformity assessment and certification process. Software producers are generally allowed to self-assess their products' conformity with the essential cybersecurity requirements based on internal production controls. However, conformity assessment must involve a notified body for products classified as critical. Ongoing surveillance by the notified body is also required for the highest-risk products. Summary of the software producers' obligations under the EU CRA: * Integrate security measures based on risk assessments in design, development, and production, and demonstrate compliance with the essential cybersecurity requirements in Annex I, Part I. * Address vulnerabilities throughout the product lifecycle and provide timely security updates, demonstrating compliance with Annex I, Part II. * Report actively exploited vulnerabilities and significant cybersecurity incidents to ENISA, as required by Article 14. * Clearly communicate cybersecurity features, update policies, and support periods to users, as required in Annex II. * Prepare technical documentation and keep it up to date during the product support period in accordance with Article 31 and Annex VII. * Affix the CE marking to demonstrate conformity, as required by Article 19. * Issue a written EU Declaration of Conformity for each product and retain it for 10 years or the support period, whichever is longer, as referenced in Article 20 and Annex VI. While some of the Cyber Resilience Act's requirements are specific and clear, such as the obligation to affix the CE marking, report active exploits to ENISA, or maintain a declaration of conformity to demonstrate compliance for up to 10 years, other provisions are more general or open-ended, allowing manufacturers to rely on existing cybersecurity frameworks for implementation. This **flexibility enables alignment with established best practices and standards, offering manufacturers the opportunity to meet the regulation’s cybersecurity objectives in a manner that suits their particular needs.** ## How Chainloop Helps You Track and Verify CRA Compliance Chainloop currently prioritizes compliance with the essential cybersecurity requirements concerning the security properties of products with digital elements and vulnerability handling, as outlined in [Annex I](https://eur-lex.europa.eu/eli/reg/2024/2847/oj/eng#anx_I) of the Cyber Resilience Act. To support this, Chainloop provides a set of automated policies and manual assessment checks designed to help organizations understand their current compliance posture. While this toolkit will evolve over time, it offers a strong starting point for identifying gaps and aligning with key CRA obligations. At its core, the CRA is about applying proven security best practices. Even though harmonised standards are still under development, organizations can — and should — begin aligning today by adopting industry-recognized security practices. This lays the groundwork for a structured and sustainable path toward full compliance. ### Part I: Cybersecurity requirements concerning the security properties of the products List of requirements for manual confirmation to ensure that cybersecurity is embedded into the design and development processes. | Requirement | Description | Chainloop Policy | | - | - | - | | `cra-cybersecurity-req-1` | Products with digital elements shall be designed, developed and produced in such a way that they ensure an appropriate level of cybersecurity based on the risks. | Self-assessment | | `cra-cybersecurity-req-2-a` | Products with digital elements shall be made available on the market without known exploitable vulnerabilities. | Self-assessment | | `cra-cybersecurity-req-2-b` | Products with digital elements shall be made available on the market with a secure by default configuration, unless otherwise agreed between manufacturer and business user in relation to a tailor-made product with digital elements, including the possibility to reset the product to its original state. | Self-assessment | | `cra-cybersecurity-req-2-c` | Products with digital elements shall ensure that vulnerabilities can be addressed through security updates, including, where applicable, through automatic security updates that are installed within an appropriate timeframe enabled as a default setting, with a clear and easy-to-use opt-out mechanism, through the notification of available updates to users, and the option to temporarily postpone them. | Self-assessement | | `cra-cybersecurity-req-2-d` | Products with digital elements shall ensure protection from unauthorised access by appropriate control mechanisms, including but not limited to authentication, identity or access management systems, and report on possible unauthorised access. | Self-assessment | | `cra-cybersecurity-req-2-e` | Products with digital elements shall protect the confidentiality of stored, transmitted or otherwise processed data, personal or other, such as by encrypting relevant data at rest or in transit by state of the art mechanisms, and by using other technical means. | Self-assessment | | `cra-cybersecurity-req-2-f` | Products with digital elements shall protect the integrity of stored, transmitted or otherwise processed data, personal or other, commands, programs and configuration against any manipulation or modification not authorised by the user, and report on corruptions. | Self-assessment | | `cra-cybersecurity-req-2-g` | Products with digital elements shall process only data, personal or other, that are adequate, relevant and limited to what is necessary in relation to the intended purpose of the product with digital elements (data minimisation). | Self-assessment | | `cra-cybersecurity-req-2-h` | Products with digital elements shall protect the availability of essential and basic functions, also after an incident, including through resilience and mitigation measures against denial-of-service attacks. | Self-assessment | | `cra-cybersecurity-req-2-i` | Products with digital elements shall minimise the negative impact by the products themselves or connected devices on the availability of services provided by other devices or networks. | Self-assessment | | `cra-cybersecurity-req-2-j` | Products with digital elements shall be designed, developed and produced to limit attack surfaces, including external interfaces. | Self-assessment | | `cra-cybersecurity-req-2-k` | Products with digital elements shall be designed, developed and produced to reduce the impact of an incident using appropriate exploitation mitigation mechanisms and techniques. | Self-assessment | | `cra-cybersecurity-req-2-l` | Products with digital elements shall provide security related information by recording and monitoring relevant internal activity, including the access to or modification of data, services or functions, with an opt-out mechanism for the user. | Self-assessment | | `cra-cybersecurity-req-2-m` | Products with digital elements shall provide the possibility for users to securely and easily remove on a permanent basis all data and settings and, where such data can be transferred to other products or systems, ensure that this is done in a secure manner. | Self-assessment | ### Part II: Vulnerability handling requirements Our manual evidence and automated policies verify that your vulnerability management process follows industry-recommended practices that support compliance with the CRA: ![Vulnerability management process](https://mintcdn.com/chainloop/Ek6H2Gqmn0rZEN4y/reference/img/cra-vulnerability-management.svg?fit=max\&auto=format\&n=Ek6H2Gqmn0rZEN4y\&q=85\&s=20d4a762bed0819aff3b75dcb7beaa89) > Manufacturers of products with digital elements shall identify and document vulnerabilities and components contained in products with digital elements, including by drawing up a software bill of materials in a commonly used and machine-readable format covering at the very least the top-level dependencies of the products. | Requirement | Description | Chainloop Policy | | - | - | - | | `cra-vulnerability-handling-req-1` | Identify all components included in your software: an SBOM is present and includes the generally adopted minimum elements recommended by the [US National Telecommunications and Information Administration](https://www.ntia.gov/sites/default/files/publications/sbom_minimum_elements_report_0.pdf). Perform regular vulnerability scanning to detect known issues across all software components: an SCA scan is performed daily. | `sbom-present` (automatic), `sbom-ntia` (automatic), `vulnerability-scan-present(periodicity:daily)` (automatic) | > Manufacturers of products with digital elements shall in relation to the risks posed to products with digital elements, address and remediate vulnerabilities without delay, including by providing security updates; where technically feasible, new security updates shall be provided separately from functionality updates. | Requirement | Description | Chainloop Policy | | - | - | - | | `cra-vulnerability-handling-req-2` | Remediate vulnerabilities based on risk: Critical vulnerabilities are fixed within 2 days. | `vulnerabilities(severity:critical SLA:48h)` (automatic) | > Manufacturers of products with digital elements shall apply effective and regular tests and reviews of the security of the product with digital elements. | Requirement | Description | Chainloop Policy | | - | - | - | | `cra-vulnerability-handling-req-3` | Perform regular vulnerability scanning to detect known issues across all software components: an SCA scan is performed daily. | `vulnerability-scan-present(periodicity:daily)` (automatic) | > Manufacturers of products with digital elements shall once a security update has been made available, share and publicly disclose information about fixed vulnerabilities, including a description of the vulnerabilities, information allowing users to identify the product with digital elements affected, the impacts of the vulnerabilities, their severity and clear and accessible information helping users to remediate the vulnerabilities; in duly justified cases, where manufacturers consider the security risks of publication to outweigh the security benefits, they may delay making public information regarding a fixed vulnerability until after users have been given the possibility to apply the relevant patch. | Requirement | Description | Chainloop Policy | | - | - | - | | `cra-vulnerability-handling-req-4` | Information disclosure: Publish security advisories with required information. | `security-advisories-public` (manual evidence), `security-advisories-process-exists` (manual evidence), `security-advisories-process` (manual evidence), `security-advisory-details` (manual evidence) | > Manufacturers of products with digital elements shall put in place and enforce a policy on coordinated vulnerability disclosure. | Requirement | Description | Chainloop Policy | | - | - | - | | `cra-vulnerability-handling-req-5` | Maintain a coordinated vulnerability disclosure (CVD) policy, outlining how reports are handled and timelines for response. | `cvd-process-exists` (manual evidence), `cvd-triggering-communicated` (manual evidence), `cvd-team-defined` (manual evidence), `cvd-response-guidance` (manual evidence), `cvd-communication-guidance` (manual evidence), `cvd-vendors-coordination` (manual evidence), `cvd-triggering-defined` (manual evidence), `cvd-rollout-guidance` (manual evidence) | > Manufacturers of products with digital elements shall take measures to facilitate the sharing of information about potential vulnerabilities in their product with digital elements as well as in third-party components contained in that product, including by providing a contact address for the reporting of the vulnerabilities discovered in the product with digital elements. | Requirement | Description | Chainloop Policy | | - | - | - | | `cra-vulnerability-handling-req-6` | Implement a vulnerability reporting mechanism to enable users and researchers to report issues. | `reporting-mechanism-exists` (manual evidence), `security-contact-exists` (manual evidence), `security-response-team-exists` (manual evidence), `security-response-sla-exists` (manual evidence), `reporting-mechanism-public` (manual evidence), `security-feeds-monitoring-exists` (optional manual evidence) | > Manufacturers of products with digital elements shall provide for mechanisms to securely distribute updates for products with digital elements to ensure that vulnerabilities are fixed or mitigated in a timely manner and, where applicable for security updates, in an automatic manner. | Requirement | Description | Chainloop Policy | | - | - | - | | `cra-vulnerability-handling-req-7` | Provide a mechanism for distribution of security updates. | `update-distribution-automatic` (optional manual evidence), `updates-distribution-public` (manual evidence), `updates-distribution-policy-exists` (manual evidence), `updates-distribution-information` (manual evidence) | > Manufacturers of products with digital elements shall ensure that, where security updates are available to address identified security issues, they are disseminated without delay and, unless otherwise agreed between a manufacturer and a business user in relation to a tailor-made product with digital elements, free of charge, accompanied by advisory messages providing users with the relevant information, including on potential action to be taken. | Requirement | Description | Chainloop Policy | | - | - | - | | `cra-vulnerability-handling-req-8` | Provide a mechanism for timely distribution of security updates and transparent disclosure of relevant vulnerability information to users. | `updates-distribution-timeline` (manual evidence), `updates-distribution-free` (manual evidence), `disclosure-policy-exists` (manual evidence), `disclosure-timeline-exception` (manual evidence) | # GitHub Permissions Source: https://docs.chainloop.dev/reference/github-permissions Every GitHub permission Chainloop requests, where it's requested, and which part of the product uses it. Chainloop interacts with GitHub in three different places, and each one has its own permission surface. This page is the consolidated reference. | Integration | Who installs / configures it | Where it's used | | - | - | - | | [Chainloop GitHub App](#chainloop-github-app) | A GitHub org admin, once per repository | Repo enrollment, [keyless attestations](/guides/github-keyless), [Chainloop Trace](/guides/chainloop-trace), [vulnerability auto-remediation](/concepts/vulnerability-management#assessment-and-auto-remediation-using-ai), sandbox-backed agent runs, SCM Configuration Check | | [GitHub Actions workflow permissions](#github-actions-workflow-permissions) | You, inside your own workflow YAML | [Keyless attestation](/guides/github-keyless), [PR-policies control gate](/guides/pr-policies-control-gate), [SLSA provenance](/guides/slsa) | | [Custom GitHub App / PAT for Runner Context](#runner-context-github-app-or-pat) | A GitHub org or enterprise admin | [`chainloop gather-runner-context`](/reference/runner-context) (CLI EE) | ## Chainloop GitHub App The Chainloop GitHub App is the integration installed from [**Integrations → Connect**](/guides/connect-repository) in the Chainloop Web UI. One installation covers every Chainloop feature that needs to talk to GitHub on your behalf — repository enrollment, AI session PR correlation, vulnerability auto-remediation, sandbox-backed agent runs, and the SCM Configuration Check. **What Chainloop persists vs. what it accesses transiently.** Chainloop only **persists** repository metadata (ID and name). Some features — [auto-remediation](/concepts/vulnerability-management#assessment-and-auto-remediation-using-ai), the Vulnerabilities Agent, and other sandbox-backed scans (SAST, secrets, vulnerability scanning) — do **clone** your repository, but always into an isolated sandbox using a short-lived, repo-scoped token (1 h TTL), and the source is discarded when the run ends. See [Scoped vs broad installation tokens](#scoped-vs-broad-installation-tokens) below. The user access token minted during [installer verification](#installer-verification-at-connection-time) is likewise transient — used for a single check and never stored. ### Installer verification (at connection time) When someone connects their GitHub organization from **Integrations**, Chainloop binds a GitHub App installation to their Chainloop organization. Before creating that binding it confirms the person completing the flow has access to the installation they are binding: they are sent through the App's **user-to-server OAuth** flow, and Chainloop calls `GET /user/installations/{installation_id}/repositories` with the resulting user access token to check that the installation is visible to them. This adds no repository permissions. It uses the App's OAuth identity — its client ID and client secret — rather than a repository grant, and the App's private key cannot substitute for it: the private key identifies the App, never the human in the browser. The user access token is used for that single check and is never persisted. Users see one extra GitHub authorization prompt the first time an installation is bound. Re-running the flow against an installation the organization already holds skips it, so adding and removing repositories is unaffected. On GitHub organizations that enforce SAML single sign-on, the user's GitHub session must be authorized for that organization first. Self-hosted deployments must supply the App's OAuth credentials for this to work — see the [GitHub App deployment guide](/guides/deployment/guides/github-app). ### Cumulative permission set Requested by the App manifest at install time. The "Where it's used" column points to the [per-feature breakdown](#per-feature-breakdown) below for detail. | Scope | Access | Why | Where it's used | | - | - | - | - | | **Metadata** | Read | Default GitHub App requirement; identifies the repository | Every feature | | **Contents** | Read & Write | Read commit metadata for PR correlation and clone repo contents for analysis (read); commit auto-remediation fixes (write) | [Trace](/guides/chainloop-trace), sandbox clone, [SCM check](/reference/branch-protection-policies), [auto-remediation](/concepts/vulnerability-management#assessment-and-auto-remediation-using-ai) | | **Pull requests** | Read & Write | Receive `pull_request` and `pull_request_review` webhook payloads, and read PR metadata, reviewers, and review states (read); open auto-remediation PRs (write) | [Trace](/guides/chainloop-trace), [PR validation](/reference/scanners#scanning-in-pull-requests), [auto-remediation](/concepts/vulnerability-management#assessment-and-auto-remediation-using-ai) | | **Issues** | Write | Post and update the Chainloop bot comment on PR conversations (GitHub treats PR conversation comments as issue comments) | [Trace PR summary comment](/guides/chainloop-trace#summary-comment) | | **Checks** | Read & Write | Publish the `Chainloop AI Policies` and `Chainloop PR Validation` check runs on the PR head commit | [Trace merge gate](/guides/chainloop-trace#chainloop-ai-policies-check-run), [PR validation](/reference/scanners#scanning-in-pull-requests) | | **Workflows** | Read & Write | Allow auto-remediation commits that modify GitHub Actions workflow files (`.github/workflows/*`) — GitHub rejects such commits from Apps without this scope, even with Contents write. Reading workflow files is already covered by Contents read | [Auto-remediation](/concepts/vulnerability-management#assessment-and-auto-remediation-using-ai) | | **Administration** | Read | Read branch protection settings and rulesets | [SCM Configuration Check](/reference/branch-protection-policies) | | **Members** | Read | Detect account type at install time and list org members (including 2FA status) for SCM hardening checks | Install flow, [SCM Configuration Check](/reference/branch-protection-policies) | > [!NOTE] > > The write grants are used only to post Chainloop's own comments, check runs, and auto-remediation PRs. Chainloop does not push to your default branch, modify code outside of remediation branches, or alter PR state authored by your team. ### Subscribed webhook events | Event | Why | | - | - | | `pull_request` | Trigger AI session correlation and [PR validation](/reference/scanners#scanning-in-pull-requests); resolve auto-remediation PRs on merge | | `pull_request_review` | Re-run PR validation when a review settles a reviewer's position | These two events are the only ones Chainloop processes. Both ride on the **Pull requests: Read** grant already listed above — subscribing to `pull_request_review` requires no additional scope. Self-hosted operators subscribe to these events themselves when creating the App; see the [GitHub App deployment guide](/guides/deployment/guides/github-app). #### Which actions are acted on Deliveries are filtered before any work happens, so most of them are dropped: | Path | Acted on | | - | - | | AI session correlation and the Trace summary comment | `pull_request` actions `opened`, `synchronize`, `reopened`, `closed`, `labeled`, `unlabeled` | | PR validation (`CHAINLOOP_PR_INFO` attestation + policy evaluation) | `pull_request` actions `opened`, `synchronize`, `reopened`, `edited`, `ready_for_review`, `closed`, plus qualifying `pull_request_review` deliveries | A `pull_request_review` delivery qualifies when the review is **dismissed**, or **submitted** with a state of **approved** or **changes requested**. Comment-only reviews and edits to an existing review body are dropped: they leave the reviewer's position unchanged, and re-validating on them would cost a full scan for nothing. Reviews drive re-validation because `CHAINLOOP_PR_INFO` carries each reviewer's review status: a policy that gates on it — a minimum-reviewers rule, for example — only re-evaluates once a fresh attestation is produced. ### Per-feature breakdown | Feature | Scopes used | Token type | Docs | | - | - | - | - | | [Installer verification](#installer-verification-at-connection-time) (at connection time) | None — App OAuth identity, no repository grant | **User access token** (transient, never stored) | [Deployment guide](/guides/deployment/guides/github-app) | | Repository import (after install) | Read: Metadata | Installation token | — | | [Keyless attestations](/guides/github-keyless) (repo enrollment) | Read: Metadata | Installation token | [Guide](/guides/github-keyless) | | [Chainloop Trace](/guides/chainloop-trace) — AI session correlation | Read: Contents, Pull requests Write: Issues | Installation token | [Guide](/guides/chainloop-trace) | | [Chainloop Trace](/guides/chainloop-trace) — AI policy check run | Write: Checks | Installation token | [Guide](/guides/chainloop-trace) | | [PR validation](/reference/scanners#scanning-in-pull-requests) — on PR and review events | Read: Metadata, Pull requests Write: Checks, Issues | Installation token | [Scanners](/reference/scanners#scanning-in-pull-requests) | | [Auto-remediation](/concepts/vulnerability-management#assessment-and-auto-remediation-using-ai) — open PR with the fix | Read: Metadata Write: Contents, Pull requests, Workflows *(only when the fix touches `.github/workflows/*`)* | Installation token | [Concept](/concepts/vulnerability-management) | | Auto-remediation — resolve on merge | None (webhook payload only) | n/a | [Concept](/concepts/vulnerability-management) | | Sandbox source clone (auto-assessment, vulnerability scan, SAST, secrets scan) | Read: Contents, Metadata *(scoped to one repo)* | **Scoped** installation token, 1 h TTL | [Vulnerability Management](/guides/vulnerability-management) | | SCM Configuration Check | Read: Administration, Contents, Metadata, Members *(scoped to one repo)* | **Scoped** installation token, 1 h TTL | [Branch Protection Policies](/reference/branch-protection-policies) | | [GitHub Actions OIDC verification](/guides/github-keyless) | None — public JWKS only | OIDC JWT (no GitHub API call) | [Guide](/guides/github-keyless) | ### Scoped vs broad installation tokens Two features — **sandbox source clone** and **SCM Configuration Check** — handle credentials destined for untrusted or short-lived environments. For these, Chainloop mints a **scoped** installation token narrowed to a single repository, with only the permissions strictly needed for that call, and a **1-hour TTL**. The broad installation token is used only for control-plane PR processing and auto-remediation PR creation, where the controlplane itself is the consumer. After the sandbox clones the repo, it rewrites the `origin` remote to the bare HTTPS URL so the short-lived credential never persists on disk. ### GitHub Enterprise Server (GHES) Every code path supports GitHub Enterprise Server. The App's `BaseURL` and `UploadURL` switch to `/api/v3` and `/api/uploads`, the OAuth endpoints used for installer verification are served from `/login/oauth/*`, and the clone URL is built from the installation's host field. The set of requested permissions is identical to github.com. ## GitHub Actions workflow permissions These are the `permissions:` blocks you add to **your own workflow YAML** when running Chainloop CLI steps. They are GitHub-native scopes on the workflow's `GITHUB_TOKEN` — Chainloop never sees this token directly, it just relies on the OIDC token GitHub mints when `id-token: write` is set. ### Keyless attestations The minimum block for a workflow that runs `chainloop attestation init` / `push` against a [keyless-enrolled](/guides/github-keyless) repository: ```yaml theme={"dark"} permissions: id-token: write # Mint an OIDC token Chainloop uses to identify your org ``` | Permission | Why | | - | - | | `id-token: write` | Required for keyless mode — the CLI exchanges the GitHub OIDC token for a Chainloop identity. Without it, the CLI falls back to expecting a `CHAINLOOP_TOKEN`. | ### PR-policies control gate When attesting pull request metadata for the [PR-policies control gate](/guides/pr-policies-control-gate), add read access to repo contents and the PR API: ```yaml theme={"dark"} permissions: contents: read id-token: write pull-requests: read ``` | Permission | Why | | - | - | | `contents: read` | Lets `actions/checkout` clone the repo so the CLI can compute commit-related evidence | | `id-token: write` | Keyless authentication to Chainloop (as above) | | `pull-requests: read` | Lets the PR-policies materials read PR metadata (author, labels, reviewers) needed by the bundled Rego policies | ### SLSA provenance workflows The [SLSA guide](/guides/slsa) workflows use the same `id-token: write` plus whatever scopes your build steps need (typically `contents: read`, and `packages: write` if you're pushing artifacts). Chainloop itself only requires `id-token: write` — the other scopes belong to your build, not to Chainloop. ## Runner Context (GitHub App or PAT) [Runner Context](/reference/runner-context) is a separate, **customer-operated** integration: you create a GitHub App (or PAT) in **your own** GitHub account so the Chainloop EE CLI can read repository security configuration during a CI run. This is a different identity from the Chainloop GitHub App above — Chainloop's servers never see this token; it stays inside your runner. > [!NOTE] > > Runner Context is a Chainloop EE feature. The token is yours, lives in your CI secrets, and is consumed by `chainloop gather-runner-context` inside the workflow run. ### Recommended: Custom GitHub App Permissions to configure when registering the app: | Scope | Level | Access | Why | | - | - | - | - | | **Administration** | Repository | Read & Write | GitHub's API requires write to return ruleset configuration details. The gatherer only reads — it does not modify settings. | | **Contents** | Repository | Read | Repository metadata and basic information | | **Members** | Organization | Read | Team member information for teams with repository access | | **Administration** | Organization | Read | Discover org-level team grants not visible through repo-specific endpoints | | **Custom Organization Roles** | Organization | Read | Resolve custom role names to their underlying permissions and base roles | | **Custom Repository Roles** | Organization | Read | Resolve custom repository role names | | **Custom Enterprise Roles** | Enterprise | Read | *Enterprise accounts only.* Retrieve enterprise-level custom roles assigned to teams or users | | **Custom Organization Roles** | Enterprise | Read | *Enterprise accounts only.* Resolve enterprise-propagated org role definitions | Additional setup: uncheck **Expire user authorization tokens** and **Webhook active** when creating the app. Full step-by-step is in the [Runner Context reference](/reference/runner-context). ### Alternative: Personal Access Token If you can't use a custom app, a fine-grained PAT works for non-enterprise accounts: | Scope | Access | Why | | - | - | - | | Repository: **Administration** | Read & Write | Required by GitHub's API for ruleset configuration access (read-only in practice) | | Repository: **Contents** | Read | Repository metadata | | Organization: **Members** | Read | Team member resolution | | Organization: **Administration** | Read | Team access discovery | **Enterprise GitHub accounts** must use a **Classic PAT** with the additional `read:enterprise` scope — fine-grained tokens do not support enterprise-level API endpoints. ## Quick summary by product feature If you're trying to figure out which permissions a specific Chainloop feature pulls in: | Feature | Permissions required | | - | - | | [Keyless attestations](/guides/github-keyless) | Workflow `id-token: write` + Chainloop GitHub App reads Metadata | | [Chainloop Trace PR correlation](/guides/chainloop-trace) | Chainloop GitHub App reads Contents, Pull requests; writes Issues, Checks. Subscribes to the `pull_request` webhook. | | [PR validation](/reference/scanners#scanning-in-pull-requests) | Chainloop GitHub App reads Metadata, Pull requests; writes Checks, Issues. Subscribes to the `pull_request` and `pull_request_review` webhooks. | | [PR-policies control gate](/guides/pr-policies-control-gate) | Workflow `contents: read`, `id-token: write`, `pull-requests: read` | | [SLSA provenance](/guides/slsa) | Workflow `id-token: write` (plus your own build scopes) | | [Vulnerability auto-remediation](/concepts/vulnerability-management) | Chainloop GitHub App reads Metadata; writes Contents, Pull requests, and Workflows when the fix touches workflow files (broad token). Uses the `pull_request` webhook for resolve-on-merge. | | Sandbox-backed agent runs ([vulnerability management](/guides/vulnerability-management), SAST, secrets scan) | Chainloop GitHub App reads Contents, Metadata (scoped per-repo token, 1 h TTL) | | SCM Configuration Check ([branch protection policies](/reference/branch-protection-policies)) | Chainloop GitHub App reads Administration, Contents, Metadata, Members (scoped per-repo token, 1 h TTL) | | [Runner Context](/reference/runner-context) | Customer-owned GitHub App or PAT — see [above](#runner-context-github-app-or-pat) | ## Related Resources * [Chainloop Trace guide](/guides/chainloop-trace) — full setup walkthrough and PR correlation behavior * [Keyless attestations in GitHub](/guides/github-keyless) — OIDC-based authentication from GitHub Actions * [PR-policies control gate](/guides/pr-policies-control-gate) — enforce PR quality with Chainloop policies * [CI/CD Runner Context](/reference/runner-context) — repository security configuration gathering # LLM Support Source: https://docs.chainloop.dev/reference/llm-support Bring your own AI provider and model to power Chainloop's AI features > [!NOTE] > > This page is about bringing your own model. On Chainloop SaaS, Chainloop configures the AI provider and the model for your organization automatically, and you do not need to do anything. Bring your own LLM provider key is only available on Chainloop's Enterprise [paid plan](https://chainloop.dev/pricing). ## Overview Chainloop uses Large Language Models (LLMs) to power its AI features, for example: * [Ask Chainloop](/concepts/ask-chainloop), the natural-language assistant on the web and in Slack. * [LLM-driven policies](/guides/llm-policies) and the [`chainloop.evidence_prompt`](/reference/builtin-functions#chainloopevidence_prompt) builtin function. * [Automatic risk assessment and auto-remediation](/concepts/vulnerability-management#assessment-and-auto-remediation-using-ai) of vulnerability findings. * The [AI session score](/reference/ai-score) of AI coding sessions. * [AI Code Analysis](/concepts/ai-code-analysis) of your repositories. To use your own account, register an AI provider from the [Integrations page](https://app.chainloop.dev/integrations?filterType=ai-provider) of your organization. All AI requests then go to your provider, with your key and the model that you choose. Rate limits and usage costs are governed by your provider account. You can rotate or disconnect the key at any time. When you disconnect it, AI requests stop, and the rest of the platform keeps working. ![AI Provider integrations](https://mintcdn.com/chainloop/i7LPwzemSBO4bbcz/reference/img/llm-support-ai-providers.png?fit=max\&auto=format\&n=i7LPwzemSBO4bbcz\&q=85\&s=dfa961fca5e8cb2ad34b5843ac35a7c0) ## Supported Providers Chainloop supports two provider types: Anthropic and OpenAI. Each one can connect to the public API of the vendor, or to a custom endpoint that serves a compatible API. | Integration | Endpoint | Tested with | | - | - | - | | **Anthropic** | Anthropic API, or any Anthropic-compatible endpoint | Anthropic API, Claude on Microsoft Foundry, OpenRouter | | **OpenAI** | OpenAI API, or any OpenAI-compatible endpoint | OpenAI API, Azure OpenAI (Microsoft Foundry), OpenRouter | You choose the model with the **Model Name** field. Leave it empty on the public Anthropic or OpenAI API to use the default model. With a custom endpoint, the model name is required. > [!WARNING] > > If your organization has both an OpenAI and an Anthropic connection, the AI features use OpenAI first. To use only Anthropic, remove the OpenAI connection. ## Model Requirements Any model works if it has enough capabilities for the AI features. The model and the endpoint must support: * A context window of one million tokens. * Tool calling, for Ask Chainloop. * Strict structured output, `response_format` with a `json_schema` on OpenAI-compatible endpoints, for evidence evaluation and Slack replies. * The Responses API (`/responses`) on OpenAI-compatible endpoints, for the AI agents and AI Code Analysis. A model that lacks one of these capabilities fails in the feature that needs it. ## Anthropic Register an Anthropic integration to use Claude models. **Registration fields:** | Field | Required | Description | | - | - | - | | Name | Yes | A unique name for this registration | | Description | No | Optional description | | Endpoint | No | A custom Anthropic-compatible endpoint. Leave it empty to use the Anthropic API | | Model Name | With a custom endpoint | The model that Chainloop sends every request to | | Api Key | Yes | The API key of your provider | ### Anthropic API Leave **Endpoint** empty. Requests go to `https://api.anthropic.com`. **Model Name** is optional. ### Claude on Microsoft Foundry Enter the Anthropic endpoint of your Foundry resource, without `/v1`, for example `https://.services.ai.azure.com/anthropic`. Use the API key of the Foundry resource. Set **Model Name** to the name of your Claude deployment. Foundry serves Claude under deployment names that you choose and has no model list, so Chainloop cannot find the model without it. ### Anthropic-compatible gateway Use this option for OpenRouter, gateways such as Bifrost or LiteLLM, an internal proxy or a regional front door. Enter the base URL to which Chainloop appends `/v1/messages`. Do not include `/v1` yourself. * For a gateway that routes by a path segment, such as Bifrost, include that segment. If the messages endpoint is `https://gateway.example.com/anthropic/v1/messages`, enter `https://gateway.example.com/anthropic`. * For a single-provider proxy, a regional front door or a gateway that routes by model, such as LiteLLM, the host is usually enough, for example `https://gateway.example.com`. Set **Model Name** to the exact name that the gateway serves. > [!TIP] > > Chainloop authenticates with the standard Anthropic `x-api-key` header. For a gateway that requires `Authorization: Bearer` instead, use the OpenAI integration with the OpenAI-compatible endpoint of the gateway. ## OpenAI Register an OpenAI integration to use OpenAI models, or any model behind an OpenAI-compatible endpoint. **Registration fields:** | Field | Required | Description | | - | - | - | | Name | Yes | A unique name for this registration | | Description | No | Optional description | | Endpoint | No | Your Azure OpenAI resource or an OpenAI-compatible endpoint. Leave it empty to use the OpenAI API | | Model Name | With a custom endpoint | The model or deployment that Chainloop sends every request to | | Api Key | Yes | The API key of your provider | ### OpenAI API Leave **Endpoint** empty to use the public OpenAI API. **Model Name** is optional: leave it empty to use the default model, or enter another OpenAI model. ### Azure OpenAI (Microsoft Foundry) Enter the host of your resource without a `/v1` suffix, for example `https://.openai.azure.com`. Chainloop builds the Azure deployment URLs for you. Set **Model Name** to the name of your deployment. ### OpenAI-compatible endpoint Use this option for OpenRouter, gateways such as Bifrost or LiteLLM, or a self-hosted model. Enter the full base URL, including the API version segment if the endpoint uses one, for example `https://openrouter.ai/api/v1`. This is the same value as the `OPENAI_BASE_URL` environment variable of the OpenAI SDKs. Chainloop appends request paths such as `/models` and `/chat/completions` to it. Set **Model Name** to the exact model ID that the endpoint serves, for example `moonshotai/kimi-k3` on OpenRouter. ## Replace the Managed Connection When your organization has its own key for at least one AI provider, an admin can remove the AI connections that Chainloop manages. All AI features then use your connections. Without a key of your own, the managed connections cannot be removed. ## Related Resources * [How to run LLM-driven policies](/guides/llm-policies): guide on using AI-powered prompts to evaluate evidence * [Builtin functions reference](/reference/builtin-functions#chainloopevidence_prompt): the `chainloop.evidence_prompt` function for custom Rego policies * [Ask Chainloop](/concepts/ask-chainloop): the natural-language assistant * [Integrations](/concepts/integrations): general integration setup instructions # Model Context Protocol (MCP) Server Source: https://docs.chainloop.dev/reference/mcp-server Chainloop provides a remote MCP server that can be used to interact with Chainloop from your AI clients or agents. Please refer to this [guide](/guides/chainloop-mcp) to learn how to connect to the MCP server. # Policies Source: https://docs.chainloop.dev/reference/policies Reference documentation for all available policies and policy groups > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). Chainloop provides a set of built-in policies and policy groups that can be used to enforce compliance and security requirements in your software supply chain. ## Policies ### activex-controls-fuzzed Verify that Windows ActiveX/COM controls were fuzz-tested with the CERT/CC Dranzer tool and that no control failed, hung, or crashed during the run. Any failed or hung object, or any crash finding (access violation, Win32 exception, or error), is a candidate for `!Exploitable` triage and must be remediated prior to Product release. * **Categories:** `security` `compliance` * **Supported material types:** `CERTCC_DRANZER` ### ai-agent-present Checks for AI agent presence via configuration materials in the attestation or known bot reviewers on the PR * **Categories:** `ai` * **Supported material types:** `ATTESTATION` `CHAINLOOP_PR_INFO` ### ai-config-ai-agents-allowed Verifies that the AI agent in the configuration is in the allowed list * **Categories:** `ai` * **Supported material types:** `CHAINLOOP_AI_AGENT_CONFIG` `CHAINLOOP_AI_CODING_SESSION` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `allowed_agents` | Comma-separated list of allowed AI agent names | Yes | - | ### ai-config-mcp-servers-allowed Verifies that all MCP servers configured in an AI agent configuration or invoked during an AI coding session are in the allowed list * **Categories:** `ai` * **Supported material types:** `CHAINLOOP_AI_AGENT_CONFIG` `CHAINLOOP_AI_CODING_SESSION` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `allowed_servers` | Comma-separated list of allowed MCP server names | Yes | - | ### ai-config-models-allowed Verifies that the AI models used in a coding session are in the allowed list * **Categories:** `ai` * **Supported material types:** `CHAINLOOP_AI_CODING_SESSION` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `allowed_models` | Comma-separated allowlist. Each entry can be a specific model name (claude-sonnet-4-20250514), a model family glob (claude-sonnet-*, deepseek/*), or a model provider (z-ai, deepseek, anthropic). A model is allowed if any entry matches it. Provider entries match the model name prefix before the first "/" (e.g. "z-ai/glm-5.2" -> "z-ai"); bare names fall back to the session's provider field. | Yes | - | ### ai-config-no-dangerous-commands Detects dangerous or destructive shell commands in AI coding session transcripts (assistant Bash tool calls) and AI agent configuration files (instructions, skills, subagents, MCP config) * **Categories:** `ai` * **Supported material types:** `CHAINLOOP_AI_AGENT_CONFIG` `CHAINLOOP_AI_CODING_SESSION` ##### Inputs | Name | Description | Required | Default | | | - | - | - | - | - | | `forbidden_patterns` | Comma-separated list of regular expressions flagged as dangerous. Commas are not allowed inside a pattern. A sensible default covering destructive ops, curl | sh bypasses, and escalation attempts is used when omitted. | No | - | ### ai-config-no-secrets Verifies that AI agent configuration files (instructions, skills, MCP config) and AI coding session transcripts do not contain hardcoded secrets such as API keys, tokens, passwords, or credentials * **Categories:** `ai` * **Supported material types:** `CHAINLOOP_AI_AGENT_CONFIG` `CHAINLOOP_AI_CODING_SESSION` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `ignored_paths` | Comma-separated list of regular expressions. Findings whose source file path matches are skipped. Commas are NOT allowed inside a pattern. For coding sessions this matches against the file path of the preceding Read/Write/Edit/MultiEdit tool_use; chunks without an associated file path (user prompts, assistant text, Bash output, etc.) are never excluded. | No | - | | `allowed_signed_url_hosts` | Comma-separated list of hostnames whose signed/presigned URLs are exempt from JWT reporting (e.g. uploads.linear.app). A JWT appearing as a query-parameter value on one of these hosts is treated as a short-lived signature rather than a leaked credential. Matching is exact and case-insensitive; a host with an explicit port is never exempt. When omitted no host is exempt and every presigned-URL JWT is reported. | No | - | ### ai-instructions-architecture-with-paths Verifies that AI agent instruction files describe the project architecture by referencing at least one directory path and naming an architectural pattern * **Categories:** `ai` * **Supported material types:** `CHAINLOOP_AI_AGENT_CONFIG` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `prompt` | Custom prompt to evaluate architecture description in instruction files | No | - | ### ai-instructions-code-style-specificity Verifies that AI agent instruction files contain at least one concrete, project-specific code style rule referencing a specific linter, formatter, or language pattern * **Categories:** `ai` * **Supported material types:** `CHAINLOOP_AI_AGENT_CONFIG` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `prompt` | Custom prompt to evaluate code style specificity in instruction files | No | - | ### ai-instructions-commands-documented Verifies that AI agent instruction files specify exact, executable commands for each required action rather than vague instructions * **Categories:** `ai` * **Supported material types:** `CHAINLOOP_AI_AGENT_CONFIG` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `actions` | Comma-separated list of actions that must have exact commands documented | No | - | ### ai-instructions-doc-guidance Verifies that AI agent instruction files reference documentation practices — where docs live, what format to use, and how to keep READMEs and inline comments relevant * **Categories:** `ai` * **Supported material types:** `CHAINLOOP_AI_AGENT_CONFIG` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `prompt` | Custom prompt to evaluate documentation guidance in instruction files | No | - | ### ai-instructions-explicit-boundaries Verifies that AI agent instruction files define explicit behavioral boundaries — concrete paths or actions the agent must not access or perform * **Categories:** `ai` * **Supported material types:** `CHAINLOOP_AI_AGENT_CONFIG` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `prompt` | Custom prompt to evaluate behavioral boundary definitions in instruction files | No | - | ### ai-instructions-git-workflow-documented Verifies that AI agent instruction files document at least two git workflow conventions — branch naming, commit message format, or PR requirements * **Categories:** `ai` * **Supported material types:** `CHAINLOOP_AI_AGENT_CONFIG` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `prompt` | Custom prompt to evaluate git workflow convention documentation in instruction files | No | - | ### ai-instructions-gotchas Verifies that AI agent instruction files document at least two project-specific gotchas — non-obvious behaviors, edge cases, or pitfalls the agent would get wrong without explicit guidance * **Categories:** `ai` * **Supported material types:** `CHAINLOOP_AI_AGENT_CONFIG` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `prompt` | Custom prompt to evaluate gotcha documentation in instruction files | No | - | ### ai-instructions-size-bounds Checks that each instruction/skill file in an AI agent configuration has a line count within configurable bounds (instructions default max 200, skills default max 500) * **Categories:** `ai` * **Supported material types:** `CHAINLOOP_AI_AGENT_CONFIG` * **Auto-match:** Yes ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `min_lines` | Minimum number of lines required (default 10, applies to all kinds) | No | - | | `max_lines` | Maximum number of lines allowed, overrides kind-specific defaults (instruction=200, skill=500) | No | - | ### ai-instructions-verification-criteria Verifies that AI agent instruction files include verification mechanisms such as unit tests, executable test commands, or expected input/output examples * **Categories:** `ai` * **Supported material types:** `CHAINLOOP_AI_AGENT_CONFIG` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `prompt` | Custom prompt for verifying instruction files contain verification criteria | No | - | ### ai-skills-descriptions-actionable Verifies that each AI agent skill describes what it does, when to use it, and what problems it solves * **Categories:** `ai` * **Supported material types:** `CHAINLOOP_AI_AGENT_CONFIG` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `prompt` | Custom prompt to evaluate skill descriptions | No | - | ### ai-subagents-descriptions-actionable Verifies that each AI agent subagent has a description specifying trigger, scope, and purpose, and that system prompts are substantive * **Categories:** `ai` * **Supported material types:** `CHAINLOOP_AI_AGENT_CONFIG` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `prompt` | Custom prompt to evaluate subagent descriptions | No | - | ### ai-subagents-permissions-scope Verifies that no subagent sets permissionMode to bypassPermissions or declares MCP servers absent from parent configuration * **Categories:** `ai` * **Supported material types:** `CHAINLOOP_AI_AGENT_CONFIG` ### api-security Check **API security** posture findings for weaknesses above a severity threshold. Supported Tools: * **Salt Security** (SARIF, API posture gaps) - **Categories:** `security` `API` - **Supported material types:** `SARIF` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `severity` | | No | `MEDIUM` | | `score` | | No | - | ### api-security-scan-present Checks that an API security scan material is present in the attestation. Supports Salt Security SARIF reports. * **Categories:** `security` `API` * **Supported material types:** `ATTESTATION` ### artifact-signed Checks that the provided piece of evidence has a signature * **Categories:** `security` `signing` * **Supported material types:** `CONTAINER_IMAGE` `HELM_CHART` ### artifact-tag-not-latest Checks that the provided OCI artifact hasn't been tagged with the latest tag. * **Categories:** `security` * **Supported material types:** `CONTAINER_IMAGE` ### binary-compiler-hardening Checks BinSkim compiler-hardening results (ASLR, secure tools, critical warnings, ...) for every analyzed binary. A binary BinSkim could not evaluate because its PDB (debug symbols) could not be loaded (`E_PDB_NOT_FOUND`) always fails: its hardening configuration cannot be verified without symbols. For binaries that were analyzed, the policy raises a violation for each hardening rule finding that matches the configured `rules` and meets the `severity` threshold. Supports BinSkim SARIF format. * **Categories:** `security` `binaries` * **Supported material types:** `SARIF` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `rules` | List of specific hardening rules to check. Supports two formats: - `RuleId` - checks all severity levels of that rule (e.g., `BA2001`) - `RuleId;Level` - checks only the specific rule+level combination (e.g., `BA2001;error`) If not specified, all rule findings meeting the severity threshold are checked. | No | - | | `severity` | The minimum severity level to report for rule findings. Possible values are `none`, `note`, `warning`, `error`. Does not affect the `E_PDB_NOT_FOUND` gate, which always fails. | No | `error` | | `paths` | Comma-separated list of path globs the policy applies to. Matching is case-insensitive and treats both `\` and `/` as path separators. Defaults to all files (`**`). | No | - | | `ignored_paths` | Comma-separated list of path globs to exclude from the check, evaluated after `paths`. | No | - | ### binary-scan Checks binary scan reports for security and correctness errors, including BinSkim tool notifications (e.g. PDB-load failures that prevent a binary from being analyzed). Supports BinSkim SARIF format. * **Categories:** `security` `binaries` * **Supported material types:** `SARIF` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `rules` | List of specific rules to check. Supports two formats: - `RuleId` - checks all severity levels of that rule (e.g., `BA2009`) - `RuleId;Level` - checks only the specific rule+level combination (e.g., `BA2009;error`) If not specified, all rules meeting the severity threshold will be checked. | No | - | | `severity` | The severity level to filter the scan results. If not specified, error results will be included. Possible values are `none`, `note`, `warning`, `error`. | No | `error` | ### binary-symbols-stripped Verifies that release binaries in a BinSkim SARIF report are stripped of debug symbols. BinSkim reports a binary it could not analyze because its PDB (debug symbols) could not be loaded as an `ERR997.ExceptionLoadingPdb` / `E_PDB_NOT_FOUND` tool notification. This policy treats that as the desired state: a stripped release binary. Conversely, any binary BinSkim was able to analyze (its PDB loaded, so debug symbols are present) raises a violation. Each scanned binary is evaluated individually. The set of scanned binaries is taken from the report's `artifacts` list when present, falling back to the binaries referenced by analysis results. * **Categories:** `security` `binaries` * **Supported material types:** `SARIF` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `paths` | Comma-separated list of path globs the policy applies to. Matching is case-insensitive and treats both `\` and `/` as path separators. Defaults to all files (`**`). | No | - | | `ignored_paths` | Comma-separated list of path globs to exclude from the check, evaluated after `paths`. | No | - | ### branch-deletion-blocked Ensures that branches cannot be deleted. Supports both GitHub and GitLab. * GitHub: passes when a classic branch protection rule covers the branch with "Allow deletions" off, or an active ruleset that targets it includes "Restrict deletions". * GitLab: passes when the branch is protected. Protected branches cannot be deleted with Git, but Maintainers and Owners can still delete them from the GitLab UI or API. - **Categories:** `security` - **Supported material types:** `CHAINLOOP_RUNNER_CONTEXT` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `branches` | Comma-separated list of branch name patterns to check, for example main,release/*. "*" matches within one path segment (release/\* matches release/1.0 but not release/1.0/hotfix) and "\*\*" also crosses "/". If not set, every branch in the runner context is checked, including unprotected feature branches, so set it to the branches you protect (for example main). | No | - | | `collector` | What collected the runner context. It selects the fix steps in skip reasons and violations: "cli" (default) for a runner context created with `chainloop gather-runner-context`, or "managed" for the managed SCM Configuration Check, which reads the repository through the Chainloop GitHub App or the GitLab connection. | No | `cli` | ### branch-force-push-blocked Ensures that force pushes are blocked on branches, so history cannot be rewritten and code review cannot be bypassed. Supports both GitHub and GitLab. * GitHub: passes when a classic branch protection rule covers the branch with "Allow force pushes" off, or an active ruleset that targets it includes "Block force pushes". * GitLab: passes when the branch is protected and "Allowed to force push" is off (the default for protected branches). - **Categories:** `security` - **Supported material types:** `CHAINLOOP_RUNNER_CONTEXT` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `branches` | Comma-separated list of branch name patterns to check, for example main,release/*. "*" matches within one path segment (release/\* matches release/1.0 but not release/1.0/hotfix) and "\*\*" also crosses "/". If not set, every branch in the runner context is checked, including unprotected feature branches, so set it to the branches you protect (for example main). | No | - | | `collector` | What collected the runner context. It selects the fix steps in skip reasons and violations: "cli" (default) for a runner context created with `chainloop gather-runner-context`, or "managed" for the managed SCM Configuration Check, which reads the repository through the Chainloop GitHub App or the GitLab connection. | No | `cli` | ### branch-linear-history-required Ensures that branches keep a linear history without merge commits. Supports both GitHub and GitLab. * GitHub: passes when "Require linear history" is enabled in a classic branch protection rule or an active ruleset that covers the branch. * GitLab: passes when the project merge method is "Fast-forward merge" or "Merge commit with semi-linear history". Semi-linear history still adds a merge commit for every merge. The merge method is a project setting and only applies to merge requests, so also protect the branch to block direct pushes. - **Categories:** `security` - **Supported material types:** `CHAINLOOP_RUNNER_CONTEXT` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `branches` | Comma-separated list of branch name patterns to check, for example main,release/*. "*" matches within one path segment (release/\* matches release/1.0 but not release/1.0/hotfix) and "\*\*" also crosses "/". If not set, every branch in the runner context is checked, including unprotected feature branches, so set it to the branches you protect (for example main). | No | - | | `collector` | What collected the runner context. It selects the fix steps in skip reasons and violations: "cli" (default) for a runner context created with `chainloop gather-runner-context`, or "managed" for the managed SCM Configuration Check, which reads the repository through the Chainloop GitHub App or the GitLab connection. | No | `cli` | ### check-compliance-requirement Checks that the project passes the compliance requirement * **Categories:** `compliance` * **Supported material types:** `ATTESTATION` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `framework_name` | Framework name or comma-separated list of framework names to check compliance for (case-insensitive). If not provided, all frameworks will be checked. | No | - | | `requirement_name` | Requirement name or comma-separated list of requirement names to check. If not provided, all requirements will be checked. | No | - | ### ci-pipeline-security Checks CI/CD pipeline configuration security scan results for findings. Supported Tools: * **zizmor** (SARIF) — GitHub Actions workflow security auditor - **Categories:** `security` `CI/CD` - **Supported material types:** `SARIF` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `severity` | The minimum severity to report as a violation. Findings at or above this level are reported. Possible values (zizmor's native severity scale) are `informational`, `low`, `medium`, `high`. | No | `medium` | ### ci-user-strongly-authenticated Ensures that CI users have strong authentication enabled, including two-factor authentication and verified accounts. Only applies to GitHub provider. * **Categories:** `security` * **Supported material types:** `CHAINLOOP_RUNNER_CONTEXT` ### code-coverage Checks a code coverage report against a given percentage threshold. Supports JaCoCo ([counters](https://www.jacoco.org/jacoco/trunk/doc/counters.html)) and Cobertura reports * **Categories:** `coverage` `SAST` * **Supported material types:** `COBERTURA_XML` `JACOCO_XML` * **Auto-match:** Yes ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `counter` | Coverage counter. By default, INSTRUCTION will be used. For JaCoCo, other values are LINE, BRANCH, COMPLEXITY and METHOD. For Cobertura, INSTRUCTION/LINE map to line coverage and BRANCH to branch coverage | No | `INSTRUCTION` | | `threshold` | Required coverage percentage | No | `80` | ### commits-signed-required Ensures that branches only accept signed commits. This checks the repository settings; to verify the signatures of the commits in a build, use the source-commit policy. Supports both GitHub and GitLab. * GitHub: passes when "Require signed commits" is enabled in the classic branch protection rule or an active ruleset that covers the branch. * GitLab: passes when the push rule "Reject unsigned commits" is enabled (GitLab Premium or Ultimate). GitLab still accepts unsigned commits created in its UI or API. On GitLab Free and GitLab CE the policy is skipped, because GitLab does not enforce this setting there. - **Categories:** `security` - **Supported material types:** `CHAINLOOP_RUNNER_CONTEXT` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `branches` | Comma-separated list of branch name patterns to check, for example main,release/*. "*" matches within one path segment (release/\* matches release/1.0 but not release/1.0/hotfix) and "\*\*" also crosses "/". If not set, every branch in the runner context is checked, including unprotected feature branches, so set it to the branches you protect (for example main). | No | - | | `collector` | What collected the runner context. It selects the fix steps in skip reasons and violations: "cli" (default) for a runner context created with `chainloop gather-runner-context`, or "managed" for the managed SCM Configuration Check, which reads the repository through the Chainloop GitHub App or the GitLab connection. | No | `cli` | ### compilation-warnings Checks that a build left no security-related compiler warnings. It reads the warnings and errors recorded in a build log (an MSBuild binary or text log, a Visual C++ `BuildLog.htm`, or an archive of them) and raises a violation for each one whose code is security-related and whose file is in scope. A warning repeated in the log (for example, a header warning reported once per file that includes it) is reported once, with its count. By default, a code is security-related when it is one of the warnings that the MSVC `/sdl` option turns into errors (C4146, C4308, C4532, C4533, C4700, C4703, C4789, C4995, C4996), a signed/unsigned comparison (C4018), a possibly uninitialized local (C4701), a code analysis warning (C6\*), or a .NET security analyzer rule (CA2100, CA2109, CA2119, CA2153, CA23\*, CA3\*, CA5\*). Use `extra_codes` and `ignored_codes` to adjust this list, or `codes` to replace it. Warnings outside the product code are excluded by the file they point at (`paths`, `ignored_paths`) or by their project (`ignored_projects`). A reviewed warning is waived with `ignored_findings`. `max_warnings` optionally bounds the warnings of any code. Each violation names the logs the warning was seen in, by their archive entry and the solution they built when the logs record them, so a material holding the logs of several builds stays traceable. A `BuildLog.htm` added on its own records neither. The policy also fails when the evidence may be incomplete, as it cannot be checked: a log that states more warnings than could be read, a failed build, a log that does not show how the build ended (cut short), or an archive entry named like a log (`.binlog`, `.log`, `.htm`, `.html`) that could not be read. * **Categories:** `security` `compliance` * **Supported material types:** `MSBUILD_LOG` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `codes` | Comma-separated list of the warning codes treated as security-related. Each entry is a code (e.g. `C4996`) or a glob (e.g. `C6*`), matched without regard to case. Replaces the default list; to add to it or remove from it, use `extra_codes` and `ignored_codes`. | No | - | | `extra_codes` | Comma-separated list of warning codes or globs treated as security-related in addition to `codes` (or the default list), e.g. `C4018,C4477`. | No | - | | `ignored_codes` | Comma-separated list of warning codes or globs never treated as security-related, removed from `codes` and `extra_codes`, e.g. `C4995`. | No | - | | `paths` | Comma-separated list of path globs the policy applies to, matched against the file each warning points at. Matching is case-insensitive and treats both `\` and `/` as path separators. Defaults to all files (`**`). Only absolute paths are filtered: a relative path or a warning with no file stays in scope. | No | - | | `ignored_paths` | Comma-separated list of path globs to exclude from the check, evaluated after `paths`. Use it for SDK and third-party headers (e.g. `C:/Program Files*/**`). Visual C++ build logs give paths relative to the project, so match those with a leading `**/` (e.g. `**/thirdparty/**`). | No | - | | `ignored_projects` | Comma-separated list of globs matched against the project of each warning, to exclude every warning of a third-party project built with the product (e.g. `**/zlib.vcxproj`). MSBuild logs give the project file path; a Visual C++ build log gives the project name. | No | - | | `max_warnings` | Maximum number of distinct warnings, of any code, allowed in scope (after `paths`, `ignored_paths` and `ignored_projects`). Not set by default. | No | - | | `ignored_findings` | Comma-separated list of reviewed warnings to waive, each `CODE;PATH-GLOB` or `CODE;PATH-GLOB;LINE` (e.g. `C4996;**/legacy/parser.cpp;120`). The code is exact and the path glob, matched like `ignored_paths`, must not be only wildcards; without a line, the waiver covers every line of the matching files. An entry in another shape waives nothing. | No | - | ### containers-with-sbom Ensures all OCI container images have an associated SBOM material. Only the CycloneDX SBOM format is supported. SBOMs generated by Syft using the 'latest' tag are not recognized and will result in a policy violation. * **Categories:** `sbom` `container` * **Supported material types:** `ATTESTATION` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `bidirectional` | Reverse validation of SBOM-to-container associations. Prevents orphaned SBOMs. | No | - | ### cves-in-kev Checks a CVE report against CISA's Known Exploited Vulnerabilities [KEV Catalog](https://www.cisa.gov/known-exploited-vulnerabilities-catalog). Supports Trivy's SARIF, Blackduck, GHAS Dependency Scans and CycloneDX SBOM outputs. * **Categories:** `security` `CVE` * **Supported material types:** `BLACKDUCK_SCA_JSON` `GHAS_DEPENDENCY_SCAN` `SARIF` `SBOM_CYCLONEDX_JSON` ### cwe-top25 Checks for CWEs in the **2025 CWE Top 25 Most Dangerous Software Weaknesses** list. See the [CWE Top 25](https://cwe.mitre.org/top25/index.html) for the complete list. Alerts marked as false positives in ZAP are not reported. The SARIF report keeps one confidence for each ZAP rule, taken from its first alert, so mark all alerts of a rule as false positives. **Supported Tools:** * **SARIF**: KICS, SpotBugs, ZAP, StackHawk, Polaris, Semgrep, Opengrep, SonarQube, CodeQL and Salt Security * **GitLab Security Reports**: Native GitLab, SonarQube * **Other**: CSAF Security Advisory, BlackDuck SCA, GitHub Advanced Security Dependency Scan - **Categories:** `security` `CWE` - **Supported material types:** `BLACKDUCK_SCA_JSON` `CSAF_SECURITY_ADVISORY` `GHAS_DEPENDENCY_SCAN` `GITLAB_SECURITY_REPORT` `SARIF` ### cwe-top26-40-cusp Checks a vulnerability report for CWEs in the **2026 CWE On the Cusp** list (CWEs ranked 26-40). See the [CWE On the Cusp](https://cwe.mitre.org/top25/archive/2025/2025_onthecusp_list.html) for the complete list. Alerts marked as false positives in ZAP are not reported. The SARIF report keeps one confidence for each ZAP rule, taken from its first alert, so mark all alerts of a rule as false positives. **Supported Tools:** * **SARIF**: KICS, SpotBugs, ZAP, StackHawk, Polaris, Semgrep, Opengrep, SonarQube, CodeQL and Salt Security * **GitLab Security Reports**: Native GitLab, SonarQube * **Other**: BlackDuck SCA, GitHub Advanced Security Dependency Scan - **Categories:** `security` `CWE` - **Supported material types:** `BLACKDUCK_SCA_JSON` `GHAS_DEPENDENCY_SCAN` `GITLAB_SECURITY_REPORT` `SARIF` ### evidence-prompt Analyzes evidence using an AI-powered prompt. Leverages any OpenAI or Anthropic API integration you have set up in your organization to perform prompt-based analysis of materials (e.g., SBOMs). * **Categories:** `security` `compliance` * **Supported material types:** `ATTESTATION` `BLACKDUCK_SCA_JSON` `CHAINLOOP_PR_INFO` `CHAINLOOP_RUNNER_CONTEXT` `CONTAINER_IMAGE` `CSAF_SECURITY_ADVISORY` `EVIDENCE` `GHAS_DEPENDENCY_SCAN` `GHAS_SECRET_SCAN` `GITLAB_SECURITY_REPORT` `GITLEAKS_JSON` `HELM_CHART` `JACOCO_XML` `SARIF` `SBOM_CYCLONEDX_JSON` `SBOM_SPDX_JSON` `TWISTCLI_SCAN_JSON` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `prompt` | A text prompt describing what to analyze in the evidence material | Yes | - | ### iac-misconfiguration Checks for misconfigurations in IAC (infrastructure as code) sources. Supports SARIF from Checkov and WizCLI. Both tools map their native severity to the standard SARIF `result.level` field: * `error`: Checkov errors, WizCLI high/critical findings * `warning`: Checkov warnings, WizCLI medium findings * `note`: Checkov notes, WizCLI low/informational findings - **Categories:** `security` `IAC` - **Supported material types:** `CHECKMARX_JSON` `SARIF` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `severity` | The severity level to filter the scan results. Results at or above this level are reported as violations. Possible values are `note`, `warning`, `error`. | No | `warning` | | `suppress_triaged` | | No | `true` | ### iac-scan-present Checks that an IaC scan material is present in the attestation. Supports WizCLI and Checkov SARIF reports, and Checkmarx One reports (native JSON or SARIF) whose scan includes an IaC engine. * **Categories:** `security` `IAC` * **Supported material types:** `ATTESTATION` ### immutable-releases-enabled Verifies that GitHub Immutable Releases is enabled for the repository. When enabled, published release artifacts and their associated tags cannot be modified or deleted, protecting the integrity of the software supply chain. This is a GitHub-specific feature; the policy skips on GitLab repositories. * **Categories:** `security` * **Supported material types:** `CHAINLOOP_RUNNER_CONTEXT` ### material-present Checks that a required material is present in the attestation * **Categories:** `compliance` * **Supported material types:** `ATTESTATION` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `material_name` | Optional name of the material | No | - | | `material_type` | Optional type of the material (it must be a Chainloop type) | No | - | | `number` | Number of times that at least this material should appear in the attestation (only works with `material_type`) | No | `1` | ### mutation-scan-present Checks that a mutation testing report is present in the attestation. Supports PIT (pitest) XML reports. Pair it with `mutation-score` so a run that produces no mutation report at all is reported, rather than silently satisfying the threshold policy that never gets to evaluate. * **Categories:** `coverage` `testing` * **Supported material types:** `ATTESTATION` ### mutation-score Checks a PIT (pitest) mutation testing report against a given percentage threshold. Mutation testing measures what line coverage cannot: code a test executes but asserts nothing about. Two metrics are supported, matching the numbers PIT publishes in its own HTML report: * **mutation_coverage** — `detected / total` * **test_strength** — `detected / (total - NO_COVERAGE)`, which excludes mutants no test reaches so the score reflects assertion quality rather than coverage gaps - **Categories:** `coverage` `testing` - **Supported material types:** `PITEST_XML` - **Auto-match:** Yes ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `metric` | Which score to evaluate. `mutation_coverage` (default) counts every mutant; `test_strength` excludes NO_COVERAGE mutants, so it does not double-penalize gaps the code-coverage policy already gates | No | `mutation_coverage` | | `threshold` | Required mutation score percentage | No | `80` | ### mutation-survivors-max Caps the number of surviving mutants in a PIT (pitest) mutation testing report. A surviving mutant is code a test executed without asserting on the change. This is PIT's `maxSurviving` gate: on an established codebase a percentage threshold is often unreachable, while an absolute cap can be ratcheted down commit by commit. Use it alongside, or instead of, `mutation-score`. * **Categories:** `coverage` `testing` * **Supported material types:** `PITEST_XML` * **Auto-match:** Yes ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `max_surviving` | Maximum number of surviving mutants allowed. No default -- when omitted the cap is not enforced and the policy skips | No | - | ### owasp-api-top10-2019 Checks for CWEs included in the [OWASP API Security Top 10 (2019) list](https://owasp.org/API-Security/editions/2019/en/0x11-t10/). **Supported Tools:** * **SARIF**: Salt Security - **Categories:** `security` `API` `OWASP` - **Supported material types:** `SARIF` ### owasp-api-top10-2023 Checks for CWEs included in the [OWASP API Security Top 10 (2023) list](https://owasp.org/API-Security/editions/2023/en/0x11-t10/). **Supported Tools:** * **SARIF**: Salt Security - **Categories:** `security` `API` `OWASP` - **Supported material types:** `SARIF` ### owasp-top10-2021 Checks for CWEs included in the [OWASP Top10:2021 list](https://owasp.org/Top10). Alerts marked as false positives in ZAP are not reported. The SARIF report keeps one confidence for each ZAP rule, taken from its first alert, so mark all alerts of a rule as false positives. **Supported Tools:** * **SARIF**: ZAP * **GitLab Security Reports**: SonarQube - **Categories:** `security` `CWE` - **Supported material types:** `GITLAB_SECURITY_REPORT` `SARIF` ### owasp-top10-2025 Checks for CWEs included in the [OWASP Top10:2025 list](https://owasp.org/Top10/2025/). Alerts marked as false positives in ZAP are not reported. The SARIF report keeps one confidence for each ZAP rule, taken from its first alert, so mark all alerts of a rule as false positives. **Supported Tools:** * **SARIF**: KICS, SpotBugs, ZAP, StackHawk, Polaris, Semgrep, Opengrep, SonarQube, CodeQL and Salt Security * **GitLab Security Reports**: SonarQube - **Categories:** `security` `CWE` - **Supported material types:** `GITLAB_SECURITY_REPORT` `SARIF` ### patch-policy-present Verifies that automated patch management tooling is configured and actively monitoring third-party dependencies for known vulnerabilities. On GitHub, checks that Dependabot security updates are enabled via the repository's security_and_analysis settings. On GitLab, checks for the presence of a Renovate configuration file (renovate.json, renovate.json5, .renovaterc, or .renovaterc.json). * **Categories:** `security` `patch-management` * **Supported material types:** `CHAINLOOP_RUNNER_CONTEXT` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `collector` | What collected the runner context. It selects the fix steps in skip reasons and violations: "cli" (default) for a runner context created with `chainloop gather-runner-context`, or "managed" for the managed SCM Configuration Check, which reads the repository through the Chainloop GitHub App or the GitLab connection. | No | `cli` | ### pr-bot-author-allowed Verifies that a PR/MR was authored by one of the allowed bot accounts. Useful for gating workflows to only accept PRs from automated tools such as Dependabot or Renovate. On GitHub, checks the user type field; on GitLab, reads the author.bot field from the Merge Request API. Defaults to dependabot\[bot] and renovate\[bot] if no allowed_bots input is provided. These defaults use GitHub-style names; GitLab users should specify their bot usernames explicitly or use GitLab service accounts. See the [bot PR guide](https://docs.chainloop.dev/guides/pr-policies-control-gate#gating-bot-authored-prs) for platform-specific setup. * **Categories:** `security` `automation` * **Supported material types:** `CHAINLOOP_PR_INFO` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `allowed_bots` | Comma-separated list of allowed bot author names. If not specified, defaults to dependabot\[bot] and renovate\[bot]. Note that these defaults use GitHub-style names with the \[bot] suffix; GitLab usernames typically do not include this suffix. | No | - | ### pr-code-owner-review-required Ensures that changes to files with code owners need a code owner's approval before merging. This checks the repository settings. Supports both GitHub and GitLab. * GitHub: passes when "Require review from Code Owners" is enabled in the classic branch protection rule or an active ruleset that covers the branch. Code owners come from a CODEOWNERS file. * GitLab: passes when the protected branch has "Code owner approval" turned on (GitLab Premium or Ultimate). Code owners come from a CODEOWNERS file. On GitLab Free and GitLab CE the policy is skipped, because GitLab does not enforce this setting there. - **Categories:** `security` - **Supported material types:** `CHAINLOOP_RUNNER_CONTEXT` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `branches` | Comma-separated list of branch name patterns to check, for example main,release/*. "*" matches within one path segment (release/\* matches release/1.0 but not release/1.0/hotfix) and "\*\*" also crosses "/". If not set, every branch in the runner context is checked, including unprotected feature branches, so set it to the branches you protect (for example main). | No | - | | `collector` | What collected the runner context. It selects the fix steps in skip reasons and violations: "cli" (default) for a runner context created with `chainloop gather-runner-context`, or "managed" for the managed SCM Configuration Check, which reads the repository through the Chainloop GitHub App or the GitLab connection. | No | `cli` | ### pr-conversation-resolution-required Ensures that all review conversations must be resolved before a pull or merge request can be merged. This checks the repository settings. Supports both GitHub and GitLab. * GitHub: passes when "Require conversation resolution before merging" is enabled in the classic branch protection rule or an active ruleset (as part of "Require a pull request before merging") that covers the branch. * GitLab: passes when the project merge check "All threads must be resolved" is selected. This is a project setting, so it applies to every branch. - **Categories:** `security` - **Supported material types:** `CHAINLOOP_RUNNER_CONTEXT` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `branches` | Comma-separated list of branch name patterns to check, for example main,release/*. "*" matches within one path segment (release/\* matches release/1.0 but not release/1.0/hotfix) and "\*\*" also crosses "/". If not set, every branch in the runner context is checked, including unprotected feature branches, so set it to the branches you protect (for example main). | No | - | | `collector` | What collected the runner context. It selects the fix steps in skip reasons and violations: "cli" (default) for a runner context created with `chainloop gather-runner-context`, or "managed" for the managed SCM Configuration Check, which reads the repository through the Chainloop GitHub App or the GitLab connection. | No | `cli` | ### pr-description-required Ensures PRs/MRs have meaningful descriptions for better code review quality and documentation. Also checks that the title has at least 3 characters and that the description has no placeholder words (TODO, FIXME, TBD, lorem ipsum). Skipped for bot authors. * **Categories:** `Code Review` * **Supported material types:** `CHAINLOOP_PR_INFO` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `min_length` | Minimum description length in characters | No | `50` | | `allow_empty` | Allow empty descriptions | No | `false` | | `required_sections` | Comma-separated list of terms that must appear in the description (case-insensitive regular expressions, matched anywhere in the text, for example Summary,Testing) | No | - | ### pr-min-approvals Ensures a PR/MR has received the required number of approving peer reviews and has no unresolved change requests. Applies to bot-authored pull requests too. On GitLab, approvals are only available when Chainloop collects the merge request on the server side; the Chainloop CLI does not collect GitLab approvals, so merge requests collected by the CLI report 0 approvals. * **Categories:** `Code Review` * **Supported material types:** `CHAINLOOP_PR_INFO` * **Auto-match:** Yes ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `min_approvals` | Minimum number of approving reviews required | No | `1` | | `count_bots` | Whether review outcomes from bot reviewers (approvals and change requests) count | No | `false` | ### pr-review-required Ensures that pull requests (GitHub) and merge requests (GitLab) require a minimum number of approvals before merging. This checks the repository settings, not the approvals of a specific pull request (use pr-min-approvals for that). Supports both GitHub and GitLab. * GitHub: uses the highest "Required approvals" value from the classic branch protection rule and active rulesets that cover the branch. * GitLab: uses the highest "Approvals required" value from the approval rules that apply to the branch. Required approvals need GitLab Premium or Ultimate. On GitLab Free and GitLab CE the policy is skipped, because GitLab does not enforce this setting there. - **Categories:** `security` - **Supported material types:** `CHAINLOOP_RUNNER_CONTEXT` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `min_reviewers` | Minimum number of approvals that pull or merge requests must require before merging. | Yes | - | | `branches` | Comma-separated list of branch name patterns to check, for example main,release/*. "*" matches within one path segment (release/\* matches release/1.0 but not release/1.0/hotfix) and "\*\*" also crosses "/". If not set, every branch in the runner context is checked, including unprotected feature branches, so set it to the branches you protect (for example main). | No | - | | `collector` | What collected the runner context. It selects the fix steps in skip reasons and violations: "cli" (default) for a runner context created with `chainloop gather-runner-context`, or "managed" for the managed SCM Configuration Check, which reads the repository through the Chainloop GitHub App or the GitLab connection. | No | `cli` | ### pr-stale-reviews-dismissed Ensures that approvals are dismissed when new commits are pushed, so changes made after a review are reviewed again. This checks the repository settings. Supports both GitHub and GitLab. * GitHub: passes when "Dismiss stale pull request approvals when new commits are pushed" is enabled in the classic branch protection rule or an active ruleset that covers the branch. * GitLab: passes when the project approval setting "When a commit is added" is "Remove all approvals" (GitLab Premium or Ultimate). On GitLab Free and GitLab CE the policy is skipped, because GitLab does not enforce this setting there. - **Categories:** `security` - **Supported material types:** `CHAINLOOP_RUNNER_CONTEXT` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `branches` | Comma-separated list of branch name patterns to check, for example main,release/*. "*" matches within one path segment (release/\* matches release/1.0 but not release/1.0/hotfix) and "\*\*" also crosses "/". If not set, every branch in the runner context is checked, including unprotected feature branches, so set it to the branches you protect (for example main). | No | - | | `collector` | What collected the runner context. It selects the fix steps in skip reasons and violations: "cli" (default) for a runner context created with `chainloop gather-runner-context`, or "managed" for the managed SCM Configuration Check, which reads the repository through the Chainloop GitHub App or the GitLab connection. | No | `cli` | ### pr-user-story-linked Ensures all Pull Requests and Merge Requests reference a user story or issue for traceability. Looks for a reference in the title, the description and the source branch name. Skipped for bot authors. * **Categories:** `Code Review` * **Supported material types:** `CHAINLOOP_PR_INFO` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `patterns` | List of regex patterns to match issue references (comma-separated). Patterns are separated by commas, so a pattern cannot contain a comma (for example a \{2,} quantifier); write it without one, such as \[A-Z]\[A-Z]+-\[0-9]+. | No | `(?i)[A-Z]+-[0-9]+,#[0-9]+,(?i)gh-[0-9]+,(?i)\[[A-Z]+-[0-9]+\]` | ### radamsa-min-iterations Verify that a radamsa fuzzing run generated at least a minimum number of iterations. Evaluates radamsa's `-M` metadata log (RADAMSA_REPORT), where every generated test case is one record, and fails the gate when the run produced fewer iterations than required. Use it to prove a target was fuzzed with meaningful coverage rather than for a token handful of cases. * **Categories:** `security` `compliance` * **Supported material types:** `RADAMSA_REPORT` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `min_iterations` | Minimum number of fuzzing iterations the radamsa run must record | No | `100000` | ### radamsa-no-crashes Verify that a radamsa fuzzing run produced no crashing inputs. Chainloop only attaches a RADAMSA_CRASHES material when radamsa actually found crashes — a clean run has nothing to attest — so the mere presence of that material in the attestation is the failure signal. Skipped when the attestation carries no radamsa material at all, since a missing RADAMSA_CRASHES proves nothing when radamsa never ran. * **Categories:** `security` `compliance` * **Supported material types:** `ATTESTATION` ### repository-rules-change-restricted Ensures that only authorized users and teams can change or remove branch protection. Supports both GitHub and GitLab. * GitHub: reads who has admin access or a custom role with the "Edit repository rules" permission. Without an allowlist, only custom-role holders are reported (admins are allowed). With an allowlist, everyone who can modify protection rules and is not listed is reported, admins included. * GitLab: reads "Allowed to unprotect" on each protected branch (GitLab Premium or Ultimate; set through the protected branches API). The default allowlist is "Maintainers". An allowlist replaces that default, so list "Maintainers" explicitly if you want to keep it. On GitLab Free and GitLab CE the policy is skipped, because GitLab does not enforce this setting there. - **Categories:** `security` - **Supported material types:** `CHAINLOOP_RUNNER_CONTEXT` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `allowlist` | Comma-separated list of users, teams or roles that are allowed to change branch protection. - GitHub: use the names shown in violation messages: `user:` (or `collaborator:`) for a user and `team:` for a team (for example user:alice,team:security). Members of an allowed team are allowed too. - GitLab: use the access level names shown in violation messages: role names such as Maintainers, user display names such as Alice Smith, or group names. If not set, GitHub allows admins and reports only custom-role holders, and GitLab allows "Maintainers". A GitLab allowlist replaces that default, so include "Maintainers" if you want to keep it; a GitHub allowlist also reports admins that are not listed. | No | - | | `branches` | Comma-separated list of branch name patterns to check, for example main,release/*. "*" matches within one path segment (release/\* matches release/1.0 but not release/1.0/hotfix) and "\*\*" also crosses "/". If not set, every branch in the runner context is checked, including unprotected feature branches, so set it to the branches you protect (for example main). GitLab only. | No | - | | `collector` | What collected the runner context. It selects the fix steps in skip reasons and violations: "cli" (default) for a runner context created with `chainloop gather-runner-context`, or "managed" for the managed SCM Configuration Check, which reads the repository through the Chainloop GitHub App or the GitLab connection. | No | `cli` | ### runner-authenticated Checks that runner is authenticated by using the OIDC token from the provider. * **Categories:** `security` `SLSA` * **Supported material types:** `ATTESTATION` * **Auto-match:** Yes ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `environment` | Expected runner environment, i.e. github-hosted, managed. | No | - | | `runner_required` | Set to true if the runner environment should be forced. | No | `false` | ### runner-automated Checks that the CI runner is the expected one supporting Chainloop attestation. * **Categories:** `security` `SLSA` * **Supported material types:** `ATTESTATION` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `runner` | Expected runner type, i.e. GITHUB_ACTION, GITLAB_PIPELINE | No | - | ### sast Check **Static Application Security Test (SAST)** results for weaknesses. Supported Tools: * **BlackDuck Polaris** (SARIF) * **Synopsys Coverity** (SARIF) * **Checkmarx One** (SARIF, native JSON report) * **CodeQL** (SARIF) * **OpenGrep OSS / Semgrep OSS** (SARIF) * **SonarQube** (SARIF, GitLab Security Report format and [Search API](https://docs.chainloop.dev/concepts/material-types#example-importing-issues-from-the-sonarqube-api) via EVIDENCE) * **Spectral / AsyncAPI CLI / graphql-eslint** (SARIF, web API spec validation) * **Oversecured** (mobile Android/iOS SAST + DAST, native JSON report) - **Categories:** `security` `SAST` - **Supported material types:** `CHECKMARX_JSON` `EVIDENCE` `GITLAB_SECURITY_REPORT` `OVERSECURED_JSON` `SARIF` - **Auto-match:** Yes ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `severity` | | No | `MEDIUM` | | `score` | | No | - | | `issue_types` | Comma-separated list of issue types to check (BUG, CODE_SMELL, VULNERABILITY) | No | - | | `suppress_triaged` | | No | `true` | | `dast_only` | | No | `false` | ### sast-scan-present Checks that a SAST scan material is present in the attestation. Supports Polaris, Coverity, SonarQube, and CodeQL SARIF reports, SonarQube GitLab Security Reports, SonarQube [Search API](https://docs.chainloop.dev/concepts/material-types#example-importing-issues-from-the-sonarqube-api) evidence, Oversecured native JSON reports, and Checkmarx One reports (native JSON or SARIF) whose scan includes a SAST engine. * **Categories:** `security` `SAST` * **Supported material types:** `ATTESTATION` ### sbom-banned-components Checks that the SBOM doesn't have any banned components. It accepts a list of comma-separated list of components. If a version is specified, it will fail for versions equal or lower. with: components: log4j\@2.14.1, banned-component-name" * **Categories:** `sbom` `security` * **Supported material types:** `SBOM_CYCLONEDX_JSON` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `components` | Comma separated list of components to ban | No | - | ### sbom-banned-licenses Checks SBOM components for banned SPDX licenses and custom/proprietary licenses. This policy validates software components against license compliance requirements by detecting specified banned SPDX license identifiers, flagging custom/proprietary licenses by default, and supporting exceptions. Supports CycloneDX 1.5+. * **Categories:** `sbom` * **Supported material types:** `SBOM_CYCLONEDX_JSON` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `licenses` | Comma separated list of [SPDX license identifiers](https://spdx.org/licenses/index.html) to ban. Example: license="AGPL-3.0-or-later,GPL" throws violation for components with license.id or expressions with: - AGPL-3.0-or-later since no other SPDX identrifier matches AGPL-3.0-or-later\* - Any of the GPL variants that matches GPL\*: GPL-1.0-only. GPL-1.0-or-later, GPL-2.0-only, GPL-2.0-or-later, GPL-3.0-only and GPL-3.0-or-later | No | - | | `allowed_custom_licenses` | Comma separated list of custom license names that are allowed. Custom/proprietary licenses are banned by default unless explicitly allowed. Uses exact string matching (case-insensitive). Example: allowed_custom_licenses="Commercial License, Proprietary ACME License". | No | - | | `exceptions` | Comma separated list of exception rules to allow specific components with banned licenses. Format: type::identifier::license_exception Example: "purl_type::pkg:deb::GPL,name::github.com/prometheus/procfs::sha\*NOTICE(Apache-2.0)" | No | - | | `skipped_purl_types` | Comma separated list of package URL (purl) type prefixes whose components are excluded from all license checks (e.g. "pkg:deb,pkg:rpm,pkg:apk"). Useful to skip OS/distro package ecosystems whose license strings are not SPDX identifiers. Default: empty (no components skipped). | No | - | ### sbom-bsi-component-fields BSI TR-03183-2 §5.2.2/§5.2.4/§5.2.5 — Validates per-component data fields. By default only Required fields (§5.2.2) gate: component creator, name, version, filename, distribution licences, SHA-512 deployable hash. Set the 'enforce' input to also gate Additional (§5.2.4 — source/deployable URIs, unique identifiers, declared licences) and/or Optional (§5.2.5 — effective licence, source hash, security.txt URL) categories. * **Categories:** `sbom` `compliance` `bsi` * **Supported material types:** `SBOM_CYCLONEDX_JSON` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `enforce` | Comma-separated list of additional BSI categories to gate on, beyond the always-enforced Required (§5.2.2). Accepted values: "additional" (§5.2.4), "optional" (§5.2.5). Leave empty to gate only Required fields. | No | - | ### sbom-bsi-creator BSI TR-03183-2 §5.2.1 — SBOM MUST identify its creator by email address or URL. Checks 'metadata.manufacturer' and 'metadata.authors\[]' on the CycloneDX SBOM and 'metadata.timestamp'. * **Categories:** `sbom` `compliance` `bsi` * **Supported material types:** `SBOM_CYCLONEDX_JSON` ### sbom-bsi-dependencies BSI TR-03183-2 §5.1 — Every component MUST enumerate its direct dependencies and the SBOM MUST declare dependency-graph completeness via 'compositions\[].aggregate'. * **Categories:** `sbom` `compliance` `bsi` * **Supported material types:** `SBOM_CYCLONEDX_JSON` ### sbom-bsi-format BSI TR-03183-2 §4 — A newly generated or updated SBOM shall be a valid CycloneDX document in JSON format, version 1.6 or higher. Fires a violation for CycloneDX below 1.6. * **Categories:** `sbom` `compliance` `bsi` * **Supported material types:** `SBOM_CYCLONEDX_JSON` ### sbom-bsi-licenses BSI TR-03183-2 §6.1 — Licence identifiers MUST use SPDX expressions. Validates that every component licence uses a valid SPDX ID, a 'LicenseRef-' / 'LicenseRef-scancode-' reference, or an SPDX expression using only AND/OR/WITH operators. * **Categories:** `sbom` `compliance` `bsi` * **Supported material types:** `SBOM_CYCLONEDX_JSON` ### sbom-bsi-no-vulns BSI TR-03183-2 §3.1 — SBOMs MUST NOT contain vulnerability information. Vulnerabilities belong in a separate VEX document. * **Categories:** `sbom` `compliance` `bsi` * **Supported material types:** `SBOM_CYCLONEDX_JSON` ### sbom-bsi-properties BSI TR-03183-2 §5.2.2 — Components MUST declare BSI taxonomy properties classifying them as executable/non-executable, archive/no archive, and structured/unstructured. * **Categories:** `sbom` `compliance` `bsi` * **Supported material types:** `SBOM_CYCLONEDX_JSON` ### sbom-bsi-sbom-uri BSI TR-03183-2 §5.2.3 Additional — Each SBOM SHOULD carry a unique identifier (SBOM-URI). For CycloneDX this is the 'serialNumber' field in BOM-Link format (urn:uuid:...). The SBOM-URI is an Additional data field; this policy is silent by default. Set 'enforce' to 'additional' to surface violations and gate on absence. * **Categories:** `sbom` `compliance` `bsi` * **Supported material types:** `SBOM_CYCLONEDX_JSON` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `enforce` | Set to "additional" to gate on SBOM-URI absence (§5.2.3). Leave empty to keep the policy silent. | No | - | ### sbom-freshness Checks that the SBOM is not older than a specified threshold. Supports CycloneDX. It accepts a limit argument denoting the number of days. If not provided, it will deactivate the policy: with: limit: 20 * **Categories:** `sbom` * **Supported material types:** `SBOM_CYCLONEDX_JSON` * **Auto-match:** Yes ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `limit` | Max SBOM age in days | No | - | ### sbom-ntia Checks SBOM reports for [NTIA SBOM Minimum Elements Report](https://www.ntia.gov/sites/default/files/publications/sbom_minimum_elements_report_0.pdf). Supports SPDX 2.3 and CycloneDX 1.4+. The policy ignores local files that do not originate from a package manager, such as a local script injected into the build process. * **Categories:** `security` `sbom` * **Supported material types:** `SBOM_CYCLONEDX_JSON` `SBOM_SPDX_JSON` ### sbom-present Checks that either a SPDX or CycloneDX SBOM material is present in the attestation * **Categories:** `sbom` * **Supported material types:** `ATTESTATION` ### sbom-version Verifies that the given SBOM report complies with a particular version or higher. It requires a version argument (default value for CycloneDX: 1.4) * **Categories:** `sbom` * **Supported material types:** `SBOM_CYCLONEDX_JSON` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `min_version` | The minimum version of the SBOM to check | No | `1.4` | ### sbom-with-licenses Checks for components with unknown licenses in the CycloneDX report * **Categories:** `sbom` * **Supported material types:** `SBOM_CYCLONEDX_JSON` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `skipped_types` | Comma separated list of CycloneDX components type to skip validation (eg. files) | No | - | ### sca-scan-present Checks that a Software Composition Analysis (SCA) material is present in the attestation. Compatible with SPDX, CycloneDX and BlackDuck SCA formats, and Checkmarx One reports (native JSON or SARIF) whose scan includes an SCA or container engine. * **Categories:** `security` `compliance` * **Supported material types:** `ATTESTATION` ### secrets-detection Checks secrets scanning reports for leaked secrets. Supports GitLab, GHAS, Gitleaks, TruffleHog, and detect-secrets reports * **Categories:** `security` `secrets` * **Supported material types:** `GHAS_SECRET_SCAN` `GITLAB_SECURITY_REPORT` `GITLEAKS_JSON` `TRUFFLEHOG_JSON` `YELP_DETECT_SECRETS_BASELINE` ### signature-present Checks that SLSA provenance signature is possibly present by verifying the CA and TSA presence. * **Categories:** `security` `SLSA` * **Supported material types:** `ATTESTATION` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `require_tsa` | Whether TSA is required | No | `false` | ### source-commit Verifies that the attestation explicitly references a specific Git commit * **Supported material types:** `ATTESTATION` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `check_signature` | Check that the commit has a valid digital signature | No | - | | `check_author_verified` | Check that the commit author has been verified by the platform (GitHub, GitLab) | No | - | | `required_signature_algorithm` | Require specific signature algorithm(s). Valid values are PGP, SSH, or X509. Accepts a single algorithm or comma-separated list (e.g., "PGP,SSH"). If set, the commit must include a signature.algorithm annotation matching one of the allowed values | No | - | ### tag-deletion-blocked Ensures that tag deletion is blocked to protect release tags from being removed or replaced. Supports both GitHub and GitLab. * **Categories:** `security` * **Supported material types:** `CHAINLOOP_RUNNER_CONTEXT` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `tags` | Comma-separated list of tag patterns to check, for example v\*,release/**. If not specified, all tags are checked. "*" matches within one path segment (v* matches v1.2.3, release/\* matches release/1.0 but not release/1.0/hotfix) and "**" also crosses "/". Existing v\*\* patterns keep working. | No | - | | `collector` | What collected the runner context. It selects the fix steps in skip reasons and violations: "cli" (default) for a runner context created with `chainloop gather-runner-context`, or "managed" for the managed SCM Configuration Check, which reads the repository through the Chainloop GitHub App or the GitLab connection. | No | `cli` | ### tag-force-push-blocked Ensures that force pushes are blocked on tags to prevent tag manipulation attacks (such as the Trivy supply chain attack). Supports both GitHub and GitLab. * **Categories:** `security` * **Supported material types:** `CHAINLOOP_RUNNER_CONTEXT` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `tags` | Comma-separated list of tag patterns to check, for example v\*,release/**. If not specified, all tags are checked. "*" matches within one path segment (v* matches v1.2.3, release/\* matches release/1.0 but not release/1.0/hotfix) and "**" also crosses "/". Existing v\*\* patterns keep working. | No | - | | `collector` | What collected the runner context. It selects the fix steps in skip reasons and violations: "cli" (default) for a runner context created with `chainloop gather-runner-context`, or "managed" for the managed SCM Configuration Check, which reads the repository through the Chainloop GitHub App or the GitLab connection. | No | `cli` | ### tag-rules-change-restricted Validates that only authorized actors can bypass tag protection rules. Checks bypass_configuration on tag rulesets to ensure only approved roles, teams, or users can bypass protections. Supports GitHub only (GitLab tag protection uses access levels checked via create_access_levels). * **Categories:** `security` * **Supported material types:** `CHAINLOOP_RUNNER_CONTEXT` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `allowlist` | Comma-separated list of allowed actors who can bypass tag protection rules. If not specified, no bypass actors are allowed. Use format "role:RoleName", "team:teamname", or "user:username" (e.g., role:Repository Admin,team:release-team) | No | - | | `tags` | Comma-separated list of tag patterns to check, for example v\*,release/**. If not specified, all tags are checked. "*" matches within one path segment (v* matches v1.2.3, release/\* matches release/1.0 but not release/1.0/hotfix) and "**" also crosses "/". Existing v\*\* patterns keep working. | No | - | | `collector` | What collected the runner context. It selects the fix steps in skip reasons and violations: "cli" (default) for a runner context created with `chainloop gather-runner-context`, or "managed" for the managed SCM Configuration Check, which reads the repository through the Chainloop GitHub App or the GitLab connection. | No | `cli` | ### test-coverage-scan-present Checks that a test coverage report is present in the attestation. Supports JaCoCo and Cobertura XML reports. Pair it with `code-coverage` so a run that produces no coverage report at all is reported, rather than silently satisfying the threshold policy that never gets to evaluate. * **Categories:** `coverage` `testing` * **Supported material types:** `ATTESTATION` ### trusted-binaries-authenticode-signed DEPRECATED: use `trusted-binaries-signed` instead. As of `trusted-binaries-signed` v2 the extension filter is optional, so that policy now covers this exact check — omit `extensions` to check every in-scope file (this policy's behavior), or supply `extensions` to restrict to specific file types. This policy is retained only for backward compatibility and will be removed in a future release. Verifies that binaries listed in a Sysinternals sigcheck manifest are digitally signed and that the signature belongs to an expected publisher. For every in-scope file the policy raises a violation when the file is not signed, or when it is signed by a publisher other than the expected one. The expected publisher is matched (case-insensitive substring) against both the sigcheck `Publisher` (the Authenticode signer) and `Company` columns, since the two often carry slightly different forms of the same organization name. Use `paths` / `ignored_paths` to scope the check to the binaries that must be signed (for example, excluding operating-system files). The signature attributes are the only thing derivable from the manifest; complementary controls such as malware scanning or chain-of-custody are evidenced by the manifest itself, not enforced here. * **Categories:** `security` `binaries` `compliance` * **Supported material types:** `SYSINTERNALS_SIGCHECK` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `publisher` | Comma-separated list of expected Authenticode publisher names. A file passes when its `Publisher` or `Company` column contains any of these values (case-insensitive substring). Example: publisher="Contoso, Contoso Inc". | Yes | - | | `paths` | Comma-separated list of path globs the policy applies to. Matching is case-insensitive and treats both `\` and `/` as path separators. Defaults to all files (`**`). Example: paths="c:/program files/contoso/\*\*". | No | - | | `ignored_paths` | Comma-separated list of path globs to exclude from the check, evaluated after `paths`. Example: ignored_paths="c:/windows/\*\*". | No | - | ### trusted-binaries-signed Verifies that the binaries built for a product are digitally signed. By default the check applies to every in-scope file. Supply `extensions` to restrict it to a specific set of file types (for example, the Authenticode-supported `exe,dll,ocx,ctl,cat,cab,msi,xpi`). Every in-scope file that is not signed raises a violation. When `publisher` is set, in-scope files must additionally be signed by one of the expected publishers, matched (case-insensitive substring) against both the sigcheck `Publisher` and `Company` columns. Use `paths` / `ignored_paths` to restrict the check to the files produced by the build (for example, the installation directory), and `extensions` to limit it to specific file types. Changelog: * v2 (behavior change): the `extensions` filter is now optional. Omitting it no longer applies the built-in Authenticode extension set — instead all in-scope files are checked. Supply `extensions` explicitly to restrict the check to specific file types. - **Categories:** `security` `binaries` `compliance` - **Supported material types:** `SYSINTERNALS_SIGCHECK` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `extensions` | Comma-separated extensions to restrict the check to. Omitted → no extension filter (all in-scope files are checked). | No | - | | `publisher` | Comma-separated list of expected publisher names. When set, in-scope signed files must match one of these (case-insensitive substring against the `Publisher` or `Company` column). When omitted, any valid signature is accepted. Example: publisher="Contoso, Contoso Inc". | No | - | | `paths` | Comma-separated list of path globs the policy applies to. Matching is case-insensitive and treats both `\` and `/` as path separators. Defaults to all files (`**`). Example: paths="c:/program files/contoso/\*\*". | No | - | | `ignored_paths` | Comma-separated list of path globs to exclude from the check, evaluated after `paths`. Example: ignored_paths="c:/windows/\*\*". | No | - | ### trusted-binaries-timestamp Verifies that signed binaries in a Sysinternals sigcheck manifest carry a signature timestamp. For every in-scope file that is signed, the policy raises a violation when the sigcheck `Date` column (the signing timestamp) is empty or `n/a`. Unsigned files are ignored, since there is no signature to timestamp. The manifest must include the `Date` column for the check to be meaningful: if no record carries a `Date` column the policy is skipped rather than reporting false positives, so run sigcheck with its default columns (the `Date` column is included by default). * **Categories:** `security` `binaries` `compliance` * **Supported material types:** `SYSINTERNALS_SIGCHECK` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `paths` | Comma-separated list of path globs the policy applies to. Matching is case-insensitive and treats both `\` and `/` as path separators. Defaults to all files (`**`). Example: paths="c:/program files/contoso/\*\*". | No | - | | `ignored_paths` | Comma-separated list of path globs to exclude from the check, evaluated after `paths`. Example: ignored_paths="c:/windows/\*\*". | No | - | ### trusted-binaries-vendor-keys Verifies that third-party / redistributed binaries are not signed with the organization's own signing key. Third-party components must be redistributed with the signature (or lack thereof) established by the party that built them; they must never be re-signed with the organization's key. The policy flags any file under `third_party_paths` that is signed and whose `Publisher` or `Company` column matches the organization identity given in `publisher`. Matching is case-insensitive substring against both columns, so slightly different forms of the same organization name (for example `Contoso Inc` vs `Contoso, Inc.`) are both detected. * **Categories:** `security` `binaries` `compliance` * **Supported material types:** `SYSINTERNALS_SIGCHECK` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `publisher` | Comma-separated list of the organization's own publisher names. Any third-party file signed with one of these (matched case-insensitive substring against the `Publisher` or `Company` column) is a violation. Example: publisher="Contoso, Contoso Inc". | Yes | - | | `third_party_paths` | Comma-separated list of path globs identifying third-party / redistributed binaries. Matching is case-insensitive and treats both `\` and `/` as path separators. Example: third_party_paths="**/vendor/**,**/redist/**". | Yes | - | | `ignored_paths` | Comma-separated list of path globs to exclude from the check, evaluated after `third_party_paths`. | No | - | ### upstream-check Checks that a run of a named upstream workflow (for example CI), in the same project, attested the same material (by digest) without policy violations. It uses the links between workflow runs in the Chainloop graph. * **Categories:** `security` `compliance` * **Supported material types:** `Any` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `workflow` | Name of the upstream workflow, in the same project, whose runs must attest the material. Example: workflow="build" passes when the latest run of "build" attested the material and has no policy violations. | Yes | - | | `runs` | Which runs of the workflow must pass, "latest" or "all". Example: runs="all" fails when any run of the workflow that attested the material has policy violations. | No | `latest` | | `require_run` | Fail when no run of the workflow attested the material. Example: require_run="false" passes when there is no run, but a run that exists must still pass fail_on. | No | `true` | | `fail_on` | Which policy violations of a checked run fail the check, "policy-violations", "policy-gate-violations" or "none". Example: fail_on="policy-gate-violations" fails only when the run has violations of gated policies. | No | `policy-violations` | ### vulnerabilities Checks that the vulnerability severity or score, found in a vulnerabilities report, are above an input threshold. It supports a CVSS "score" input for numeric threshold, or "severity" for text-based severity. Compatible with SARIF (Trivy, Grype, Stackhawk, Prisma Cloud, WizCLI, Snyk and OWASP Dependency-Check), BlackDuck and TwistCLI formats * **Categories:** `security` `CVE` * **Supported material types:** `BLACKDUCK_SCA_JSON` `CHECKMARX_JSON` `GHAS_DEPENDENCY_SCAN` `SARIF` `SBOM_CYCLONEDX_JSON` `TWISTCLI_SCAN_JSON` * **Auto-match:** Yes ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `severity` | | No | `MEDIUM` | | `score` | | No | - | | `suppress_assessed` | Skip the gate for violations whose effective assessment status is NOT_AFFECTED. | No | `true` | | `suppress_triaged` | | No | `true` | | `suppress_unrated` | Skip vulnerabilities the scanner reported without any severity rating. By default they are emitted at UNKNOWN severity. Not affected by `severity`: an unrated vulnerability has no score to compare against a threshold, so it is reported even when the threshold is set to CRITICAL. | No | `false` | ### vulnerability-scan-present Checks that a supported SCA scan material is present in the attestation. Compatible with SARIF (Trivy, Grype, Stackhawk, TwistCLI, Snyk, WizCLI and OWASP Dependency-Check), BlackDuck, GHAS Dependency Scan and CycloneDX with vulnerabilities formats * **Categories:** `security` `CVE` * **Supported material types:** `ATTESTATION` ### webapi-validation-clean Evaluates SARIF 2.1.0 web API validation reports and checks for results at or above a severity threshold. Default threshold is `error`. Can be set to `warning` or `note` to catch lower-severity issues. Extracts the tool name from `runs[0].tool.driver.name` for reporting. * **Categories:** `security` `API` * **Supported material types:** `SARIF` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `severity` | The severity level to filter the validation results. Results at or above this level are reported as violations. Possible values are `note`, `warning`, `error`. | No | `error` | ### webapi-validation-present Checks that a web API specification material is present in the attestation. Supports OpenAPI, AsyncAPI, and GraphQL specifications. * **Categories:** `security` `API` * **Supported material types:** `ATTESTATION` ### webserver-response-headers Gates an OWASP ZAP (DAST) SARIF report on the presence of one or more specific ZAP **rule IDs**. Configure the rule ID(s) via the `zap_rule_ids` input (comma-separated); the presence of any configured rule ID in the report is a violation. This is a generic, fine-grained gate: point it at the exact ZAP rule ID(s) you care about instead of a broad CWE bucket. One common use is gating individual webserver response-header checks (X-Content-Type-Options, HSTS, CSP, Permissions-Policy, HttpOnly, SameSite, fingerprinting) independently, since each maps to a distinct ZAP rule ID. Reads rule IDs directly, so it works across ZAP 2.15 – 2.17+ regardless of the version-dependent CWE taxonomy. ZAP's "-N" alert-variant suffix is stripped before matching (so "10038-1" matches a configured "10038"). Alerts marked as false positives in ZAP are not flagged. The SARIF report keeps one confidence for each ZAP rule, taken from its first alert, so mark all alerts of a rule as false positives. **Supported Tools:** * **SARIF**: OWASP ZAP (2.15 – 2.17+) - **Categories:** `security` `DAST` - **Supported material types:** `SARIF` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `zap_rule_ids` | Comma-separated ZAP rule ID(s) whose presence in the report counts as a violation (e.g. "10038,10055"). ZAP's "-N" alert-variant suffix is stripped before matching. | Yes | - | ### windows-executables-strong-acls Verifies, from Sysinternals AccessChk evidence, that Windows product executables, directories and associated files are protected by strong ACLs: no non-administrator principal may be granted rights that allow modifying or deleting the object (GENERIC_ALL, GENERIC_WRITE, WRITE_OWNER, WRITE_DAC, FILE_WRITE_ATTRIBUTES, FILE_WRITE_EA, FILE_APPEND_DATA, FILE_WRITE_DATA, DELETE, FILE_DELETE_CHILD, FILE_ALL_ACCESS). Right names are matched exactly (case-insensitive) against the tokens AccessChk emits. Evidence collection: scope the AccessChk run to the product's own install and data directories, e.g. `accesschk.exe -s -l "C:\Program Files\\"` (repeat for each product path), so findings reflect the product's artifacts rather than unrelated files. The policy ignores ACEs flagged INHERIT_ONLY_ACE, which per the Win32 ACE_HEADER documentation do not control access to the object they are attached to (they only seed inheritance to child objects). References: * Sysinternals AccessChk (evidence format): [https://learn.microsoft.com/en-us/sysinternals/downloads/accesschk](https://learn.microsoft.com/en-us/sysinternals/downloads/accesschk) * Windows file and directory access rights (token names): [https://learn.microsoft.com/en-us/windows/win32/fileio/file-security-and-access-rights](https://learn.microsoft.com/en-us/windows/win32/fileio/file-security-and-access-rights) - **Categories:** `security` `compliance` - **Supported material types:** `SYSINTERNALS_ACCESSCHK` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `allowedPrincipals` | Comma-separated list of additional principals allowed to hold modify rights (extends the built-in administrator allowlist: BUILTIN\Administrators, NT AUTHORITY\SYSTEM, NT SERVICE\TrustedInstaller, LOCAL SYSTEM). Matching is case-insensitive. | No | - | | `forbiddenRights` | Comma-separated list of access rights that non-administrators must not hold. When provided, replaces the policy's default forbidden-rights set. | No | - | ### windows-machine-registry-strong-acls Verifies, from Sysinternals AccessChk evidence, that Windows Local Machine registry keys created or changed by a product are protected by strong ACLs: no non-administrator principal may be granted rights that allow modifying the key (GENERIC_ALL, GENERIC_WRITE, WRITE_OWNER, WRITE_DAC, KEY_SET_VALUE, KEY_CREATE_SUB_KEY, DELETE, KEY_ALL_ACCESS, KEY_WRITE). Right names are matched exactly (case-insensitive) against the tokens AccessChk emits, so they use the Windows spelling KEY_CREATE_SUB_KEY. Evidence collection: scope the AccessChk run to the registry keys the product creates or changes, not the whole hive. Target the product's key subtrees, e.g. `accesschk.exe -k -s -d -l "HKLM\SOFTWARE\"` (repeat for each product subtree; note that 32-bit products are redirected under HKLM\SOFTWARE\Wow6432Node, and a service's own configuration lives under HKLM\SYSTEM\CurrentControlSet\Services\), rather than `accesschk.exe -k -s -d -l HKLM`. HKLM holds hundreds of thousands of keys that are overwhelmingly Windows and third-party defaults, so a whole-hive dump inflates findings and evidence size. The policy ignores ACEs flagged INHERIT_ONLY_ACE, which per the Win32 ACE_HEADER documentation do not control access to the object they are attached to (they only seed inheritance to child objects). References: * Sysinternals AccessChk (evidence format): [https://learn.microsoft.com/en-us/sysinternals/downloads/accesschk](https://learn.microsoft.com/en-us/sysinternals/downloads/accesschk) * Windows registry key access rights (token names): [https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry-key-security-and-access-rights](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry-key-security-and-access-rights) - **Categories:** `security` `compliance` - **Supported material types:** `SYSINTERNALS_ACCESSCHK` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `allowedPrincipals` | Comma-separated list of additional principals allowed to hold modify rights (extends the built-in administrator allowlist: BUILTIN\Administrators, NT AUTHORITY\SYSTEM, NT SERVICE\TrustedInstaller, LOCAL SYSTEM). Matching is case-insensitive. | No | - | | `forbiddenRights` | Comma-separated list of access rights that non-administrators must not hold. When provided, replaces the policy's default forbidden-rights set. | No | - | ### windows-service-config-strong-acls Verifies, from Sysinternals AccessChk evidence, that Windows service definitions are protected by strong ACLs: no non-administrator principal may be granted rights that allow changing service registration or configuration (GENERIC_ALL, GENERIC_WRITE, WRITE_OWNER, WRITE_DAC, DELETE, ACCESS_SYSTEM_SECURITY, SERVICE_CHANGE_CONFIG, SERVICE_ALL_ACCESS). Right names are matched exactly (case-insensitive) against the tokens AccessChk emits; a service's generic-write grant surfaces as GENERIC_WRITE or SERVICE_CHANGE_CONFIG (both covered), not as a SERVICE_GENERIC_WRITE token. Evidence collection: scope the AccessChk run to the product's own services by name, e.g. `accesschk.exe -c -l [ ...]`, rather than `accesschk.exe -c -l *`, which enumerates every service on the machine and reports Windows built-in services the product did not create or change. References: * Sysinternals AccessChk (evidence format): [https://learn.microsoft.com/en-us/sysinternals/downloads/accesschk](https://learn.microsoft.com/en-us/sysinternals/downloads/accesschk) * Windows service access rights (token names): [https://learn.microsoft.com/en-us/windows/win32/services/service-security-and-access-rights](https://learn.microsoft.com/en-us/windows/win32/services/service-security-and-access-rights) - **Categories:** `security` `compliance` - **Supported material types:** `SYSINTERNALS_ACCESSCHK` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `allowedPrincipals` | Comma-separated list of additional principals allowed to hold modify rights (extends the built-in administrator allowlist: BUILTIN\Administrators, NT AUTHORITY\SYSTEM, NT SERVICE\TrustedInstaller, LOCAL SYSTEM). Matching is case-insensitive. | No | - | | `forbiddenRights` | Comma-separated list of access rights that non-administrators must not hold. When provided, replaces the policy's default forbidden-rights set. | No | - | ## Policy Groups ### branch-protection Enforces branch protection: branches cannot be deleted or force pushed, keep a linear history, and only authorized users can change their protection. Supports both GitHub and GitLab. It needs a runner context material named runner-context, created with `chainloop gather-runner-context` and a GitHub or GitLab token that can read branch protection. Read more in the [runner context documentation](https://docs.chainloop.dev/reference/runner-context#gathering-runner-context). * **Categories:** `security` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `branches` | Comma-separated list of branch name patterns to check, for example main,release/*. "*" matches within one path segment (release/\* matches release/1.0 but not release/1.0/hotfix) and "\*\*" also crosses "/". If not set, every branch in the runner context is checked, including unprotected feature branches, so set it to the branches you protect (for example main). | No | - | | `authorized_admins` | Comma-separated list of authorized users/teams who can modify branch protection rules. If not specified, secure defaults apply (GitHub allows "admin", GitLab allows "Maintainers"). It is passed to the allowlist input of repository-rules-change-restricted. - GitHub: Use format `user:`, `collaborator:`, or `team:` (e.g., user:alice,team:security,collaborator:bob) - GitLab: Use role names such as Maintainers, user display names such as Alice Smith, or group names. Setting it replaces the default Maintainers, so list Maintainers explicitly to keep it (e.g., Maintainers,Alice Smith) | No | - | | `collector` | What collected the runner context. It selects the fix steps in skip reasons and violations, and is passed to every policy in this group: "cli" (default) for a runner context created with `chainloop gather-runner-context`, or "managed" for the managed SCM Configuration Check, which reads the repository through the Chainloop GitHub App or the GitLab connection. | No | `cli` | ##### Material Policies | Material Name | Material Type | Policies | | - | - | - | | `runner-context` | `CHAINLOOP_RUNNER_CONTEXT` | [branch-deletion-blocked](#branch-deletion-blocked) [branch-force-push-blocked](#branch-force-push-blocked) [branch-linear-history-required](#branch-linear-history-required) [repository-rules-change-restricted](#repository-rules-change-restricted) | ### code-review Enforces code review settings: pull and merge requests need a minimum number of approvals, stale approvals are dismissed on new commits, code owners must approve changes to their files, and conversations must be resolved before merging. These policies check repository settings, not individual pull requests. Supports both GitHub and GitLab; on GitLab, approval rules, approval settings and code owner approval need GitLab Premium or Ultimate. It needs a runner context material named runner-context, created with `chainloop gather-runner-context` and a GitHub or GitLab token that can read branch protection. Read more in the [runner context documentation](https://docs.chainloop.dev/reference/runner-context#gathering-runner-context). * **Categories:** `security` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `min_reviewers` | Minimum number of approvals that pull or merge requests must require before merging. | No | `1` | | `branches` | Comma-separated list of branch name patterns to check, for example main,release/*. "*" matches within one path segment (release/\* matches release/1.0 but not release/1.0/hotfix) and "\*\*" also crosses "/". If not set, every branch in the runner context is checked, including unprotected feature branches, so set it to the branches you protect (for example main). | No | - | | `collector` | What collected the runner context. It selects the fix steps in skip reasons and violations, and is passed to every policy in this group: "cli" (default) for a runner context created with `chainloop gather-runner-context`, or "managed" for the managed SCM Configuration Check, which reads the repository through the Chainloop GitHub App or the GitLab connection. | No | `cli` | ##### Material Policies | Material Name | Material Type | Policies | | - | - | - | | `runner-context` | `CHAINLOOP_RUNNER_CONTEXT` | [pr-review-required](#pr-review-required) [pr-stale-reviews-dismissed](#pr-stale-reviews-dismissed) [pr-code-owner-review-required](#pr-code-owner-review-required) [pr-conversation-resolution-required](#pr-conversation-resolution-required) | ### cwes This policy group applies CWE-related policies: CWE Top 25 Most Dangerous Software Weaknesses and CWE On the Cusp (ranked 26–40). Use it to enforce that source or dependency scans are free from these common weaknesses. * **Categories:** `security` `CWE` ##### Material Policies | Material Name | Material Type | Policies | | - | - | - | | - | Any | [cwe-top25](#cwe-top25) [cwe-top26-40-cusp](#cwe-top26-40-cusp) | ### pr-quality This policy group enforces pull request quality standards to ensure proper documentation and traceability. It includes policies that require meaningful PR descriptions and links to user stories or issues. Supports both GitHub and GitLab. Read more about how to capture PR information in the [documentation](https://docs.chainloop.dev/guides/pr-policies-control-gate). * **Categories:** `quality` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `min_length` | Minimum description length in characters. | No | `50` | | `allow_empty` | Allow empty descriptions. | No | `false` | | `required_sections` | List of required sections in description (comma-separated, case-insensitive). | No | - | | `patterns` | List of regex patterns to match issue references (comma-separated). Patterns are separated by commas, so a pattern cannot contain a comma (for example a \{2,} quantifier); write it without one, such as \[A-Z]\[A-Z]+-\[0-9]+. | No | `(?i)[A-Z]+-[0-9]+,#[0-9]+,(?i)gh-[0-9]+,(?i)\[[A-Z]+-[0-9]+\]` | ##### Material Policies | Material Name | Material Type | Policies | | - | - | - | | `pr-info` | `CHAINLOOP_PR_INFO` | [pr-description-required](#pr-description-required) [pr-user-story-linked](#pr-user-story-linked) | ### pr-validation Unified PR validation policy group covering both bot-authored and human-authored PRs. Policies self-select based on author type: bot-specific policies skip for human authors and vice versa. Supports both GitHub and GitLab. Read more about how to capture PR information in the [documentation](https://docs.chainloop.dev/guides/pr-policies-control-gate). * **Categories:** `quality` `security` `automation` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `allowed_bots` | Comma-separated list of allowed bot author names. If not specified, defaults to dependabot\[bot] and renovate\[bot]. | No | - | | `min_length` | Minimum description length in characters. | No | `50` | | `allow_empty` | Allow empty descriptions. | No | `false` | | `required_sections` | Required sections in description (comma-separated, case-insensitive). | No | - | | `patterns` | List of regex patterns to match issue references (comma-separated). Patterns are separated by commas, so a pattern cannot contain a comma (for example a \{2,} quantifier); write it without one, such as \[A-Z]\[A-Z]+-\[0-9]+. | No | `(?i)[A-Z]+-[0-9]+,#[0-9]+,(?i)gh-[0-9]+,(?i)\[[A-Z]+-[0-9]+\]` | | `min_approvals` | Minimum number of approving reviews required on the PR/MR. | No | `1` | | `count_bots` | Whether review outcomes from bot reviewers (approvals and change requests) count. | No | `false` | | `allowed_agents` | Comma-separated list of allowed AI agent names. | Yes | `__CHANGE_ME__` | | `allowed_servers` | Comma-separated list of allowed MCP server names. | Yes | `__CHANGE_ME__` | | `ignored_paths` | Comma-separated list of regular expressions for paths to ignore in AI secret scanning. | No | - | | `allowed_signed_url_hosts` | Comma-separated list of hostnames whose signed/presigned URLs are exempt from JWT reporting in AI secret scanning (e.g. uploads.linear.app). When omitted, every presigned-URL JWT is reported. | No | - | | `min_lines` | Minimum number of lines required for AI instruction/skill files (default 10). | No | - | | `max_lines` | Maximum number of lines allowed for AI instruction/skill files, overrides kind-specific defaults. | No | - | ##### Attestation Policies * [source-commit](#source-commit) * [ai-agent-present](#ai-agent-present) ##### Material Policies | Material Name | Material Type | Policies | | - | - | - | | `pr-info` | `CHAINLOOP_PR_INFO` | [pr-bot-author-allowed](#pr-bot-author-allowed) [pr-description-required](#pr-description-required) [pr-user-story-linked](#pr-user-story-linked) [pr-min-approvals](#pr-min-approvals) | | - | Any | [ai-config-ai-agents-allowed](#ai-config-ai-agents-allowed) [ai-config-mcp-servers-allowed](#ai-config-mcp-servers-allowed) [ai-config-no-secrets](#ai-config-no-secrets) [ai-subagents-permissions-scope](#ai-subagents-permissions-scope) [ai-instructions-size-bounds](#ai-instructions-size-bounds) | ### sast This policy group applies Static Application Security Testing (SAST) related policies. * **Categories:** `security` `SAST` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `severity` | Minimum severity level for SAST findings (LOW, MEDIUM, HIGH, CRITICAL) | No | `MEDIUM` | | `score` | Minimum CVSS score for SAST findings (0.0-10.0) | No | - | ##### Attestation Policies * [sast-scan-present](#sast-scan-present) ##### Material Policies | Material Name | Material Type | Policies | | - | - | - | | - | Any | [sast](#sast) | ### sbom-quality This policy group applies a number of SBOM-related policies * **Categories:** `SBOM` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `bannedComponents` | Comma separated list of components to ban | No | - | | `bannedLicenses` | Comma separated list of licenses to ban | No | - | | `allowedCustomLicenses` | Comma separated list of allowed custom licenses names | No | - | | `licenseExceptions` | Comma separated list of exception rules to allow specific components with banned licenses. Format: type::identifier::license_exception | No | - | | `sbomFreshness` | Max age in days | No | `30` | | `sbom_name` | If provided, a CycloneDX material with the provided name will be required. Otherwise, any SBOM will be affected by this policy | No | - | | `skippedTypes` | If provided, validation for empty licenses will be skipped for the specified CycloneDX SBOM component types (comma-separated, e.g. "file,framework") | No | - | | `skippedPurlTypes` | Comma separated list of purl type prefixes to exclude from banned-license checks (e.g. "pkg:deb,pkg:rpm,pkg:apk") | No | - | ##### Attestation Policies * [sbom-present](#sbom-present) ##### Material Policies | Material Name | Material Type | Policies | | - | - | - | | `{{ inputs.sbom_name }}` | `SBOM_CYCLONEDX_JSON` | [sbom-banned-licenses](#sbom-banned-licenses) [sbom-banned-components](#sbom-banned-components) [sbom-freshness](#sbom-freshness) [sbom-ntia](#sbom-ntia) [sbom-with-licenses](#sbom-with-licenses) | ### slsa-checks This policy group applies a number of SLSA-related policies. * **Categories:** `SLSA` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `runner` | Check that the attestation was generated in a specific runner type. | No | - | | `environment` | Specifies the expected runner environment, i.e. github-hosted, managed. | No | - | | `require_tsa` | Specifies whether the TSA signature is required. | No | - | ##### Attestation Policies * [runner-automated](#runner-automated) * [runner-authenticated](#runner-authenticated) * [signature-present](#signature-present) ### tag-protection This policy group enforces tag protection rules to prevent tag manipulation attacks such as the Trivy supply chain attack. It includes policies that prevent tag deletion, force pushes on tags, and restrict who can bypass tag protection rules. Supports both GitHub and GitLab. Read more about how to generate the needed material in the [documentation](https://docs.chainloop.dev/reference/runner-context#gathering-runner-context). * **Categories:** `security` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `tags` | Comma-separated list of tag patterns to check, for example v\*,release/**. If not specified, all tags are checked. "*" matches within one path segment (v* matches v1.2.3, release/\* matches release/1.0 but not release/1.0/hotfix) and "**" also crosses "/". Existing v\*\* patterns keep working. | No | - | | `authorized_bypass` | Comma-separated list of actors authorized to bypass tag protection rules. If not specified, no bypass actors are allowed. Use format "role:RoleName", "team:teamname", or "user:username" (e.g., role:Repository Admin,team:release-team) | No | - | | `collector` | What collected the runner context. It selects the fix steps in skip reasons and violations, and is passed to every policy in this group: "cli" (default) for a runner context created with `chainloop gather-runner-context`, or "managed" for the managed SCM Configuration Check, which reads the repository through the Chainloop GitHub App or the GitLab connection. | No | `cli` | ##### Material Policies | Material Name | Material Type | Policies | | - | - | - | | `runner-context` | `CHAINLOOP_RUNNER_CONTEXT` | [tag-deletion-blocked](#tag-deletion-blocked) [tag-force-push-blocked](#tag-force-push-blocked) [tag-rules-change-restricted](#tag-rules-change-restricted) | ### vulnerability-management This policy group applies vulnerability management related policies. * **Categories:** `security` `CVE` ##### Inputs | Name | Description | Required | Default | | - | - | - | - | | `severity` | Minimum severity for a vulnerability finding to count as a violation (LOW, MEDIUM, HIGH, CRITICAL) | No | `HIGH` | ##### Attestation Policies * [vulnerability-scan-present](#vulnerability-scan-present) ##### Material Policies | Material Name | Material Type | Policies | | - | - | - | | - | Any | [vulnerabilities](#vulnerabilities) | # Role Based Access Control Source: https://docs.chainloop.dev/reference/rbac > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). Chainloop Role Base Access Control (RBAC) allows scoping down users by resources (i.e. projects). For example, RBAC can be used to ensure that employees can only see and access the projects they are assigned to. Or to limit the actions that a particular user or [group of users](#groups) can perform on a Workflow (like sending an attestation). RBAC is implemented through Roles. Users can have assigned roles on organizations and projects for access control. ## Roles ### Instance role > [!NOTE] > > The Instance Admin role is only available in Enterprise Edition self-hosted (on-prem) deployments. **Instance Admin** is an instance-wide role that sits above organizations. It is not assigned from the UI: instance admins are declared in the deployment configuration through [auto-onboarding](/guides/deployment/guides/provisioning#instance-administrators), either with a static allowlist of emails and domains (`instance_admin_spec`) or with SSO claims that map the reserved `instance` organization to the `admin` role. Instance admins can: * Create organizations, even when organization creation is [restricted](/guides/deployment/guides/restrict-org-creation) in the control plane. * Invite members to any organization in the instance. * List and create [CAS backends](/concepts/cas-backend) in any organization. * Create, list, and revoke instance-level API tokens, which carry the same instance-wide permissions. See [Organization provisioning with API tokens](/guides/deployment/guides/org-provisioning). The role is limited to those operations, and the boundary holds in both directions: * Being an instance admin does not grant access to organization content. When an instance admin operates on an organization where they hold no membership, the permissions above are all they get: reading projects, workflows, or attestations still requires an organization, product, or project role. * Instance-level operations are reserved for instance admins. Organization Owners and Admins cannot perform them, despite having full access within their own organization. > [!NOTE] > > On Chainloop-managed (SaaS) instances, the Instance Admin role is held only by Chainloop operators, who use it for instance administration > tasks such as billing account and identity provider management. ### Organization roles There are five organization level roles: * **Organization Owner**: It's the highest privilege role, providing full access to all resources and features. It's the role acquired by the creator of the organization. * **Organization Admin**: It's a management role in the organization, they have full access to the organization, its members and projects. * **Organization Viewer**: It's a read-only role that provides full visibility on the organization resources. * **Member**: Members can create projects. They only have permissions in projects they create, or they have been added to with a Project Role. Members can manage projects but cannot manage organization resources. * **Contributor**: Contributors can only contribute to projects they have been added to with a Project Role. Contributors cannot create projects and cannot manage organization resources. **Organization access summary:** | Role | Org Access | Can Create Projects | Project-scoped RBAC | | - | - | - | - | | Organization Owner | Full Access | Yes | Admin on all projects | | Organization Admin | Full Operations Access | Yes | Admin on all projects | | Organization Viewer | Read-only | No | Viewer on all projects | | Member | Limited | Yes (\*) | Depends on project role | | Contributor | Limited | No | Depends on project role | (\*) Members become *Project Admins* on the projects they create > [!WARNING] > > Org Owner, Admin and Viewer roles can operate on all projects in the organization. While Members and Contributors can only operate on projects they have been added to with a Project Role. ### Product roles Product roles are used to manage user access at the product level, which is a collection of projects. There are two product roles: * **Product Admin**: Provides full access to the product, including managing projects, attaching compliance frameworks, and managing user access. * **Product Viewer**: Provides read-only access to the product and its associated projects. Note that product roles will be propagated to the projects associated with the product, but they do not override project roles. For example, a Product Viewer will still have read-only access to the projects, but if they have a Project Admin role on a specific project, they will have full access to that project. ### Project roles Project roles are needed when the user has the Organization "Member" or "Contributor" role to define their access level to specific projects. There are two different project roles: * **Project Admin**: Provides full access to the project resources. For example, they can manage workflows, create project-scoped contracts, configure compliance frameworks, and user or group membership. They can also create project API tokens and perform attestations. * **Project Viewer**: Provides read-only access to the project, workflows, and attestations. #### Assigning product and project roles You can list and manage members through products or project settings: ![The project actions menu with version and project settings options](https://mintcdn.com/chainloop/vTuUKiGCwGJ__XFJ/reference/img/project-settings.png?fit=max\&auto=format\&n=vTuUKiGCwGJ__XFJ\&q=85\&s=37cd113b563cc2d6e5fef89fba589664) Then you can use the membership form to add members and assign them project roles: ![The project members drawer listing users and groups with their roles](https://mintcdn.com/chainloop/vTuUKiGCwGJ__XFJ/reference/img/project-membership.png?fit=max\&auto=format\&n=vTuUKiGCwGJ__XFJ\&q=85\&s=dd375140871503649bbab9c404b27c38) Propagated roles will be shown grayed out, indicating that they are inherited from the product level. ![The project members drawer showing grayed-out inherited roles](https://mintcdn.com/chainloop/vTuUKiGCwGJ__XFJ/reference/img/rbac-inherited.png?fit=max\&auto=format\&n=vTuUKiGCwGJ__XFJ\&q=85\&s=695717b5e381f5519b13526394dfa013) ## Groups Groups can help in organizing users by Business Unit, Teams, Department, or any other criteria. They can be attached to projects with a given role. Users of the group would acquire that role when accessing the project. ### Creating groups Only [Organization Admins](/reference/rbac) can create groups through the "Groups" section in Organization settings: ![The Groups settings page listing organization groups](https://mintcdn.com/chainloop/vTuUKiGCwGJ__XFJ/reference/img/groups.png?fit=max\&auto=format\&n=vTuUKiGCwGJ__XFJ\&q=85\&s=09385a8fc43279ef2b582965197161f3) ### Adding users to a group In Group Details view, Admins can add new members to an existing group by clicking the "Add Member" button: ![The Add Member dialog for a group](https://mintcdn.com/chainloop/vTuUKiGCwGJ__XFJ/reference/img/group-add-member.png?fit=max\&auto=format\&n=vTuUKiGCwGJ__XFJ\&q=85\&s=13adb43ca45ab6d352c19d8bb6ff7a89) Group "Maintainers" can add and remove members from the group, regardless of their Organization Role. ## Project-scoped API tokens Alongside [org-level API tokens](/reference/api-tokens#chainloop-api-tokens), project-scoped API tokens can now be created from the project settings: ![The project actions menu with the Manage API tokens option](https://mintcdn.com/chainloop/vTuUKiGCwGJ__XFJ/reference/img/project-api-tokens.png?fit=max\&auto=format\&n=vTuUKiGCwGJ__XFJ\&q=85\&s=38a2a1a0b49da175edbca7c49aea0673) These tokens can be used to authenticate the Chainloop CLI/API, [perform attestations](/concepts/attestations), or operate in the context of a specific project. This adds security guarantees that a team can't interfere with another team's project and removes the bottleneck of requiring an organization administrator to provide such tokens. ## Product-Scoped API Tokens Product-scoped API tokens reach every project of a [product](/concepts/products), so one token can perform attestations and read data in all the projects of the product. Product Admins can create them for their product without an organization administrator. See [Product-Scoped API Tokens](/reference/api-tokens#product-scoped-api-tokens) for what these tokens can access and how to manage them. ## Summary of RBAC permissions Here you can find a summary of all the permissions (Read, Read/Write) associated with each role and resource. ### Instance-level resources These resources are only available to the [Instance Admin](#instance-role) role and to instance-level API tokens. They are not available to any organization, product, or project role. | Resource | Instance Admin | Instance API tokens (7) | | - | - | - | | Storage backend | RW (8) | RW (8) | | Instance API tokens | RW | RW | | Organizations | RW (9) | RW (9) | | Organization invitations | RW | RW | ### Org-level resources | Resource | Org Admin / Owner | Org Viewer | Org Member | Org Contributor | API tokens | | - | - | - | - | - | - | | API tokens | RW | R (1) | | | | | Artifact | RW | R | RW | RW | | | Audit logs | R | | | | | | Business Units | RW | R | R | R | | | Contracts | RW | R | R | R | RW (6) | | Frameworks | RW | R | R | R | | | Integrations | RW | R | R | R | | | Memberships (4) | RW | R | R | R | | | Org settings | RW | R | R | R | | | Organization | RW (3) | R | R | R | | | Policies | RW | R | R | R | | | Requirements | RW | R | R | R | | | Repositories | RW | R | R | R | | | Signing certificate | R | R | R | R | R | | Storage backend | RW | R | R | R | | | User group | RW (5) | R | R | R | | ### Product/project level resources | Resource | Org Admin / Owner | Org Viewer | Org Member | Org Contributor | Product Admin | Product Viewer | Project Admin (2) | Project Viewer | API tokens | | - | - | - | - | - | - | - | - | - | - | | Attestation | RW | R | | | | | RW | R | RW | | Comments | RW | RW | | | RW | RW | RW | RW | | | Compliance Data | RW | R | | | RW | R | RW | R | R | | Contracts | RW | R | | | | | RW | R | RW (6) | | Discover (graph) | R | R | | | | | R | R | | | Evidence | R | R | | | R | R | R | R | R | | Files | RW | | | | | | RW | | | | Integration attachments | RW | R | | | RW | | RW | | | | Product-scoped API tokens | RW | | | | RW (10) | R (1) (10) | | | RW (11) | | Products | RW | R | | | RW | R | | | R | | Projects | RW | R | | | | | RW | R | RW | | Workflow Metrics | R | R | | | | | R | R | | | Workflow Run | RW | R | | | | | RW | R | | | Workflows | RW | R | | | | | RW | R | RW (6) | (1) API tokens cannot be "read" since they are only available at creation time. But they can be listed. (2) Product Admins become Project Admins in the projects associated with the product. So any project-scoped permission that requires Project Admin role, is also available to the Product Admin in the parent product. (3) Depending on the configuration, new organizations could be created by any user, or only by the [Instance Admin](#instance-role) role (4) Memberships are managed by org admins and owners. But any user can leave an organization at any point (5) Group membership can ba also managed by "Group Maintainers" (6) API tokens can create contracts only during the attestation process (7) Instance-level API tokens are created by instance admins with `chainloop admin api-token create` and carry the same instance-wide permissions (8) Instance admins can list and create storage ([CAS](/concepts/cas-backend)) backends in any organization. Updating or deleting an existing backend is an Org Admin operation in the organization that owns it (9) Creation of new organizations. Deleting an organization remains reserved to its Org Owners (10) Product-scoped API tokens of the products where the user has the role. Users whose organization role is Org Viewer cannot manage or list product-scoped API tokens, whatever their product role (11) Organization API tokens only. Project-scoped and product-scoped API tokens cannot manage product-scoped API tokens # CI/CD Runner Context Source: https://docs.chainloop.dev/reference/runner-context Gathering runner context in your CI/CD pipeline. > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). Chainloop allows you to gather optional runner context information and add it to your attestation as a `CHAINLOOP_RUNNER_CONTEXT` material. This information includes the basic information about your CI/CD environment. The Chainloop CLI Enterprise Edition (CLI EE) enables automatic gathering of detailed runner context by collecting repository security configuration data directly from your CI/CD environment. This feature captures: * **Branch protection settings**: push restrictions, history and deletion controls * **Pull request protection settings**: review requirements, dismissal rules, and conversation resolution policies * **Commit protection settings**: signing requirements * **Repository access settings**: teams with repository access and their members, collaborators with their effective roles, and custom repository roles The collected context becomes part of your attestation data, providing auditable evidence of security controls during build and deployment and can be used with various [branch protection policies](/reference/branch-protection-policies). ## Gathering Runner Context Gathering the CI/CD runner context requires a few steps: ### Installing Chainloop CLI Enterprise Edition (CLI EE) The first step is to install Chainloop CLI EE. You can learn more about installing Chainloop CLI EE [here](/get-started/setup#install-the-chainloop-command-line-interface-cli) or just run the following command: ```bash theme={"dark"} curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s ``` The above command will install the latest version of Chainloop CLI EE, which includes the runner context gathering feature. ### Create the Access Token The second step is to create an access token for GitHub or GitLab. In order to gather the comprehensive runner context, Chainloop CLI EE requires an access token with the appropriate access level. Depending on the CI/CD platform of your choice, the access token will have different requirements. The token is only used by `chainloop gather-runner-context` on the runner to read your repository settings. It stays on the runner and is not sent to Chainloop. > [tab] GitHub > > We support two authentication methods for gathering runner context: > > > [!NOTE] > > > > **Enterprise GitHub Accounts** > > > > If you have an **Enterprise GitHub account**, you must create your GitHub Application at the **enterprise level** (not just at the organization level). Additionally: > > > > 1. Create the GitHub App in your Enterprise settings: `Enterprise settings` -> `Developer settings` -> `GitHub Apps` -> `New GitHub App` > > 2. Configure permissions at the enterprise level as described below > > 3. Install the app on the specific organizations and repositories within your enterprise > > 4. When using Personal Access Tokens (Method 2), you must use a **Classic PAT** (not fine-grained tokens) with the `read:enterprise` scope > > 5. Set the `GITHUB_ENTERPRISE` environment variable to your enterprise slug when running the gatherer > > > > **Why this matters**: When an enterprise has roles, teams, or organization roles defined at the enterprise level and propagated down to organizations and repositories, the gatherer needs these specific permissions to retrieve the complete details of EnterpriseRole and BusinessTeam bypass actors. Without these permissions, this information will not be available through the GitHub API. This option for the moment is only available through GitHub App integration or Personal Access Token (Classic), not fine-grained tokens. > > > > Example: > > > > ```bash theme={"dark"} > > export GITHUB_ENTERPRISE="your-enterprise-slug" > > chainloop gather-runner-context --runner-token ${{ steps.generate-token.outputs.token }} > > ``` > > #### Method 1: Custom GitHub Application (Recommended) > > For enterprise environments, you can create a custom GitHub Application to retrieve the data. This approach provides better security and management capabilities. > > **Steps to register the GitHub Application:** > > 1. Register a new GitHub Application in your Organization or Account profile, under **Developer settings** -> **GitHub Apps** -> **New GitHub App** > 2. Add a Homepage URL since it's a required parameter > 3. Uncheck the **Expire user authorization tokens** checkbox > 4. Uncheck the **Webhook active** checkbox > 5. Select the following permissions: > * **Repository**: > * `Administration`: read and write > * `Contents`: read-only > * **Organization**: > * `Members`: read-only > * `Administration`: read-only > * `Custom Organization Roles`: read-only > * `Custom Repository Roles`: read-only > * **Enterprise** (for enterprise accounts only, **in addition to** the above): > * `Custom Enterprise Roles`: read-only > > * `Custom Organization Roles`: read-only > > > [!NOTE] > > > > **Why these permissions are required:** > > > > * **Repository Administration (read and write)**: Write permission is required by GitHub's API to access security-sensitive ruleset configuration details needed for policy enforcement. The gatherer only reads configuration data and does not modify any repository settings. > > > > * **Repository Contents (read-only)**: Required to read repository metadata and basic information > > > > * **Organization Members (read-only)**: Required to fetch team member information for teams with repository access > > > > * **Organization Administration (read-only)**: Required to fetch all organization teams and determine which teams have access to specific repositories. This is particularly important for GitHub Apps, as they need this permission to discover organization-level team grants that aren't visible through repository-specific API endpoints. > > > > * **Custom Organization/Repository Roles (read-only)**: Required to resolve custom role names to their actual permissions and base roles > > > > * **Enterprise Custom Roles (read-only)** (Enterprise accounts only): Required to retrieve enterprise-level custom roles that may be assigned to teams or users > > 6. Click on **This enterprise** (for enterprise accounts) or select **Any account** (for non-enterprise accounts), depending on your desired installation scope > 7. Once registered, click on **Generate a private key**. This will download a private key file - store it securely > 8. Copy the **App ID** > 9. To install the GitHub App on specific repositories or the entire organization, go to **Developer settings** -> **GitHub Apps** -> **Your new App** and click on **Edit**. Once the app is loaded, click on **Install App** in the left sidebar and follow the installation steps. > > **Store the credentials:** > > * Store the App ID as a GitHub Actions variable (e.g., `APP_ID`) > * Store the private key as a GitHub Actions secret (e.g., `APP_PRIVATE_KEY`) > > #### Method 2: Personal Access Token (PAT) > > Create a personal access token with the following permissions: > > * `Only select repositories` - select the repository you want to gather context data from > * Repository permissions: > * `Administration` - `Access: Read and write` > * `Contents` - `Access: Read-only` > * Organization permissions: > * `Members` - `Access: Read-only` > > * `Administration` - `Access: Read-only` > > > [!NOTE] > > > > **Why these permissions are required:** > > > > **Repository Administration (Read and write)**: Write permission is required by GitHub's API to access security-sensitive ruleset configuration details needed for policy enforcement. The gatherer only reads configuration data and does not modify any repository settings. > > > > **Organization Administration (Read-only)**: Essential for comprehensive team access discovery, allowing the gatherer to fetch all organization teams and determine which have access to your repositories. Without this permission, only teams with explicit repository access grants will be visible. > > **For Enterprise GitHub accounts**: You must use a **Classic Personal Access Token** (not a fine-grained token) with the additional `read:enterprise` scope. Fine-grained tokens do not support enterprise-level API endpoints. > > Once generated, store the personal access token in the CI/CD secrets (e.g., `ADMIN_PERSONAL_ACCESS_TOKEN`). > > > [!WARNING] > > > > The default `GITHUB_TOKEN` of GitHub Actions does not have the `Administration` repository permission. With that token, classic branch protection rules cannot be read, so the policies report "no classic branch protection rule or ruleset" even when the branch is protected. Use a GitHub App or a personal access token with the permissions above. > [tab] GitLab > > For GitLab, create a personal, project or group access token with the `read_api` scope. The built-in `CI_JOB_TOKEN` cannot be used, because it cannot call the protected branches and project APIs. > > Use a token whose user has the `Maintainer` role. What each part of the runner context needs: > > | Data | Requirement | > | - | - | > | Protected branches and project settings | Any member who can read the code | > | Merge request approval settings and push rules | `Maintainer` role, and GitLab Premium or Ultimate | > > Without the `Maintainer` role, the collector reports permission errors for approval settings and push rules, and the policies that need them are skipped (see [Skipped policies](#skipped-policies)). > > Once generated, store the token in the CI/CD variables (e.g., `GITLAB_TOKEN`). `chainloop gather-runner-context` reads the `GITLAB_TOKEN` environment variable, or you can pass the token with `--runner-token`. > > For self-managed GitLab, the API URL is not detected automatically: pass it with `--runner-api-url`. It accepts the URL of your instance or its API URL (the CLI appends `/api/v4` when it is missing). In GitLab CI, use the predefined `CI_API_V4_URL` variable. ### Gather Runner Context The third step is to gather the runner context data. The approach differs based on your CI/CD platform and authentication method: > [tab] GitHub - Using GitHub Application > > When using a GitHub Application, you need to generate a token from the app credentials first, then use it with the Chainloop CLI. The following action allows you to retrieve > > ```yaml theme={"dark"} > > - name: Generate a token > id: generate-token > uses: actions/create-github-app-token@v2 > with: > app-id: ${{ vars.APP_ID }} > private-key: ${{ secrets.APP_PRIVATE_KEY }} > > ``` > > The key difference is using the `actions/create-github-app-token` action to generate a temporary token from your GitHub App credentials, which is then passed to the `chainloop gather-runner-context` command by using the `${{ steps.generate-token.outputs.token }}` expression. > > ```yaml theme={"dark"} > > - name: Gather runner context data > run: | > chainloop gather-runner-context --runner-token ${{ steps.generate-token.outputs.token }} > > ``` > > **For Enterprise GitHub accounts**: Don't forget to set the `GITHUB_ENTERPRISE` environment variable: > > ```yaml theme={"dark"} > > - name: Gather runner context data > env: > GITHUB_ENTERPRISE: your-enterprise-slug > run: | > chainloop gather-runner-context --runner-token ${{ steps.generate-token.outputs.token }} > > ``` > [tab] GitHub - Using Personal Access Token > > Add the following command to your GitHub Actions workflow: > > ```bash theme={"dark"} > chainloop gather-runner-context --runner-token ${{ secrets.ADMIN_PERSONAL_ACCESS_TOKEN }} > ``` > > **For Enterprise GitHub accounts**: Set the `GITHUB_ENTERPRISE` environment variable: > > ```yaml theme={"dark"} > > - name: Gather runner context data > env: > GITHUB_ENTERPRISE: your-enterprise-slug > run: | > chainloop gather-runner-context --runner-token ${{ secrets.ADMIN_PERSONAL_ACCESS_TOKEN }} > > ``` > > The above command will request the runner context data and store it in the file called `runner-context.json`. > [tab] GitLab > > Add the following command to your GitLab CI pipeline: > > ```yaml theme={"dark"} > - chainloop gather-runner-context --runner-token $GITLAB_TOKEN > ``` > > For self-managed GitLab, add the API URL of your instance. `CI_API_V4_URL` is a predefined GitLab CI variable. `--runner-api-url` accepts the instance URL or its API URL: > > ```yaml theme={"dark"} > - chainloop gather-runner-context --runner-token $GITLAB_TOKEN --runner-api-url "$CI_API_V4_URL" > ``` > > The above command will request the runner context data and store it in the file called `runner-context.json`. ### Choose the Branches to Collect Use `--branches` to limit the collected data to the branches you protect, for example: ```bash theme={"dark"} chainloop gather-runner-context --branches "main,release/*" ``` Patterns follow fnmatch rules: `*` matches any characters except `/`, so `release/*` matches `release/1.0` but not `release/1.0/hotfix`. `**` also crosses `/`, so `release/**` matches both. The `branches` input of the [branch protection policies](/reference/branch-protection-policies) uses the same rule. Related flags: `--tags` and `--max-tags` (default 15) for tag data, and `--fetch-contributors` to collect contributors. ### Add the Runner Context to the Attestation The fourth step is to add the runner context to the attestation. This can be done by adding the following command to your CI/CD pipeline, after `chainloop gather-runner-context` has written `runner-context.json`: ```bash theme={"dark"} chainloop attestation add --name runner-context --value runner-context.json --kind CHAINLOOP_RUNNER_CONTEXT ``` The [branch protection policy groups](/reference/branch-protection-policies) expect the material to be named `runner-context`. And that's it, you are ready. You can now use the gathered runner context with the [branch protection policies](/reference/branch-protection-policies). ## Skipped policies When the collector cannot read some data, it records an error in the runner context and the policies that need that data are skipped instead of passing or failing. The skip reason says what to change in the token used by `chainloop gather-runner-context`: | Skip reason | What to add | | - | - | | GitHub authentication failed | Check that the token is valid and not expired | | Insufficient permissions to read rulesets and branch protection (GitHub) | Use a GitHub App or token with the `Administration` repository permission. The default `GITHUB_TOKEN` does not have it | | Insufficient permissions to read rulesets (GitHub) | Give the token access to the repository and the `Administration` repository permission | | Insufficient permissions to read branches (GitHub) | The list of branches could not be read. Give the token the `Contents` and `Administration` repository permissions | | Could not verify branch(es) …: the token cannot read classic branch protection, and the active rulesets alone do not pass this check (GitHub) | Use a GitHub App or token with the `Administration` repository permission. The default `GITHUB_TOKEN` does not have it | | Could not verify branch(es) …: GitHub returned a temporary error while … read classic branch protection, and the active rulesets alone do not pass this check (GitHub) | Run `chainloop gather-runner-context` again | | Could not verify branch(es) …: classic branch protection could not be read (the token lacks permission for some branches and GitHub returned a temporary error for others), and the active rulesets alone do not pass this check (GitHub) | Run `chainloop gather-runner-context` again with a GitHub App or token that has the `Administration` repository permission | | Insufficient permissions to read repository collaborators and teams (GitHub, `repository-rules-change-restricted`) | Use a GitHub App or token that can read the repository's collaborators and the organization's teams and members | | Failed to fetch repository data from GitHub (GitHub, `repository-rules-change-restricted`) | The runner context has no repository data. Check the `gather-runner-context` output for the error | | Insufficient permissions to read the repository (GitHub, `repository-rules-change-restricted`) | Use a GitHub App or token that has access to the repository | | GitLab authentication failed | Check that `GITLAB_TOKEN` (or `--runner-token`) is valid and not expired | | Failed to fetch the project from GitLab | Check the `gather-runner-context` output. For self-managed GitLab, pass `--runner-api-url` | | Insufficient permissions to read the GitLab project | Use a token with the `read_api` scope and access to the project | | Insufficient permissions to read branches or branch protection (GitLab) | Use a token with the `read_api` scope and access to the project | | Could not read the approval rules because of a temporary GitLab error (GitLab, `pr-review-required`) | Run `chainloop gather-runner-context` again | | Insufficient permissions to read merge request approval settings (GitLab) | Use a token with the `read_api` scope from a `Maintainer`. Requires GitLab Premium or Ultimate | | Insufficient permissions to read push rules (GitLab) | Use a token with the `read_api` scope from a `Maintainer`. Requires GitLab Premium or Ultimate | ### Classic branch protection that cannot be read The GitHub branch and pull request policies do not skip the whole repository when the collector cannot read classic branch protection. This happens when the token lacks the `Administration` permission or GitHub returns a temporary error. The policies judge each branch on its own: * A branch passes when its active rulesets alone pass the check. * A branch whose classic rule was read is judged as usual. * Any other branch cannot be verified. If no branch fails for certain, the policy is skipped and the skip reason names the branches that could not be verified. If a branch fails, the policy reports only the failures. ### Private repositories on GitHub Free On GitHub Free, private repositories have no classic branch protection or rulesets. The branch and tag policies are not skipped. They report the missing protection and say to upgrade the plan or make the repository public. # Built-in Scanners Source: https://docs.chainloop.dev/reference/scanners The built-in scans Chainloop runs against a connected repository — the tool behind each one, the evidence it produces, and how to turn them on. > [!NOTE] > > This feature is only available on Chainloop's platform [paid plans](https://chainloop.dev/pricing). Chainloop's built-in [workflow templates](/concepts/workflow-templates) scan your code for you: Chainloop clones the repository connected to your project into a sandbox it manages, runs one open-source tool there, and records the output as a signed [attestation](/concepts/attestations). Nothing runs in your CI. In the product you pick a scan by name — **SAST Scan**, **Secret Scan**, **Vulnerability Scan** — without seeing what's behind it. This page names the tool each scan runs, what it looks for, the evidence it produces, and how to enable it. Throughout, *scan* means the built-in template you turn on and *tool* means the binary it runs. ## Scanners at a Glance | Scan | Tool | Looks for | Evidence produced | Run modes | | - | - | - | - | - | | **SAST Scan** | [opengrep](https://github.com/opengrep/opengrep) | Weaknesses in your source code | `SARIF` — `sast-report` | Periodic, PRs, manual | | **Secret Scan** | [betterleaks](https://github.com/betterleaks/betterleaks) | Committed credentials and other secrets | `GITLEAKS_JSON` — `secret-report` | Periodic, PRs, manual | | **Vulnerability Scan** | [syft](https://github.com/anchore/syft) + [grype](https://github.com/anchore/grype) | Known CVEs in your dependencies | `SARIF` — `vulnerability-report`, plus `SBOM_CYCLONEDX_JSON` — `sbom` | Periodic, PRs, manual | | **IaC Scan** | [checkov](https://www.checkov.io/) | Misconfigured infrastructure as code | `SARIF` — `iac-report` | Periodic, PRs, manual | | **GitHub Actions Scan** | [zizmor](https://docs.zizmor.sh) | Unsafe GitHub Actions workflows | `SARIF` — `actions-report` | Periodic, PRs, manual — GitHub only | | **SBOM Generation** | [syft](https://github.com/anchore/syft) | — produces a CycloneDX SBOM | `SBOM_CYCLONEDX_JSON` — `sbom` | Periodic only | | **SCM Configuration Check** | none — queries your provider's API | Weak repository settings | `CHAINLOOP_RUNNER_CONTEXT` — `runner-context` | Periodic only | Each evidence entry is a [material](/concepts/material-types) type and a material name, so you can find the report inside the attestation and write [policies](/concepts/policies) against it. ## Turning Scans On Every scan has an **On/Off** toggle and, when it's on, up to two independent **run modes**: **Run periodically** and **Run in PRs**. You set these per scan, either in the [Create Project wizard](/get-started/projects/create-project) or later from the project's workflow settings. ### Run Modes ![Per-template card with an On/Off toggle and Run periodically and Run in PRs checkboxes](https://mintcdn.com/chainloop/P8-Nz0q6WL47tOcJ/reference/img/workflow-run-mode-card.png?fit=max\&auto=format\&n=P8-Nz0q6WL47tOcJ\&q=85\&s=4bc5537a2fd2d4ae3a4771cf97765d1e) | Setting | What happens | | - | - | | **Run periodically** | Chainloop runs the scan server-side on a schedule, in a sandbox, against your repository code. No CI changes are required. | | **Run in PRs** | Chainloop runs the scan on every pull or merge request, scoping the analysis to the files that changed, and reports back on the pull request itself as a single **Chainloop PR Validation** check plus one consolidated comment. | | **Off** | The workflow is not created. | The two modes are independent: enable both for scheduled baseline coverage plus per-change feedback, or enable just one. Where a scan supports only a single mode, that mode stays selected — the table above lists what each one supports. ![Built-in templates with their run mode checkboxes: scanners offering both Run periodically and Run in PRs, and SBOM Generation and SCM Configuration Check offering Run periodically only](https://mintcdn.com/chainloop/P8-Nz0q6WL47tOcJ/reference/img/workflow-run-modes.png?fit=max\&auto=format\&n=P8-Nz0q6WL47tOcJ\&q=85\&s=17de21340a904520526157dd21b648cf) Turning a scan on without selecting either run mode falls back to **manual delivery**, for the scans that allow it: Chainloop sets up the workflow and its [contract](/concepts/contracts), and you instrument your CI with the [Chainloop CLI](/get-started/first-attestation) to send attestations yourself. Server-side runs — periodic or in PRs — need a repository connected through a provider that supports them, currently **GitHub or GitLab**. If no repository is linked to the project, or its provider doesn't support them, the run modes are disabled and you can use manual delivery instead where the scan allows it. ### Configuring a Scan Each scan has a **Configure** panel where you set its options before adding it to the project. ![The SCM Configuration Check Configure panel: a Run periodically trigger checkbox, an optional workflow name, and the Authorized Bypass, Branches, and Tags inputs, each with its description](https://mintcdn.com/chainloop/P8-Nz0q6WL47tOcJ/reference/img/managed-template-configure.png?fit=max\&auto=format\&n=P8-Nz0q6WL47tOcJ\&q=85\&s=2c2742dcc678aef115a0ff835f80842e) * **Triggers** — the [run modes](#run-modes) to enable. Only the modes the scan supports are offered, so the SCM Configuration Check above shows just **Run periodically**. * **Name** — optional; if you leave it blank, Chainloop generates one automatically. * **Template inputs** — the fields the scan accepts, each with a description of the format it expects. The inputs for every built-in scan are listed under each scan below. Some scans allow multiple configurations. Adding more than one configuration for the same scan creates a separate workflow for each, which is how you cover several components of a monorepo. ### Built-in and Custom Templates Workflow templates come from two sources: * **Built-in templates** — the scans on this page. Provided by Chainloop, available on Chainloop Cloud, and pre-selected by default. * **Custom templates** — defined by your organization, and only available in on-prem installations. See [Managing Custom Templates](/concepts/workflow-templates#managing-custom-templates) for the `chainloop apply` workflow. > [!NOTE] > > On self-hosted instances, only your organization's custom templates are listed — Chainloop's built-in templates aren't available. ## How Scans Run ### Where Scans Run Chainloop clones the repository linked to your project into a sandbox it manages and runs the tool there. None of your runners are involved. A scan is skipped when the project has no linked repository. The one exception is the SCM Configuration Check, which needs no sandbox and no clone — it only calls your provider's API. Every scan that reads source takes a `path` input, relative to the repository root, which defaults to the whole repository. Point it at a subdirectory to scan one component of a monorepo. ### How Often Periodic Scans Run At least once a day. Chainloop re-scans any workflow whose most recent run is more than 24 hours old, so there is no schedule to configure. A workflow that has never run is treated the same way, so a scan you just enabled is picked up shortly after. ### Where the Results Go Every run is stored as evidence: the scan reports — and, for PR runs, the pull request metadata — are captured as a signed [attestation](/concepts/attestations), evaluated by the same [policies](/concepts/policies) as the rest of your evidence, and retained for audit. Policy verdicts are recorded, not enforced: a violation never fails the run or rejects the attestation, so you always get the report. To make a violation stop something, use [control gates](/concepts/control-gates). Findings from the vulnerability scans feed [vulnerability management](/concepts/vulnerability-management), where periodic runs power **AI auto-remediation** — Chainloop assesses each finding with AI and, when a fix is available, proposes it as a pull or merge request. See [assessment and auto-remediation](/concepts/vulnerability-management#assessment-and-auto-remediation-using-ai) for that flow. ## Scanning in Pull Requests Turn on **Run in PRs** for as many scans as you like: they share one sandbox run per pull or merge request, so a pull request gets one clone, one attestation, one **Chainloop PR Validation** check, and one consolidated comment instead of a separate set per scan. There is no PR validation workflow to create. Chainloop provisions one for the project on its first pull request, named `pr-validation`, deriving its contract from the scans you opted into. ### How the Diff Is Scoped Each tool narrows to the change in its own way, which is worth knowing when a finding looks unrelated to the pull request: | Tool | Runs when | Scoped to | | - | - | - | | betterleaks | Any file changed | The commits between the merge base and the head, so only newly introduced secrets | | opengrep | Any file changed | The diff against the merge base | | zizmor | A workflow or action definition changed | The changed workflow files | | checkov | A `.tf`, `.yaml`, `.json`, or `Dockerfile` file changed | Those paths, but not the diff inside them | | osv-scanner | A dependency manifest or lockfile changed | The head commit, not the diff | ## SAST Scan Runs [opengrep](https://github.com/opengrep/opengrep) — an open-source fork of Semgrep — over your source code with the bundled Community ruleset. Semgrep's proprietary Pro rules are not included. * **Evidence** — a `SARIF` report named `sast-report`. * **Policies** — [`source-commit`](/reference/policies#source-commit) and [`owasp-top10-2025`](/reference/policies#owasp-top10-2025), plus the `sast` and `cwes` [policy groups](/reference/policies#policy-groups), which check findings against the OWASP Top 10 (2025) and the CWE Top 25 together with the 26–40 "on the cusp" list. * **Configuration** — reads `.semgrep.yml`, a `.semgrep/` directory, and `.semgrepignore` from your repository. ## Secret Scan Runs [betterleaks](https://github.com/betterleaks/betterleaks), a drop-in successor to gitleaks maintained by gitleaks' original authors. Reports keep the gitleaks format, which is why the material type is still called `GITLEAKS_JSON`. * **Evidence** — a `GITLEAKS_JSON` report named `secret-report`. * **Policies** — [`source-commit`](/reference/policies#source-commit) and [`secrets-detection`](/reference/policies#secrets-detection). * **Configuration** — reads `.gitleaks.toml` or `.betterleaks.toml` from your repository. ## Vulnerability Scan Reports known CVEs affecting your dependencies. The `source` input decides where the dependency list comes from. #### Source code mode The default. [syft](https://github.com/anchore/syft) builds a CycloneDX SBOM from your repository, then [grype](https://github.com/anchore/grype) scans that SBOM for known vulnerabilities. Both the SBOM and the vulnerability report are attested, so you get an inventory and its findings from one run. #### SBOM mode Set `source` to **SBOMs** when your pipeline already produces SBOMs, or when Chainloop shouldn't touch your source. Chainloop collects the SBOMs already attested on the project version, runs grype over each one, and re-attests them as indexed pairs — `sbom-1` and `vulnerability-report-1`, `sbom-2` and `vulnerability-report-2`, and so on. Because the SBOMs can arrive in several formats and there can be more than one per run, the fixed material names below don't apply. This mode needs no access to your repository, and it is skipped when the project has no SBOM evidence to scan. It has no pull request mode — there is no pull request to react to. See [Generate and Continuously Scan SBOMs](/guides/generate-and-scan-sboms) for the setup. * **Evidence** — a `SARIF` report named `vulnerability-report` and an `SBOM_CYCLONEDX_JSON` named `sbom`. Both are optional, since SBOM mode produces indexed names instead. * **Policies** — [`source-commit`](/reference/policies#source-commit), [`cves-in-kev`](/reference/policies#cves-in-kev), and the [`vulnerability-management`](/reference/policies#vulnerability-management) policy group. A finding at or above the configured severity fails the run, as does any CVE listed in the CISA KEV catalog. * **Inputs** — `severity` sets the lowest severity that counts as a violation, and defaults to `HIGH`. ## IaC Scan Runs [checkov](https://www.checkov.io/) over your infrastructure as code — Terraform, Dockerfiles, Kubernetes manifests, and YAML or JSON configuration — looking for misconfigurations such as public storage buckets, missing encryption, and over-broad permissions. * **Evidence** — a `SARIF` report named `iac-report`. * **Policies** — [`source-commit`](/reference/policies#source-commit), [`iac-scan-present`](/reference/policies#iac-scan-present), and [`iac-misconfiguration`](/reference/policies#iac-misconfiguration). * **Configuration** — reads `.checkov.yaml` or `.checkov.yml` from your repository. ## GitHub Actions Scan Runs [zizmor](https://docs.zizmor.sh) over the workflow and action definitions in your repository, looking for the ways a CI pipeline gets compromised: actions pinned to a mutable tag instead of a digest, workflows granted more permissions than they need, and untrusted input interpolated into a `run` block. This scan is offered for GitHub repositories only. * **Evidence** — a `SARIF` report named `actions-report`. * **Policies** — [`ci-pipeline-security`](/reference/policies#ci-pipeline-security). ## SBOM Generation Runs [syft](https://github.com/anchore/syft) over your repository and attests the result as a CycloneDX SBOM, giving every project a dependency inventory that refreshes on its own. Runs periodically only. * **Evidence** — an `SBOM_CYCLONEDX_JSON` named `sbom`. * **Policies** — [`source-commit`](/reference/policies#source-commit) and the [`sbom-quality`](/reference/policies#sbom-quality) policy group, which checks the SBOM for banned licenses and components, NTIA minimum elements, license coverage, and freshness. > [!NOTE] > > The SBOM describes your repository and its declared dependencies, not a built artifact. If you need an SBOM of a container image, produce it in your pipeline and attest it — see [Generate and Continuously Scan SBOMs](/guides/generate-and-scan-sboms). ## SCM Configuration Check The exception on this page: it runs no scanning tool and never clones your code. Chainloop reads your repository's configuration from your provider's API — branch and tag protection, code review requirements, automated patch management, and signed commits — records what it read as evidence, and evaluates that evidence with policies. It runs periodically on GitHub and GitLab, and a repository can have only one. * **Evidence** — a `CHAINLOOP_RUNNER_CONTEXT` material named `runner-context`, holding the repository configuration Chainloop read. It uses the same format the [Enterprise Edition CLI collects in your pipeline](/reference/runner-context), so the same policies apply to both. * **Policies** — [`patch-policy-present`](/reference/policies#patch-policy-present) and [`commits-signed-required`](/reference/policies#commits-signed-required), plus the [`branch-protection`](/reference/policies#branch-protection), [`code-review`](/reference/policies#code-review), and [`tag-protection`](/reference/policies#tag-protection) policy groups. * **Inputs** — `branches` and `tags` select the refs to check, and `authorized_bypass` lists the accounts allowed to bypass protection. When a permission stops Chainloop from reading part of the configuration, the gap is recorded in the evidence rather than silently dropped, so policies can tell "not configured" apart from "not visible to us". For what each check expects, see [SCM Protection Policies](/reference/branch-protection-policies). ## Related > [card] [Workflow Templates](/concepts/workflow-templates) > > Template anatomy, inputs, and custom templates. > [card] [Generate and Continuously Scan SBOMs](/guides/generate-and-scan-sboms) > > Set up SBOM generation and continuous CVE checks. > [card] [Vulnerability Management](/concepts/vulnerability-management) > > What happens to findings after a scan. > [card] [Policies Reference](/reference/policies) > > Every built-in policy and policy group. > [card] [Material Types](/concepts/material-types) > > The evidence formats these scans produce. > [card] [SCM Protection Policies](/reference/branch-protection-policies) > > What the SCM Configuration Check expects. > [card] [Connect GitHub & GitLab](/guides/connect-repository) > > Link a repository so scans can run. > [card] [AI Coding Sessions](/concepts/ai-coding-sessions) > > A built-in template that runs no scanner. > [card] [AI Code Security Analysis](/concepts/ai-code-analysis) > > The built-in scan that mines a repository's security-fix history. # Signing and Verification Source: https://docs.chainloop.dev/reference/signing All attestations are bundled in a SigStore bundle and signed before being sent to Chainloop. This happens transparently while performing a `chainloop attestation push` command. Verification of the attestation integrity is done through the `workflow run describe --verify true` command to verify an online attestation, or `attestation verify --bundle bundle.json` to verify a downloaded attestation bundle. The signing and verification methods used by Chainloop CLI will depend on the different options provided. These are the various signing and verification methods currently supported by Chainloop: > [!NOTE] > > Some of these signing methods are inherited from the amazing Sigstore community products. Please make sure to check > [their documentation](https://docs.sigstore.dev/cosign/signing/signing_with_blobs/#signing-with-a-key) on the usage of the `--key` argument for key references. ### Signing with a local key These methods require setting up a key and/or KMS authentication in the local environment (laptop, CI system ...). | Method | Signing (`chainloop att push`) | Verifying (`chainloop wf run describe --verify true`) | | - | - | - | | Cosign key | `--key cosign.key` | `--key cosign.pub` | | KMS | `--key awskms://` | `--key awskms://` | | PKCS#11 | `--key pkcs11://` | `--key pkcs11://` | | Kubernetes secret | `--key k8s:///` (where `cosign.key` and `cosign.password` secrets are expected) | `--key k8s:///` (where `cosign.pub` is expected) | | GitLab secret | `--key gitlab://` (it will look for `COSIGN_PRIVATE_KEY`, `COSIGN_PASSWORD` variables) | `--key gitlab://` (it will look for `COSIGN_PUBLIC_KEY` variable) | ### Keyless signing These methods don't require any special setup in the client. For the verification command, you must make sure you get the CA certificate chain out-of-band, as it will be required to validate the ephemeral signing certificate. | Method | Signing (`chainloop att push`) | Verifying (`chainloop wf run describe --verify true`) | | - | - | - | | Ephemeral (file based CA) | Configure your CA in [your deployment](https://github.com/chainloop-dev/chainloop/blob/main/deployment/chainloop/templates/controlplane/secret-file-ca.yaml) and omit the `--key` when pushing your attestation. | See [bundles](#bundles) | | Ephemeral ([EJBCA](https://github.com/Keyfactor/ejbca-ce)) | Connect your EJBCA instance to your Chainloop deployment using [these settings](https://github.com/chainloop-dev/chainloop/blob/main/deployment/chainloop/templates/controlplane/secret-ejbca-ca.yaml). Omit `--key` when pushing the attestation. | See [bundles](#bundles) | | [SignServer](https://www.signserver.org/) | You can sign with your instance of SignServer with `--key signserver://host/worker`. | | ### Bundles When signing with a verification method that supports it (like keyless with ephemeral certificates), you can download the verification material used for signing, to be used later during the verification process. Get the bundle from the attestation: ``` chainloop wf run describe --id ... -o attestation > my-bundle.json ``` And verify it: ``` chainloop attestation verify -b my-bundle.json ``` Also note that `chainloop wf run describe` already detects a verifiable attestation and tries to perform the verification automatically. In these cases, you'll see "Verified: true" in the command output. ### Timestamp Service Chainloop can be configured to send the attestation signature to a timestamp service (TSA) and include the result as part of the attestation bundle. If available, the TSA signature will be used during the verification process. # SLSA Framework Source: https://docs.chainloop.dev/reference/slsa-provenance What is SLSA provenance and how Chainloop helps you verify your SLSA compliance. Supply-chain Levels for Software Artifacts (SLSA) is a security framework designed to safeguard the integrity of software supply chains. Developed by the Open Source Security Foundation (OpenSSF), SLSA provides a structured approach to improving the security posture of software artifacts throughout their lifecycle, from development to deployment. The primary goal of SLSA is to ensure that software has not been tampered with and can be securely traced back to its source. SLSA v1.0, released in April 2023, established the first stable version with a focus on build systems and provenance verification. SLSA v1.2 is the current version, introducing a comprehensive source track alongside the existing build track, creating a complete framework that addresses security from source code management through the build process. Key features of SLSA v1.2 include: * Tracks and Levels: A division into two primary tracks (source track and build track) with progressive levels within each track, enabling incremental adoption tailored to your organization's maturity. * Source Track: Focuses on version control and code review practices used to produce source code, with four levels addressing repository management, change history, technical controls, and two-party review. * Build Track: Focuses on the build process and generated software artifacts, ensuring provenance and integrity throughout the build lifecycle. * Provenance: Verifiable metadata that documents the origin and integrity of both source code and software artifacts, enabling traceability throughout the supply chain. * Stability: A solid foundation for future expansions without breaking changes. While achieving SLSA compliance, your software supply chain creates a secure environment for software development, protects against unauthorized access and tampering, and provides a mechanism for verifying the integrity of software from source code to final releases. This not only strengthens your software supply chain but also helps meet the requirements outlined in Section 4e(iii), 4e(iv), and 4e(ix) of U.S. [Executive Order 14028](https://www.nist.gov/itl/executive-order-14028-improving-nations-cybersecurity) and aligns with the Secure [Software Development Framework (SSDF)](https://nvlpubs.nist.gov/nistpubs/specialpublications/nist.sp.800-218.pdf) practices, including PO.3.1, PO.3.2, PO.5, PS.1, PS.2, PS.3.2, PS.3.3, and PW\.7. Chainloop helps you adopt, incorporate and implement SLSA into your Software Development Life Cycle to reduce the risk of supply chain attacks, improve transparency in software development processes, and build trust with consumers of your software. ## SLSA Levels: Requirements, Benefits, and Problem Solving SLSA v1.2 defines two complementary tracks for securing the software supply chain: **Source Track**: Focuses on version control and code review practices with four progressive levels (L1-L4) that ensure source code integrity, from basic version control to two-party review requirements. **Build Track**: Focuses on the build process with three progressive levels (L1-L3) that represent increasing rigor in securing how software artifacts are built and attested. Each level within both tracks addresses specific risks and builds upon the previous one. Let's look at the source track levels first, then explore the build track levels. ## Source Track Levels ### Source Level 1: Version Controlled Source Level 1 ensures that source code is managed using a modern version control system that provides basic traceability and visibility into code changes. ### Source Level 2: History & Provenance Source Level 2 adds requirements for preserving complete change history, creating a full audit trail of all changes with verified identity of contributors and tamper-resistant history. ### Source Level 3: Continuous Technical Controls Source Level 3 requires that technical protections (like required reviews, status checks) are always active and documented, ensuring consistent enforcement. ### Source Level 4: Two-Party Review Source Level 4 is the highest level, ensuring that no single person can unilaterally make changes to protected branches, reducing insider threats and ensuring code review quality. ## Detailed Source Track Requirements Let's now look into deeper details of each source track level and their requirements. [Official SLSA Source Track Requirements documentation](https://slsa.dev/spec/v1.2/source-requirements). ### Source Level 1: Version Controlled The first level of SLSA Source Track specifies the following requirements and addresses the following problems: * Requirements: * Use a modern version control system with unique identification * Ensure revisions are immutable and uniquely identifiable * Provide human-readable display of changes between revisions * Generate Source Verification Summary Attestations * What it means: * Provides basic version control and traceability, enabling visibility into code changes and their history. * Problems addressed: * Prevents untracked or unofficial changes to source code * Establishes a baseline for source code management and transparency Chainloop verifies the requirements for SLSA Source Level 1 by using the following requirements: | Requirement | Description | Chainloop Policy | | - | - | - | | `slsa-source-l1-1` | Organization has chosen an appropriate Source Control System. | `runner-automated` (automatic) | | `slsa-source-l1-2` | Repositories are uniquely identifiable within the source control system. | `runner-automated` (automatic) | | `slsa-source-l1-3` | Revisions are immutable and uniquely identifiable. | `runner-automated` (automatic) | | `slsa-source-l1-4` | Changes between revisions are displayed in a human-readable format. | `runner-automated` (automatic) | | `slsa-source-l1-5` | Source Verification Summary Attestations are generated. | `runner-automated` (automatic) | #### slsa-source-l1-1 The organization has selected a Source Control System (SCS) that is capable of meeting the desired SLSA Source Level requirements. What Chainloop does: * Automatically verifies that the source code management platform is a supported SCS (GitHub or GitLab) through runner context validation. * GitHub and GitLab inherently support the necessary features for version control, immutability, and change tracking required by SLSA. #### slsa-source-l1-2 Each repository in the source control system has a unique identifier (e.g., URL, namespace/name). What Chainloop does: * Automatically verifies that the source code management platform is a supported SCS (GitHub or GitLab) through runner context validation. * GitHub and GitLab assign unique URLs to each repository, ensuring repositories can be uniquely referenced and distinguished from one another. #### slsa-source-l1-3 Once a revision is committed, its content cannot be modified, and each revision has a unique identifier. What Chainloop does: * Automatically verifies that the source code management platform is a supported SCS (GitHub or GitLab) through runner context validation. * Git inherently makes commits immutable with unique SHA-1/SHA-256 hashes, ensuring revisions cannot be modified and are uniquely identifiable in both GitHub and GitLab. #### slsa-source-l1-4 The source control system provides human-readable diffs showing changes between revisions. What Chainloop does: * Automatically verifies that the source code management platform is a supported SCS (GitHub or GitLab) through runner context validation. * GitHub and GitLab provide diff views in their UI by default, allowing users to easily view changes between any two revisions. #### slsa-source-l1-5 The Source Control System generates a Source Verification Summary Attestation (Source VSA) to indicate the SLSA Source Level of any revision at Level 1 or above. What Chainloop does: * Automatically verifies that the source code management platform is a supported SCS (GitHub or GitLab) through runner context validation. * Chainloop generates attestations that include all policies and validations performed, with VSA format support coming soon. ### Source Level 2: History & Provenance SLSA Source Level 2 specifies the following requirements and addresses the following problems: * Requirements: * Implement access controls on the source repository * Establish a safe process for content expungement when legally required * Preserve complete change history with timing, actors, and ancestry relationships * Maintain technical controls continuously from an established start point * Implement identity management system for source control access * Generate contemporaneous source provenance attestations * What it means: * Ensures complete audit trail of all changes with verified identity of contributors and tamper-resistant history. * Problems addressed: * Prevents alteration of change history * Prevents forged change metadata * Protects against replacing tagged content with malicious content Chainloop verifies the requirements for SLSA Source Level 2 by using the following requirements and policies: | Requirement | Description | Chainloop Policy | | - | - | - | | `slsa-source-l2-1` | Configure the SCS to control access and enforce history on the source repository. | `runner-authenticated`, `repository-rules-change-restricted`, `pr-code-owner-review-required`, `commits-signed-required`, `branch-force-push-blocked`, `branch-deletion-blocked`, `branch-linear-history-required` (automatic) | | `slsa-source-l2-2` | Implement a safe process for expunging content when legally or privacy required. | `safe-expunging-process` (manual evidence) | | `slsa-source-l2-3` | Complete change history is preserved for all revisions with timing, actors, and ancestry relationships. | `branch-force-push-blocked`, `branch-deletion-blocked`, `branch-linear-history-required` (automatic) | | `slsa-source-l2-4` | Technical controls must be maintained continuously from an established start point. | `branch-force-push-blocked`, `branch-deletion-blocked`, `branch-linear-history-required` (automatic) | | `slsa-source-l2-5` | Identity management system is implemented for source control access. | `runner-authenticated`, `repository-rules-change-restricted`, `pr-code-owner-review-required`, `commits-signed-required` (automatic) | | `slsa-source-l2-6` | Source provenance attestations are generated contemporaneously with branch updates. | `runner-automated` (automatic) | #### slsa-source-l2-1 The organization must configure access controls to restrict sensitive operations on the Source Repository using SCS identity management capabilities. What Chainloop does: * Automatically verifies identity management through authenticated SCM access, repository rule restrictions, code owner review requirements, and commit signing. * Automatically verifies that force pushes are blocked, branch deletions are blocked, and linear history is required through branch protection policies. #### slsa-source-l2-2 Organizations may remove content for legal or privacy compliance, but only through a documented, tracked process with strict safeguards. What Chainloop does: * Requires confirmation that the expunging process is documented, all removals are tracked, and the SCS requires an Administrator plus at least one additional trusted person to trigger any expunging. #### slsa-source-l2-3 Complete change history is preserved for all revisions including timing information, actors who made changes, and ancestry relationships. What Chainloop does: * Verifies that force pushes are blocked to prevent rewriting history. * Verifies that branch deletions are blocked to preserve complete history. * Verifies that linear history is required, ensuring ancestry relationships are maintained. #### slsa-source-l2-4 Technical controls are only effective if they are used continuously in the history of a branch. What Chainloop does: * Automatically verifies that force pushes are blocked, branch deletions are blocked, and linear history is required, ensuring technical controls protecting change history are continuously enforced. #### slsa-source-l2-5 Identity management system is implemented to ensure that actors making changes are properly identified. What Chainloop does: * Verifies that the SCM platform identity is authenticated, ensuring access is from authorized systems. * Verifies that repository rule changes are restricted to authorized personnel. * Verifies that pull request approvals must come from authorized reviewers. * Verifies that commits are signed using cryptographic signatures, ensuring all commits can be attributed to verified identities. #### slsa-source-l2-6 Generate tamper-resistant attestations documenting how revisions were created and integrated into protected branches. What Chainloop does: * Automatically verifies that the source code management platform is a supported SCS (GitHub or GitLab) through runner context validation. * Chainloop generates attestations that include all policies and validations performed. ### Source Level 3: Continuous Technical Controls SLSA Source Level 3 specifies the following requirements and addresses the following problems: * Requirements: * Enforce technical controls continuously on protected branches * Document controls in contemporaneously produced attestations * Designate protected branches and record their controls * What it means: * Provides assurance that technical protections are always active and cannot be bypassed or disabled without detection. * Problems addressed: * Prevents skipping required checks * Prevents abuse of rule exceptions * Prevents highly-permissioned actors from bypassing controls Chainloop verifies the requirements for SLSA Source Level 3 by using the following requirements: | Requirement | Description | Chainloop Policy | | - | - | - | | `slsa-source-l3-1` | Continuous technical controls are enforced and documented in contemporaneous attestations. | `runner-automated` (automatic) | | `slsa-source-l3-2` | Protected Named References are designated and have technical controls recorded. | `runner-automated` (automatic) | #### slsa-source-l3-1 Organizations must enforce technical controls continuously for specific Named References within the Source Repository. What Chainloop does: * Automatically verifies that the source code management platform is a supported SCS (GitHub or GitLab) through runner context validation. * GitHub and GitLab enforce technical controls, and Chainloop verifies these controls are active through automated policies. #### slsa-source-l3-2 The SCS must allow organizations to designate which branches or tags receive technical controls (Protected Named References). What Chainloop does: * Automatically verifies that the source code management platform is a supported SCS (GitHub or GitLab) through runner context validation. * GitHub and GitLab support designating protected branches and tags with per-branch technical controls, which are validated through Chainloop's automated policies. ### Source Level 4: Two-Party Review SLSA Source Level 4 specifies the following requirements and addresses the following problems: * Requirements: * Changes to protected branches require agreement from two or more trusted persons * Reviews must address security-relevant code properties * Reviewers must approve the final revision, not intermediate versions * What it means: * Provides the highest level of assurance by ensuring no single person can unilaterally make changes to protected branches. * Problems addressed: * Prevents malicious code from being submitted to the source repository * Prevents single actor from controlling multiple accounts * Prevents use of robot accounts to bypass review * Prevents code modification after review * Prevents submission of unreviewable changes * Protects against commit graph attacks Chainloop verifies the requirements for SLSA Source Level 4 by using the following requirements and policies: | Requirement | Description | Chainloop Policy | | - | - | - | | `slsa-source-l4-1` | Changes in protected branches require two-party review with security-focused, informed review of the final revision. | `pr-review-required` (min_reviewers=2), `pr-stale-reviews-dismissed` (automatic) | #### slsa-source-l4-1 Changes to protected branches require agreement from two or more trusted persons through code review. What Chainloop does: * Verifies that pull request reviews are required with a minimum of two reviewers. * Verifies that stale reviews are dismissed when new changes are pushed, ensuring reviewers approve the final revision. ## Build Track Levels ### SLSA Build Level 1: Build Process Documentation It ensures that the entire build proces is documented and recorded. This gives basic visibility into how the software is made, but doesn't protect against tampering. Chainloop ensures that the build is run on a dedicated infrastructure, but doesn't verify its authenticity. ### SLSA Build Level 2: Protection Against Tampering It ensures that the build is run on an authenticated, hosted runner with access to the build file. Chainloop checks this using an OIDC token from the build platform and also requires the provenance information to be signed using keyless signing. This helps prevent attackers from tampering with the code or build process, since all changes are tracked and the provenance is securely signed. ### SLSA Build Level 3: Advanced Threat Protection Currently the most advanced level of SLSA. It strengthen the build system with security controls and auditing. Provenance is non-falsifiable, so even insiders or compromised systems have a much harder time sneaking in malicious changes. Chainloop uses a mixture of automatic and manual evidence to ensure this SLSA level. ## Detailed Build Track Requirements Let's now look into deeper details of each build track level and their requirements. [Official SLSA Build Track Requirements documentation](https://slsa.dev/spec/v1.2/build-requirements). ### Build Level 1: Build Process Documentation The first level of SLSA specifies the following requirements and addresses the following problems: * Requirements: * Document all processes involved in building an artifact. * Include metadata detailing sources and dependencies. * What it means: * Provides visibility into the build process, enabling consumers to assess risks and identify potential issues. * Problems addressed: * Helps detect honest mistakes or misconfigurations in the build process. * Establishes a baseline for transparency in software development. Chainloop verifies the requirements for SLSA Level 1 by using the following requirements and policies: | Requirement | Description | Chainloop Policy | | - | - | - | | `slsa-build-l1-1` | Follows consistent build process: scripted, repeatable (e.g., GitHub Actions), low variability, includes Git commit SHA. | `runner-automated` (automatic) | | `slsa-build-l1-2` | Ensures build is run on a dedicated infrastructure. | `runner-automated` (automatic) | | `slsa-build-l1-3` | Provenance is distributed, preferably via ecosystem convention. | `convention-agreed` (manual evidence) | #### slsa-build-l1-1 Software producer follows a consistent build process so that others can form expectations about what a correct build looks like. We understand the requirement as: * Build should be scripted. * Build should use declarative and repeatable build system such as like GitHub Actions, GitLab CI, etc. * Build variability should be minimized, so ensure packages are locked, etc. * Git commit SHA should be embedded into the provenance file. #### slsa-build-l1-2 Provenance exists describing how the artifact was built, including the build platform, build process, and top-level inputs. What Chainloop does: * Ensures runner environment presence. * Ensures runner is one of the allowed runners. #### slsa-build-l1-3 Software producer distributes provenance to consumers, preferably using a convention determined by the package ecosystem. We understand the requirement as: * Verification of existence of a provenance material. ### Build Level 2: Protection Against Tampering SLSA level 2 specifies the following requirements and addresses the following problems: * Requirements: * Use a build version control for source code. * Employ a hosted build service to generate signed provenance. * What it means: * Ensures that artifacts are traceable to their source and have not been tampered with during the build process. * Problems addressed: * Mitigates risks of unauthorized changes or tampering by requiring signed provenance and controlled infrastructure. Chainloop verifies the requirements for SLSA Level 2 by using the following requirements and policies: | Requirement | Description | Chainloop Policy | | - | - | - | | `slsa-build-l2-1` | Build runs on dedicated infra, provenance is signed using keyless signing. | `runner-automated`, `signature-present` (automatic) | | `slsa-build-l2-2` | Provenance is signed using keyless signing and the runner is authenticated via OIDC token. | `signature-present`, `runner-authenticated` (automatic) | #### slsa-build-l2-1 Build platform runs on dedicated infrastructure, not an individual's workstation, and the provenance is tied to that infrastructure through a digital signature. What Chainloop does: * Verifies that the build runs on a supported CI/CD platform (GitHub Actions or GitLab Pipeline). * Verifies that the SLSA provenance is generated and signed using keyless signing. #### slsa-build-l2-2 Downstream verification of provenance includes validating the authenticity of the provenance. What Chainloop does: * Verifies that the SLSA provenance is generated and signed using keyless signing and that the runner is authenticated via OIDC token and provides the workflow file reference. ### Build Level 3: Advanced Threat Protection SLSA level 3 specifies the following requirements and addresses the following problems: * Requirements: * Hardened build systems with security controls. * Provenance must be non-falsifiable and auditable. * What it means: * Provides stronger guarantees about artifact integrity by ensuring that both source and build platforms meet rigorous standards. * Problems addressed: * Protects against sophisticated threats such as insider attacks or compromised build environments. Chainloop verifies the requirements for SLSA Level 3 by using the following requirements and policies: | Requirement | Description | Chainloop Policy | | - | - | - | | `slsa-build-l3-1` | Build platform prevents cross-run interference, even within the same project. | Automatic: `runner-authenticated` Manual evidence: `build-platform-multifactor` `build-platform-isolated` `build-platform-connections` `build-platform-access` `build-platform-monitoring` `controls-build-platform-evidence` | | `slsa-build-l3-2` | Build platform provenance signature is verified. | Automatic: `signature-present` Manual evidence: `build-platform-certificate` | #### slsa-build-l3-1 Build platform implements strong controls to prevent runs from influencing one another, even within the same project. The process of verification of the `slsa-build-l3-1` is currently a mixture of manual and automatic checks in Chainloop with the automation ensuring: * Verification of the runner authentication. #### slsa-build-l3-2 Build platform implements strong controls to prevent secret material used to sign the provenance from being accessible to the user-defined build steps. The process of verification of the `slsa-build-l3-2` is currently a mixture of manual and automatic checks in Chainloop with the automation ensuring: * Verification of the SLSA provenance signature. ## Manual Evidence Explained Chainloop uses a number of manual evidence to verify the SLSA Build Track requirements that you need to ensure are fulfilled in order to get SLSA Build Level 3 compliance. Let's look into some of them and how to verify them when using certain build platforms. ### Forcing Multi-factor Authentication The requirement for forcing multi-factor authentication is one of the SLSA requirements for SLSA Build Level 3. Chainloop enforces this by requiring you to verify your build platform configuration and marking this as fulfilled. #### GitHub For GitHub, you can verify that your build platform is forcing multi-factor authentication by checking your organization security settings that can be accessed via [https://github.com/organizations/\[YOUR_ORGANIZATION\]/settings/security](https://github.com/organizations/\[YOUR_ORGANIZATION]/settings/security) and checking if the **Require two-factor authentication for everyone in the YOUR_ORGANIZATION organization** option is enabled. #### GitLab For GitLab, you can verify and configure your organization to for multi-factor authentication by going to the **Admin** section, selecting **Settings -> General**, expanding the **Sign-in** restrictions and enabling the **Enforce two-factor authentication** option. ### Build Environment Isolation SLSA Build Level 3 requires that the build environment is isolated from the rest of the system. Chainloop enforces this by requiring you to verify that your build platform is using an isolated environment, not interfering with other runs. #### GitHub You need to ensure that you are using the hosted runners or that your self-hosted runners used in GitHub are isolated. You can learn about your runners and their types in your GitHub organization settings, in the **Actions -> Runners** section. #### GitLab You need to ensure that you are using the hosted runners or that your self-hosted runners used in GitLab are isolated. You can learn about your GitLab runners and their types in your **Project** section, by going to **Settings -> CI/CD -> Runners**. ### Limited Build Platform Human Access The number of users with the access to the build platform should be limited and kept to a minimum. #### GitHub You can check the user permissions of your GitHub in the **Settings -> Access** section of your GitHub organization and you can manage repository level access by visiting the **Settings -> Collaborators and teams** section of the repository of interest. #### GitLab You can manage repository level access by visiting the **Project -> Manage -> Members** section of the GitLab project of interest. ### Build Platform Strong Controls SLSA Build Level 3 requires that the build platform has strong controls in place and that your organization follows good practices. There is not a single setting that we can verify and Chainloop suggests undergoing an annual security audit targeted at your build platform and the practices around it. Some reference about the good practices for your build platform hardening: * [GitHub](https://docs.github.com/en/actions/security-for-github-actions/security-guides/security-hardening-for-github-actions) * [GitLab](https://docs.gitlab.com/security/hardening/) # SSDF Source: https://docs.chainloop.dev/reference/ssdf The [Secure Software Development Framework (SSDF) Version 1.1: Recommendations for Mitigating the Risk of Software Vulnerabilities](https://csrc.nist.gov/pubs/sp/800/218/final) is a publication from the US National Institute of Standards and Technology ([NIST](https://www.nist.gov/)). It provides a framework for integrating security practices at the organizational level and throughout the software development life cycle (SDLC), beginning at the design phase. The goal is to reduce the number of vulnerabilities in released software and minimize the potential impact of exploitation. The framework defines high-level secure development practices and recommends specific activities for each. The framework defines four high-level secure development practices: Prepare the Organization (PO), Protect the Software (PS), Produce Well-Secured Software (PW), and Respond to Vulnerabilities (RV), along with recommended activities for each. The diagram below summarizes these activities by practice and maps them to stages of the software development life cycle (SDLC). ![SSDF Summary](https://mintcdn.com/chainloop/Ek6H2Gqmn0rZEN4y/reference/img/ssdf-summary.svg?fit=max\&auto=format\&n=Ek6H2Gqmn0rZEN4y\&q=85\&s=a2dd09b6de18c2b11199f25759ae9fff) Originally published as a voluntary guide in 2020, the SSDF has since evolved into a key component of the U.S. government's software security strategy. Over time, it has shifted from guidance to a required standard for federal agencies and their software suppliers, with a growing emphasis on verifiable compliance measures. ## How Chainloop Helps You Track and Verify SSDF Compliance In Chainloop, the SSDF is primarily presented as a self-assessment checklist, allowing you to upload supporting evidence manually. The official SSDF publication includes a companion [spreadsheet](https://csrc.nist.gov/files/pubs/sp/800/218/final/docs/nist.sp.800-218.ssdf-table.xlsx) with example implementations for each recommended activity. This guidance spreadsheet can help you assess your compliance with the SSDF. > [!NOTE] > > We are actively developing new automated policies to assist in evaluating SSDF compliance within Chainloop. If you are interested in early access to new functionalities, please [contact us](https://chainloop.dev/contact/). Additionally Chainloop maps vulnerability management best practices to SSDF Respond to Vulnerabilities (RV) recommended activities. Our expanded manual evidence and automated policies verify that your vulnerability management process follows industry-recommended practices that support compliance with the SSDF: ![Vulnerability management process](https://mintcdn.com/chainloop/Ek6H2Gqmn0rZEN4y/reference/img/ssdf-vulnerability-management.svg?fit=max\&auto=format\&n=Ek6H2Gqmn0rZEN4y\&q=85\&s=286a10d9cd04e5e76c28537262321d40) * Identify all components included in your software: an SBOM is present and includes the generally adopted minimum elements recommended by the [US National Telecommunications and Information Administration](https://www.ntia.gov/sites/default/files/publications/sbom_minimum_elements_report_0.pdf). * Implement a vulnerability reporting mechanism to enable users and researchers to report issues. * Perform regular vulnerability scanning to detect known issues across all software components: an SCA scan is performed daily. * Remediate vulnerabilities based on risk: Critical vulnerabilities are fixed within 2 days. * Maintain a coordinated vulnerability disclosure (CVD) policy, outlining how reports are handled and timelines for response. * Provide a mechanism for timely distribution of security updates and transparent disclosure of relevant vulnerability information to users. ### PREPARE THE ORGANIZATION (PS) #### PO.1: Define Security Requirements for Software Development > Ensure that security requirements for software development are known at all times so that they can be taken into account throughout the SDLC and duplication of effort can be minimized because the requirements information can be collected once and shared. This includes requirements from internal sources (e.g., the organization's policies, business objectives, and risk management strategy) and external sources (e.g., applicable laws and regulations). > List of requirements for manual confirmation to ensure that cybersecurity is embedded into the design and development processes. | Requirement | Description | Chainloop Policy | | - | - | - | | `ssdf-po-1-1` | Identify and document all security requirements for the organization's software development infrastructures and processes, and maintain the requirements over time. | Self-assessment | | `ssdf-po-1-2` | Identify and document all security requirements for organization-developed software to meet, and maintain the requirements over time. | Self-assessment | | `ssdf-po-1-3` | Communicate requirements to all third parties who will provide commercial software components to the organization for reuse by the organization's own software. \[Formerly PW\.3.1] | Self-assessment | #### PO.2: Implement Roles and Responsibilities > Ensure that everyone inside and outside of the organization involved in the SDLC is prepared to perform their SDLC-related roles and responsibilities throughout the SDLC. | Requirement | Description | Chainloop Policy | | - | - | - | | `ssdf-po-2-1` | Create new roles and alter responsibilities for existing roles as needed to encompass all parts of the SDLC. Periodically review and maintain the defined roles and responsibilities, updating them as needed. | Self-assessment | | `ssdf-po-2-2` | Provide role-based training for all personnel with responsibilities that contribute to secure development. Periodically review personnel proficiency and role-based training, and update the training as needed. | Self-assessment | | `ssdf-po-2-3` | Obtain upper management or authorizing official commitment to secure development, and convey that commitment to all with development-related roles and responsibilities. | Self-assessment | #### PO.4: Define and Use Criteria for Software Security Checks > Help ensure that the software resulting from the SDLC meets the organization's expectations by defining and using criteria for checking the software's security during development. | Requirement | Description | Chainloop Policy | | - | - | - | | `ssdf-po-4-1` | Define criteria for software security checks and track throughout the SDLC. | Self-assessment | | `ssdf-po-4-2` | Implement processes, mechanisms, etc. to gather and safeguard the necessary information in support of the criteria. | Self-assessment | #### PO.5: Implement and Maintain Secure Environments for Software Development > Ensure that all components of the environments for software development are strongly protected from internal and external threats to prevent compromises of the environments or the software being developed or maintained within them. Examples of environments for software development include development, build, test, and distribution environments. | Requirement | Description | Chainloop Policy | | - | - | - | | `ssdf-po-5-1` | Separate and protect each environment involved in software development. | Self-assessment | | `ssdf-po-5-2` | Secure and harden development endpoints (i.e., endpoints for software designers, developers, testers, builders, etc.) to perform development-related tasks using a risk-based approach. | Self-assessment | ### PROTECT THE SOFTWARE (PS) #### PS.1: Protect All Forms of Code from Unauthorized Access and Tampering > Help prevent unauthorized changes to code, both inadvertent and intentional, which could circumvent or negate the intended security characteristics of the software. For code that is not intended to be publicly accessible, this helps prevent theft of the software and may make it more difficult or time-consuming for attackers to find vulnerabilities in the software. | Requirement | Description | Chainloop Policy | | - | - | - | | `ssdf-ps-1-1` | Store all forms of code – including source code, executable code, and configuration-as-code – based on the principle of least privilege so that only authorized personnel, tools, services, etc. have access. | Self-assessment | #### PS.2: Provide a Mechanism for Verifying Software Release Integrity > Help software acquirers ensure that the software they acquire is legitimate and has not been tampered with. | Requirement | Description | Chainloop Policy | | - | - | - | | `ssdf-ps-2-1` | Make software integrity verification information available to software acquirers. | Self-assessment | #### PS.3: Archive and Protect Each Software Release > Preserve software releases in order to help identify, analyze, and eliminate vulnerabilities discovered in the software after release. | Requirement | Description | Chainloop Policy | | - | - | - | | `ssdf-ps-3-1` | Securely archive the necessary files and supporting data (e.g., integrity verification information, provenance data) to be retained for each software release. | Self-assessment | | `ssdf-ps-3-2` | Collect, safeguard, maintain, and share provenance data for all components of each software release (e.g., in a software bill of materials \[SBOM(1)]) (1)Identify all components included in your software: an SBOM is present and includes the generally adopted minimum elements recommended by the [US National Telecommunications and Information Administration](https://www.ntia.gov/sites/default/files/publications/sbom_minimum_elements_report_0.pdf). | `sbom-present` (automatic), `sbom-ntia` (automatic), `other-provenance-exists` (manual evidence) | ### PRODUCE WELL-SECURED SOFTWARE (PW) #### PW\.1: Design Software to Meet Security Requirements and Mitigate Security Risks > Identify and evaluate the security requirements for the software; determine what security risks the software is likely to face during operation and how the software's design and architecture should mitigate those risks; and justify any cases where risk-based analysis indicates that security requirements should be relaxed or waived. Addressing security requirements and risks during software design (secure by design) is key for improving software security and also helps improve development efficiency. | Requirement | Description | Chainloop Policy | | - | - | - | | `ssdf-pw-1-1` | Use forms of risk modeling – such as threat modeling, attack modeling, or attack surface mapping – to help assess the security risk for the software. | Self-assessment | | `ssdf-pw-1-2` | Track and maintain the software's security requirements, risks, and design decisions. | Self-assessment | | `ssdf-pw-1-3` | Where appropriate, build in support for using standardized security features and services (e.g., enabling software to integrate with existing log management, identity management, access control, and vulnerability management systems) instead of creating proprietary implementations of security features and services. \[Formerly PW\.4.3] | Self-assessment | #### PW\.2: Review the Software Design to Verify Compliance with Security Requirements and Risk Information > Help ensure that the software will meet the security requirements and satisfactorily address the identified risk information. | Requirement | Description | Chainloop Policy | | - | - | - | | `ssdf-pw-2-1` | Have 1) a qualified person (or people) who were not involved with the design and/or 2) automated processes instantiated in the toolchain review the software design to confirm and enforce that it meets all of the security requirements and satisfactorily addresses the identified risk information. | Self-assessment | #### PW\.4: Reuse Existing, Well-Secured Software When Feasible Instead of Duplicating Functionality > Lower the costs of software development, expedite software development, and decrease the likelihood of introducing additional security vulnerabilities into the software by reusing software modules and services that have already had their security posture checked. This is particularly important for software that implements security functionality, such as cryptographic modules and protocols. | Requirement | Description | Chainloop Policy | | - | - | - | | `ssdf-pw-4-1` | Acquire and maintain well-secured software components (e.g., software libraries, modules, middleware, frameworks) from commercial, open-source, and other third-party developers for use by the organization's software. | Self-assessment | | `ssdf-pw-4-2` | Create and maintain well-secured software components in-house following SDLC processes to meet common internal software development needs that cannot be better met by third-party software components. | Self-assessment | | `ssdf-pw-4-4` | Verify that acquired commercial, open-source, and all other third-party software components comply with the requirements, as defined by the organization, throughout their life cycles. | Self-assessment | #### PW\.5: Create Source Code by Adhering to Secure Coding Practices > Decrease the number of security vulnerabilities in the software, and reduce costs by minimizing vulnerabilities introduced during source code creation that meet or exceed organization-defined vulnerability severity criteria. | Requirement | Description | Chainloop Policy | | - | - | - | | `ssdf-pw-5-1` | Follow all secure coding practices that are appropriate to the development languages and environment to meet the organization's requirements. | Self-assessment | #### PW\.6: Configure the Compilation, Interpreter, and Build Processes to Improve Executable Security > Decrease the number of security vulnerabilities in the software and reduce costs by eliminating vulnerabilities before testing occurs. | Requirement | Description | Chainloop Policy | | - | - | - | | `ssdf-pw-6-1` | Use compiler, interpreter, and build tools that offer features to improve executable security. | Self-assessment | | `ssdf-pw-6-2` | Determine which compiler, interpreter, and build tool features should be used and how each should be configured, then implement and use the approved configurations. | Self-assessment | #### PW\.7: Review and/or Analyze Human-Readable Code to Identify Vulnerabilities and Verify Compliance with Security Requirements > Help identify vulnerabilities so that they can be corrected before the software is released to prevent exploitation. Using automated methods lowers the effort and resources needed to detect vulnerabilities. Human-readable code includes source code, scripts, and any other form of code that an organization deems human-readable. | Requirement | Description | Chainloop Policy | | - | - | - | | `ssdf-pw-7-1` | Determine whether code review (a person looks directly at the code to find issues) and/or code analysis (tools are used to find issues in code, either in a fully automated way or in conjunction with a person) should be used, as defined by the organization. | Self-assessment | | `ssdf-pw-7-2` | Perform the code review and/or code analysis based on the organization's secure coding standards, and record and triage all discovered issues and recommended remediations in the development team's workflow or issue tracking system. | Self-assessment | #### PW\.8: Test Executable Code to Identify Vulnerabilities and Verify Compliance with Security Requirements > Help identify vulnerabilities so that they can be corrected before the software is released in order to prevent exploitation. Using automated methods lowers the effort and resources needed to detect vulnerabilities and improves traceability and repeatability. Executable code includes binaries, directly executed bytecode and source code, and any other form of code that an organization deems executable. | Requirement | Description | Chainloop Policy | | - | - | - | | `ssdf-pw-8-1` | Determine whether executable code testing should be performed to find vulnerabilities not identified by previous reviews, analysis, or testing and, if so, which types of testing should be used. | Self-assessment | | `ssdf-pw-8-2` | Scope the testing, design the tests, perform the testing, and document the results, including recording and triaging all discovered issues and recommended remediations in the development team's workflow or issue tracking system. | Self-assessment | #### PW\.9: Configure Software to Have Secure Settings by Default > Help improve the security of the software at the time of installation to reduce the likelihood of the software being deployed with weak security settings, putting it at greater risk of compromise. | Requirement | Description | Chainloop Policy | | - | - | - | | `ssdf-pw-9-1` | Define a secure baseline by determining how to configure each setting that has an effect on security or a security-related setting so that the default settings are secure and do not weaken the security functions provided by the platform, network infrastructure, or services. | Self-assessment | | `ssdf-pw-9-2` | Implement the default settings (or groups of default settings, if applicable), and document each setting for software administrators. | Self-assessment | ### RESPOND TO VULNERABILITIES (RV) #### RV.1: Identify and Confirm Vulnerabilities on an Ongoing Basis > Help ensure that vulnerabilities are identified more quickly so that they can be remediated more quickly in accordance with risk, reducing the window of opportunity for attackers. > > * RV.1.1: Gather information from software acquirers, users, and public sources on potential vulnerabilities in the software and third-party components that the software uses, and investigate all credible reports. > * RV.1.2: Review, analyze, and/or test the software's code to identify or confirm the presence of previously undetected vulnerabilities. > * RV.1.3: Have a policy that addresses vulnerability disclosure and remediation, and implement the roles, responsibilities, and processes needed to support that policy. | Requirement | Description | Chainloop Policy | | - | - | - | | `ssdf-rv-1-1` | Implement a vulnerability reporting mechanism to enable users and researchers to report issues. | `reporting-mechanism-exists` (manual evidence), `security-contact-exists` (manual evidence), `security-response-team-exists` (manual evidence), `security-response-sla-exists` (manual evidence), `reporting-mechanism-public` (manual evidence), `security-feeds-monitoring-exists` (optional manual evidence) | | `ssdf-rv-1-2` | Perform regular vulnerability scanning to detect known issues across all software components: an SCA scan is performed daily. | `vulnerability-scan-present(periodicity:daily)` (automatic) | | `ssdf-rv-1-3` | Maintain a coordinated vulnerability disclosure (CVD) policy, outlining how reports are handled and timelines for response. | `cvd-process-exists` (manual evidence), `cvd-triggering-communicated` (manual evidence), `cvd-team-defined` (manual evidence), `cvd-response-guidance` (manual evidence), `cvd-communication-guidance` (manual evidence), `cvd-vendors-coordination` (manual evidence), `cvd-triggering-defined` (manual evidence), `cvd-rollout-guidance` (manual evidence) | #### RV.2: Assess, Prioritize, and Remediate Vulnerabilities > Help ensure that vulnerabilities are remediated in accordance with risk to reduce the window of opportunity for attackers. > > * RV.2.1: Analyze each vulnerability to gather sufficient information about risk to plan its remediation or other risk response. > * RV.2.2: Plan and implement risk responses for vulnerabilities. | Requirement | Description | Chainloop Policy | | - | - | - | | `ssdf-rv-2-1` | Remediate vulnerabilities based on risk: Critical vulnerabilities are fixed within 2 days. | `vulnerabilities(severity:critical SLA:48h)` (automatic) | | `ssdf-rv-2-2` | Remediate vulnerabilities based on risk: Critical vulnerabilities are fixed within 2 days. Provide a mechanism for timely distribution of security updates and transparent disclosure of relevant vulnerability information to users. | `vulnerabilities(severity:critical SLA:48h)` (automatic), `updates-distribution-policy-exists` (manual evidence), `updates-distribution-information` (manual evidence), `update-distribution-automatic` (optional manual evidence), `updates-distribution-public` (manual evidence), `updates-distribution-timeline` (manual evidence), `updates-distribution-free` (manual evidence), `disclosure-policy-exists` (manual evidence), `security-advisories-process` (manual evidence), `security-advisories-public` (manual evidence), `security-advisory-details` (manual evidence), `disclosure-timeline-exception` (manual evidence) | #### RV.3: Analyze Vulnerabilities to Identify Their Root Causes > Help reduce the frequency of vulnerabilities in the future. | Requirement | Description | Chainloop Policy | | - | - | - | | `ssdf-rv-3-1` | Analyze identified vulnerabilities to determine their root causes. | Self-assessment | | `ssdf-rv-3-2` | Analyze the root causes over time to identify patterns, such as a particular secure coding practice not being followed consistently. | Self-assessment | | `ssdf-rv-3-3` | Review the software for similar vulnerabilities to eradicate a class of vulnerabilities, and proactively fix them rather than waiting for external reports. | Self-assessment | | `ssdf-rv-3-4` | Review the SDLC process, and update it if appropriate to prevent (or reduce the likelihood of) the root cause recurring in updates to the software or in new software that is created. | Self-assessment | # Welcome to Chainloop Source: https://docs.chainloop.dev/welcome Chainloop provides a centralized platform for artifact management, real-time visibility, and automated compliance for your Software Delivery Process. ## Get started If you're new to Chainloop, you can get started using the guides below. > [card] [Quickstart](/quickstart) > > Get started with Chainloop in minutes. > [card] [AI Sessions Quickstart](/ai-sessions) > > Record your first AI coding session in Chainloop. > [card] [Getting Started Guide](/get-started) > > A step-by-step guide to will walk you through many of the Chainloop features. > [card] [Concepts](/concepts) > > Learn about the key concepts of Chainloop > [card] [Deep dive Guides](/guides) > > Guides to help you get the most out of Chainloop. If you are interested in project compliance, don't miss the following guides. > [card] [Cyber Resilience Act (CRA)](/guides/cra) > [card] [Supply-chain Levels for Software Artifacts (SLSA)](/guides/slsa) > [card] FedRamp (soon) ## What's Chainloop? Chainloop provides a centralized platform for artifact management, real-time visibility, and automated compliance. It bridges gaps between Developers, security, and compliance teams. Some of Chainloop's pillars include. **Central Evidence Store for SDLC**: A single platform to centralize, connect, and validate any evidence or metadata —from SBOMs and IaC validation reports to SAST, DAST results, and cloud security checks. The collection of data ![info](https://mintcdn.com/chainloop/xJ5hNAgMrS6U1u_m/img/how-it-works-1.png?fit=max\&auto=format\&n=xJ5hNAgMrS6U1u_m\&q=85\&s=9ff0719f5abd75f0f7c7080a88d869aa) **Change Management**: We offer a clear separation of concerns and communication channels between Dev, SecOps, and compliance teams, fostering seamless collaboration, communication, and productivity. ![info](https://mintcdn.com/chainloop/xJ5hNAgMrS6U1u_m/img/how-it-works-2.png?fit=max\&auto=format\&n=xJ5hNAgMrS6U1u_m\&q=85\&s=4083555f9f8298b0239ac4799d1dd306) **Visibility & Alerting**: Real-time insights into SDLC security posture with proactive alerts. ![info](https://mintcdn.com/chainloop/xJ5hNAgMrS6U1u_m/img/how-it-works-3.png?fit=max\&auto=format\&n=xJ5hNAgMrS6U1u_m\&q=85\&s=26681ab887b4d26dd366bc3a57e78284) **Automated Compliance**: Offer automated validation through customizable policies, frameworks, and requirements, reducing manual effort and improving accuracy for security and compliance. ![info](https://mintcdn.com/chainloop/xJ5hNAgMrS6U1u_m/img/how-it-works-4.png?fit=max\&auto=format\&n=xJ5hNAgMrS6U1u_m\&q=85\&s=94ce0a280548aa05a4f5422adc192083) ### How does it work? > [!TIP] > > You can learn more about the core concepts of Chainloop in the [Concepts](/concepts/overview) section. With Chainloop, Security, compliance, and Risk management teams on the right, get a single pane of glass where they can define security and compliance policies, what evidence and artifacts they want to receive, and where to store them. On the left, developers are shielded from all this complexity by being given simple instructions on what to provide when instrumenting their CI/CD pipelines. ![info](https://mintcdn.com/chainloop/xJ5hNAgMrS6U1u_m/img/introduction-2.png?fit=max\&auto=format\&n=xJ5hNAgMrS6U1u_m\&q=85\&s=b593422ff71a747db1ad6090f4477043) **Metadata Generation** Developers produce key data—such as build artifacts, SBOMs, vulnerability reports, and other compliance evidence—during the software build process. **Easy Integration** DevOps integrate Chainloop into existing CI/CD pipelines using our CLI or integrations, automatically capturing all the necessary evidence with context (e.g., Git commit details and pipeline configuration). **Digital Signing** Every piece of metadata is digitally signed (using SLSA, in-toto, sigstore, or your own PKI such as AWS KMS or Keyfactor) to ensure it is tamper-proof and verifiable. **Centralized Storage and Validation** Signed data is pushed to our secure evidence store, where it is validated and organized into a comprehensive record. * Graph-Based Provenance: Every item is connected in a traceable graph, ensuring complete visibility over the software lifecycle. * Immutable Storage: Artifacts are signed and stored immutably, providing a robust audit trail. **Automated Policy Enforcement** Security and compliance teams define rules using our curated policy library. These policies are automatically applied, delivering immediate risk assessments and remediation guidance. **Continuous Monitoring** Our system continuously checks that every project meets your defined security and compliance standards. **Real-Time Insights** An intuitive dashboard provides instant alerts and clear reports to keep your teams informed. By turning complex security processes into a simple, automated routine, Chainloop helps you build and deliver trusted software faster. ### Who is it for? Enterprises comprise fragmented, siloed Software Supply Chain practices, and tools, making it difficult to introduce security and compliance requirements efficiently in their organizations. This slows down the Software Delivery Process or even blocks it under strict regulations in highly regulated markets, especially since Compliance and Risk Management (CRM) programs still rely on manual, costly, and slow processes. At their core, most security and compliance initiatives, such as vulnerability management, license compliance, or self-attestation, involve making decisions or sharing metadata generated during the software delivery process. Metadata that ranges from Software Bill Of Materials (SBOMs), vulnerability scans, and QA reports to attestations or more. As regulatory requirements like **FedRamp**, **Executive Order 14028 in the US**, and the **EU Cyber Resilience Act (CRA)** or **Digital Operational Resilience Act (DORA)**, just to mention a few, continue to evolve, automating compliance on top of trustworthy metadata is no longer optional.