documents

v0.2.1 collector

Collects versioned evidence documents and extracted text

Install

epack install collector documents

Adds to epack.yaml, resolves dependencies, downloads binary.

Usage

Run all configured collectors and build a pack:

epack collect

Runs all collectors in epack.yaml and outputs an evidence pack.

Configuration

Or add manually to epack.yaml:

collectors:
  documents:
    source: https://github.com/locktivity/epack-collector-documents

Then run epack install to lock and sync.

Documents Collector

The Documents collector adds your Locktivity evidence documents to evidence
packs, so your policies and reports travel with the rest of your evidence.

You manage documents in Locktivity: upload them, or connect a source like
GitHub or Google Drive. When a pipeline runs, this collector adds the
documents you selected for that pipeline to the pack.

What It Collects

Each run adds a folder per document under artifacts/documents/<id>/,
plus one index:

  • Document files: each document's file as you manage it in Locktivity. An uploaded PDF or spreadsheet ships as itself. A document linked from a source like GitHub or Google Drive ships as a rendered PDF plus the original source file, so the pack carries both the readable copy and the exact bytes the version was recorded from.
  • Extracted text: the document's text in searchable chunks, anchored to pages (PDFs) or sheets and rows (spreadsheets), so checks and searches can cite the exact passage.
  • Document details: what Locktivity found in the document. For a SOC 2 report that includes the audit period, the auditor, and the report type, each with the passage it came from.
  • Document index (artifacts/documents.document-index.json): every document with its name, source, and version, pointing to that document's files.

Each file is verified against its recorded checksum before it is packed.

Use Cases

  • Audit evidence: hand an auditor one bundle where the SOC 2 report and the policies sit next to the machine evidence
  • Customer security reviews: answer document requests with versioned, checked files instead of email attachments
  • Content checks: the extracted text lets validation profiles check that a policy covers a topic, citing the exact passage

How It Works

  1. The collector requests the document snapshot for this pipeline run from Locktivity. The first request captures the set; retries of the same run get the identical set back.
  2. It downloads each document file and its extracted text over pre-signed URLs, and verifies every download against the checksum Locktivity recorded. A document whose files cannot be downloaded or do not match their checksums is left out of the pack rather than packed unverified, and the other documents still ship.
  3. It writes each document's details file from the captured snapshot.
  4. Everything is staged into per-document folders, the index is built, and the output is wrapped in the epack collector protocol envelope.

Output Layout

artifacts/
  documents.document-index.json       # the index
  documents.collector-result.json     # what was left out and why
  documents/
    doc_4f2a9c/
      acme-soc2-2025.pdf              # the document, ready to open
      text.json                       # extracted text with citations
      metadata.json                   # extracted details with citations
    doc_7b3e1f/
      access-policy.pdf               # rendered from the linked source
      access-policy.md                # the original source file
      text.json

Field-level schemas for the index and text artifacts live in
schema/.

Index Reference

Each entry in the index describes one document:

Field What It Tells You
name, source, version_number Which document this is, where it lives, and which version shipped.
document_type What kind of document Locktivity recognized, such as a SOC 2 report or a penetration test.
file, source_file, text, metadata Where each of the document's files landed in the pack, with a digest for each downloaded file. source_file is set when the shipped file is a rendering of a linked source.
warnings Anything incomplete: a document with no file yet, or text not extracted yet.
captured_at, run_key, digest (top level) When the document set was captured, the run it belongs to, and the integrity hash of the whole set.

A field that does not apply is null rather than missing: file for a
document with no file yet, source_file for a document that is not a
rendering, version_number when no version was identified. Missing file
fields mean the collector left the document out (see below).

When a Document Can't Be Collected

The run fails only when its configuration is invalid, Locktivity rejects its
credentials, or the snapshot cannot be taken. A document whose files cannot be
downloaded or fail verification is left out while the rest are included: its
entry stays in the index with its name and source but without its file
fields, and artifacts/documents.collector-result.json lists a gap for each
of its files and fields, with a code such as vendor_error or
invalid_response. The result also records the calls the collector made.

What's Included

Which documents a pipeline carries is decided in Locktivity, on the pipeline's
Documents collector: all of your documents, or a chosen subset. The collector
follows that selection, and there's nothing to configure here.

Authentication

On a Locktivity-managed pipeline, a short-lived token is issued automatically
for each run, so no long-lived secret is stored in your CI settings. In your
own CI, the collector exchanges an API application's client credentials for a
short-lived token on each run.

See Configuration for setup instructions.

Documents Collector Configuration

Requirements

  • epack v0.2.0 or newer. On older versions the collector stops with a message asking you to upgrade.

Authentication Setup

Locktivity-Managed Pipeline

When you add the Documents collector to a pipeline in Locktivity, the pipeline
generates the collector configuration. At runtime, the pipeline credential
provides a token for the collector:

credential_sets:
  locktivity_documents: "<credential-set-id>"

collectors:
  documents:
    source: locktivity/epack-collector-documents@^0.1
    credentials:
      - locktivity_documents

Your Own CI (Client Credentials)

For a pipeline you run yourself, configure the collector with an API
application's client id and client secret. The collector uses them to request an
access token for the run.

Step 1: Create an API Application

  1. In Locktivity, create an API application for your CI
  2. Grant it the Collect documents permission
  3. Copy the client id and client secret into your CI's secret store

Step 2: Configure epack

collectors:
  documents:
    source: locktivity/epack-collector-documents@^0.1
    config:
      pipeline_id: "<pipeline-id>"
    secrets:
      - LOCKTIVITY_CLIENT_ID
      - LOCKTIVITY_CLIENT_SECRET
      - LOCKTIVITY_RUN_KEY
      - GITHUB_RUN_ID
      - GITHUB_RUN_ATTEMPT

Only variables listed under secrets reach the collector.

Step 3: Export the Run Identity

Run identity groups retries of the same run so they produce the identical set
of documents; without it, every invocation includes the latest documents as a
fresh set.

export LOCKTIVITY_RUN_KEY="$YOUR_CI_RUN_ID"

