Skip to main content

Notion integration

The Notion integration writes Guard investigations into your Notion workspace. It can keep one database entry per investigation, append events to a log page, or do both. The service is available for a connection and a test. In routing workflows it is preview only, so a publish that includes a Notion action is refused. See Test, publish, and roll back.

Connect NotionDirect link to Connect Notion​

  1. In the Guard Cloud dashboard, open Settings > Integrations > Notion.
  2. Select Connect Notion workspace and approve the Guard integration on Notion's consent screen. Guard lists only the pages and databases the integration can access, so share the ones you want to use with it in Notion.
  3. Under Destination type, choose Database, Page, or Both.
  4. Choose the destination. For a database, pick one you shared or create a Guard board. For a page, pick a page you shared.
  5. Choose a Redaction level.
  6. Select Validate & save. After the first save the button reads Update Notion routing.
  7. Select Test delivery to confirm Guard can write to the destination.

If the destination lists are empty, share at least one database or page with the Guard integration in Notion, then select Reconnect workspace.

Destination typeDirect link to Destination type​

TypeWhat Guard writes
DatabaseOne entry per investigation, with status and severity properties you can filter and group
PageA chronological log. Each event appends a set of blocks to the page
BothThe database entry, plus an appended log block set on the page

Changing the destination type clears the current selection, and Guard asks you to confirm first.

Create a Guard boardDirect link to Create a Guard board​

If you do not have a database to use, select Create Guard board. Guard creates a database titled HOL Guard Board with the properties it writes to, and selects it as the destination. Select Validate & save to keep it. You can create it in the workspace root with Create in my workspace, or under one of your shared pages with Create under page.

PropertyType
TitleTitle
Guard IDText
StatusSelect: New, Investigating, Blocked, Resolved, False Positive
SeveritySelect: Critical, High, Medium, Low, Info
PublisherText
ArtifactText
Event TypeSelect: Investigation, Package Review, Evidence, Alert
CreatedDate
UpdatedDate
Guard MarkerText

The board is grouped by Status. Guard moves an entry between the Status values as the investigation opens, is worked, is blocked, and is resolved or marked a false positive.

You can also use your own database. It needs properties with the same names and types as the table above. See Property mapping and schema drift.

Next to a selected database, Change returns to the picker, and Delete archives the database in Notion after a confirmation. An archived database sits in the Notion trash.

Update an existing entryDirect link to Update an existing entry​

Guard writes one database entry per investigation. Each entry has a Guard Marker property that holds an identifier for the investigation. When a later event arrives for the same investigation, Guard finds the existing entry, by its stored reference first and by the marker second, and updates its properties instead of creating a second entry. If it cannot find or update the entry, it creates a new one.

Do not edit or clear the Guard Marker value, and do not delete the property. If you do, the next event for that investigation creates a new entry.

Page log mode has no such lookup. Each event appends blocks to the end of the page.

What an entry containsDirect link to What an entry contains​

The page body holds a heading with the summary, a callout with severity, status and investigation ID, and an event details list. Sections for routing, policy decision, artifact, evidence link, and command arguments appear only when the event has that information. A divider and a Delivered by HOL Guard line close the page. Guard limits the number of blocks and the length of each text value to what the Notion API accepts and marks a cut with [TRUNCATED].

Redaction levelDirect link to Redaction level​

Guard removes patterns from the text it writes before it sends them to Notion. The default for a new connection is Strict.

LevelWhat Guard removes
StandardBearer tokens, key=value secrets such as token, password, and API key, private key blocks, JSON web tokens, email addresses, and file paths that start with /Users, /home, /root, /var, /etc, /tmp, or /opt
StrictEverything in Standard, plus AWS access key IDs, OAuth codes, environment variable assignments such as NAME=value, and any single text value longer than 500 characters, which is cut and marked [TRUNCATED]

Metadata values whose key names look sensitive, such as token, secret, password, authorization, and api key, are replaced with [REDACTED] at both levels. Redaction matches patterns, so it is a safety net and not a guarantee. Use a workspace, and share destinations in Notion, that only the right people can read.

Property mapping and schema driftDirect link to Property mapping and schema drift​

The Property mapping panel shows which Guard field goes to which Notion property.

Guard fieldNotion property
titleTitle
guardIncidentIdGuard ID
statusStatus
severitySeverity
sourcePublisher
eventTypeEvent Type
lastUpdateUpdated

If the selected database is missing a property or has a property of another type, the panel marks the missing property and shows Schema drift detected with the number of missing properties and missing status options. Add the missing property in Notion with the exact name and type from the board table, or create a new Guard board.

TroubleshootingDirect link to Troubleshooting​

SymptomFix
No databases or pages listedShare the destination with the Guard integration in Notion, then select Reconnect workspace
The test delivery fails with an access errorThe destination was unshared or archived. Share it again, or pick another destination
The token is reported as expiredSelect Reconnect workspace and approve again
An entry is created again for the same investigationThe Guard Marker value or property was changed or removed
Status never changesCheck that the database has a Status select property with the expected options. See the drift warning

Running the test again reuses the earlier test entry in a database when it still exists, so it does not add a new entry each time.

NextDirect link to Next​