-
Notifications
You must be signed in to change notification settings - Fork 1
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
upgrade dependencies #32
Commits on Sep 12, 2022
-
Wilken Rivera committed
Sep 12, 2022 Configuration menu - View commit details
-
Copy full SHA for 16fb193 - Browse repository at this point
Copy the full SHA 16fb193View commit details
Commits on Oct 12, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 54a995c - Browse repository at this point
Copy the full SHA 54a995cView commit details
Commits on Oct 28, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 33e82fa - Browse repository at this point
Copy the full SHA 33e82faView commit details
Commits on Dec 21, 2022
-
Configuration menu - View commit details
-
Copy full SHA for b493aea - Browse repository at this point
Copy the full SHA b493aeaView commit details
Commits on Jan 11, 2023
-
ssh: fix DownloadDir empty response check (hashicorp#147)
We used to check if a ssh server returns an empty payload with a len(fi) < 0, which can never succeed as len never returns negative values. This commit changes the condition to an == instead.
Configuration menu - View commit details
-
Copy full SHA for 5012fd5 - Browse repository at this point
Copy the full SHA 5012fd5View commit details -
communicator: add note to docs on protocol/Windows
Recently, an update to Windows's default SSH implementation added an extra check for the mark-of-the-web to their code, which if in verbose mode, ends-up producing an error log, and terminates the process with a non-zero error code, even if the transfer is successful. Because of this, scp transfers fail all the time in such an environment, and the recommended workaround for now is to set sftp as the transfer protocol, as this one sets the mark-of-the-web successfully, and therefore ends with a 0 error code. Since this is surprising behaviour to users, we add a paragraph to the docs, so they know about this workaround.
Configuration menu - View commit details
-
Copy full SHA for 1f4d6a9 - Browse repository at this point
Copy the full SHA 1f4d6a9View commit details
Commits on Jan 13, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 34ed5d9 - Browse repository at this point
Copy the full SHA 34ed5d9View commit details
Commits on Jan 26, 2023
-
Update links used in embedded documentation partials
- Migrates the formats of links in Markdown content as part of the [Docs Content Link Rewrites project](https://docs.google.com/document/d/1WaSyvoVPS-YCNiSPX0ynGpvc1gySEcpbrRoQVhimQCA/edit)
Configuration menu - View commit details
-
Copy full SHA for 4a11ef9 - Browse repository at this point
Copy the full SHA 4a11ef9View commit details -
Wilken Rivera committed
Jan 26, 2023 Configuration menu - View commit details
-
Copy full SHA for 404e1f9 - Browse repository at this point
Copy the full SHA 404e1f9View commit details
Commits on Jan 27, 2023
-
shell-local: fix supported_os error check
Commit 34ed5d9 which consists of linting fixes essentially had an error in the code and the error check for `supported_os' was inverted in this commit, making shell-local fail on all supported OSes now. We re-invert this condition so it behaves as it used to.
Configuration menu - View commit details
-
Copy full SHA for 6f32b7f - Browse repository at this point
Copy the full SHA 6f32b7fView commit details -
Configuration menu - View commit details
-
Copy full SHA for cc05a3a - Browse repository at this point
Copy the full SHA cc05a3aView commit details
Commits on Feb 1, 2023
-
Configuration menu - View commit details
-
Copy full SHA for fd628a5 - Browse repository at this point
Copy the full SHA fd628a5View commit details -
ssh: add warnings on DSA usage
The DSA signature algorithm is not considered secure anymore, and is actively deprecated in the Go crypto libs. To let users know that they should not use that anymore, we add a notice in the comments for the SSH private key options.
Configuration menu - View commit details
-
Copy full SHA for 0ab9c86 - Browse repository at this point
Copy the full SHA 0ab9c86View commit details
Commits on Feb 3, 2023
-
Remove ioutil in favour of io and os packages and exclude crypto/dsa …
…from linting as the warning is not relevant.
Configuration menu - View commit details
-
Copy full SHA for 45e4613 - Browse repository at this point
Copy the full SHA 45e4613View commit details -
Add deprecation warning for DSA
Co-authored-by: Lucas Bajolet <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for aa0cffe - Browse repository at this point
Copy the full SHA aa0cffeView commit details
Commits on Mar 7, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 2085e33 - Browse repository at this point
Copy the full SHA 2085e33View commit details -
Wilken Rivera committed
Mar 7, 2023 Configuration menu - View commit details
-
Copy full SHA for a124fa7 - Browse repository at this point
Copy the full SHA a124fa7View commit details -
Update working directory for go checks
Wilken Rivera committedMar 7, 2023 Configuration menu - View commit details
-
Copy full SHA for 4754c3b - Browse repository at this point
Copy the full SHA 4754c3bView commit details -
Wilken Rivera committed
Mar 7, 2023 Configuration menu - View commit details
-
Copy full SHA for dcc669e - Browse repository at this point
Copy the full SHA dcc669eView commit details -
Wilken Rivera committed
Mar 7, 2023 Configuration menu - View commit details
-
Copy full SHA for e5ba35c - Browse repository at this point
Copy the full SHA e5ba35cView commit details -
Update go generate with Go 1.18
Wilken Rivera committedMar 7, 2023 Configuration menu - View commit details
-
Copy full SHA for 47e77fe - Browse repository at this point
Copy the full SHA 47e77feView commit details -
Remove Go 1.19 from test matrix
Go 1.19 has different formatting directives that appears to be causing conflicts with 1.18.
Wilken Rivera committedMar 7, 2023 Configuration menu - View commit details
-
Copy full SHA for e2f3241 - Browse repository at this point
Copy the full SHA e2f3241View commit details -
packer-sdc: return errors on duplicate tag/field
When generating the flattened structures for a HCL2-compatible config, we didn't prevent users from defining duplicate fields or tags, instead warning them. The warning in itself did not prevent the resulting structures from being generated, leading into a situation where the first definition of the arg/tag would have precedence over the subsequent definitions, leading to shadowing their definitions. To prevent this in the future, we immediately return an error when such a conflict is introduced, and signal to the user which attribute is problematic.
Configuration menu - View commit details
-
Copy full SHA for d160ce0 - Browse repository at this point
Copy the full SHA d160ce0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 62bcc50 - Browse repository at this point
Copy the full SHA 62bcc50View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac3abdc - Browse repository at this point
Copy the full SHA ac3abdcView commit details
Commits on Mar 8, 2023
-
Configuration menu - View commit details
-
Copy full SHA for a11399a - Browse repository at this point
Copy the full SHA a11399aView commit details -
Add test to runner for Darwin Os
* Remove directory from matrix build for Windows config
Configuration menu - View commit details
-
Copy full SHA for ba0cbeb - Browse repository at this point
Copy the full SHA ba0cbebView commit details -
Wilken Rivera committed
Mar 8, 2023 Configuration menu - View commit details
-
Copy full SHA for 75fe363 - Browse repository at this point
Copy the full SHA 75fe363View commit details
Commits on Apr 10, 2023
-
Configuration menu - View commit details
-
Copy full SHA for b03e2b6 - Browse repository at this point
Copy the full SHA b03e2b6View commit details
Commits on Apr 12, 2023
-
Configuration menu - View commit details
-
Copy full SHA for e0635ce - Browse repository at this point
Copy the full SHA e0635ceView commit details -
Configuration menu - View commit details
-
Copy full SHA for 85465e8 - Browse repository at this point
Copy the full SHA 85465e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5249eb0 - Browse repository at this point
Copy the full SHA 5249eb0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b87bcd - Browse repository at this point
Copy the full SHA 9b87bcdView commit details
Commits on Apr 21, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 10b594a - Browse repository at this point
Copy the full SHA 10b594aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a0710c - Browse repository at this point
Copy the full SHA 9a0710cView commit details
Commits on Apr 25, 2023
-
Add basic test for commonServer.ConfigSpec
The Packer SDK relies on encoding/gob for serializing hcldec.ObjectSpec over RPC. The added test check that types implementing the HCL2Speccer interface can be encoded/decoded without issue. Starting in go-cty v1.11.0 support for encoding/gob was removed, which causes the added tests to fail. This is expected and is meant to help catch potential regressions moving forward. Test results running go-cty v1.10.0 ``` --- PASS: TestCommonServer_ConfigSpec (0.00s) --- PASS: TestCommonServer_ConfigSpec/Builder_Component_Server (0.00s) --- PASS: TestCommonServer_ConfigSpec/Datasource_Component_Server (0.00s) --- PASS: TestCommonServer_ConfigSpec/Provisioner_Component_Server (0.00s) === RUN TestCommunicatorRPC ``` Test results running go-cty v1.13.1 ``` 2023/04/21 11:28:05 [WARN] Client is closing mux --- FAIL: TestCommonServer_ConfigSpec (0.00s) --- FAIL: TestCommonServer_ConfigSpec/Builder_Component_Server (0.00s) panic: ConfigSpec failed: gob: type cty.Type has no exported fields [recovered] panic: ConfigSpec failed: gob: type cty.Type has no exported fields goroutine 299 [running]: testing.tRunner.func1.2({0x10524fb60, 0x14000486530}) /usr/local/go/src/testing/testing.go:1389 +0x1c8 testing.tRunner.func1() /usr/local/go/src/testing/testing.go:1392 +0x384 panic({0x10524fb60, 0x14000486530}) /usr/local/go/src/runtime/panic.go:838 +0x204 github.com/hashicorp/packer-plugin-sdk/rpc.(*commonClient).ConfigSpec(0x14000475f08) /Users/dev/Development/packer-plugin-sdk/rpc/common.go:48 +0x24c github.com/hashicorp/packer-plugin-sdk/rpc.TestCommonServer_ConfigSpec.func1(0x140004e5860) /Users/dev/Development/packer-plugin-sdk/rpc/common_test.go:44 +0x10c testing.tRunner(0x140004e5860, 0x14000483dd0) /usr/local/go/src/testing/testing.go:1439 +0x110 created by testing.(*T).Run /usr/local/go/src/testing/testing.go:1486 +0x300 FAIL github.com/hashicorp/packer-plugin-sdk/rpc 0.796s ```
Configuration menu - View commit details
-
Copy full SHA for e5dc31b - Browse repository at this point
Copy the full SHA e5dc31bView commit details -
Add recover to fail test on panic
``` ~> go get github.com/zclconf/[email protected] ~> go test ./rpc/... -v -run=TestCommonServer === RUN TestCommonServer_ConfigSpec === RUN TestCommonServer_ConfigSpec/Builder_Component_Server common_test.go:75: Call to ConfigSpec for Builder Component Server panicked: ConfigSpec failed: gob: type cty.Type has no exported fields 2023/04/21 14:31:27 [WARN] Shutting down mux conn in Server 2023/04/21 14:31:27 [WARN] Client is closing mux === RUN TestCommonServer_ConfigSpec/Datasource_Component_Server common_test.go:75: Call to ConfigSpec for Datasource Component Server panicked: ConfigSpec failed: gob: type cty.Type has no exported fields 2023/04/21 14:31:27 [WARN] Shutting down mux conn in Server 2023/04/21 14:31:27 [WARN] Client is closing mux === RUN TestCommonServer_ConfigSpec/Provisioner_Component_Server common_test.go:75: Call to ConfigSpec for Provisioner Component Server panicked: ConfigSpec failed: gob: type cty.Type has no exported fields 2023/04/21 14:31:27 [WARN] Shutting down mux conn in Server 2023/04/21 14:31:27 [WARN] Client is closing mux --- FAIL: TestCommonServer_ConfigSpec (0.00s) --- FAIL: TestCommonServer_ConfigSpec/Builder_Component_Server (0.00s) --- FAIL: TestCommonServer_ConfigSpec/Datasource_Component_Server (0.00s) --- FAIL: TestCommonServer_ConfigSpec/Provisioner_Component_Server (0.00s) FAIL FAIL github.com/hashicorp/packer-plugin-sdk/rpc 0.278s FAIL ```
Configuration menu - View commit details
-
Copy full SHA for 21a1e5e - Browse repository at this point
Copy the full SHA 21a1e5eView commit details -
Configuration menu - View commit details
-
Copy full SHA for b08070c - Browse repository at this point
Copy the full SHA b08070cView commit details
Commits on Apr 27, 2023
-
communicator: don't set bastion cert if key is set
When attempting to set the bastion key/certificate for authenticating with the bastion, we generally fallback to the ones defined by the SSH configuration. However, if the bastion SSH key is set, and not the certificate, but the SSH connection's are, since the conditions are separate, we end-up in a situation where the bastion's SSH key uses the one from the config, and the certificate fall backs to the one from the SSH connection. This in turn fails, as the certificate's public key matches the private key from the SSH connection, and not the bastion's. To avoid a situation like this, we only fallback to the SSH connection's certificate if the bastion's SSH key isn't set.
Configuration menu - View commit details
-
Copy full SHA for a27f60a - Browse repository at this point
Copy the full SHA a27f60aView commit details
Commits on Apr 28, 2023
-
* Remove module cache
Configuration menu - View commit details
-
Copy full SHA for cb843aa - Browse repository at this point
Copy the full SHA cb843aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3028bde - Browse repository at this point
Copy the full SHA 3028bdeView commit details -
When trying to figure out the exact behaviour of the ssh communicator when copying directories, I found myself wondering what each log was conveying. To make it clearer what's happening on each step, we add some more logs during the copy steps, and make the `creating directory' log a bit more explicit, so we understand what's happening.
Configuration menu - View commit details
-
Copy full SHA for 097c924 - Browse repository at this point
Copy the full SHA 097c924View commit details
Commits on May 1, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 8331daf - Browse repository at this point
Copy the full SHA 8331dafView commit details
Commits on May 25, 2023
-
Fix menu boot command vnc key stroke (hashicorp#184)
* boot_command: add menu special key * Add menu special key * Add menu special key * vnc_driver: test menu key * vnc_driver: test menu key * Fix formatting generated with 1.20.3
Configuration menu - View commit details
-
Copy full SHA for 7c81952 - Browse repository at this point
Copy the full SHA 7c81952View commit details
Commits on Jun 15, 2023
-
Add compile time check for go-cty
In v1.11.0, the go-cty package dropped support for encoding/gob. Gob support is used by the SDK to serialize HCL2 object specs over the wire. If a plugin or Packer upgrades their version of zclconf/go-cty to one that does not contain Gob support the plugin will build but crash when trying to run a build on an HCL2 template. By adding this check, a consumer of the SDK will fail to compile if they are using an unsupported version of go-cty. This check is being added as a guard to prevent Packer SDK consumers from becoming out of sync with unsupported go-cty versions. ``` ~> go get github.com/hashicorp/go-cty v1.13.0 ~> make dev rpc/cty_encode.go:15:24 cannot use cty.Value{} (value of type cty.Value) as type gob.GobEncoder ```
Configuration menu - View commit details
-
Copy full SHA for 0c09c89 - Browse repository at this point
Copy the full SHA 0c09c89View commit details -
Configuration menu - View commit details
-
Copy full SHA for df99313 - Browse repository at this point
Copy the full SHA df99313View commit details
Commits on Jul 5, 2023
-
Replace gitub.com/zclconf/[email protected] with fork github.com/nywilken…
…/go-cty In an effort to provide Packer plugins access to the github.com/zclconf/go-cty enhancements, while still providing access to encoding/gob support the Packer team has forked the go-cty package under github.com/nywilken/go-cty. This is a temporary fork that will be removed once it is no longer needed. Refer to hashicorp#187
Configuration menu - View commit details
-
Copy full SHA for 2853bc0 - Browse repository at this point
Copy the full SHA 2853bc0View commit details -
Bump github.com/hashicorp/hcl/v2 to v2.16.2
This commit updates github.com/hashicorp/hcl/v2 to the last known release of HCL/v2 that does not rely on v1.13.0 of github.com/zclconf/go-cty.
Configuration menu - View commit details
-
Copy full SHA for 8c4e43c - Browse repository at this point
Copy the full SHA 8c4e43cView commit details -
``` ~> go fix ./... filelock/filelock.go: fixed buildtag multistep/commonsteps/iso_config_test.go: fixed buildtag packer/cache_config_unix.go: fixed buildtag packer/cache_config_unix_test.go: fixed buildtag packer/cache_config_windows.go: fixed buildtag packer/cache_config_windows_test.go: fixed buildtag pathing/config_file_unix.go: fixed buildtag pathing/config_file_unix_test.go: fixed buildtag pathing/config_file_windows.go: fixed buildtag pathing/config_file_windows_test.go: fixed buildtag sdk-internals/communicator/ssh/communicator_test.go: fixed buildtag template/parse_test.go: fixed buildtag ```
Configuration menu - View commit details
-
Copy full SHA for 5e4aae7 - Browse repository at this point
Copy the full SHA 5e4aae7View commit details -
Configuration menu - View commit details
-
Copy full SHA for af18c71 - Browse repository at this point
Copy the full SHA af18c71View commit details
Commits on Jul 6, 2023
-
Remove extra backticks from HTTP server documentation (hashicorp#191)
* Remove extra backticks from HTTP server documentation * $ make generate
Configuration menu - View commit details
-
Copy full SHA for 2a6d852 - Browse repository at this point
Copy the full SHA 2a6d852View commit details
Commits on Jul 14, 2023
-
[HPR-1190] Add
packer-sdc fix
command (hashicorp#190)* packer-sdc: Add fix sub-command Fix rewrites parts of the plugin codebase to address known issues or common workarounds used within plugins consuming the Packer plugin SDK. ``` ~> ./packer-sdc fix -check ../../../packer-plugin-tencentcloud Found the working directory /Users/wilken/Development/linux-dev/packer-plugin-tencentcloud gocty Unfixed! ``` * Update fix command This change is major refactor of the fix command, and it's underlying fixer interface. This change adds support for the `-diff` flag which displays the diff between the unfixed and fixed files, if available. Along with the refactor the ability to apply multiple fixes to the same file without potential write conflicts where previous changes were removed after reprocessing. * Add a scan function that returns a list of files to apply a fix on to provide flexibility in the future for collecting a list of files. * Replace cmp.Diff with github.com/pkg/diff for better file diffs * Return error when missing directory argument * Add error handling when trying to read any scanned files
Wilken Rivera authoredJul 14, 2023 Configuration menu - View commit details
-
Copy full SHA for 7d3a4b2 - Browse repository at this point
Copy the full SHA 7d3a4b2View commit details
Commits on Jul 18, 2023
-
Fix diff header for fix command
Old Output ``` ~> ./packer-sdc fix -diff ../../../packer --- /home/vagrant/Development/packer/go.mod +++ /home/vagrant/Development/packer/go.mod-fixed @@ -213,3 +213,5 @@ ) ``` New Output ``` ~> ./packer-sdc fix -diff ../../../packer --- /home/vagrant/Development/packer/go.mod +++ Fixed: /home/vagrant/Development/packer/go.mod @@ -213,3 +213,5 @@ ) ```
Configuration menu - View commit details
-
Copy full SHA for 2b9991b - Browse repository at this point
Copy the full SHA 2b9991bView commit details
Commits on Jul 28, 2023
-
Configuration menu - View commit details
-
Copy full SHA for f014f4e - Browse repository at this point
Copy the full SHA f014f4eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9115d64 - Browse repository at this point
Copy the full SHA 9115d64View commit details
Commits on Aug 1, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 7be7944 - Browse repository at this point
Copy the full SHA 7be7944View commit details -
go.mod: remove replace statement for go-cty
The way we install the SDK and its dependencies in plugins, using go install, is incompatible with replace statements. Therefore, we remove that statement from the go.mod, and leave the responsibility of including that replace to plugins that import the SDK.
Configuration menu - View commit details
-
Copy full SHA for f4e5599 - Browse repository at this point
Copy the full SHA f4e5599View commit details -
cmd: allow packer-sdc fix on the SDK
Before this commit, `packer-sdc fix' would only work on plugins that import the SDK, but we also need to make `packer-sdc fix' compatible with the SDK itself, so we add an extra check to packer-sdc so it doesn't ignore the SDK when applying the replace fix.
Configuration menu - View commit details
-
Copy full SHA for 1008a3b - Browse repository at this point
Copy the full SHA 1008a3bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 98985e1 - Browse repository at this point
Copy the full SHA 98985e1View commit details -
workflows: add packer-sdc fix to the test workflow
Since we remove the `replace' statement from the go.mod, tests will fail as the updated version of go-cty does not support gob, and some tests rely on that by default as we init RPC to work with gob-encoded payloads. To avoid this failure in CI, we add an extra step to the go-test workflow so that it amends the go.mod, tidies it to resolve missing sums, and continues with testing afterwards
Configuration menu - View commit details
-
Copy full SHA for d758176 - Browse repository at this point
Copy the full SHA d758176View commit details -
Configuration menu - View commit details
-
Copy full SHA for 57c8858 - Browse repository at this point
Copy the full SHA 57c8858View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c50987 - Browse repository at this point
Copy the full SHA 5c50987View commit details -
Configuration menu - View commit details
-
Copy full SHA for 28a0063 - Browse repository at this point
Copy the full SHA 28a0063View commit details -
Configuration menu - View commit details
-
Copy full SHA for 04cbbf4 - Browse repository at this point
Copy the full SHA 04cbbf4View commit details -
Bump Go module minimum version to 1.19
In go 1.19 changes to go fmt resulted in slightly different comment formatting for generated code. Bumping to Go 1.19 ensures that the correct version of Go tooling is used formatting the generated code.
Configuration menu - View commit details
-
Copy full SHA for 9be5b0f - Browse repository at this point
Copy the full SHA 9be5b0fView commit details -
Since the SDK in v0.5.0 contains a release statement in its go.mod, this makes it impossible to go install packer-sdc from a plugin. Since those plugins rely on their Makefile to do this, we cannot change them all at once, so we fixed the problem in the SDK code itself, and v0.5.0 is broken, so we retract it in this commit.
Configuration menu - View commit details
-
Copy full SHA for 4c19df0 - Browse repository at this point
Copy the full SHA 4c19df0View commit details -
workflows: improve replace check in go.mod
Since the latest comment introduces a retract statement, with a comment that contains `replace', the check failed, so we improve it to only consider `replace' if they're the first thing on a line.
Configuration menu - View commit details
-
Copy full SHA for b74d508 - Browse repository at this point
Copy the full SHA b74d508View commit details -
Wilken Rivera committed
Aug 1, 2023 Configuration menu - View commit details
-
Copy full SHA for 3a3e3a1 - Browse repository at this point
Copy the full SHA 3a3e3a1View commit details
Commits on Aug 24, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 4328d73 - Browse repository at this point
Copy the full SHA 4328d73View commit details -
acctest: add capability to add args to build
When running an acceptance test, we may need to invoke Packer with extra flags to ensure it behaves as expected. Therefore, we add this capability to the TestCase structure so it injects them verbatim in the command-line.
Configuration menu - View commit details
-
Copy full SHA for 84dd3ab - Browse repository at this point
Copy the full SHA 84dd3abView commit details
Commits on Aug 29, 2023
-
hcl2helper: preemptively panic on nil hcl spec
When the code from a plugin differs from its generated FlatConfig, we may encounter a nil object spec for the values in the output of a component. This translates as a nil dereferencing panic within the hcl library, caused by a config and tags being out-of-sync. To avoid users the hassle of delving in this code, and the hcl library's, we preemptively panic in the SDK code, with a message suggesting regenerating the code for the component's specs.
Configuration menu - View commit details
-
Copy full SHA for e244605 - Browse repository at this point
Copy the full SHA e244605View commit details
Commits on Oct 16, 2023
-
Update gopkg.in/yaml.v3 to address CVE-2022-28948
This change address the yaml.v3 advisory reported for v0.5.1 https://deps.dev/go/github.com%2Fhashicorp%2Fpacker-plugin-sdk/v0.5.1
Configuration menu - View commit details
-
Copy full SHA for 69dbb1e - Browse repository at this point
Copy the full SHA 69dbb1eView commit details -
Bump github.com/dylanmei/winrmtest to address CVE-2021-3538
The latest available release of github.com/dylanmei/winrmtest removes its dependency on github.com/satori/go.uuid, which was affected by CVE-2021-3539 https://deps.dev/advisory/osv/GO-2020-0018
Configuration menu - View commit details
-
Copy full SHA for 19d1c81 - Browse repository at this point
Copy the full SHA 19d1c81View commit details -
Bump golang.org/x/net to address CVE-2023-3978
Addresses vulnerability with improper rendering of text nodes in golang.org/x/net/html
Configuration menu - View commit details
-
Copy full SHA for 10cf15c - Browse repository at this point
Copy the full SHA 10cf15cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1840b5f - Browse repository at this point
Copy the full SHA 1840b5fView commit details -
This change was made to address a number of vulnerabilities reported by govulncheck in Go 1.19.13 Support for Go1.19 is removed with this change. Moving forward the minimum Go version will be bumped after a new Go minor version is released. ``` ~> govulncheck ./... Scanning your code and 599 packages across 99 dependent modules for known vulnerabilities... Vulnerability #1: GO-2023-2043 Improper handling of special tags within script contexts in html/template More info: https://pkg.go.dev/vuln/GO-2023-2043 Standard library Found in: html/[email protected] Fixed in: html/[email protected] Example traces found: #1: multistep/commonsteps/step_http_server.go:123:2: commonsteps.StepHTTPServer.Run calls http.Server.Serve, which eventually calls template.Template.Execute #2: multistep/commonsteps/step_http_server.go:123:2: commonsteps.StepHTTPServer.Run calls http.Server.Serve, which eventually calls template.Template.ExecuteTemplate Vulnerability #2: GO-2023-2041 Improper handling of HTML-like comments in script contexts in html/template More info: https://pkg.go.dev/vuln/GO-2023-2041 Standard library Found in: html/[email protected] Fixed in: html/[email protected] Example traces found: #1: multistep/commonsteps/step_http_server.go:123:2: commonsteps.StepHTTPServer.Run calls http.Server.Serve, which eventually calls template.Template.Execute #2: multistep/commonsteps/step_http_server.go:123:2: commonsteps.StepHTTPServer.Run calls http.Server.Serve, which eventually calls template.Template.ExecuteTemplate Your code is affected by 2 vulnerabilities from the Go standard library. ```
Configuration menu - View commit details
-
Copy full SHA for 7128c8a - Browse repository at this point
Copy the full SHA 7128c8aView commit details -
Configuration menu - View commit details
-
Copy full SHA for a68554d - Browse repository at this point
Copy the full SHA a68554dView commit details
Commits on Oct 20, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 85bbc31 - Browse repository at this point
Copy the full SHA 85bbc31View commit details -
Configuration menu - View commit details
-
Copy full SHA for a7f1f5c - Browse repository at this point
Copy the full SHA a7f1f5cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6961c20 - Browse repository at this point
Copy the full SHA 6961c20View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9e65ca1 - Browse repository at this point
Copy the full SHA 9e65ca1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d8c199 - Browse repository at this point
Copy the full SHA 4d8c199View commit details -
Configuration menu - View commit details
-
Copy full SHA for 530fc82 - Browse repository at this point
Copy the full SHA 530fc82View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3327058 - Browse repository at this point
Copy the full SHA 3327058View commit details
Commits on Oct 26, 2023
-
Configuration menu - View commit details
-
Copy full SHA for fe7beb7 - Browse repository at this point
Copy the full SHA fe7beb7View commit details -
Configuration menu - View commit details
-
Copy full SHA for c170d73 - Browse repository at this point
Copy the full SHA c170d73View commit details
Commits on Oct 27, 2023
-
Initial fix for underlying struct mis-match bug
Update cmd/packer-sdc/internal/mapstructure-to-hcl2/mapstructure-to-hcl2.go Co-authored-by: Lucas Bajolet <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4fb8273 - Browse repository at this point
Copy the full SHA 4fb8273View commit details
Commits on Nov 17, 2023
-
packer-sdc/struct-markdown: Allow packer-internal as project director…
…y for testing purposes This change is being made to allow the invocation of struct-markdown to work against the internal Packer testing repo. The purpose of the repo is to allow for automated testing against unreleased versions of the Packer SDK.
Configuration menu - View commit details
-
Copy full SHA for e599745 - Browse repository at this point
Copy the full SHA e599745View commit details
Commits on Nov 28, 2023
-
Wilken Rivera committed
Nov 28, 2023 Configuration menu - View commit details
-
Copy full SHA for eac3a5f - Browse repository at this point
Copy the full SHA eac3a5fView commit details -
* Remove helper script used for checking go mods * Remove helper script for testing mismatch struct changes
Wilken Rivera committedNov 28, 2023 Configuration menu - View commit details
-
Copy full SHA for 4362ef5 - Browse repository at this point
Copy the full SHA 4362ef5View commit details
Commits on Jan 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f9edec7 - Browse repository at this point
Copy the full SHA f9edec7View commit details
Commits on Mar 14, 2024
-
Ui: add format-string alternatives to functions
The say/error/ask methods on Ui only accept formatted strings, which is a bit cumbersome to do at callsite every time we need to print out something formatted with dynamic information. To reduce that cumbersomness, we add some convenience alternatives to the Ui implementations in the SDK, so they now expose Sayf, Askf and Errorf in addition to the rest.
Configuration menu - View commit details
-
Copy full SHA for d970fb9 - Browse repository at this point
Copy the full SHA d970fb9View commit details
Commits on Mar 21, 2024
-
Bump github.com/zclconf/go-cty from 1.10.0 to 1.14.4
Bumps [github.com/zclconf/go-cty](https://github.com/zclconf/go-cty) from 1.10.0 to 1.14.4. - [Release notes](https://github.com/zclconf/go-cty/releases) - [Changelog](https://github.com/zclconf/go-cty/blob/main/CHANGELOG.md) - [Commits](zclconf/go-cty@v1.10.0...v1.14.4) --- updated-dependencies: - dependency-name: github.com/zclconf/go-cty dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 514ab19 - Browse repository at this point
Copy the full SHA 514ab19View commit details
Commits on Mar 27, 2024
-
Bump github.com/hashicorp/hcl/v2 from 2.13.0 to 2.20.1
Bumps [github.com/hashicorp/hcl/v2](https://github.com/hashicorp/hcl) from 2.13.0 to 2.20.1. - [Release notes](https://github.com/hashicorp/hcl/releases) - [Changelog](https://github.com/hashicorp/hcl/blob/main/CHANGELOG.md) - [Commits](hashicorp/hcl@v2.13.0...v2.20.1) --- updated-dependencies: - dependency-name: github.com/hashicorp/hcl/v2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 97c2819 - Browse repository at this point
Copy the full SHA 97c2819View commit details
Commits on Apr 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b33ea9e - Browse repository at this point
Copy the full SHA b33ea9eView commit details -
version: introduce metadata to PluginVersion
As it stands now, plugin developers can only specify a version's core semver-compatible version, and a prerelease. In usage though, some plugins use metadata to add some extra context on the binary that was built, like the git commit, or the delta between the last release and the current HEAD from which a plugin was built. This, coupled with the 1.11.0 changes to plugin loading and version support, means that we cannot support such a workflow with the current code, as we will now start enforcing proper semver for plugins, so we are at risk of having plugins either not load, or lose information when releasing. Therefore as an attempt to address those issues, we are adding official support in the SDK for metadata in versions. That change introduces two new functions: `NewPluginVersion` and `NewRawVersion`. Both are intended as replacements for the now deprecated `InitializePluginVersion`.
Configuration menu - View commit details
-
Copy full SHA for 2a28d48 - Browse repository at this point
Copy the full SHA 2a28d48View commit details -
version: adapt FormatedVersion to use String
Since FormatedVersion was essentially the same thing as `String` with the extra GitCommit if defined, we change its implementation to rely on the code committed for String.
Configuration menu - View commit details
-
Copy full SHA for ddbda65 - Browse repository at this point
Copy the full SHA ddbda65View commit details -
version: limit core version to 3 segments
The go-version library we use for parsing versions from the plugin supports 4-segmented versions. This may not be ideal for us, as we want to limit the sprawling nature of plugin installations, which if we start accepting sub-patch version bumps, may become quite strange. The release workflows we offer as template does not take that into account, and I'm not sure our docs do as well. Since there are many unknowns here, 4-segmented version numbers are not semver-valid, and we do not know how tooling will react, we ultimately decide not to allow those in the SDK. If a developer tries to define a 4-segmented version number, the plugin will crash instantly, at least giving users a message quickly that the version number is invalid, and that they need to limit themselves to a 3-segment version number.
Configuration menu - View commit details
-
Copy full SHA for 92242be - Browse repository at this point
Copy the full SHA 92242beView commit details
Commits on Apr 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 38ffab0 - Browse repository at this point
Copy the full SHA 38ffab0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b2d07c - Browse repository at this point
Copy the full SHA 3b2d07cView commit details
Commits on Apr 19, 2024
-
Merge pull request #22 from inloco/dependabot/go_modules/github.com/h…
…ashicorp/hcl/v2-2.20.1 Bump github.com/hashicorp/hcl/v2 from 2.13.0 to 2.20.1
Configuration menu - View commit details
-
Copy full SHA for 57d8d75 - Browse repository at this point
Copy the full SHA 57d8d75View commit details -
Merge branch 'main' into dependabot/go_modules/github.com/zclconf/go-…
…cty-1.14.4 Signed-off-by: RodrigoCMoraes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d5624d6 - Browse repository at this point
Copy the full SHA d5624d6View commit details -
Merge pull request #21 from inloco/dependabot/go_modules/github.com/z…
…clconf/go-cty-1.14.4 Bump github.com/zclconf/go-cty from 1.10.0 to 1.14.4
Configuration menu - View commit details
-
Copy full SHA for da515fe - Browse repository at this point
Copy the full SHA da515feView commit details -
Configuration menu - View commit details
-
Copy full SHA for 779b8c1 - Browse repository at this point
Copy the full SHA 779b8c1View commit details -
Merge pull request #24 from inloco/upgrade-dependencies
upgrade: fix security issues
Configuration menu - View commit details
-
Copy full SHA for 65072c8 - Browse repository at this point
Copy the full SHA 65072c8View commit details
Commits on Apr 24, 2024
-
version: don't remake semVer if not nil
The SemVer function of a PluginVersion returns the version.Version instance bound to the PluginVersion. In former implementations of the structure, this could be nil in some cases, as only the version components were being registered, and the code would make sure that they were a valid semver version. Recent changes reorganised this code by making the semVer attribute always present, so while theoretically it could be nil, this would indicate a manipulation error. Therefore, we don't need to perform this check to re-create the semVer attribute, and by that change we fix the underlying issue that made semVer drop its pre-release/metadata parts when doing so.
Configuration menu - View commit details
-
Copy full SHA for 6345039 - Browse repository at this point
Copy the full SHA 6345039View commit details
Commits on Apr 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a4700a2 - Browse repository at this point
Copy the full SHA a4700a2View commit details
Commits on May 3, 2024
-
Merge branch 'main' of github.com:hashicorp/packer-plugin-sdk into se…
…curity/upgrade-dependencies
Configuration menu - View commit details
-
Copy full SHA for 57155da - Browse repository at this point
Copy the full SHA 57155daView commit details
Commits on May 7, 2024
-
Bump actions/checkout to address Node.js 16 deprecation issues (hashi…
Wilken Rivera authoredMay 7, 2024 Configuration menu - View commit details
-
Copy full SHA for bb4ca5b - Browse repository at this point
Copy the full SHA bb4ca5bView commit details -
Bump actions/setup-go to address Node.js 16 deprecation issues (hashi…
Wilken Rivera authoredMay 7, 2024 Configuration menu - View commit details
-
Copy full SHA for 11fc3c9 - Browse repository at this point
Copy the full SHA 11fc3c9View commit details -
Bump goreleaser action to address Node.js 16 deprecation issues (hash…
Wilken Rivera authoredMay 7, 2024 Configuration menu - View commit details
-
Copy full SHA for 61d973c - Browse repository at this point
Copy the full SHA 61d973cView commit details -
Merge branch 'main' of github.com:hashicorp/packer-plugin-sdk into se…
…curity/upgrade-dependencies
Configuration menu - View commit details
-
Copy full SHA for 11d9aff - Browse repository at this point
Copy the full SHA 11d9affView commit details -
Configuration menu - View commit details
-
Copy full SHA for bfa2111 - Browse repository at this point
Copy the full SHA bfa2111View commit details -
Configuration menu - View commit details
-
Copy full SHA for cb89d15 - Browse repository at this point
Copy the full SHA cb89d15View commit details -
Merge pull request #26 from inloco/security/upgrade-dependencies
Security/upgrade dependencies
Configuration menu - View commit details
-
Copy full SHA for 28d5abf - Browse repository at this point
Copy the full SHA 28d5abfView commit details
Commits on May 9, 2024
-
panic: interface conversion: interface {} is big.Float, not *big.Float
Configuration menu - View commit details
-
Copy full SHA for ea92fa9 - Browse repository at this point
Copy the full SHA ea92fa9View commit details -
Merge pull request #29 from inloco/fix/ci-macami-error
fix: ci macami error
Configuration menu - View commit details
-
Copy full SHA for 46ffb1f - Browse repository at this point
Copy the full SHA 46ffb1fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e657c8 - Browse repository at this point
Copy the full SHA 6e657c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0873677 - Browse repository at this point
Copy the full SHA 0873677View commit details -
Merge pull request #30 from inloco/fix/missing-method-GobEncode
fix: missing method
Configuration menu - View commit details
-
Copy full SHA for 1a311f0 - Browse repository at this point
Copy the full SHA 1a311f0View commit details
Commits on May 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f46ece6 - Browse repository at this point
Copy the full SHA f46ece6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0cc2aa5 - Browse repository at this point
Copy the full SHA 0cc2aa5View commit details -
Configuration menu - View commit details
-
Copy full SHA for dae6c9d - Browse repository at this point
Copy the full SHA dae6c9dView commit details