In GitHub Actions, skip this step: keep GITHUB_RUN_ID and
GITHUB_RUN_ATTEMPT in the secrets list and the collector uses them.

Configuration Options

Option Required Description
pipeline_id In your own CI Which pipeline's document selection to include. On a Locktivity-managed pipeline the token already identifies the pipeline, so this is omitted; with client credentials it is required, and Locktivity fills it in when it generates the configuration.
run_key No Groups retries of the same run. On a Locktivity-managed pipeline this comes from the workflow run's verified identity automatically; in your own CI, export LOCKTIVITY_RUN_KEY per run instead. Set this option directly only for one-off runs outside any CI.
insecure_endpoint No Advanced HTTPS endpoint override for the documents API. The insecure_ name is an explicit acknowledgement that API traffic is redirected away from the default endpoint.
insecure_auth_endpoint No Advanced HTTPS endpoint override for the client-credentials token exchange. Use only a trusted endpoint; the collector sends LOCKTIVITY_CLIENT_SECRET there.

Advanced Endpoint Overrides

Endpoint overrides redirect API traffic away from the default Locktivity
service. Use them only with endpoints you control or explicitly trust.
Custom endpoint URLs must not include userinfo, query strings, or fragments.
Plain HTTP endpoint overrides are always rejected.

collectors:
  documents:
    source: locktivity/epack-collector-documents@^0.1
    config:
      pipeline_id: "<pipeline-id>"
      insecure_endpoint: "https://api.example.com"
      insecure_auth_endpoint: "https://app.example.com"
    secrets:
      - LOCKTIVITY_CLIENT_ID
      - LOCKTIVITY_CLIENT_SECRET

Environment Variables

Variable Description
LOCKTIVITY_DOCUMENTS_TOKEN Short-lived token issued per run on managed pipelines. You never set this yourself.
LOCKTIVITY_CLIENT_ID API application client id, for your own CI.
LOCKTIVITY_CLIENT_SECRET API application client secret, for your own CI.
LOCKTIVITY_RUN_KEY Per-run identity exported by your CI, so retries stay identical.
GITHUB_RUN_ID, GITHUB_RUN_ATTEMPT GitHub Actions run identity, used automatically when listed under secrets.

Troubleshooting

Exit codes

Exit Code When
0 The run collected, even if some documents were left out
1 invalid_response Locktivity's answer to the token or snapshot request was not what the collector expects
1 too_large The snapshot from Locktivity is over the collector's 32 MB limit
2 config_invalid No credentials, no pipeline_id with client credentials, an endpoint override that is not HTTPS, an epack too old for file artifacts, a pipeline without the Documents collector, or an account without the Documents feature or the pipeline
3 auth_failed Locktivity rejected the token or the client credentials
3 permission_denied The credential lacks the Collect documents permission
4 rate_limited, vendor_error, timeout Locktivity or its token endpoint could not be reached or kept failing

A configuration error asking you to upgrade on startup

Your epack is older than v0.2.0. Upgrade it.

An authentication error

Locktivity rejected the token or the client credentials (auth_failed), or
the credential lacks the snapshot permission (permission_denied). Both exit
with code 3. On a managed pipeline, check the pipeline's Documents credential
in Locktivity. In your own CI, check LOCKTIVITY_CLIENT_ID and
LOCKTIVITY_CLIENT_SECRET and the application's Collect documents
permission. Missing credentials are a configuration error instead, with exit
code 2.

"pipeline has no documents collector"

The pipeline in Locktivity doesn't have the Documents collector enabled. Add
it in the pipeline's collectors step.

A checksum mismatch

A downloaded document didn't match what Locktivity recorded. The collector
leaves that document out of the pack, records an invalid_response gap for it
in artifacts/documents.collector-result.json, and includes the rest. Re-run,
and contact support if it persists rather than bypassing the check.

A document is missing from the pack

A document that has no file uploaded yet doesn't fail the run: it's listed in
artifacts/documents.document-index.json with file set to null and a
warning, and named in the run summary. Upload a file for it in Locktivity and
the next run includes it.

A document whose files could not be downloaded is listed without its file
fields, and artifacts/documents.collector-result.json has a gap for each
with the reason, such as vendor_error when the download kept failing. A
file over 100 MB is left out with a too_large gap, since a pack holds at
most 100 MB per file.

Examples

Basic Usage

When you add the Documents collector to a pipeline, Locktivity generates the
workflow and epack.yaml. The generated collector section looks like:

stream: myorg/production

credential_sets:
  locktivity_documents: "credset_9f8e7d"

collectors:
  documents:
    source: locktivity/epack-collector-documents@^0.1
    credentials:
      - locktivity_documents

That's all that's needed: the pipeline run includes the documents you selected
for it, authenticated with a short-lived token issued for the run.

Your Own CI (Client Credentials)

Outside GitHub Actions, the collector authenticates with an API application's
client credentials and names its pipeline explicitly. Locktivity generates
this configuration for CLI pipelines:

stream: myorg/production

collectors:
  documents:
    source: locktivity/epack-collector-documents@^0.1
    config:
      pipeline_id: "pl_9f8e7d"
    secrets:
      - LOCKTIVITY_CLIENT_ID
      - LOCKTIVITY_CLIENT_SECRET
      - LOCKTIVITY_RUN_KEY
      - GITHUB_RUN_ID
      - GITHUB_RUN_ATTEMPT

Then run:

export LOCKTIVITY_CLIENT_ID="..."
export LOCKTIVITY_CLIENT_SECRET="..."
export LOCKTIVITY_RUN_KEY="$YOUR_CI_RUN_ID"
epack collect

The application needs the Collect documents permission. See
Configuration for setup instructions and what each
variable does.

Sample Output

The index at artifacts/documents.document-index.json:

{
  "snapshot_id": "snap_1a2b3c",
  "pipeline_id": "pl_9f8e7d",
  "run_key": "gha-1234-1",
  "captured_at": "2026-07-08T12:00:00Z",
  "digest": "sha256:...",
  "documents": [
    {
      "document_id": "doc_4f2a9c",
      "name": "Acme SOC 2 Type II 2025",
      "source": "upload",
      "version_number": 3,
      "document_type": "evidencepack/soc2-report@v1",
      "file": {
        "path": "artifacts/documents/doc_4f2a9c/acme-soc2-2025.pdf",
        "digest": "sha256:...",
        "content_type": "application/pdf",
        "byte_size": 1048576
      },
      "source_file": null,
      "text": {
        "path": "artifacts/documents/doc_4f2a9c/text.json",
        "digest": "sha256:..."
      },
      "metadata": {
        "path": "artifacts/documents/doc_4f2a9c/metadata.json"
      },
      "warnings": []
    }
  ]
}

Looking at What Landed in a Pack

# List the documents in a pack
unzip -l evidence-*.epack | grep documents

# See each document's name, type, and where its files landed
unzip -p evidence-*.epack artifacts/documents.document-index.json | jq '.documents[] | {name, document_type, file: .file.path, text: .text.path}'

# Read a document's extracted details (auditor, dates, and where each was found)
unzip -p evidence-*.epack artifacts/documents/<id>/metadata.json | jq
v0.2.1 Latest
2026-11-13

What's Changed

Full Changelog: https://github.com/locktivity/epack-collector-documents/compare/v0.2.0...v0.2.1

darwin/amd64 darwin/arm64 linux/amd64 linux/arm64
v0.2.0
2026-11-05

What's Changed

New Contributors

Full Changelog: https://github.com/locktivity/epack-collector-documents/compare/v0.1.1...v0.2.0

darwin/amd64 darwin/arm64 linux/amd64 linux/arm64
v0.1.1
2026-07-09
darwin/amd64 darwin/arm64 linux/amd64 linux/arm64
v0.1.0
2026-07-09
darwin/amd64 darwin/arm64 linux/amd64 linux/arm64

Field reference

157 fields. No test account checks this collector yet.

Detailed output documents.document-index.json

Everything this collector reads, grouped by area. Each field lists the lowest level that collects it.

General 5 fields · from trust
Captured at captured_at Timestamp when Locktivity captured the snapshot.
Trust
Collected in
Trust, audit, and internal runs
Type
string

Timestamp when Locktivity captured the snapshot.

Digest digest Server-provided digest of the captured snapshot manifest.
Trust
Collected in
Trust, audit, and internal runs
Type
string

Server-provided digest of the captured snapshot manifest.

Pipeline ID pipeline_id Pipeline whose document selection was captured.
Trust
Collected in
Trust, audit, and internal runs
Type
string

Pipeline whose document selection was captured.

Run key run_key Stable run identity used to make retries repeatable.
Trust
Collected in
Trust, audit, and internal runs
Type
string

Stable run identity used to make retries repeatable.

Snapshot ID snapshot_id Locktivity snapshot identifier for this captured document set.
Trust
Collected in
Trust, audit, and internal runs
Type
string

Locktivity snapshot identifier for this captured document set.

Documents 6 fields · from trust
Document ID documents[].document_id Stable document identifier from Locktivity.
Trust
Collected in
Trust, audit, and internal runs
Type
string

Stable document identifier from Locktivity.

Document type documents[].document_type Typed metadata schema Locktivity recognized for this document.
Trust
Collected in
Trust, audit, and internal runs
Type
string, can be null
Null means
Locktivity has not recognized a document type.

Typed metadata schema Locktivity recognized for this document.

Name documents[].name Human-readable document name.
Trust
Collected in
Trust, audit, and internal runs
Type
string

Human-readable document name.

Source documents[].source Where the document came from, such as an upload or connected source.
Trust
Collected in
Trust, audit, and internal runs
Type
string

Where the document came from, such as an upload or connected source.

Version number documents[].version_number Locktivity document version number.
Trust
Collected in
Trust, audit, and internal runs
Type
integer, can be null
Null means
The snapshot did not identify a version of the document.

Locktivity document version number.

Warnings documents[].warnings Document-specific warnings, such as a selected document with no file yet.
Trust
Collected in
Trust, audit, and internal runs
Type
list of strings

Document-specific warnings, such as a selected document with no file yet.

File 4 fields · from trust
Byte size documents[].file.byte_size Server-provided byte size for the staged document file.
Trust
Collected in
Trust, audit, and internal runs
Type
integer

Server-provided byte size for the staged document file.

Content type documents[].file.content_type Server-provided content type for the staged document file.
Trust
Collected in
Trust, audit, and internal runs
Type
string

Server-provided content type for the staged document file.

Digest documents[].file.digest SHA-256 digest of the staged artifact bytes.
Trust
Collected in
Trust, audit, and internal runs
Type
string

SHA-256 digest of the staged artifact bytes.

Path documents[].file.path Pack-local path to the staged document file, in the run's folder. That is artifacts/documents/ unless the run is configured under another...
Trust
Collected in
Trust, audit, and internal runs
Type
string

Pack-local path to the staged document file, in the run's folder. That is artifacts/documents/ unless the run is configured under another name.

Metadata 1 field · from trust
Path documents[].metadata.path Pack-local path to the typed metadata artifact, in the run's folder. That is artifacts/documents/ unless the run is configured under anot...
Trust
Collected in
Trust, audit, and internal runs
Type
string

Pack-local path to the typed metadata artifact, in the run's folder. That is artifacts/documents/ unless the run is configured under another name.

Source file 4 fields · from trust
Byte size documents[].source_file.byte_size Server-provided byte size for the staged document file.
Trust
Collected in
Trust, audit, and internal runs
Type
integer

Server-provided byte size for the staged document file.

Content type documents[].source_file.content_type Server-provided content type for the staged document file.
Trust
Collected in
Trust, audit, and internal runs
Type
string

Server-provided content type for the staged document file.

Digest documents[].source_file.digest SHA-256 digest of the staged artifact bytes.
Trust
Collected in
Trust, audit, and internal runs
Type
string

SHA-256 digest of the staged artifact bytes.

Path documents[].source_file.path Pack-local path to the staged document file, in the run's folder. That is artifacts/documents/ unless the run is configured under another...
Trust
Collected in
Trust, audit, and internal runs
Type
string

