Skip to main content

VS Code Extension

Browse, peek, and manage secrets from your Arcan server directly in VS Code.

Installation

Install from the VS Code Marketplace:

  1. Open VS Code
  2. Go to Extensions (Ctrl+Shift+X / Cmd+Shift+X)
  3. Search for "Arcan Secrets"
  4. Click Install

Or install from a .vsix file:

code --install-extension arcan-secrets-0.1.0.vsix

Configuration

Run Arcan: Configure Connection from the command palette (Ctrl+Shift+P / Cmd+Shift+P) to set up your connection.

SettingDefaultDescription
arcan.serverUrlhttps://localhost:9797Arcan server URL
arcan.token(empty)API token (prefer SecretStorage via Configure command)
arcan.defaultRealmdefaultDefault realm slug
arcan.defaultEnvdevDefault environment
arcan.rejectUnauthorizedtrueReject invalid TLS certificates (set to false for self-signed)

The API token can also be set via the ARCAN_TOKEN environment variable.

Features

Browse secrets organized by realm and environment in the Arcan sidebar panel. Secret values are never shown in the tree view -- only key names are displayed.

Hover to Preview

Hover over environment variable references in your code to see the corresponding Arcan value.

Supported languages:

LanguagePattern
JavaScript/TypeScriptprocess.env.KEY
Pythonos.environ["KEY"], os.getenv("KEY")
Goos.Getenv("KEY")
Shell$KEY, ${KEY}
.env filesKEY=value

Peek Secret Values

View secret values in a notification without opening files. Values are shown masked (first 2 and last 2 characters only).

Copy to Clipboard

Copy secret values with automatic 30-second clipboard clearing for security.

Insert References

Insert language-appropriate environment variable references from a quick-pick menu.

Set/Update Secrets

Create or update secrets directly from the command palette.

Commands

CommandDescription
Arcan: Refresh SecretsRefresh the secrets tree and clear hover cache
Arcan: Copy Secret ValueCopy a secret value to clipboard (auto-clears after 30s)
Arcan: Peek Secret ValueShow a secret value in a notification
Arcan: Set SecretCreate or update a secret
Arcan: Delete SecretDelete a secret (with confirmation)
Arcan: Insert Secret ReferenceInsert a language-appropriate env var reference
Arcan: Configure ConnectionSet API token or open settings

Security

  • Secret values are never shown in the tree view -- only key names
  • Peek shows masked values only (first 2 and last 2 characters)
  • Clipboard is automatically cleared 30 seconds after copying
  • API tokens are stored in VS Code SecretStorage (encrypted by the OS keychain)
  • Use valid TLS certificates in production (not self-signed)
  • Use read-only tokens (arcan token create --scopes read) for applications that only need to read secrets