Repository navigation
feat(infisical): fall back to the CLI login, add personal overrides - #502
Open
dVelopment wants to merge 1 commit into
Open
dVelopment wants to merge 1 commit into
dVelopment wants to merge 1 commit into
Conversation
dVelopment
force-pushed
the
feat/infisical-cli-login
branch
from
October 23, 2026 08:12
98e1ceb to
2fe1327
Compare
When no token or machine identity is configured, get a token from the logged-in Infisical CLI (`infisical user get token --domain`). Needs CLI 0.44.0+, since older versions ignore --domain. `?personal=true` reads the user's personal overrides and makes `secretspec set` write one instead of the shared secret. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dVelopment
force-pushed
the
feat/infisical-cli-login
branch
from
October 23, 2026 08:21
2fe1327 to
b27d1ac
Compare
dVelopment
marked this pull request as ready for review
October 23, 2026 12:09
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lets the Infisical provider authenticate as the user logged in to the Infisical CLI, and adds
?personal=truefor reading and writing that user's personal overrides.The two go together: Infisical only allows personal overrides for user identities, so they aren't reachable with a machine identity, which until now was the only way to authenticate.
CLI login
With no
tokenand noclient_id/client_secretconfigured (provider credentials orINFISICAL_*env), the provider runsand uses that token.
SECRETSPEC_INFISICAL_PATHoverrides the binary;INFISICAL_PROFILEandINFISICAL_ORGare passed through the environment.infisical --version). Older CLIs ignore--domainand return the session of whatever instance you're logged in to, so a project alias pointing at another host would receive that token.exp. Failures aren't cached, so a long-runningservepicks up a laterinfisical login.client_id/client_secretis still an error and never falls through to the CLI.Personal overrides
infisical://.../<project>?personal=true:includePersonalOverrides=true, so you get your override where one exists and the shared value otherwise. Version-pinned refs still read the shared history.secretspec setsendstype: personal. It updates your override or creates one, but never creates folders and refuses when no shared secret exists. Infisical rejects personal writes from machine identities, and the error says so.personalis part of the rendered URI, so a personal and a shared alias for the same project don't share cache entries.SecretSpec before 0.22 ignores
personal=trueand would write the shared secret; the provider page warns about this.Docs
providers/infisical.mdxgets "Infisical CLI login" and "Personal overrides" sections, both marked 0.22.reference/providers.mdxand the CHANGELOG are updated. The provider credentials catalog is unchanged;npm --prefix docs run check:provider-credentialspasses.Testing
Unit tests use a fake
infisicalbinary and a local HTTP server:includePersonalOverridesand thetypein the recorded request bodies, and the missing-environment and missing-shared-secret errorsDrafted with Claude Opus 5.5 (via the omp harness), reviewed by me; the commit carries a
Co-Authored-Bytrailer.