Skip to content

feat(config): add option to not run activation (and deactivation) scripts #4889

Open

Description

@pavelzw

For security reasons, it would be nice to skip activation scripts.

AFAIU, one can also specify custom env variables for conda packages without any environments.

run-activation-scripts = "all" # "all" | "false" | "only-env_vars.d"

Especially the only-env_vars.d option will allow us to do safe execution without arbitrary code execution.
Does it make sense to disallow certain env variables altogether like LD_PRELOAD?

Activity

  1. added
    env-vars
    enhancement
    on Nov 5, 2025
  2. changed the title [-]Add ability to not run activation (and deactivation) scripts[/-] [+]feat(activation): Add ability to not run activation (and deactivation) scripts[/+] on Nov 5, 2025
  3. tdejager commented on Nov 24, 2025

    @tdejager
    Contributor

    With sha-halud making an appearance again today this might be more prudent than ever!

  4. changed the title [-]feat(activation): Add ability to not run activation (and deactivation) scripts[/-] [+]feat(config): Add ability to not run activation (and deactivation) scripts[/+] on Oct 8, 2026
  5. changed the title [-]feat(config): Add ability to not run activation (and deactivation) scripts[/-] [+]feat(config): add option to not run activation (and deactivation) scripts[/+] on Oct 8, 2026
  6. added
    configuration
    on Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    configurationenhancementenv-vars

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions