Read-only mode
A read_api token gives you the whole dashboard without giving labdash permission to change anything in GitLab.
Turning it on
Request the narrower scope at login:
Or use a personal access token created with read_api instead of api. labdash records the scopes it was granted at login and behaves accordingly.
What changes
Three things happen, and nothing else:
- A
read-onlybadge appears in the context bar, so the mode is always visible. - Mutating keys leave the ? overlay, and grey out in the footer. Pressing one answers with the reason rather than sending a request that is certain to fail.
- Everything else behaves exactly as it does with a full token.
The keys stay visible because the keymap is fixed and nothing is rebindable. A key that vanished would be a key nobody could ask about.
The left column is most of the product. A read-only labdash still reports what is waiting, what is blocked and why, and which assertion failed.
A 403 from a mutation
Scopes are recorded at login, so labdash usually knows before it tries. If a mutation does come back 403, because the token was narrowed after login or the instance disagrees, the message names the cause:
The message is never a raw API error and never a silent no-op. The URL is that instance's own, subfolder and all, not gitlab.com's.
A 403 that is about your permissions rather than your token — merging into a protected branch, say — is left alone. A new token would not help, so labdash does not suggest one.
Reasons to use it
- Least privilege. A dashboard that only reads cannot merge anything through a mis-keyed m.
- Shared credentials. A group access token scoped to
read_apigives a whole team a dashboard without giving a whole team write access. - Policy. Some organisations do not grant
apito a desktop tool.