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:
GetSecretreads the opened environment, where anfn::secretvalue is resolved, so reads keep working, but the raw definition seen in the ESC console changes from a literal to afn::secretblock. - Existing plain literals at the same key would be replaced by an
fn::secretblock on the next push (today a literal replaces anfn::secretblock, seeTestPushSecretin #6933). - Whether this should be configurable (e.g. a field on the provider or on
PushSecretmetadata) 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