Skip to content

cost hold: redact values a product sets in a run's own environment #5433

Closed

Description

@lex00

#5416 (PR #5418) lets a product name redactEnv variables whose values the cost hold redacts from the plan copy. The hold reads those values from the wave job's own environment. terragucci sets a secrets: value only in that root's run environment, so the value reaches the estimator in clear: INTENTIUS/terragucci#1508 ran priceRuns with redactEnv: ["DB_PASSWORD"] and found the plan copy kept it when the value sat only in the run's environment. A product's run wave job hands chant a ProductWaveHook, which has no way to supply that environment.

Acceptance criteria

  • The cost hold reads each redactEnv and dropEnv value from the run's own environment as well as the job's, so a value a product sets per run is redacted and dropped.
  • A product's wave hook can hand chant each run's environment, or chant asks the hook for it; a hook that does neither behaves as today.
  • A real-shell test sets a secret only in a run's environment and shows the estimator sees neither its value in the plan nor the variable.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions