client.secrets.list_secrets() lists the secrets in a folder in an environment of a project. The machine identity needs a role in the project that can read secrets, such as Viewer.
Parameters
The ID of the project. Pass
project_id or project_slug. If you pass both, the SDK uses project_id.Whether to also return the folder’s secret imports, in
imports.Whether to replace each secret reference, such as
${dev.DB_HOST}, with the value it points to.Whether to return the secrets’ values. If
False, each secret’s secretValueHidden is True and its secretValue is <hidden-by-infisical>.