Commit Graph
19001 Commits
Author SHA1 Message Date
Hari Om bbd9429bdb feat: enhance Packer release download process with improved error handling and verification 2026-06-04 13:33:56 +05:30
Hari Om eba48ba9d2 feat: add large SBOM generation configuration and enhance encoder settings for CycloneDX and SPDX formats 2026-05-29 16:47:42 +05:30
Hari Om 31dc693589 feat: add validation for --exclude pattern in SBOM generation command 2026-05-21 15:04:04 +05:30
Hari Om fc038d32e3 feat: enforce required auto_generate field and refactor Packer release download logic 2026-05-19 18:34:44 +05:30
Hari Om 3ec8bb8811 feat: update AMI name and enhance scanner upload process for improved efficiency 2026-05-19 09:53:06 +05:30
Hari Om 288cecaf66 feat: refactor Packer release download and upload logic for improved handling 2026-05-15 15:52:24 +05:30
Hari Om 7fe10c9831 feat: enhance health check and packer binary handling in SBOM case matrix script 2026-05-15 13:17:47 +05:30
Hari Om 6b02361e4c Add SBOM generation templates and update scripts
- Introduced multiple Packer templates for generating SBOMs on various platforms including Amazon Linux, FreeBSD, RHEL, and Windows.
- Added Docker templates for Linux with both legacy and no-exec styles.
- Implemented a script to run SBOM case matrix tests, ensuring templates are executable and logging results.
- Updated .gitignore to include necessary files and directories.
- Enhanced existing Windows templates to support legacy execution styles.
2026-05-15 13:05:45 +05:30
Hari Om d159f5ad53 feat: update .gitignore to include HCL and JSON files 2026-05-15 11:43:05 +05:30
Hari Om 0721996035 feat: update changelog for 1.15.4 with deprecations and improvements for SBOM generation 2026-05-15 11:42:18 +05:30
Hari Om 00d8e27bef feat: add local release server script and update download logic for Packer binaries 2026-05-15 11:31:38 +05:30
Hari OmandCopilot 9633ab7fc8 feat: implement Packer release download and verification for SBOM generation
Co-authored-by: Copilot <[email protected]>
2026-05-14 15:22:11 +05:30
Hari OmandCopilot 6ce4159a2a feat: remove Syft binary handling and streamline remote scanner preparation
Co-authored-by: Copilot <[email protected]>
2026-05-14 15:03:39 +05:30
Hari OmandCopilot 661560c15d feat: remove cross-compilation logic for Packer binary and streamline download process
Co-authored-by: Copilot <[email protected]>
2026-05-14 14:53:45 +05:30
Hari OmandCopilot 0c03085614 feat: restrict execute_command interpolation data to explicit scanner keys and add SHA256 checksum validation tests
Co-authored-by: Copilot <[email protected]>
2026-05-14 14:37:12 +05:30
Hari OmandCopilot fc5d02fdc1 feat: add support for --exclude and --scope flags in SBOM generation command
Co-authored-by: Copilot <[email protected]>
2026-05-14 14:31:05 +05:30
Hari OmandCopilot 31af13a612 feat: enhance error handling and validation for SHA256 checksums in HCP SBOM provisioner
Co-authored-by: Copilot <[email protected]>
2026-05-14 14:13:39 +05:30
Hari OmandCopilot 6dfe4bfdbd feat: implement scanner command normalization and add tests for backward compatibility
Co-authored-by: Copilot <[email protected]>
2026-05-14 12:45:04 +05:30
Hari Om c4e311c8ca docs: update hcp-sbom provisioner documentation to reflect deprecation of scanner_url and scanner_checksum options 2026-05-08 12:41:51 +05:30
Hari OmandCopilot 4ee664a17c Refactor FlatConfig structure and update tests
- Changed `AutoGenerate` field in `FlatConfig` from required to optional.
- Added `ScannerArgs` field to `FlatConfig`.
- Updated HCL2Spec to reflect changes in `FlatConfig`.
- Modified test cases in `provisioner_test.go` to accommodate changes in `AutoGenerate` and `ScannerArgs`.
- Updated `ExecuteCommand` in tests to use the new command format.
- Removed unused `syft_dependency.go` file as it is no longer necessary.

Co-authored-by: Copilot <[email protected]>
2026-05-08 12:41:40 +05:30
Hari Om cc75d71745 feat: add SBOM generation command and integrate Syft SDK for SBOM creation 2026-05-05 16:53:53 +05:30
Tanmay Jain 342fc1c554 Merge pull request #13625 from hashicorp/cut-release-1.15.3
version: cut release v1.15.3
2026-04-27 14:34:55 +05:30
Tanmay JainandCopilot 08fe3137c6 version: cut release v1.15.3
Co-authored-by: Copilot <[email protected]>
2026-04-27 14:28:47 +05:30
Tanmay Jain f4116306f8 Merge pull request #13624 from hashicorp/bucket-fix
Skips bucket update when metadata matches current state
2026-04-27 14:20:21 +05:30
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