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

Add ability to only generate output invoke functions #260

Open
zbuchheit opened this issue Aug 2, 2024 · 1 comment
Open

Add ability to only generate output invoke functions #260

zbuchheit opened this issue Aug 2, 2024 · 1 comment
Labels
awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). kind/enhancement Improvements or new features

Comments

@zbuchheit
Copy link
Contributor

Hello!

  • Vote on this issue by adding a 👍 reaction
  • If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

Add the ability to only generate output invoke functions/prevent the generation of plain invoke functions.

This may seem like an arbitrary request on its own, but the ultimate desire would be to mark outputs on an invoke as secret, and given plain invokes don't have a mechanism to mark responses as secrets, there is no way to enforce users to use the output invoke and ensure the response data is always marked as secret correctly.

Affected area/feature

Related to:#259

@zbuchheit zbuchheit added kind/enhancement Improvements or new features needs-triage Needs attention from the triage team labels Aug 2, 2024
@iwahbe iwahbe added awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). and removed needs-triage Needs attention from the triage team labels Aug 5, 2024
@iwahbe
Copy link
Member

iwahbe commented Aug 5, 2024

Right now, there is no way to express that a function should be output-only. This will require schema and codegen support from pulumi/pulumi.

Solving plain return values that are secret is a necessary pre-requisite to solving pulumi/pulumi#12710.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). kind/enhancement Improvements or new features
Projects
None yet
Development

No branches or pull requests

2 participants