Read-only mode

Edition: COMMUNITYCommunity PROPro ENTERPRISEEnterprise

What it does

In read-only mode cinqstack reads, analyses and plans, and writes nothing to NetBox. Use it for a first look at a production estate: every connector still collects, every job still shows what it would write, and nothing in NetBox changes.

cinqstack refuses the write itself, before anything is sent to NetBox. That covers every way cinqstack writes: applying a plan, automatic writes, the NetBox schema, the sample site, device images, journal entries and the cinqstack Field app. It does not depend on the NetBox token, so it holds even with a token that may write.

Turning it on

There are two ways. The server setting wins.

On the server. Add this line to the .env file, then restart cinqstack:

CINQSTACK_READ_ONLY=1

Set this way, read-only mode cannot be switched off in the web interface. Remove the line, or set it to 0, and restart to turn it off.

In the web interface. An administrator can turn it on under Settings › NetBox › Read-only mode. It takes effect at once, with no restart, and can be switched off there again.

To check from outside, open /healthz: it reports "read_only": true.

What you see

What still runs

Set up the schema first

The NetBox schema (Settings › NetBox schema) and the sample site write to NetBox, so they cannot run in read-only mode. If cinqstack's custom fields and tags are not in NetBox yet, create them first: run the schema pack with a token that may write, then turn read-only mode on. Without the fields, the pages that use them show less (for example, no Purdue levels in the topology).

The NetBox token

When you save the NetBox connection, cinqstack checks whether the token may write. A read-only token gives "NetBox token is read-only: cinqstack can read and plan, and writes nothing to NetBox."

The check reads the token's own record in NetBox when it can find it. If it can't find that record, it asks NetBox to change an object that does not exist, with a body NetBox would reject anyway. NetBox refuses a read-only token before it looks, so nothing can change.

A read-only token and read-only mode together are the safest setup for a trial against production.

Source systems

cinqstack only ever reads its sources. In read-only mode it also refuses to send anything but reads:

SourceWhat is sent in read-only mode
Check PointLogin, logout and show- commands, in a read-only session
FortiManagerReads, sign-in and sign-out. Opening a rule's logs makes a temporary log search on FortiManager, reads it and deletes it. The hit-count task is not started, even on a job with Ask FortiManager for hit counts on.
FortiGateReads only (GET)
SolarWindsSWQL queries only
Cisco and SCALANCE switchesshow commands only
vCenterInventory reads only
Hyper-VOne fixed script of Get- commands and CIM reads
Proxmox VEReads only (GET)

Relay edges collect with the same connections and the same rules.

Limits