Pulumi ESC: decide whether PushSecret should wrap pushed values in fn::secret

Author: KR-RavindraCreated Sep 8, 2026Updated Sep 22, 2026
Labelskind/designarea/pulumi

Context

Follow-up to #6748 / #6933. #6933 stops PushSecret from truncating the environment definition, but deliberately leaves the pushed value's representation unchanged: it is written into values as a plain literal, exactly as before.

Question

Should the Pulumi ESC provider wrap pushed values in fn::secret so that ESC stores them encrypted and marks them secret when the environment is opened?

Points to settle:

  • Pushed data comes from a Kubernetes Secret, so treating it as secret by default is the obvious expectation.
  • Wrapping changes the round trip: GetSecret reads the opened environment, where an fn::secret value is resolved, so reads keep working, but the raw definition seen in the ESC console changes from a literal to a fn::secret block.
  • Existing plain literals at the same key would be replaced by an fn::secret block on the next push (today a literal replaces an fn::secret block, see TestPushSecret in #6933).
  • Whether this should be configurable (e.g. a field on the provider or on PushSecret metadata) or unconditional.

Opened at a reviewer's request on #6933 so the question is not lost when #6748 closes.

This issue was prepared with an AI agent operated by KR-Ravindra.

Source: external-secrets/external-secrets