Skip to content

Commit 8de4b0b

Browse files
committed
fix(devbox): clarify infisical universal auth prompts
1 parent 823d0b2 commit 8de4b0b

2 files changed

Lines changed: 12 additions & 10 deletions

File tree

docs/devbox.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,11 @@ One-time setup:
6969
```
7070

7171
The helper prompts locally for the Infisical domain, project ID, environment,
72-
machine identity client ID, and machine identity client secret. Humans should
73-
source the initial client ID/secret from their secret manager, usually
74-
1Password or Infisical, and enter them locally. Do not paste them into agent
75-
chat.
72+
Universal Auth client ID, and Universal Auth client secret. Use the client ID
73+
shown under the machine identity's Universal Auth method, not the machine
74+
identity ID shown in the identity details panel. Humans should source the
75+
initial client ID/secret from their secret manager, usually 1Password or
76+
Infisical, and enter them locally. Do not paste them into agent chat.
7677

7778
It writes non-secret selectors to `~/.config/uinaf/devbox.env` and machine
7879
credentials to `~/.config/uinaf/infisical-machine.env`. Both files must be mode

scripts/secrets/configure-infisical-devbox.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ usage() {
1313
Usage:
1414
scripts/secrets/configure-infisical-devbox.sh
1515
16-
Prompts for Infisical machine identity settings, verifies the machine identity
17-
can mint a token, then writes owner-only local config files.
16+
Prompts for Infisical Universal Auth settings, verifies the machine identity can
17+
mint a token, then writes owner-only local config files.
1818
USAGE
1919
}
2020

@@ -141,18 +141,19 @@ unset INFISICAL_CLIENT_ID INFISICAL_CLIENT_SECRET
141141
load_if_present "$machine_config_path"
142142

143143
printf 'Configuring Infisical devbox machine auth. Press Enter to accept defaults.\n' >&2
144+
printf 'Use the Universal Auth client ID/secret, not the machine identity ID.\n' >&2
144145

145146
infisical_domain="$(prompt_value "Infisical domain" "${INFISICAL_DOMAIN:-https://eu.infisical.com/api}")"
146147
infisical_project_id="$(prompt_value "Infisical project ID" "${INFISICAL_PROJECT_ID:-}")"
147148
infisical_env="$(prompt_value "Infisical env" "${INFISICAL_ENV:-dev}")"
148-
infisical_client_id="$(prompt_value "Machine identity client ID" "${INFISICAL_CLIENT_ID:-}")"
149-
infisical_client_secret="$(prompt_secret "Machine identity client secret")"
149+
infisical_client_id="$(prompt_value "Universal Auth client ID" "${INFISICAL_CLIENT_ID:-}")"
150+
infisical_client_secret="$(prompt_secret "Universal Auth client secret")"
150151

151152
[ -n "$infisical_domain" ] || fail "Infisical domain is required"
152153
[ -n "$infisical_project_id" ] || fail "Infisical project ID is required"
153154
[ -n "$infisical_env" ] || fail "Infisical env is required"
154-
[ -n "$infisical_client_id" ] || fail "Machine identity client ID is required"
155-
[ -n "$infisical_client_secret" ] || fail "Machine identity client secret is required"
155+
[ -n "$infisical_client_id" ] || fail "Universal Auth client ID is required"
156+
[ -n "$infisical_client_secret" ] || fail "Universal Auth client secret is required"
156157

157158
check_no_human_infisical_session "$infisical_domain"
158159

0 commit comments

Comments
 (0)