Skip to content

Add environment variable filtering for external commands #1083

@tiran

Description

@tiran

Fromager passes the full parent environment to every subprocess. This leaks sensitive variables (credentials, CI tokens, cloud keys) into build scripts and PEP 517 hooks. Add configuration to control which variables from os.environ are inherited by subprocesses. Variables injected by fromager itself (extra_environ, build_environment, package-level env) are not subject to filtering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions