Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow serializeFunction to capture secrets #6013

Merged
merged 3 commits into from
Dec 30, 2020
Merged

Allow serializeFunction to capture secrets #6013

merged 3 commits into from
Dec 30, 2020

Conversation

lukehoban
Copy link
Member

Adds an opt-in allowSecrets flag to serializeFunction to allow it to capture secrets. If passed, serializeFunction will now report back whether it captured any secrets. This information can be used by callers to wrap the resulting text in a Secret value.

Fixes #2718.

Adds an opt-in `allowSecrets` flag to `serializeFunction` to allow it to capture secrets.  If passed, `serializeFunction` will now report back whether it captured any secrets.  This information can be used by callers to wrap the resulting text in a Secret value.

Fixes #2718.
lukehoban added a commit to pulumi/pulumi-aws that referenced this pull request Dec 26, 2020
Opts-in to the secret capture support added in pulumi/pulumi#6013.
lukehoban added a commit to pulumi/pulumi-aws that referenced this pull request Dec 26, 2020
Opts-in to the secret capture support added in pulumi/pulumi#6013.
lukehoban added a commit to pulumi/pulumi-azure that referenced this pull request Dec 26, 2020
Opts-in to the secret capture support added in pulumi/pulumi#6013.

Part of pulumi/pulumi#2718.
Copy link
Contributor

@stack72 stack72 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my TypeScript foo isn't brilliant - but this works as it says on the tin so the only other thing I could offer would be opinionated comments that wouldn't help the functionality 😃

@lukehoban lukehoban merged commit 1ef2f10 into master Dec 30, 2020
@pulumi-bot pulumi-bot deleted the lukehoban/2718 branch December 30, 2020 22:37
lukehoban added a commit to pulumi/pulumi-azure that referenced this pull request Jan 7, 2021
lukehoban added a commit to pulumi/pulumi-aws that referenced this pull request Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SerializeFunction should communicate if a secret output was captured
2 participants