f1a6db14c7
The script created a Certificate Manager project whenever the configured slug did not match an existing one. Against an organization that already had one that produced a second, which would then be unable to hold applications at all - they are served only from the organization's active project. It now adopts the existing project and says so, creating one only when the organization has none, and notes when an organization has several that applications work in one. It also seeds a certificate application and attaches the seeded profiles to it. Applications are how the console groups profiles and how Get-InfisicalCertificateProfile -ApplicationId scopes a lookup, so seeding profiles without one left an environment the documented workflow could not navigate. Profiles are attached at creation via profileIds, and an application that already exists has only its missing profiles added. Project discovery moves to /api/v1/projects, matching the module, and tolerates either response shape. Separately, the environment-variable discovery table listed ProjectId, Environment, and SecretPath as discoverable Connect-Infisical parameters. InfisicalEnvironmentResolver defines patterns for BaseUri, OrganizationId, ClientId, ClientSecret, AccessToken, and ApiVersion only - the other three are per-call parameters and were never resolved from the environment. Same defect as the Quick Start, in the table immediately below it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>