Commit Graph
108 Commits
Author SHA1 Message Date
Tanmay Jain 014f8d1bbe FEAT(provenance): Add SLSA provenance attestation and verification (#13667)
* feat(provenance): add SLSA provenance and attestation signing libraries

Add internal/provenance for deriving in-toto subjects from Packer
artifacts, building SLSA Provenance v1 predicates, wrapping in-toto
statements, and best-effort git/CI source detection.

Add internal/attestation for DSSE envelope handling and a pluggable
Signer/Verifier backend supporting key (local PEM), kms (aws/gcp/
azure/hashivault), and keyless (Sigstore Fulcio) modes, plus Sigstore
bundle handling and DSSE/policy verification.

Add the supporting module dependencies in go.mod/go.sum.

* feat(provenance): add provenance post-processor

Add the opt-in "provenance" post-processor that runs after a build,
derives subjects from the artifact, emits DSSE-wrapped SLSA provenance
(and optional SBOM) attestations, signs them via the configured
signing backend, and writes sidecar files (including *.sigstore.json
bundles in keyless mode). Register it in the core post-processor set.

The provenance enable flag is a tri-state so an unset value stays
enabled through HCL2 decoding instead of being silently disabled.

* feat(provenance): add verify-attestation command

Add "packer verify-attestation" to verify signed DSSE attestations
against key, KMS, and keyless policy inputs, including optional
Sigstore bundle checks for Rekor and timestamp evidence. Register the
command in the CLI.

* docs(provenance): add reference CI workflows and changelog

Add reference GitHub Actions workflows under examples/ci for SLSA L2
keyless signing and L3-compatible delegated signing

* fix: lint and tests

* Added docs for Provenance PostProcessor
2026-07-21 13:40:42 +05:30
Kerim Satirli bc6f1e36e6 Fixes typos in docs (#11322)
* fixes typos in base docs

* fixes typos in example code

* fixes typos in website docs

* fixes link to Terraform provider

* fixes typo in function name
2021-10-11 10:19:49 +02:00
Adrien Delorme 7732f7998c Add http_content func to serve variables from HTTP @ preseed (#10801)
This imports hashicorp/packer-plugin-sdk#43

* code generate things
* update docs
* update guides
* update examples

We want to add a new guide.
2021-03-23 12:31:13 +01:00
Megan Marsh 88e03280b6 Extract plugin-specific examples to plugin directories (#10228)
* move alicloud examples from common example directory to alicloud builder

* move amazon examples to amazon builder dir

* move examples into ansible provisioner directory

* move azure examples to builder dir

* move hyperone examples into builder directory

* move jdcloud builder examples into builder directory

* move tencent cloud examples into the builder directory

* move ucloud examples into ucloud builder directory
2020-11-09 12:17:41 +01:00
Adrien Delorme 5a3526a669 Add vmware vmx example 2020-10-21 15:55:54 +02:00
Ricardo Rosales 809f38be3a [azure-chroot] Updating parameter exlude_from_latest to exclude_from_latest (#10034) 2020-10-07 11:08:33 +02:00
Jean-Francois Panisset 6f8a909cef Remove more examples of deprecated iso_checksum_type in docs
Follow up to remove_iso_checksum_type

Signed-off-by: Jean-Francois Panisset <[email protected]>
2020-08-11 17:29:21 -07:00
Brad Ackerman f824cbb79d Don't deprovision in chroot. 2020-08-08 18:44:39 -07:00
Brad Ackerman 67479f0b23 Add FreeBSD example for azure-chroot. 2020-08-08 18:06:05 -07:00
Megan Marsh bba97b8f26 Merge pull request #9644 from satyamuralidhar/patch-1
nginx server creation using packer
2020-07-24 10:23:04 -07:00
satya ac45bc6029 Update packages.sh 2020-07-24 17:10:11 +05:30
Adrien Delorme 591cbd9290 Update examples/amazon/nginx_server/nginx.json 2020-07-24 13:16:23 +02:00
satya d029d95ba2 Update packages.sh (#9643)
check apache version before end
2020-07-24 13:15:33 +02:00
satyamuralidhar 4816b55967 nginx server 2020-07-24 10:27:03 +05:30
Megan Marsh 242e8534d5 Merge pull request #9609 from satyamuralidhar/patch-1
Here iam written a packer sample script for apache server
2020-07-23 11:39:15 -07:00
Megan Marsh b88dede234 moved example files 2020-07-23 11:28:55 -07:00
satyamuralidhar d5bfe0b869 new chage 2020-07-23 11:23:16 +05:30
satya 47bc5069ab Delete apache_server 2020-07-23 11:14:55 +05:30
satya 740773d321 Create apache_server 2020-07-23 11:11:55 +05:30
Adrien Delorme 1b91252b23 add alpine esxi example 2020-07-20 11:00:21 +02:00
Adrien Delorme 81f7fd6955 better timing 2020-07-20 11:00:21 +02:00
Adrien Delorme 989dd0a84e almost working 2020-07-20 11:00:21 +02:00
Adrien Delorme 2664e72682 alpine: move floppy file to general folder 2020-07-20 11:00:21 +02:00
Adrien Delorme 918696c07a Update alpine-setup.sh 2020-07-20 11:00:20 +02:00
Adrien Delorme cd0f72a7b6 alpine example: restart ssh server instead of rebooting 2020-07-20 11:00:19 +02:00
Adrien Delorme 77411107c2 Update variables.alpine.pkr.hcl 2020-07-20 11:00:18 +02:00
Adrien Delorme 715c6d3a86 add alpine example for virtualbox-iso 2020-07-20 11:00:17 +02:00
Adrien Delorme c2b7f1bf80 move "ubuntu" examples to "linux" 2020-07-20 11:00:16 +02:00
satya b68b65e960 Create README.Md 2020-07-18 20:52:40 +05:30
satya 62aac351b8 Create packages.sh 2020-07-18 20:52:00 +05:30