@@ -14,7 +14,9 @@ basics, see [Secrets](./secrets.md). |
14 | 14 | 3. Install the [1Password CLI](https://developer.1password.com/docs/cli/get-started/) (`op`) on the machine |
15 | 15 | that runs the T3 Code server. |
16 | 16 | 4. Put `OP_CONNECT_HOST` and `OP_CONNECT_TOKEN` in the server's environment. `OP_CONNECT_HOST` is the Connect |
17 | | - API's address, including the port if it is not the default for its scheme. For a |
| 17 | + API's address, including the port if it is not the default for its scheme. Use an `https://` address |
| 18 | + unless Connect runs on the same machine or a private network you trust, because the token and secrets |
| 19 | + travel over that connection. For a |
18 | 20 | [background service](./background-service.md), add both to `service.env` and restart the service. See |
19 | 21 | [Configure the service environment](./background-service.md#configure-the-service-environment). |
20 | 22 | 5. In **Settings → Secrets**, select **Add provider**. The account is required, but `op` ignores it while |
@@ -37,12 +39,16 @@ env -i PATH="$PATH" HOME="$(mktemp -d)" OP_CONNECT_HOST="$OP_CONNECT_HOST" OP_CO |
37 | 39 | The health response names the 1Password Connect API. Any other page means the address points at something |
38 | 40 | else, such as a reverse proxy that answers for every hostname. |
39 | 41 |
|
| 42 | +This checks the Connect variables in your shell, not the server's own environment. To confirm the server |
| 43 | +can read the secret, use the reference in a setting and select **Refresh** in **Settings → Providers**. A |
| 44 | +secret it cannot read shows an error naming the secret provider. |
| 45 | + |
40 | 46 | ## Things to know |
41 | 47 |
|
42 | 48 | - Agents run with the server's environment, so an agent can use the Connect token to read anything it can. |
43 | 49 | Give the token only vaults whose items you would let an agent read. |
44 | | -- Through Connect, `op` can read items but cannot list vaults or accounts. Test with `op read` or |
45 | | - `op item get`, not `op vault list`. |
| 50 | +- Through Connect, `op` can read items but cannot list vaults or accounts. Test with `op read`, not |
| 51 | + `op vault list`. |
46 | 52 | - A name in a reference can contain letters, digits, spaces, `.`, `_`, and `-`. An item titled |
47 | 53 | `Service Token: CI` cannot be written as a reference, so use its item ID instead, for example |
48 | 54 | `op://Automation/<item-id>/credential`. |
|