Hyden Polikoff
11/20/2025, 7:10 PMinfisical login on their local machines, and then they can get the dev secrets from infisical?
Currently we read them in with client id/client secret, but I would rather just have engineers get an account, get the cli and hit infisical login and then ready to go, no more credentials needed.Hyden Polikoff
11/21/2025, 5:13 PMdef _infisical_client() -> InfisicalSDKClient:
global _INFISICAL_CLIENT
if _INFISICAL_CLIENT is None:
_INFISICAL_CLIENT = InfisicalSDKClient(host="<https://app.infisical.com>")
if ENV.is_dev():
# somehow use token/auth from separately running infisical login
pass
else:
_INFISICAL_CLIENT.auth.universal_auth.login(
client_id=os.environ["INFISICAL_CLIENT_ID"],
client_secret=os.environ["INFISICAL_CLIENT_SECRET"],
)
return _INFISICAL_CLIENTHyden Polikoff
12/03/2025, 10:55 PMHyden Polikoff
03/18/2026, 8:34 PMdef _set_infisical_vars():
# don't provide any infisical shit if we're in test or build
if (
ENV == Environment.BUILD
or ENV == Environment.TEST
or ENV == Environment.PROD_MIGRATION
):
return
_client = _infisical_client()
match ENV:
case Environment.PROD | Environment.PROD_MIGRATION | Environment.DEV_PROD_RW:
inf_environ = "prod"
case Environment.STAGING:
inf_environ = "staging"
case Environment.DEV:
inf_environ = "dev"
for secret in _client.secrets.list_secrets(
project_slug="quanta",
environment_slug=inf_environ,
secret_path="/",
recursive=True,
).secrets:
os.environ[secret.secretKey] = secret.secretValueVlad (Infisical)
03/22/2026, 10:38 PMHyden Polikoff
03/23/2026, 3:50 PMHyden Polikoff
03/27/2026, 5:49 PMDaniel Hougaard
03/27/2026, 5:56 PMclient.auth.token_auth.login(token="<your-token>").
You can get the token directly from the Infisical UI like in the picture I've attached.
We'll take a closer look at your request, and I do agree that it would be a neat addition!Hyden Polikoff
03/27/2026, 6:14 PMinfisical login and then they are ready to go would be so slick, then our app just knows to look at wherever that token sits in local dev