GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs(secrets): Connect over https, and confirm reads through the server · pingdotgg/t3code@c906e51

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • docs/user
    • secrets-1password-connect.md
    • secrets-1password-service-account.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎docs/user/secrets-1password-connect.md‎

Copy file name to clipboardExpand all lines: docs/user/secrets-1password-connect.md
+9-3Lines changed: 9 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ basics, see [Secrets](./secrets.md).
1414
3. Install the [1Password CLI](https://developer.1password.com/docs/cli/get-started/) (`op`) on the machine
1515
that runs the T3 Code server.
1616
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
1820
[background service](./background-service.md), add both to `service.env` and restart the service. See
1921
[Configure the service environment](./background-service.md#configure-the-service-environment).
2022
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
3739
The health response names the 1Password Connect API. Any other page means the address points at something
3840
else, such as a reverse proxy that answers for every hostname.
3941

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+
4046
## Things to know
4147

4248
- Agents run with the server's environment, so an agent can use the Connect token to read anything it can.
4349
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`.
4652
- A name in a reference can contain letters, digits, spaces, `.`, `_`, and `-`. An item titled
4753
`Service Token: CI` cannot be written as a reference, so use its item ID instead, for example
4854
`op://Automation/<item-id>/credential`.
Collapse file

‎docs/user/secrets-1password-service-account.md‎

Copy file name to clipboardExpand all lines: docs/user/secrets-1password-service-account.md
+3-1Lines changed: 3 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ env -i PATH="$PATH" HOME="$(mktemp -d)" OP_SERVICE_ACCOUNT_TOKEN="$OP_SERVICE_AC
3737
op read --no-newline "op://Automation/provider-token/credential" >/dev/null && echo "Secret read"
3838
```
3939

40-
If it prints `Secret read`, T3 Code can read it. `op whoami` reports a user type of `SERVICE_ACCOUNT`.
40+
If it prints `Secret read`, the token can read the secret. This checks your shell, not the server's own
41+
environment, so to confirm the server can read it, use the reference in a setting and select **Refresh** in
42+
**Settings → Providers**. A secret it cannot read shows an error naming the secret provider.
4143

4244
## Things to know
4345

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.