Pack-local path to the staged document file, in the run's folder. That is artifacts/documents/ unless the run is configured under another name.

Text 2 fields · from trust
Digest documents[].text.digest SHA-256 digest of the staged artifact bytes.
Trust
Collected in
Trust, audit, and internal runs
Type
string

SHA-256 digest of the staged artifact bytes.

Path documents[].text.path Pack-local path to the extracted text artifact, in the run's folder. That is artifacts/documents/ unless the run is configured under anot...
Trust
Collected in
Trust, audit, and internal runs
Type
string

Pack-local path to the extracted text artifact, in the run's folder. That is artifacts/documents/ unless the run is configured under another name.

Detailed output acme-soc2-2025.pdf

Everything this collector reads, grouped by area. Each field lists the lowest level that collects it. Its schema isn't published yet, so only the checked fields are listed.

Detailed output metadata.json

Everything this collector reads, grouped by area. Each field lists the lowest level that collects it. Its schema isn't published yet, so only the checked fields are listed.

Detailed output text.json

Everything this collector reads, grouped by area. Each field lists the lowest level that collects it. Its schema isn't published yet, so only the checked fields are listed.

Detailed output access-control-policy.md

Everything this collector reads, grouped by area. Each field lists the lowest level that collects it. Its schema isn't published yet, so only the checked fields are listed.

Detailed output access-control-policy.pdf

Everything this collector reads, grouped by area. Each field lists the lowest level that collects it. Its schema isn't published yet, so only the checked fields are listed.

Detailed output metadata.json

Everything this collector reads, grouped by area. Each field lists the lowest level that collects it. Its schema isn't published yet, so only the checked fields are listed.

Detailed output text.json

Everything this collector reads, grouped by area. Each field lists the lowest level that collects it. Its schema isn't published yet, so only the checked fields are listed.

Detailed output text.json

Everything this collector reads, grouped by area. Each field lists the lowest level that collects it. Its schema isn't published yet, so only the checked fields are listed.

Detailed output vendor-inventory.xlsx

Everything this collector reads, grouped by area. Each field lists the lowest level that collects it. Its schema isn't published yet, so only the checked fields are listed.

Detailed output data-retention-policy.docx

Everything this collector reads, grouped by area. Each field lists the lowest level that collects it. Its schema isn't published yet, so only the checked fields are listed.

Detailed output data-retention-policy.pdf

Everything this collector reads, grouped by area. Each field lists the lowest level that collects it. Its schema isn't published yet, so only the checked fields are listed.

Detailed output metadata.json

Everything this collector reads, grouped by area. Each field lists the lowest level that collects it. Its schema isn't published yet, so only the checked fields are listed.

Detailed output text.json

Everything this collector reads, grouped by area. Each field lists the lowest level that collects it.

General 1 field · from trust
Document ID document_id Document identifier when included by the text extraction service.
Trust
Collected in
Trust, audit, and internal runs
Type
string

Document identifier when included by the text extraction service.

Chunks 5 fields · from trust
Chunk ID chunks[].chunk_id Stable chunk index within the extracted text artifact.
Trust
Collected in
Trust, audit, and internal runs
Type
integer

Stable chunk index within the extracted text artifact.

Page chunks[].page One-based page number when the source document has pages.
Trust
Collected in
Trust, audit, and internal runs
Type
integer

One-based page number when the source document has pages.

Row chunks[].row One-based row number when the source document is a spreadsheet.
Trust
Collected in
Trust, audit, and internal runs
Type
integer

One-based row number when the source document is a spreadsheet.

Sheet chunks[].sheet Sheet name when the source document is a spreadsheet.
Trust
Collected in
Trust, audit, and internal runs
Type
string

Sheet name when the source document is a spreadsheet.

Text chunks[].text Extracted text for this chunk.
Trust
Collected in
Trust, audit, and internal runs
Type
string

Extracted text for this chunk.

Run details documents.collector-result.json

The status of each run, and any value it couldn't read and why.

General 1 field · from trust
Checks dropped checks_dropped Number of findings left out after the first 100.
Trust
Collected in
Trust, audit, and internal runs
Type
integer

Number of findings left out after the first 100.

Assessed 3 fields · from trust
Path targets[].assessed.path The artifact's path in the pack.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The artifact's path in the pack.

Pointer targets[].assessed.pointer JSON pointer to the value.
Trust
Collected in
Trust, audit, and internal runs
Type
string

JSON pointer to the value.

Schema targets[].assessed.schema The artifact's schema.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The artifact's schema.

At 3 fields · from trust
Path targets[].at.path The artifact's path in the pack.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The artifact's path in the pack.

Pointer targets[].at.pointer JSON pointer to the value.
Trust
Collected in
Trust, audit, and internal runs
Type
string

JSON pointer to the value.

Schema targets[].at.schema The artifact's schema.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The artifact's schema.

Calls 30 fields · 7 trust, 23 audit
Attempts calls.operations[].attempts Number of requests sent, including retries. Present at the audit and internal levels only.
Audit
Collected in
Audit and internal runs
Type
integer

Number of requests sent, including retries. Present at the audit and internal levels only.

Calls calls.operations[].calls Number of times the collector made the call, not counting retries. Present at the audit and internal levels only.
Audit
Collected in
Audit and internal runs
Type
integer

Number of times the collector made the call, not counting retries. Present at the audit and internal levels only.

Deprecation calls.operations[].deprecation The Deprecation header from the vendor's most recent response that carried one.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The Deprecation header from the vendor's most recent response that carried one.

Error codes calls.operations[].error_codes The codes of the operation's failed attempts, without their counts.
Trust
Collected in
Trust, audit, and internal runs
Type
list

The codes of the operation's failed attempts, without their counts.

Errors calls.operations[].errors Number of failed attempts per code. Present at the audit and internal levels only.
Audit
Collected in
Audit and internal runs
Type
object

Number of failed attempts per code. Present at the audit and internal levels only.

Name calls.operations[].name The operation's name, such as okta.users.list.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The operation's name, such as okta.users.list.

