Repository navigation
docs(tutorials): add the Evidence tutorial #222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ccf-factory-reviewer
merged 6 commits into
main
from
factory/stack/wi_9405057ecbb6346a3472/0
Nov 30, 2026
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
c6e4bd3
docs(tutorials): add the Evidence tutorial
ccf-factory[bot] d6ec74a
docs(tutorials): align the Evidence tutorial with STYLE.md
ccf-factory[bot] da4f0e2
docs(tutorials): tighten the Evidence tutorial wording after self-review
ccf-factory[bot] 1512db1
docs(tutorials): qualify two claims in the Evidence tutorial
ccf-factory[bot] 24cc5c9
docs(tutorials): fix expiry colour states and re-submit media count i…
ccf-factory[bot] 0cde599
docs(tutorials): state the empty Subject picker on re-submit and fix …
ccf-factory[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,208 @@ | ||
| --- | ||
| sidebar_label: Evidence | ||
| description: Create evidence by hand, set its collection window and expiry, read its page, find it again with a label search and re-submit it as a new revision. | ||
| --- | ||
|
|
||
| import StartDemoEnvironment from './_start-demo-environment.mdx'; | ||
|
|
||
| # Work with evidence in the UI | ||
|
|
||
| *Takes 10–15 minutes.* You create one piece of evidence by hand, read every part of its page, find it again with a label search and re-submit it so it has a history you can open. This tutorial is for compliance and GRC users who record evidence in the Continuous Compliance Framework (CCF) UI. | ||
|
|
||
| Evidence is a result about one subject, with labels that say where it comes from. [Concepts](../concepts.md#evidence) explains the terms this tutorial uses. | ||
|
|
||
| ## Before you start | ||
|
|
||
| - The current release of CCF: tutorials are unversioned and document the current release. | ||
| - The create and update permissions on evidence. Without them the **Create Evidence** and **Re-submit Evidence** buttons are disabled, and each one says what permission it needs when you hover over it. | ||
| - A file to attach: any small text or image file from your computer works. | ||
|
|
||
| ## Create a demo environment | ||
|
|
||
| <Steps> | ||
| <Step title="Create a demo environment"> | ||
|
|
||
| <StartDemoEnvironment /> | ||
|
|
||
| </Step> | ||
| </Steps> | ||
|
|
||
| ## Create evidence by hand | ||
|
|
||
| Evidence usually arrives from a CCF Agent: a CCF Plugin collects the data from the target and a CCF Policy evaluates it. You can also record it yourself, which is what you do here. Plugin-collected evidence works the same way once it is in the UI, and the Plugins tutorials cover the agent side. | ||
|
|
||
| <Steps> | ||
| <Step title="Open the create form"> | ||
|
|
||
| In the left navigation, under **Global**, select **Evidence**. On the **Evidence** page, select the three-dot menu at the right of the search row, and under **Evidence** select **Create New**. The page opens as **New Evidence**. | ||
|
|
||
| </Step> | ||
| <Step title="Fill in the details"> | ||
|
|
||
| In the **Details** card, give the record a **Title** and a **Description** that says what it demonstrates, then set its **Status** to `satisfied`, `not-satisfied` or `in-progress` and write a **Reason** for that status. | ||
|
|
||
| </Step> | ||
| <Step title="Name the subject"> | ||
|
|
||
| Under **Subject**, start typing in the **Search components, parties, users…** box and pick what this evidence is about: a component, a party or a user. By default evidence you submit by hand does not need a subject, so leave it empty when nothing in the list fits; an operator can make it required. The screenshot below shows a user picked from the list. | ||
|
|
||
| </Step> | ||
| <Step title="Add the labels"> | ||
|
|
||
| Under **Labels**, select **Add** twice and fill in the two pairs of **Label name** and **Label value** boxes: `team` with `widget-team`, and `environment` with `demo`. Labels make evidence searchable and drive control matching, so the search you run in a moment depends on them. | ||
|
|
||
| </Step> | ||
| <Step title="Attach a file"> | ||
|
|
||
| Under **Attachments**, choose a file. It appears under the **Attachments** heading, and the **Links** card at the bottom of the page fills in a row for it on its own. Add another row in **Links** with **Add Link** when the evidence points at something external instead of holding it, and use the **Properties** card for any further name and value pairs. | ||
|
|
||
| </Step> | ||
| </Steps> | ||
|
|
||
| <Checkpoint src="/img/tutorials/evidence/new-evidence-form-details.png" alt="The New Evidence page of the CCF UI with the Details card filled in: a title, a description, the status satisfied selected, a reason, the subject Dana Reyes selected, the labels team=widget-team and environment=demo and a file named backup-check.log under Attachments"> | ||
|
|
||
| The **New Evidence** form shows your **Title**, **Description**, **Status** and **Reason**, the **Subject** you picked, both **Labels** and the file under **Attachments**. Nothing is saved until you submit the form. | ||
|
|
||
| </Checkpoint> | ||
|
|
||
| ## Set the collection window and expiry | ||
|
|
||
| <Steps> | ||
| <Step title="Set the dates"> | ||
|
|
||
| Scroll to the **Collection Window & Expiry** card. Set the **Start Date** and the **End Date** to the window the evidence covers. Both are required, and neither can be in the future: the record says what was true over a window that has already closed. | ||
|
|
||
| </Step> | ||
| <Step title="Set or leave the expiry"> | ||
|
|
||
| Set the **Expiry Date** to the day this evidence stops being valid, or leave it empty. Left empty, the API applies its own default: one month after the **End Date** (the `CCF_EVIDENCE_DEFAULT_EXPIRY_MONTHS` setting, `1` unless the operator changes it). The expiry must be after the end date, or the form stops you with **"Expiry date must be after the end date"** and **Create Evidence** stays disabled. | ||
|
|
||
| </Step> | ||
| <Step title="Create the record"> | ||
|
|
||
| Select **Create Evidence** at the bottom right. The page opens on the record you just created. | ||
|
|
||
| </Step> | ||
| </Steps> | ||
|
|
||
| <Checkpoint src="/img/tutorials/evidence/collection-window-and-expiry.png" alt="The Collection Window & Expiry card of the New Evidence page with the start date 2026-11-16, the end date 2026-11-27 and the expiry date 2026-12-31 set"> | ||
|
|
||
| The **Collection Window & Expiry** card holds your **Start Date**, **End Date** and **Expiry Date**, with no red validation message under it. | ||
|
|
||
| </Checkpoint> | ||
|
|
||
| ## Read the evidence page | ||
|
|
||
| The page opens on the record. Above the tabs, the header shows the title, the status badge `satisfied`, a signature badge, the description, and under it **Collected** (the end of the window), **Expiration Date** and a **Summary** line counting the labels, props, links and media items. | ||
|
|
||
| Six tabs sit under the header: | ||
|
|
||
| - **Overview**: the description, **View Tasks**, and the **Current State** card with the **Status Reason**, the counts of **Labels**, **Tasks**, **Metadata Links** and **Back Matter Resources**, and the **Expiration**. A **Subjects** card shows what the evidence is about. | ||
| - **Metadata**: the **Labels**, **Props** and **Links** of the record, including the attachment link the form added for you. | ||
| - **Risks**: the **Associated Risks** for this evidence stream. Hand-made evidence starts with none; **Create Risk** raises one from here, which the Risk tutorials cover. | ||
| - **Media**: each attachment. Select the **+** beside a text file to read it in place, or the download icon to keep a copy. | ||
| - **Signature**: **Verification** for a fresh check of the stored payload, and **Signature Details** with the **Envelope**, the **Signer** and the **Claims**. Evidence the API stores is signed as it arrives, which is why the badge already reads **Signed**. | ||
| - **History**: the record's revisions, one row each with a **View** button. Only one exists so far. | ||
|
|
||
| The **Expiration Date** tells you how current the record is: a future expiry a week or less away is shown in amber, one that has passed is shown in red with **(expired)** beside it, and one further out is green. A record with no expiry at all reads **No expiration date**. | ||
|
|
||
|  | ||
|
|
||
| <Checkpoint src="/img/tutorials/evidence/evidence-page-overview.png" alt="The evidence page of the record just created in the CCF UI: the title with the satisfied status badge and the Signed badge, the Collected date 11/27/2026, the Expiration Date 12/31/2026, a summary line of 2 labels, 0 props, 1 links and 1 media items, and the tabs Overview, Metadata, Risks, Media, Signature and History"> | ||
|
|
||
| You are on your own record's page: the status badge, **Collected**, **Expiration Date** and the **Summary** line, with **Overview**, **Metadata**, **Risks**, **Media**, **Signature** and **History** below them. | ||
|
|
||
| </Checkpoint> | ||
|
|
||
| ## Find the evidence again | ||
|
|
||
| The **Evidence** page finds records by their labels. Its search box takes `label=value` and `label!=value` pairs joined with `AND` and `OR`, grouped with parentheses, as its placeholder `foo=bar AND bar=baz AND (bar!=bat OR bar!=bat)` shows. | ||
|
|
||
| <Steps> | ||
| <Step title="Search on a label"> | ||
|
|
||
| Under **Global**, select **Evidence**. In the search box, enter `team=widget-team` and select **Search**. | ||
|
|
||
| </Step> | ||
| <Step title="Read the result"> | ||
|
|
||
| Your record is the only one listed. Each row shows the status, the **Evidence Name**, the **Subjects**, when it was **Last Seen At** and its labels, which is where you can read `team=widget-team` and `environment=demo`. Sort a column by selecting its heading, and page through with **Previous** and **Next**. | ||
|
|
||
| </Step> | ||
| </Steps> | ||
|
|
||
| A search you use often becomes a filter you save and share: that is the Filter tutorial's job, and [Concepts](../concepts.md#filter) says what a filter is linked to. | ||
|
|
||
| <Checkpoint src="/img/tutorials/evidence/evidence-list-label-search.png" alt="The Evidence page of the CCF UI with team=widget-team in the search box and one result row: Weekly backup verification for the Alpha widget service, subject Dana Reyes, with the labels team=widget-team and environment=demo"> | ||
|
|
||
| The **Evidence** list shows one row, your record, with both of its labels in the **Labels** column. | ||
|
|
||
| </Checkpoint> | ||
|
|
||
| ## Re-submit the evidence | ||
|
|
||
| Evidence is a statement about a window that has closed, so you do not edit it: you submit a new revision of it. A re-submission carries the same stable identifier, so it joins the same evidence stream and becomes its latest record. Evidence a CCF Plugin collects is re-submitted by the agent on its own schedule, as the Plugins tutorials show. | ||
|
|
||
| <Steps> | ||
| <Step title="Open the re-submission form"> | ||
|
|
||
| Select your record's name, then select **Re-submit** at the top right of its page. The page opens as **Re-submit Evidence**, with the record's details already filled in. The form does not carry the attachment over: the **Links** card keeps the attachment's link row, but the new revision gets the file itself only if you attach it again under **Attachments**. The **Subject** picker starts empty too, so pick the subject again if the new revision should keep one. | ||
|
|
||
| </Step> | ||
| <Step title="Change what changed"> | ||
|
|
||
| Set the **Status** to `not-satisfied` and rewrite the **Reason**, then move the **End Date** to the day you ran the check again. The labels stay as they are, and the new **End Date** must still leave the **Expiry Date** after it. | ||
|
|
||
| </Step> | ||
| <Step title="Submit the revision"> | ||
|
|
||
| Select **Re-submit Evidence**. The page opens on the new revision, and its **Expiration Date** is still the one from the first submission. | ||
|
|
||
| </Step> | ||
| <Step title="Open the history"> | ||
|
|
||
| Select the **History** tab. Both revisions are listed, each with a **View** button. Select **View** on the older one: its page shows **Latest Evidence** where the expiration was, with **Go to latest evidence** to get back. | ||
|
|
||
| </Step> | ||
| </Steps> | ||
|
|
||
| <Checkpoint src="/img/tutorials/evidence/evidence-history-two-versions.png" alt="The History tab of the evidence page showing two revisions of Weekly backup verification for the Alpha widget service, each with its collected date and a View button, below the Compliance over time and Agent health charts"> | ||
|
|
||
| The **History** tab lists two revisions of your record, each with its collected date and a **View** button, below the **Compliance over time** and **Agent health** charts. | ||
|
|
||
| </Checkpoint> | ||
|
|
||
| ## Check your work | ||
|
|
||
| Go to the **Evidence** page under **Global** and check three things: | ||
|
|
||
| - Searching `team=widget-team` again lists your record once, not twice. Re-submitting added a revision to the same evidence stream instead of a second record. | ||
| - The latest revision reads `not-satisfied` and is collected on the later of your two **End Date** values. Open the older revision from **History** and its **Latest Evidence** link takes you back to it. | ||
| - The **Summary** line counts 2 labels, 1 links and 0 media items: the re-submission form does not carry the attachment over, so the new revision holds its link row but not the file. The **Signature** tab still reads **Signed** with the new revision's content hash. | ||
|
|
||
| What it means: the record you re-submitted is the answer a control gets today, the older one stays as the history of what was true before, and the labels are what tie the two to the controls and searches that look for them. | ||
|
|
||
| ## Next steps | ||
|
|
||
| <CardGroup cols={2}> | ||
| <Card title="Tutorials overview" icon="🧭" href="/tutorials"> | ||
|
|
||
| The tutorial groups, and where the next ones in each area are listed. | ||
|
|
||
| </Card> | ||
| <Card title="Save and share the search" icon="🔖"> | ||
|
|
||
| The Filter tutorial saves the `team=widget-team` search as a filter, links it to controls and shares it. It is listed under **Evidence and Catalog** in the [Tutorials overview](./index.md). | ||
|
|
||
| </Card> | ||
| <Card title="Raise a risk from evidence" icon="⚠️"> | ||
|
|
||
| The Risk tutorials start from the **Create Risk** button on the **Risks** tab and cover the risk lifecycle and dashboard. They are listed under **Risk** in the [Tutorials overview](./index.md). | ||
|
|
||
| </Card> | ||
| <Card title="Let a plugin collect it" icon="🔌"> | ||
|
|
||
| The Plugins tutorials add a plugin to your CCF Agent and show the evidence it captures, which reaches the same pages you just worked through. They are listed under **Plugins** in the [Tutorials overview](./index.md). | ||
|
|
||
| </Card> | ||
| </CardGroup> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.