Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Apply suggestion from @greptile-apps[bot]
Akhil Mohanfa8f39c627bb
diff --git a/backend-go/internal/services/auth/apiauth/authenticator.go b/backend-go/internal/services/auth/apiauth/authenticator.goindex 0ce43ba9f7..71db299dc6 100644--- a/backend-go/internal/services/auth/apiauth/authenticator.go+++ b/backend-go/internal/services/auth/apiauth/authenticator.go@@ -218,7 +218,7 @@ func (a Authenticator) validateJWT(ctx context.Context, token string) (*auth.Ide// findOrgByID returns (nil, nil) on pgx.ErrNoRows. The org row can be// missing if it was deleted between JWT issue and validation; without// this guard `org.Name` below panics.- return nil, errutil.BadRequest("Organization %s not found", claims.OrganizationID).WithErrf("validateJWT(orgId=%s): organization not found", claims.OrganizationID)+ return nil, errutil.NotFound("Organization %s not found", claims.OrganizationID).WithErrf("validateJWT(orgId=%s): organization not found", claims.OrganizationID)}orgMembership, err := a.findEffectiveOrgMembership(ctx, auth.ActorTypeUser, user.ID, claims.OrganizationID, "accepted")