Azure Blob Storage

Scan one container with read-only access.

Who can see it Not yet
Works with Azure Blob Storage
Set up in console

Scan the blobs in one Azure container with read-only access.

What it scans

Blobs in one container, optionally limited to a literal name prefix.

Not covered: Azure Files (SMB), databases, and subscription discovery.

What you need

  • An agent.
  • The container's HTTPS account endpoint and container name.
  • One way to authenticate:
Option Access it grants Recommendation
Read-only SAS token Read + List on this container Recommended
Workload identity Storage Blob Data Reader at the scope you assign Recommended
Account key The whole storage account; cannot be made read-only Works, but avoid when possible

Hosted agents can reach only approved public Azure Blob endpoints. Use a customer-run agent for private networking.

Step 1: Grant access

  1. Open Storage accounts → your account → Containers → your container → Shared access tokens.
  2. Set the permissions to Read and List only (sp=rl), the resource to container (sr=c), and HTTPS only. No Add, Create, Write, Delete, Tags or ownership permissions.
  3. Set an expiry just long enough for the planned scans. One day is a useful start for a pilot.
  4. Omit the start time where allowed, or backdate it slightly to allow for clock differences.
  5. Copy the SAS token, not the full URL.

Tip: Prefer a User delegation key if your admin can issue one. Its SAS cannot be valid for more than seven days, so rotate it before expiry for recurring scans.

  • A blob-only SAS cannot list a container; use a container SAS.
  • A container SAS grants access across the whole container: the console prefix does not limit it. Use a dedicated container for a smaller boundary.

See SAS access options and SAS permissions.

Step 2: Add the connection

  1. In Connections → Add connection, choose Azure Blob container.
  2. Paste the account's Blob service endpoint, without a SAS query.
  3. Enter the container and an optional prefix, and select your agent.
  4. Choose the credential mode:
  5. SAS or account key: Local credential catalog, then save the secret file.
  6. Host identity: S3/Azure workload identity, with the credential name left empty.

Step 3: Verify a scan

  1. Wait for present.
  2. Open Scans, select this connection and queue a small scan.
  3. Review Coverage and Findings.

A present credential does not test container authorization; the scan does.

Connection settings table

Console field Example Required or optional
Connection name Finance blobs Required; unique in workspace
Type Azure Blob container (azure) Required
Account URL https://examplestore.blob.core.windows.net Required; HTTPS, no SAS/query/fragment
Container reports Required
Prefix finance/ Optional; blank scans whole container
Agent Storage agent Required; same workspace
Credential mode Local credential catalog or S3/Azure workload identity Required
Credential name AZURE_REPORTS Required for catalog; empty for workload identity
Exclude patterns (View/edit) *.tmp Optional; one glob per line
Enabled (connection row) Enabled Disable to stop new scans

The account name, key and SAS go in the secret file, never in console fields.

Secret file

Workload identity needs no secret file or catalog entry. Otherwise save /srv/myrikeep/secrets/AZURE_REPORTS with one of these shapes, never both. The agent picks SAS or account-key authentication from the shape.

json
{"sas_token": "<CONTAINER_SAS_TOKEN_WITH_READ_AND_LIST>"}

Merge this catalog entry:

json
{"version": 1, "credentials": {"AZURE_REPORTS": {"type": "azure", "source": {"kind": "file_json", "path": "/run/secrets/AZURE_REPORTS"}}}}

Follow Agent credentials for ownership, modes and the read-only mount.

Scope, exclusions and schedules

Setting What it matches Example
Prefix A literal, case-sensitive blob name prefix finance/
Exclude patterns Full blob names and basenames, before content is read *.tmp, finance/cache/*, */scratch/*
  • See Getting started for schedule cadence.
  • Keep the SAS expiry beyond the end of your scheduled scans.

Skip common build and cache folders. New connections skip folders that only hold downloaded or generated files, such as node_modules, Python site-packages and .venv, the Git object store and package caches. The full list is under the checkbox on the connection form. Your own excludes still apply. Credential folders such as .ssh and .aws are never skipped. Connections made before this option existed keep it off until you tick it.

"Who can see it" support

Sharing checks are not available for this source yet.

  • Not inspected in phase 1: anonymous container access, SAS distribution and Azure role assignments.
  • Age review uses last-modified dates.

See Who can see it.

Troubleshooting

Symptom or state Fix
unknown Check current-revision heartbeat, assignment and agent online status.
missing / credential_missing Check alias/type and mount, or make workload identity available inside the agent.
Invalid / credential_config_invalid Use exactly one JSON shape; check file owner/mode and nonempty strings.
present The credential resolved; a scan must still verify container access.
source_error / cannot open Azure Blob client for container In local agent diagnostics, check account URL, container existence, TLS and container-property read permission.
AuthorizationPermissionMismatch / access denied The SAS needs rl on this container, or the identity needs Storage Blob Data Reader at this scope. Allow RBAC propagation time.
AuthenticationFailed Renew an expired or not-yet-valid SAS, or a rotated account key; check the UTC clock.
Hosted source or endpoint prohibited Use a customer-run agent for custom or private endpoints.
Paused / Migration paused / Disabled Resume the agent, assign and save the migrated connection, or enable it.
signin_required Only personal drives use interactive sign-in; Azure uses the catalog or host identity.

Limits

Limit Value
Listed blobs Fails above 1,000,000 and asks for a narrower prefix; configured agent limits may be lower
Sampling and parsing Bounded; see Coverage for skips
Parsers Common text, PDF text and modern Office; other formats get strings-only checks
Text in images and scanned PDFs Needs OCR: an optional premium feature an owner enables; it runs inside your agent with the OCR agent image

What it never does:

  • Write to the container.
  • Discover containers.
  • Read snapshots or version history.
  • Rehydrate archived blobs.

Directory markers are skipped.