Permission calls.operations[].permission The permission the call needs, in the vendor's terms. The collector declares it with Operation.Permission. A permission_denied gap from t...
Trust
Collected in
Trust, audit, and internal runs
Type
string

The permission the call needs, in the vendor's terms. The collector declares it with Operation.Permission. A permission_denied gap from the call records it as its missing_permission.

Retried calls.operations[].retried True when a request for the operation was a retry.
Trust
Collected in
Trust, audit, and internal runs
Type
boolean

True when a request for the operation was a retry.

Retries calls.operations[].retries Number of requests that were retries. Present at the audit and internal levels only.
Audit
Collected in
Audit and internal runs
Type
integer

Number of requests that were retries. Present at the audit and internal levels only.

Status codes calls.operations[].status_codes The HTTP status codes, or DNS response codes for a lookup, that the operation's responses had, without their counts.
Trust
Collected in
Trust, audit, and internal runs
Type
list of strings

The HTTP status codes, or DNS response codes for a lookup, that the operation's responses had, without their counts.

Statuses calls.operations[].statuses Number of responses per HTTP status code, or per DNS response code for a lookup. Present at the audit and internal levels only.
Audit
Collected in
Audit and internal runs
Type
object

Number of responses per HTTP status code, or per DNS response code for a lookup. Present at the audit and internal levels only.

Sunset calls.operations[].sunset The Sunset header from the vendor's most recent response that carried one.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The Sunset header from the vendor's most recent response that carried one.

Problem requests dropped calls.problem_requests_dropped Number of the rows left out whose attempt failed or was a retry. Present wherever the rows are; 0 means every failed or retried request h...
Audit
Collected in
Audit and internal runs
Type
integer

Number of the rows left out whose attempt failed or was a retry. Present wherever the rows are; 0 means every failed or retried request has a row.

Attempt calls.requests[].attempt Which attempt the request was: 1 for the first, higher for a retry.
Audit
Collected in
Audit and internal runs
Type
integer

Which attempt the request was: 1 for the first, higher for a retry.

Call calls.requests[].call The call's number in the run, counting from 1 in the order calls start. Every attempt of one call has the same number.
Audit
Collected in
Audit and internal runs
Type
integer

The call's number in the run, counting from 1 in the order calls start. Every attempt of one call has the same number.

Duration ms calls.requests[].duration_ms How long the request took, in milliseconds.
Audit
Collected in
Audit and internal runs
Type
integer

How long the request took, in milliseconds.

Error calls.requests[].error The code for a request that failed. Absent when it succeeded.
Audit
Collected in
Audit and internal runs
Type
value

The code for a request that failed. Absent when it succeeded.

Host calls.requests[].host The request's host, the name a DNS lookup queried, or the host dialed.
Audit
Collected in
Audit and internal runs
Type
string

The request's host, the name a DNS lookup queried, or the host dialed.

Method calls.requests[].method The HTTP method, DNS and the record type looked up, such as DNS TXT, or DIAL.
Audit
Collected in
Audit and internal runs
Type
string

The HTTP method, DNS and the record type looked up, such as DNS TXT, or DIAL.

Operation calls.requests[].operation The operation the request belongs to.
Audit
Collected in
Audit and internal runs
Type
string

The operation the request belongs to.

Query keys calls.requests[].query_keys Names of the request's query parameters. Their values are not recorded.
Audit
Collected in
Audit and internal runs
Type
list of strings

Names of the request's query parameters. Their values are not recorded.

Rcode calls.requests[].rcode DNS lookups only: the response code. A lookup that got no response has none.
Audit
Collected in
Audit and internal runs
Type
value

DNS lookups only: the response code. A lookup that got no response has none.

Request ID calls.requests[].request_id The vendor's request ID from the response headers, when it sent one.
Audit
Collected in
Audit and internal runs
Type
string

The vendor's request ID from the response headers, when it sent one.

Route calls.requests[].route HTTP requests only.
Audit
Collected in
Audit and internal runs
Type
string

HTTP requests only.

Start ms calls.requests[].start_ms When the attempt was sent, in milliseconds after the run's started_at.
Audit
Collected in
Audit and internal runs
Type
integer

When the attempt was sent, in milliseconds after the run's started_at.

Status calls.requests[].status The response's HTTP status code. Absent when no response arrived.
Audit
Collected in
Audit and internal runs
Type
integer

The response's HTTP status code. Absent when no response arrived.

Step calls.requests[].step The step the call was made in. Absent for a call made outside every step.
Audit
Collected in
Audit and internal runs
Type
string

The step the call was made in. Absent for a call made outside every step.

Vendor code calls.requests[].vendor_code The vendor's own error code from a failed response, such as E0000047. Never the vendor's message. Absent for collectors that do not read...
Audit
Collected in
Audit and internal runs
Type
string

The vendor's own error code from a failed response, such as E0000047. Never the vendor's message. Absent for collectors that do not read one.

Waited ms calls.requests[].waited_ms On a retry, how long the SDK waited before sending it: the Retry-After value, the rate limit reset, or its own backoff. Absent on a first...
Audit
Collected in
Audit and internal runs
Type
integer

On a retry, how long the SDK waited before sending it: the Retry-After value, the rate limit reset, or its own backoff. Absent on a first attempt and on a retry sent at once.

Requests dropped calls.requests_dropped Number of request rows left out.
Audit
Collected in
Audit and internal runs
Type
integer

Number of request rows left out.

Checks 4 fields · from trust
Check checks[].check schema, schema_unusable, population, nulls, rollups, ratios, guidance, levels, or targets.
Trust
Collected in
Trust, audit, and internal runs
Type
string

schema, schema_unusable, population, nulls, rollups, ratios, guidance, levels, or targets.

Message checks[].message What the check found.
Trust
Collected in
Trust, audit, and internal runs
Type
string

What the check found.

Path checks[].path The artifact the finding is about. A schema_unusable finding has none.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The artifact the finding is about. A schema_unusable finding has none.

Pointer checks[].pointer JSON pointer to the value the finding is about.
Trust
Collected in
Trust, audit, and internal runs
Type
string

JSON pointer to the value the finding is about.

