IDE extensions
قيد التطوير
لم تُترجم هذه الصفحة إلى العربية بعد، لذلك تظهر بالإنجليزية.
The VS Code extension (apps/vscode) and the JetBrains plugin (apps/jetbrains, IntelliJ 2024.1 and later) do three things:
- Browse references: a tree of vault, item and field. Names only: no value is ever fetched for it.
- Insert a reference: puts
octapass://<vault>/<item>/<field>at the cursor. - Run with secrets: runs your command as
octapass run -- <command>in the IDE’s terminal, so the CLI resolves references. The value never enters the extension.
Connect first
Section titled “Connect first”Browsing goes through Octa Pass Connect, so start it (octapass connect serve, or the desktop app) and run Octa Pass: Connect. Approve the prompt; the prompt may name a helper program rather than the IDE itself.
The token is kept in the IDE’s own secret store: VS Code’s SecretStorage or the JetBrains PasswordSafe. Octa Pass: Disconnect gives it up. An IDE update can move the program that was approved, and then you approve it again.
Run with secrets doesn’t use Connect. It needs the CLI’s own session: run octapass unlock first.
Good to know
Section titled “Good to know”- In
a && b, onlyagets the secrets, because the shell splits the line beforeoctapass runsees it. Use a script, orsh -c. - The path to the CLI is a machine-level setting (
octapass.cliPathin VS Code), so a repository’s settings can’t swap the program. Run with secrets is off in untrusted workspaces. - In a VS Code remote window, the terminal is on the remote machine, so it needs
octapassthere. - Items with the same name in a vault are referenced by id.