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

[dotnet] Unsecret and IsSecret implementation for .NET #6092

Merged
merged 1 commit into from
Jan 12, 2021

Conversation

mikhailshilkov
Copy link
Member

Related: #5653

This will take an existing output and then unwrap the secret, and return a new output

var x = Output.CreateSecret("test");
var y = Output.Unsecret(x); // new output that has "test" but is not a secret

Also adds the ability to check if an output is a secret:

var x = Output.CreateSecret("test");
var isSecret = await Output.IsSecretAsync(x); // true

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.

Thank you so much for doing this! LGTM!

@stack72 stack72 merged commit 710f385 into master Jan 12, 2021
@stack72 stack72 deleted the mikhailshilkov/unsecret-dotnet branch January 12, 2021 14:54
abhinav pushed a commit to pulumi/pulumi-dotnet that referenced this pull request Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants