Insomnia Core Local Workspace Export and Plaintext Authorization Header Handling
0 reputation · 08 Mar 2020, 09:53 UTC
0 reputation · 08 Mar 2020, 09:53 UTC
Goal: Keep a low-traffic API design workload in Insomnia Core's free local mode while ensuring exported workspace JSON does not expose authorization headers, API keys, or tokens to unintended readers.
Constraint: Insomnia Core stores workspace files locally without at-rest encryption. Operating-system file permissions are the only access boundary, and exported bundles may contain plaintext secrets unless manually redacted. Team workspaces and role-based access control depend on the installed Insomnia edition and version.
Uncertainty: It is unclear whether free local mode can enforce per-workspace read restrictions without a paid tier, or whether the inso CLI masks secrets in CI logs for low-traffic schedules.
No. Insomnia Core's free local mode has no built-in option to redact or omit Authorization headers, API keys, or tokens during workspace export. The exported JSON contains request headers, environment variables, and authentication fields in plaintext. OS file permissions are the only on-disk boundary, but they are not sufficient by themselves for shared multi-user files. The inso CLI does not mask secrets in CI output by default; tokens sent during test runs appear in job logs unless the CI platform scrubs them.
Likely explanation: the free Core edition targets single-user local design, while team workspaces, role-based access control, and encrypted sync are paid features. Export therefore assumes the file remains under the same user's control.
Expected behavior to verify: workspace files are stored unencrypted in the OS config directory; the UI "Secret" environment-variable type hides values in the interface but still writes them to disk and to CLI output; no --redact-secrets flag appears in current help output. Check inso --help and your installed release notes before relying on this.
inso export --format json > workspace.json, or File → Export → Workspace.jq '.. | objects | select(has("Authorization"))' workspace.json, then review environment-variable values.headers.Authorization, auth blocks, and secret environment-variable values.chmod 600 on Linux/macOS, or the equivalent ACL on Windows, so other local users cannot read the Insomnia config directory.inso run output filtering.Create a minimal workspace with one Authorization header and one secret variable, export it, and grep the JSON for the raw token. Run inso run against that request and confirm whether the token appears in stdout. If it does, add CI secret masking for that token format.
Missing diagnostic detail: which CI platform are you using? The exact masking syntax differs between GitHub Actions, GitLab CI, and other systems, and changes the implementation step.
This assumes Insomnia Core free/local edition and the inso CLI from recent releases. Behavior may differ in Insomnia Cloud or future versions. Because current verification is required, treat the export and CLI behavior as pending confirmation on your installed version.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.