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
- Windows: the
.envfile is in the install folder, for exampleC:\Program Files\cinqstack\.env. Restart both services,cinqstack-webandcinqstack-worker. Lines you add to.envare kept when you upgrade or run the installer again: it changes only its own settings (data folder, address, port, database) and saves the previous file as.env.bak-<date>-<time>. - Docker: the
.envfile next todocker-compose.yml. Then rundocker compose up -d.
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
- A banner on every page: Read-only mode. Nothing is written to NetBox. On a wider screen it goes on: cinqstack still reads, analyses and shows what it would write; applies and automatic writes are off. When it is set on the server, the banner adds "Set on this server."; its tooltip names
CINQSTACK_READ_ONLY. On a phone the banner shows the first sentence only. - A planned run shows its Apply button disabled, with the reason beside it: "Read-only mode: nothing is written to NetBox." Review the plan below it: it is what applying would write. A report-only job's runs have no Apply button, as usual. Opening an apply link directly returns to the run with "Read-only mode: nothing is written to NetBox. The plan shows what would be written."
- Jobs set to write automatically stop after planning, with the reason "Read-only mode: nothing is written to NetBox. This run's plan is kept to look at."
- In Settings › NetBox, the buttons that create or remove the sample site are disabled, with "Read-only mode: the sample site waits until it is off."
- Anything else that would write, such as the schema pack, stops with a message that starts "Read-only mode:" and says what was not sent.
What still runs
- Every connector reads its source on its schedule, and every run shows its plan: what it would create, change and remove.
- Findings, topology, segmentation scores, monitoring, config checks and advisories work as usual. They only read NetBox.
- Backups still run; they stay on the cinqstack server.
- Journal entries for acknowledged changes wait. They are written once read-only mode is off.
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:
| Source | What is sent in read-only mode |
|---|---|
| Check Point | Login, logout and show- commands, in a read-only session |
| FortiManager | Reads, 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. |
| FortiGate | Reads only (GET) |
| SolarWinds | SWQL queries only |
| Cisco and SCALANCE switches | show commands only |
| vCenter | Inventory reads only |
| Hyper-V | One fixed script of Get- commands and CIM reads |
| Proxmox VE | Reads only (GET) |
Relay edges collect with the same connections and the same rules.
Limits
- cinqstack still writes to its own database on its server: run history, settings, findings and the like.
- Notifications still go out by email and webhook.
- On FortiManager, hit counts are not requested, so rules show their hits as not reported and none is called unused.