Choice 6 fields · from trust
Consequence gaps[].choice.options[].consequence What happens if the customer picks the option, including its cost and what stays Not collected.
Trust
Collected in
Trust, audit, and internal runs
Type
string

What happens if the customer picks the option, including its cost and what stays Not collected.

Label gaps[].choice.options[].label
Trust
Collected in
Trust, audit, and internal runs
Type
string
Question gaps[].choice.question
Trust
Collected in
Trust, audit, and internal runs
Type
string
Consequence warnings[].choice.options[].consequence What happens if the customer picks the option, including its cost and what stays Not collected.
Trust
Collected in
Trust, audit, and internal runs
Type
string

What happens if the customer picks the option, including its cost and what stays Not collected.

Label warnings[].choice.options[].label
Trust
Collected in
Trust, audit, and internal runs
Type
string
Question warnings[].choice.question
Trust
Collected in
Trust, audit, and internal runs
Type
string
Collect 3 fields · from trust
Left out collect.left_out Each kind the collector could write that the key left out. Each has a not_shared gap.
Trust
Collected in
Trust, audit, and internal runs
Type
list of strings

Each kind the collector could write that the key left out. Each has a not_shared gap.

Listed collect.listed The kinds of evidence the collect config key listed, such as cloud-posture.
Trust
Collected in
Trust, audit, and internal runs
Type
list of strings

The kinds of evidence the collect config key listed, such as cloud-posture.

Unmatched collect.unmatched Each kind the key listed that the run never wrote, such as a misspelled one.
Trust
Collected in
Trust, audit, and internal runs
Type
list of strings

Each kind the key listed that the run never wrote, such as a misspelled one.

Collector 3 fields · from trust
Commit collector.commit The source commit the collector was built from. Absent when the build set none.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The source commit the collector was built from. Absent when the build set none.

Name collector.name The collector's name, as its spec declares it.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The collector's name, as its spec declares it.

Version collector.version The collector's version, such as v0.3.0. Absent when the build set none.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The collector's version, such as v0.3.0. Absent when the build set none.

Coverage 3 fields · from trust
Path targets[].coverage.path The artifact's path in the pack.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The artifact's path in the pack.

Pointer targets[].coverage.pointer JSON pointer to the value.
Trust
Collected in
Trust, audit, and internal runs
Type
string

JSON pointer to the value.

Schema targets[].coverage.schema The artifact's schema.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The artifact's schema.

Exclude 3 fields · from trust
Path targets[].exclude.path The artifact's path in the pack.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The artifact's path in the pack.

Pointer targets[].exclude.pointer JSON pointer to the value.
Trust
Collected in
Trust, audit, and internal runs
Type
string

JSON pointer to the value.

Schema targets[].exclude.schema The artifact's schema.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The artifact's schema.

For 3 fields · from trust
Path targets[].for[].path The artifact's path in the pack.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The artifact's path in the pack.

Pointer targets[].for[].pointer JSON pointer to the value.
Trust
Collected in
Trust, audit, and internal runs
Type
string

JSON pointer to the value.

Schema targets[].for[].schema The artifact's schema.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The artifact's schema.

Found 3 fields · from trust
Path targets[].found.path The artifact's path in the pack.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The artifact's path in the pack.

Pointer targets[].found.pointer JSON pointer to the value.
Trust
Collected in
Trust, audit, and internal runs
Type
string

JSON pointer to the value.

Schema targets[].found.schema The artifact's schema.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The artifact's schema.

Gaps 17 fields · 12 trust, 5 audit
Call gaps[].call The number of that call, matching the call on its request rows. A partial gap names the first failed call among those it counts. Present...
Audit
Collected in
Audit and internal runs
Type
integer

The number of that call, matching the call on its request rows. A partial gap names the first failed call among those it counts. Present at the audit and internal levels only.

Code gaps[].code Why the value was left out: auth_failed, permission_denied, config_invalid, not_licensed, unsupported, not_read, rate_limited, vendor_err...
Trust
Collected in
Trust, audit, and internal runs
Type
value

Why the value was left out: auth_failed, permission_denied, config_invalid, not_licensed, unsupported, not_read, rate_limited, vendor_error, timeout, invalid_response, too_large, internal, or not_shared. unsupported means the vendor does not report the value. too_large means the vendor holds more than the collector reads. not_shared means the customer left it out of this pack with the collect config key.

Detail gaps[].detail Present at the audit and internal levels only.
Audit
Collected in
Audit and internal runs
Type
string

Present at the audit and internal levels only.

Fix gaps[].fix The one instruction that fixes collection. It uses fixed wording plus permission, plan, and region names. A gap has at most one of fix, n...
Trust
Collected in
Trust, audit, and internal runs
Type
string

The one instruction that fixes collection. It uses fixed wording plus permission, plan, and region names. A gap has at most one of fix, no_action, and choice.

Missing permission gaps[].missing_permission For a permission_denied gap, the permission to grant, in the vendor's own terms, such as okta.logs.read.
Trust
Collected in
Trust, audit, and internal runs
Type
string

For a permission_denied gap, the permission to grant, in the vendor's own terms, such as okta.logs.read.

No action gaps[].no_action True when nothing needs changing now. It does not clear the gap.
Trust
Collected in
Trust, audit, and internal runs
Type
boolean

True when nothing needs changing now. It does not clear the gap.

Operation gaps[].operation The operation whose failed call left the value out. Absent when no call's error caused the gap, such as for a feature the plan lacks.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The operation whose failed call left the value out. Absent when no call's error caused the gap, such as for a feature the plan lacks.

Owner gaps[].owner Who can act on the code: customer, nobody for an expected gap such as a feature the plan lacks, vendor, vendor_or_runner, or publisher.
Trust
Collected in
Trust, audit, and internal runs
Type
value

Who can act on the code: customer, nobody for an expected gap such as a feature the plan lacks, vendor, vendor_or_runner, or publisher.

Path gaps[].path The artifact the value belongs in. Absent when the run wrote no such artifact, in which case schema names it.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The artifact the value belongs in. Absent when the run wrote no such artifact, in which case schema names it.

