Skip to content

Deprecate environmentVariables, @secret references, and apify secrets #1577

Description

@DaveHanns

With .env and apify env in place, the old local mechanisms are deprecated. Nothing stops working in this issue.

Scope

  • Print a deprecation warning in apify run when actor.json has environmentVariables. Point to .env and apify env migrate.
  • Print a deprecation warning in apify secrets add, ls, and rm, and mark the commands as deprecated in help and in the generated reference.
  • Record in telemetry that a warning was shown, so the removal can be timed on real usage.
  • Keep reading the values as before.

Done when

  • A warning appears once per command run and goes to stderr, so --json output stays clean.

Depends on

Activity

  1. added theissue type on Nov 11, 2026
  2. added
    t-builders
    on Nov 11, 2026
  3. self-assigned this
    on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

t-builders

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions