Commit Graph
18977 Commits
Author SHA1 Message Date
Tanmay Jain 072dfdee9e Skips bucket update when metadata matches current state
Prevents unnecessary update operations by checking if the
bucket's description and labels already match the requested
values before issuing an update.

Improves efficiency and avoids redundant API calls.
2026-04-27 14:07:59 +05:30
Hari 48f5e6becc fix(deps): update github.com/Azure/go-ntlmssp to v0.1.1 (#13622) 2026-04-24 13:15:53 +05:30
dependabot[bot] 68a5acd3eb build(deps): bump github.com/Azure/go-ntlmssp (#13620)
Bumps [github.com/Azure/go-ntlmssp](https://github.com/Azure/go-ntlmssp) from 0.0.0-20200615164410-66371956d46c to 0.1.1.
- [Release notes](https://github.com/Azure/go-ntlmssp/releases)
- [Commits](https://github.com/Azure/go-ntlmssp/commits/v0.1.1)

---
updated-dependencies:
- dependency-name: github.com/Azure/go-ntlmssp
  dependency-version: 0.1.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-24 12:44:55 +05:30
HariandCopilot 9ca74f740b Bump version to 1.15.2 and update changelog for release (#13618)
* Bump version to 1.15.2 and update changelog for release

* Cleanup changelog by removing outdated entries and sensitive data ref… (#13619)

* Cleanup changelog by removing outdated entries and sensitive data references

* Clarify provisioner behavior in changelog to improve understanding of lifecycle enforcement

* Update changelog to clarify provisioner lifecycle enforcement and remove outdated bug fix entry

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
2026-04-24 12:13:21 +05:30
Hari 6a8612cedd Update error message in TestSourceNotExisting for clarity (#13616) 2026-04-23 16:44:36 +05:30
Tanmay Jain 627c9f1d35 Merge pull request #13615 from hashicorp/go-fix
Update Go version and refresh dependencies
2026-04-21 11:44:16 +05:30
Tanmay Jain c45722b902 Update Go version and refresh dependencies
Aligns project with Go 1.25.9 and updates several dependencies
to incorporate bug fixes, security enhancements, and improved
compatibility across packages.

Ensures continued stability and support for the latest upstream
features by tracking current releases.
2026-04-21 11:30:06 +05:30
Tanmay Jain fae5ba683c Merge pull request #13614 from hashicorp/go-update-1.25.9
Bumps Go version to 1.25.9 for compatibility
2026-04-21 11:13:04 +05:30
Tanmay Jain 206063490f Bumps Go version to 1.25.9 for compatibility 2026-04-21 11:08:11 +05:30
HariandHari Om eee3805c06 Feature/enforced provisioner (#13591)
* added the parser for the enforced block

* Enhance enforced provisioner parsing to support HCL and JSON formats

- Updated ParseProvisionerBlocks to handle both HCL and JSON syntax, including legacy JSON format.

- Added comprehensive test cases for JSON provisioner parsing.

- Improved ExtractBuildProvisionerHCL to merge inline commands from shell provisioners.

- Enhanced logging for enforced block operations in HCP Packer.

* Remove PublishEnforcedBlocks function from Bucket struct

* Remove ExtractBuildProvisionerHCL function and unused imports

* Reverted the version upgrade

* Added the internal-sdk for the enforcedProvsioner api changes

* Enhance enforced provisioner handling and error reporting

- Update error handling in FetchEnforcedBlocks to return detailed errors instead of warnings.
- Modify GetCoreBuildProvisionerFromBlock to accept build name for overrides.
- Add tests for FetchEnforcedBlocks to ensure correct behavior and error handling.
- Implement diagnostics for unsupported legacy JSON templates.

* Implement enforced provisioner parsing and handling

- Introduced a new package `enforcedparser` to handle parsing of enforced provisioner blocks from HCL and JSON formats.

- Refactored existing code to utilize the new `ParseProvisionerBlocks` function from the `enforcedparser` package.

- Updated `GetCoreBuildProvisionerFromEnforcedBlock` method to convert enforced provisioner blocks into core build provisioners.

- Enhanced error handling and logging during the parsing process.

- Added tests for the new parsing functionality and ensured existing tests were updated to reflect changes.

- Modified `InjectEnforcedProvisioners` method in JSON registry to utilize the new parsing logic.

* Add test case for -skip-enforcement flag in BuildArgs

* Refactor sensitive variable handling in provisioners and add related tests

* Refactor enforced provisioner handling: remove internal parser, update tests, and streamline API interactions

* Enhance provisioner block parsing: add error handling for invalid combinations and expand test coverage

* Remove internal SDK replacement for enforced block types in go.mod

* Update dependencies in go.mod and go.sum: bump hcp-sdk-go and packer-plugin-sdk versions, adjust syft version, and update OpenTelemetry packages

* Update hcp-sdk-go dependency to v0.172.0 in go.mod and go.sum

* Fix formatting in TestBuildCommand_ParseArgs and add newline at end of json_enforced_test.go

* Refactor testJSONRegistryWithBuilds: remove environment variable setup and streamline registry initialization

* Rename injected variable for clarity in InjectEnforcedProvisioners function

---------

Co-authored-by: Hari Om <[email protected]>
2026-04-17 14:17:28 +05:30
Hari ea4bb3d39a Merge pull request #13610 from hashicorp/vulnerablity-fixes
Update dependencies: bump cloud.google.com/go/auth to v0.18.2, cloud.…
2026-04-17 12:05:01 +05:30
Hari Om 8a4139f5bd Update dependencies: bump cloud.google.com/go/auth to v0.18.2, cloud.google.com/go/storage to v1.61.3, and aws-sdk-go-v2 packages to latest versions; includes various other dependency updates for improved stability and performance. 2026-04-17 11:44:35 +05:30
Hari 1ac5804ecb Merge pull request #13606 from hashicorp/dependabot/go_modules/packer_test/common/plugin_tester/go.opentelemetry.io/otel/sdk-1.43.0
build(deps): bump go.opentelemetry.io/otel/sdk from 1.41.0 to 1.43.0 in /packer_test/common/plugin_tester
2026-04-17 11:35:27 +05:30
Hari df9f5b14e4 Merge pull request #13594 from hashicorp/dependabot/go_modules/packer_test/common/plugin_tester/github.com/go-jose/go-jose/v4-4.1.4
build(deps): bump github.com/go-jose/go-jose/v4 from 4.1.3 to 4.1.4 in /packer_test/common/plugin_tester
2026-04-17 11:21:54 +05:30
dependabot[bot] 0861349e00 build(deps): bump go.opentelemetry.io/otel/sdk
Bumps [go.opentelemetry.io/otel/sdk](https://github.com/open-telemetry/opentelemetry-go) from 1.41.0 to 1.43.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.41.0...v1.43.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/sdk
  dependency-version: 1.43.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-04-08 21:07:48 +00:00
dependabot[bot] e8904e8210 build(deps): bump github.com/go-jose/go-jose/v4
Bumps [github.com/go-jose/go-jose/v4](https://github.com/go-jose/go-jose) from 4.1.3 to 4.1.4.
- [Release notes](https://github.com/go-jose/go-jose/releases)
- [Commits](https://github.com/go-jose/go-jose/compare/v4.1.3...v4.1.4)

---
updated-dependencies:
- dependency-name: github.com/go-jose/go-jose/v4
  dependency-version: 4.1.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-04-03 03:44:58 +00:00
Anurag Sharma 33740b7c61 cut release v1.15.1 (#13588) v1.15.1 2026-03-26 16:44:34 +05:30
Tanmay Jain a664835382 Merge pull request #13582 from hashicorp/multi-line-secrets
BUG: Scrub multiline sensitive values from build output
2026-03-26 15:00:36 +05:30
Tanmay Jain 14c7977929 Refactors sensitive multiline test to use OS-specific fixtures 2026-03-26 12:25:55 +05:30
Tanmay Jain 97952ced1f BUG: Scrub multiline sensitive values from build output 2026-03-26 12:04:48 +05:30
Anurag Sharma c1aac01642 bump syft to v1.42.3 (#13581)
* bump syft to v1.42.3
fix GO-2026-4809

* bump sdk to v0.6.7

* update go version
2026-03-26 11:05:04 +05:30
Anurag Sharma 6e0db5c792 fix: exclude syft dependency import on NetBSD, OpenBSD, and Solaris (#13578)
The syft library has a transitive dependency on containerd, which includes
platform-specific code that doesn't compile on NetBSD, OpenBSD, and Solaris.

This change adds build constraints to exclude the syft import on these
platforms. The hcp-sbom provisioner functionality is unaffected since it
downloads and executes pre-built syft binaries at runtime rather than
using the Go library directly. The import exists solely for dependency
tracking in license and security scanning tools.
2026-03-26 10:09:45 +05:30
Anurag Sharma 0c9d2c689c docs: remove docs validation from packer (#13577)
* don't update markdown files anymore
This needs to be done in web-unified-docs repo

* add contriubting guide for docs
2026-03-25 21:29:13 +05:30
Anurag Sharma ea25de1315 feat: native sbom generation for hcp (#13566)
* add configuration fields to SBOMInternalProvisioner

* add os detection

* move implementation to hcp-sbom

* upload scanner binary and execute

* use latest syft version always

* reduce duplicate code

* rename config fields appropriately

* default to cyclonedx

* add syft dependency

* add support for elevated user for windows

* add retry for download

* add syft dependency
Updates go version

* optimization for windows

* improve docs

* update config usage rules

* add unit tests

* update golang version, fix linter issues

* refactor and improvements

* simplify few lines

* refactor retry for scanner download

* resolved conflicts

* resolve conflicts from main

* stick to syft v1 for compatibility

* fix lint issues

* stricter version check for syft

* fix version eg

* update go version to 1.25.7

* go mod changes
2026-03-25 11:33:00 +05:30
Tanmay Jain d897421b23 Adds grouped and scheduled updates for GitHub Actions (#13575)
Configures automated dependency updates for GitHub Actions workflows,
groups all actions in a single pull request, schedules updates monthly,
and ignores major version bumps to reduce noise and streamline updates.
2026-03-24 12:36:50 +05:30
Tanmay Jain 8d9a4cfdfc Merge pull request #13565 from hashicorp/dependabot/go_modules/github.com/hashicorp/packer-plugin-sdk-0.6.6
build(deps): bump github.com/hashicorp/packer-plugin-sdk from 0.6.4 to 0.6.6
2026-03-24 12:19:22 +05:30
Tanmay Jain 897d4a57d7 Merge pull request #13572 from hashicorp/otel-update
Updates OpenTelemetry dependencies to v1.41.0
2026-03-20 12:42:10 +05:30
Tanmay Jain 2f2704c84d Updates OpenTelemetry dependencies to v1.41.0
Ensures compatibility with the latest OpenTelemetry libraries,
potentially addressing security and stability improvements.
Prepares codebase for new features and bug fixes from upstream.
2026-03-20 12:36:37 +05:30
dependabot[bot] a13d7cedf9 build(deps): bump github.com/hashicorp/packer-plugin-sdk
Bumps [github.com/hashicorp/packer-plugin-sdk](https://github.com/hashicorp/packer-plugin-sdk) from 0.6.4 to 0.6.6.
- [Release notes](https://github.com/hashicorp/packer-plugin-sdk/releases)
- [Changelog](https://github.com/hashicorp/packer-plugin-sdk/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/packer-plugin-sdk/compare/v0.6.4...v0.6.6)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/packer-plugin-sdk
  dependency-version: 0.6.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-03-20 07:00:37 +00:00
Tanmay Jain b7c9df6d70 Merge pull request #13560 from hashicorp/dependabot/go_modules/github.com/hashicorp/hcp-sdk-go-0.167.0
build(deps): bump github.com/hashicorp/hcp-sdk-go from 0.136.0 to 0.167.0
2026-03-20 12:29:07 +05:30
dependabot[bot] 4a41160643 build(deps): bump github.com/hashicorp/hcp-sdk-go
Bumps [github.com/hashicorp/hcp-sdk-go](https://github.com/hashicorp/hcp-sdk-go) from 0.136.0 to 0.167.0.
- [Release notes](https://github.com/hashicorp/hcp-sdk-go/releases)
- [Changelog](https://github.com/hashicorp/hcp-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/hcp-sdk-go/compare/v0.136.0...v0.167.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/hcp-sdk-go
  dependency-version: 0.167.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-03-20 06:53:17 +00:00
Tanmay Jain 29b4bf24b2 Merge pull request #13570 from hashicorp/mod-update
Upgrade go-git to v5.17.0 and grpc to 1.79.3
2026-03-20 12:01:11 +05:30
Tanmay Jain a96954deaf Upgrade go-git to v5.17.0 and grpc to 1.79.3 2026-03-20 11:44:48 +05:30
Tanmay Jain e29c0afb8d Merge pull request #13564 from hashicorp/vuln-fix
Updates circl dependency to v1.6.3
2026-03-11 12:53:25 +05:30
Tanmay Jain 6210b0a4ce Updates circl dependency to v1.6.3
Brings in latest upstream improvements and bug fixes from circl.
Helps maintain compatibility and security with indirect dependencies.
2026-03-11 12:49:56 +05:30
Blake Ryder 9faf685cc7 Merge pull request #13563 from hashicorp/chore/packer-license-pr-2026-03-11
Update LICENSE
2026-03-11 12:07:13 +05:30
creatorHead e4108562bc Update LICENSE 2026-03-11 11:50:07 +05:30
Karthik P 2c5d23b26a Merge pull request #13561 from hashicorp/karthik/go-git/upgrade 2026-02-19 11:04:57 +05:30
kp2099 d7abe43ccc go-git package upgrade 2026-02-17 20:03:11 +05:30
Tanmay Jain ef9c2e65f6 Merge pull request #13558 from hashicorp/prepare-1.15.1
version: prepare dev v1.15.1
2026-02-04 13:10:49 +05:30
Tanmay Jain 708f748911 version: prepare dev v1.15.1 2026-02-04 13:07:19 +05:30
Tanmay Jain 87a51e9ad8 Merge pull request #13557 from hashicorp/cut-release-1.15.0
version: cut release v1.15.0
v1.15.0
2026-02-04 11:32:24 +05:30
Tanmay Jain 17bc81ea6c version: cut release v1.15.0 2026-02-04 10:56:10 +05:30
Tanmay Jain 41d5e9afa6 Merge pull request #13553 from hashicorp/go-update
Updates Go version to 1.24.12
2026-01-29 22:24:22 +05:30
Tanmay Jain 5fc98d9e4e Updates Go version to 1.24.12 2026-01-28 12:14:53 +05:30
Karthik P 918ecd4af5 Merge pull request #13442 from hashicorp/anshul/docker_img_official_plugin
removing the vmware and vshpehere from packer's docker full image
2026-01-28 10:04:33 +05:30
Karthik P 74cc342e44 Merge pull request #13539 from MBradbury/powershell-test-lastexitcode
Check LASTEXITCODE is set before checking its value
2026-01-28 09:59:46 +05:30
Tanmay Jain e4e52c0711 Merge pull request #13544 from hashicorp/compliance/update-headers-batch-3
[IND-4226] [COMPLIANCE] Update Copyright Headers (Batch 3 of 5)
2025-12-22 15:35:45 +05:30
Tanmay Jain 46b216b203 Merge pull request #13545 from hashicorp/compliance/update-headers-batch-2
[IND-4226] [COMPLIANCE] Update Copyright Headers (Batch 2 of 5)
2025-12-22 15:35:05 +05:30
Tanmay Jain b4d9f1961a Merge pull request #13543 from hashicorp/compliance/update-headers-batch-1
[IND-4226] [COMPLIANCE] Update Copyright Headers (Batch 1 of 5)
2025-12-22 15:34:55 +05:30