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

[codegen] Encrypt input args for secret properties #7128

Merged
merged 10 commits into from
May 26, 2021

Conversation

lblackstone
Copy link
Member

Description

The output side was already handled using the
addionalSecretOutputs property. This change
ensures both inputs and outputs are encrypted
in the state.

Fixes # (issue)
Fix #7062

Checklist

  • I have added tests that prove my fix is effective or that my feature works

@github-actions
Copy link

Diff for pulumi-random with merge commit ccff258

@github-actions
Copy link

Diff for pulumi-azuread with merge commit ccff258

@github-actions
Copy link

Diff for pulumi-kubernetes with merge commit ccff258

@lblackstone
Copy link
Member Author

Reviewer note:

The Kubernetes diff shows a real example of this change in action
https://github.com/pulumi-bot/pulumi-kubernetes/compare/9ea26042..76a17227

@github-actions
Copy link

Diff for pulumi-gcp with merge commit ccff258

@pulumi pulumi deleted a comment from github-actions bot May 25, 2021
@pulumi pulumi deleted a comment from github-actions bot May 25, 2021
@pulumi pulumi deleted a comment from github-actions bot May 25, 2021
@pulumi pulumi deleted a comment from github-actions bot May 25, 2021
@pulumi pulumi deleted a comment from github-actions bot May 25, 2021
@pulumi pulumi deleted a comment from github-actions bot May 25, 2021
@pulumi pulumi deleted a comment from github-actions bot May 25, 2021
@github-actions
Copy link

Diff for pulumi-azure with merge commit ccff258

@github-actions
Copy link

Diff for pulumi-aws with merge commit ccff258

@github-actions
Copy link

Diff for pulumi-azure-native with merge commit ccff258

The output side was already handled using the
addionalSecretOutputs property. This change
ensures both inputs and outputs are encrypted
in the state.
@github-actions
Copy link

Diff for pulumi-azure with merge commit e394506

@github-actions
Copy link

Diff for pulumi-aws with merge commit e394506

@github-actions
Copy link

Diff for pulumi-azure-native with merge commit e394506

pkg/codegen/dotnet/gen.go Outdated Show resolved Hide resolved
pkg/codegen/dotnet/gen.go Outdated Show resolved Hide resolved
Copy link
Member

@justinvp justinvp left a comment

Choose a reason for hiding this comment

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

LGTM aside from Vivek's suggestion.

@github-actions
Copy link

Diff for pulumi-random with merge commit b30e087

@github-actions
Copy link

Diff for pulumi-azuread with merge commit b30e087

@github-actions
Copy link

Diff for pulumi-kubernetes with merge commit b30e087

@github-actions
Copy link

Diff for pulumi-gcp with merge commit b30e087

@github-actions
Copy link

Diff for pulumi-azure with merge commit b30e087

@github-actions
Copy link

Diff for pulumi-aws with merge commit b30e087

@github-actions
Copy link

Diff for pulumi-azure-native with merge commit b30e087

@lblackstone lblackstone merged commit aeb6857 into master May 26, 2021
@pulumi-bot pulumi-bot deleted the lblackstone/secret-input branch May 26, 2021 22:00
lblackstone added a commit to pulumi/pulumi-kubernetes that referenced this pull request May 26, 2021
- Codegen change from pulumi/pulumi#7128
and remove hardcoded templates for v1/Secret resources
- Nondeterministic import ordering fix from pulumi/pulumi#7126
lblackstone added a commit to pulumi/pulumi-kubernetes that referenced this pull request May 26, 2021
- Codegen change from pulumi/pulumi#7128
and remove hardcoded templates for v1/Secret resources
- Nondeterministic import ordering fix from pulumi/pulumi#7126
lblackstone added a commit to pulumi/pulumi-kubernetes that referenced this pull request May 26, 2021
- Codegen change from pulumi/pulumi#7128
and remove hardcoded templates for v1/Secret resources
- Nondeterministic import ordering fix from pulumi/pulumi#7126
lblackstone added a commit that referenced this pull request Feb 25, 2022
#7128 added code to mark properties as secret based on a schema flag, but did not correctly handle the case where output properties do not have a corresponding input property. In this case, code was generated for nonexistent input properties, and would lead to a panic.
lblackstone added a commit that referenced this pull request Feb 26, 2022
#7128 added code to mark properties as secret based on a schema flag, but did not correctly handle the case where output properties do not have a corresponding input property. In this case, code was generated for nonexistent input properties, and would lead to a panic.
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.

[schema] Allow inputs to be marked as secret
4 participants