Pointer gaps[].pointer JSON pointer to the value within the artifact. Items are addressed by array index.
Trust
Collected in
Trust, audit, and internal runs
Type
string

JSON pointer to the value within the artifact. Items are addressed by array index.

Schema gaps[].schema The schema of the artifact the value belongs in, when the run wrote no such artifact.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The schema of the artifact the value belongs in, when the run wrote no such artifact.

Scope gaps[].scope The account, tenant, or region affected. Present at the audit and internal levels only.
Audit
Collected in
Audit and internal runs
Type
string

The account, tenant, or region affected. Present at the audit and internal levels only.

Source gaps[].source The file and line in the collector's own source that recorded the gap, relative to its module root, such as internal/collector/system_log...
Trust
Collected in
Trust, audit, and internal runs
Type
string

The file and line in the collector's own source that recorded the gap, relative to its module root, such as internal/collector/system_log.go:155.

Status gaps[].status not_collected when the collector could not read the value. partial when a rollup was left out because some of the items it covers could n...
Trust
Collected in
Trust, audit, and internal runs
Type
value

not_collected when the collector could not read the value. partial when a rollup was left out because some of the items it covers could not be read, or when a list or object holds only the items that could be.

Unmeasured gaps[].unmeasured For a partial gap, the number of items that could not be read. Present at the audit and internal levels only.
Audit
Collected in
Audit and internal runs
Type
integer

For a partial gap, the number of items that could not be read. Present at the audit and internal levels only.

Vendor code gaps[].vendor_code The vendor's own error code, when its response included one.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The vendor's own error code, when its response included one.

Warning gaps[].warning The collector's message to the operator about the gap, redacted. Present at the audit and internal levels only.
Audit
Collected in
Audit and internal runs
Type
string

The collector's message to the operator about the gap, redacted. Present at the audit and internal levels only.

Include 3 fields · from trust
Path targets[].include.path The artifact's path in the pack.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The artifact's path in the pack.

Pointer targets[].include.pointer JSON pointer to the value.
Trust
Collected in
Trust, audit, and internal runs
Type
string

JSON pointer to the value.

Schema targets[].include.schema The artifact's schema.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The artifact's schema.

Operations 2 fields · 1 trust, 1 audit
Calls steps[].operations[].calls Its calls in the step. Present at the audit and internal levels only.
Audit
Collected in
Audit and internal runs
Type
integer

Its calls in the step. Present at the audit and internal levels only.

Name steps[].operations[].name The operation.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The operation.

Outcome 3 fields · from trust
Code outcome.code For a partial run, the code of the first gap other than a not_shared, unsupported, or not_read one, saying why its value was left out.
Trust
Collected in
Trust, audit, and internal runs
Type
value

For a partial run, the code of the first gap other than a not_shared, unsupported, or not_read one, saying why its value was left out.

Owner outcome.owner For a partial run, who can act on that code.
Trust
Collected in
Trust, audit, and internal runs
Type
value

For a partial run, who can act on that code.

Status outcome.status collected when the run read every value its level collects, or partial when it left values out. gaps lists each one. A not_shared or unsu...
Trust
Collected in
Trust, audit, and internal runs
Type
value

collected when the run read every value its level collects, or partial when it left values out. gaps lists each one. A not_shared or unsupported gap does not make a run partial.

Run 6 fields · from trust
Custom ca run.custom_ca True when SSL_CERT_FILE or SSL_CERT_DIR was set for the run.
Trust
Collected in
Trust, audit, and internal runs
Type
boolean

True when SSL_CERT_FILE or SSL_CERT_DIR was set for the run.

Finished at run.finished_at When the run finished, in RFC 3339 UTC.
Trust
Collected in
Trust, audit, and internal runs
Type
string

When the run finished, in RFC 3339 UTC.

Level run.level The level the run collected at, at every level. A reader uses it to tell a value the level left out from one the collector could not read...
Trust
Collected in
Trust, audit, and internal runs
Type
string

The level the run collected at, at every level. A reader uses it to tell a value the level left out from one the collector could not read. Absent from results of older SDKs.

Proxy run.proxy True when a proxy variable such as HTTPS_PROXY was set for the run.
Trust
Collected in
Trust, audit, and internal runs
Type
boolean

True when a proxy variable such as HTTPS_PROXY was set for the run.

Run ID run.run_id The run ID the runner passed in EPACK_RUN_ID. Absent when it passed none.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The run ID the runner passed in EPACK_RUN_ID. Absent when it passed none.

Started at run.started_at When the run started, in RFC 3339 UTC.
Trust
Collected in
Trust, audit, and internal runs
Type
string

When the run started, in RFC 3339 UTC.

Signed in as 8 fields · 6 trust, 2 audit
Auth method signed_in_as.auth_method How the collector proved its identity, such as private_key_jwt for OAuth 2.0 client credentials with a signed key assertion or api_token...
Trust
Collected in
Trust, audit, and internal runs
Type
string

How the collector proved its identity, such as private_key_jwt for OAuth 2.0 client credentials with a signed key assertion or api_token for an API token.

ID signed_in_as.id Present at the audit and internal levels only.
Audit
Collected in
Audit and internal runs
Type
string

Present at the audit and internal levels only.

Kind signed_in_as.kind The kind of principal, such as service_app, service_principal, or user.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The kind of principal, such as service_app, service_principal, or user.

Provider signed_in_as.provider The identity system, such as okta or microsoft-entra.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The identity system, such as okta or microsoft-entra.

Read only signed_in_as.read_only Present when the collector can show that its credential could only read.
Trust
Collected in
Trust, audit, and internal runs
Type
value

Present when the collector can show that its credential could only read.

Requested scopes signed_in_as.requested_scopes The scopes the collector asked for. A scope here and missing from scopes was not granted.
Trust
Collected in
Trust, audit, and internal runs
Type
list of strings

The scopes the collector asked for. A scope here and missing from scopes was not granted.

Scopes signed_in_as.scopes The permissions the sign-in carried.
Trust
Collected in
Trust, audit, and internal runs
Type
list of strings

The permissions the sign-in carried.

Tenant ID signed_in_as.tenant_id The tenant, account, or organization signed in to. Present at the audit and internal levels only.
Audit
Collected in
Audit and internal runs
Type
string

The tenant, account, or organization signed in to. Present at the audit and internal levels only.

Steps 9 fields · 3 trust, 6 audit
Any failed steps[].any_failed True when an attempt in the step failed: one with an error code or a status of 400 or more.
Trust
Collected in
Trust, audit, and internal runs
Type
boolean

True when an attempt in the step failed: one with an error code or a status of 400 or more.

Calls steps[].calls The calls those requests belong to. Present at the audit and internal levels only.
Audit
Collected in
Audit and internal runs
Type
integer

The calls those requests belong to. Present at the audit and internal levels only.

End ms steps[].end_ms When the step ended, in milliseconds after the run's started_at. A step still open when the collector emitted ended then. Present at the...
Audit
Collected in
Audit and internal runs
Type
integer

When the step ended, in milliseconds after the run's started_at. A step still open when the collector emitted ended then. Present at the audit and internal levels only.

Failed steps[].failed The attempts that failed: those with an error code or a status of 400 or more. Present at the audit and internal levels only.
Audit
Collected in
Audit and internal runs
Type
integer

The attempts that failed: those with an error code or a status of 400 or more. Present at the audit and internal levels only.

Name steps[].name The step's name, such as people. Step names are part of the collector's contract, like operation names.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The step's name, such as people. Step names are part of the collector's contract, like operation names.

Requests steps[].requests The requests sent in the step, including rows left out of calls.requests. Present at the audit and internal levels only.
Audit
Collected in
Audit and internal runs
Type
integer

The requests sent in the step, including rows left out of calls.requests. Present at the audit and internal levels only.

Retries steps[].retries The requests that were retries. Present at the audit and internal levels only.
Audit
Collected in
Audit and internal runs
Type
integer

The requests that were retries. Present at the audit and internal levels only.

Start ms steps[].start_ms When the step started, in milliseconds after the run's started_at. Present at the audit and internal levels only.
Audit
Collected in
Audit and internal runs
Type
integer

When the step started, in milliseconds after the run's started_at. Present at the audit and internal levels only.

Title steps[].title The step's title, such as People and sign-in methods.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The step's title, such as People and sign-in methods.

Targets 8 fields · 7 trust, 1 audit
Chosen by targets[].chosen_by config_list when a person listed the targets in the config, discovery when the collector found every one its credential can see, discover...
Trust
Collected in
Trust, audit, and internal runs
Type
value

config_list when a person listed the targets in the config, discovery when the collector found every one its credential can see, discovery_filtered when the config narrowed what it found, granted when the credential was given only some, so others may exist, granted_filtered when the config also narrowed those, and collector when the collector picked them itself, such as a default region.

Complete targets[].complete True when every target was reached and has no gap that makes the run partial, at every level. Absent when at is.
Trust
Collected in
Trust, audit, and internal runs
Type
boolean

True when every target was reached and has no gap that makes the run partial, at every level. Absent when at is.

Config key targets[].config_key The config key that listed or narrowed the targets.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The config key that listed or narrowed the targets.

Count targets[].count How many targets the artifact holds. Present at the audit and internal levels only.
Audit
Collected in
Audit and internal runs
Type
integer

How many targets the artifact holds. Present at the audit and internal levels only.

Kind targets[].kind What the targets are. A container the run signed in to or was configured for, or a resource it assessed in it.
Trust
Collected in
Trust, audit, and internal runs
Type
value

What the targets are. A container the run signed in to or was configured for, or a resource it assessed in it.

Label targets[].label A pointer inside each target to the name people know it by, to show beside its name, or alone when the run's level leaves the name out.
Trust
Collected in
Trust, audit, and internal runs
Type
string

A pointer inside each target to the name people know it by, to show beside its name, or alone when the run's level leaves the name out.

Name targets[].name Pointers inside each target whose values, joined with a colon, name it. Absent when a target is itself its name.
Trust
Collected in
Trust, audit, and internal runs
Type
list of strings

Pointers inside each target whose values, joined with a colon, name it. Absent when a target is itself its name.

Reached targets[].reached A pointer inside each target to a boolean that is false when the target did not answer.
Trust
Collected in
Trust, audit, and internal runs
Type
string

A pointer inside each target to a boolean that is false when the target did not answer.

Unrecognized 3 fields · 2 trust, 1 audit
Count unrecognized[].count How many distinct values the run read that the vocabulary lacks.
Trust
Collected in
Trust, audit, and internal runs
Type
integer

How many distinct values the run read that the vocabulary lacks.

Values unrecognized[].values The first 50 of those values, sorted. Present at the audit and internal levels only.
Audit
Collected in
Audit and internal runs
Type
list of strings

The first 50 of those values, sorted. Present at the audit and internal levels only.

Vocabulary unrecognized[].vocabulary The vocabulary's name, such as okta.event_types.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The vocabulary's name, such as okta.event_types.

Warnings 5 fields · 3 trust, 2 audit
Fix warnings[].fix The one instruction that fixes collection. A warning has at most one of fix, no_action, and choice.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The one instruction that fixes collection. A warning has at most one of fix, no_action, and choice.

Message warnings[].message The collector's message about what happened. Present at the audit and internal levels only.
Audit
Collected in
Audit and internal runs
Type
string

The collector's message about what happened. Present at the audit and internal levels only.

Missing permission warnings[].missing_permission The permission to grant, in the vendor's own terms.
Trust
Collected in
Trust, audit, and internal runs
Type
string

The permission to grant, in the vendor's own terms.

No action warnings[].no_action True when nothing needs changing now.
Trust
Collected in
Trust, audit, and internal runs
Type
boolean

True when nothing needs changing now.

Scope warnings[].scope The account, tenant, or region affected. Present at the audit and internal levels only.
Audit
Collected in
Audit and internal runs
Type
string

The account, tenant, or region affected. Present at the audit and internal levels only.

Details

Publisher
locktivity
Latest
v0.2.1
Protocol
v1

Platforms

darwin/amd64 darwin/arm64 linux/amd64 linux/arm64

Links