mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
feat: Add support for environment protection (scrubbing) (#327)
* feat: Add support for environment variable protection for sandbox * chore: Update dangerous env var list * fix: Split profiles for improved environment protection * fix: pipx sandbox profile separation * chore: Show sandbox scrub info on error exit * fix: Code review fixes * test: Add e2e for sandbox environment scrubbing
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
name: uv
|
||||
description: Profile for uv, extending pypi-restrictive with uv environment variables
|
||||
inherits: pypi-restrictive
|
||||
|
||||
package_managers:
|
||||
- uv
|
||||
|
||||
environment:
|
||||
# The pypi-restrictive base allows no environment variables. uv needs its
|
||||
# own config namespace and honors pip env conventions via the uv pip
|
||||
# interface. Sibling tool credentials (POETRY_*) and TWINE_* stay scrubbed.
|
||||
#
|
||||
# Accepted trade-off: UV_* re-allows UV_PUBLISH_TOKEN, uv's own publishing
|
||||
# credential.
|
||||
allow:
|
||||
- UV_*
|
||||
- PIP_*
|
||||
Reference in New Issue
Block a user