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

Pass provider checksums in requests and save to state #13789

Merged
merged 1 commit into from Sep 11, 2023

Conversation

Frassle
Copy link
Member

@Frassle Frassle commented Aug 25, 2023

Description

This extends the resource monitor interface with fields for plugin checksums (on top of the existing plugin version and download url fields). These fields are threaded through the engine and are persisted in resource state. The sent or saved data is then used when installing plugins to ensure that the checksums match what was recorded at the time the SDK was built.

Similar to #13776 nothing is using this yet, but this lays the engine side plumbing for them.

Checklist

  • I have run make tidy to update any new dependencies
  • I have run make lint to verify my code passes the lint check
    • I have formatted my code using gofumpt
  • I have added tests that prove my fix is effective or that my feature works
  • I have run make changelog and committed the changelog/pending/<file> documenting my change
  • Yes, there are changes in this PR that warrants bumping the Pulumi Cloud API version

@pulumi-bot
Copy link
Contributor

pulumi-bot commented Aug 25, 2023

Changelog

[uncommitted] (2023-09-11)

Features

  • [engine] Support SDKs sending plugin checksums as part of resource requests.
    #13789

@@ -220,6 +220,9 @@ func newDeployment(ctx *Context, info *deploymentContext, opts deploymentOptions
if imp.PluginDownloadURL == "" {
imp.PluginDownloadURL = defaultProviderInfo[imp.Type.Package()].PluginDownloadURL
}
if imp.PluginChecksums != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you mean here if imp.PluginChecksums == nil instead? Maybe also good to check that defaultProviderInfo actually has that package checksum:

checksums, ok := defaultProviderInfo[imp.Type.Package()]
if ok {
  imp.PluginChecksums = checksums
}

This extends the resource monitor interface with fields for plugin
checksums (on top of the existing plugin version and download url
fields). These fields are threaded through the engine and are persisted
in resource state. The sent or saved data is then used when installing
plugins to ensure that the checksums match what was recorded at the time
the SDK was built.

Similar to #13776 nothing is using
this yet, but this lays the engine side plumbing for them.
@Frassle Frassle force-pushed the fraser/checksumResourceMonitor branch from a0631df to 86b375e Compare September 11, 2023 12:41
@Frassle Frassle added this pull request to the merge queue Sep 11, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 11, 2023
@Frassle Frassle added this pull request to the merge queue Sep 11, 2023
Merged via the queue into master with commit a254a53 Sep 11, 2023
46 checks passed
@Frassle Frassle deleted the fraser/checksumResourceMonitor branch September 11, 2023 16:32
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.

None yet

3 participants