mirror of https://github.com/hashicorp/packer
dependabot/go_modules/packer_test/common/plugin_tester/go.opentelemetry.io/otel/sdk-1.43.0
dependabot/go_modules/github.com/hashicorp/hcp-sdk-go-0.171.0
dependabot/go_modules/packer_test/common/plugin_tester/github.com/go-jose/go-jose/v4-4.1.4
dependabot/github_actions/actions-260feba22b
release/1.15.x
backport-changes
main
backport/dependabot/go_modules/github.com/hashicorp/hcp-sdk-go-0.167.0/reliably-driven-duckling
feature/enforcedProvisioner
multi-line-secrets
syft-vulnfix
build-fix
dependabot-update
otel-update
mod-update
chore/packer-license-pr-2026-03-11
karthik/go-git/upgrade
backport/prepare-1.15.1/loosely-flowing-chamois
cut-release-1.15.0
go-update
crypto-update
channel-assignment
compliance/update-headers-batch-2
compliance/update-headers-batch-1
compliance/update-headers-batch-3
compliance/update-headers
dependabot/go_modules/packer_test/common/plugin_tester/golang.org/x/crypto-0.45.0
leah/feat/add-comments-to-docs
release/1.14.x
jenkins-metadata
bitbucket_metadata
karthik/enforced_provisioners_poc
tanmay-hc-patch-1
karthik/fix/at/datasource/http
testbackport
backport/bump-backport/reliably-awake-polliwog
stable-website
backport/karthik/prep_version_1.14.3/correctly-saved-goldfish
karthik/prep_version_1.14.3
karthik/release_1.14.2
karthik/update/changelog_v1.14.2
karthik/version_prep_1.14.2
karthik/dependency/upgrade/packer-plugin-sdk
karthik/fix/powershell
leah/feat/upgrade-node
fix_cert_docs
karthik/fix/aceeptance_test.yml
anshul/bump_dev_version
anshul/docker_img_official_plugin
backport_proxy_fix
anshul/patch_release
anshul/fix_proxy_http
packer-plugin-release-notice
stable-website-backup
anshul/changelog_1.14.0
crt-doc-update
update_regarding_CRT_migration
anshul/plugin_binary_from_official_site
jenna/cherry-picked-docs-backports
workload-identity-auth-support
bump-go-git
log-fix
karthik/seperate_default_commands
fix_hcl2_dag_missing_dependency
temp-web
karthik/prepare_1.13.2_dev
release/1.13.x
karthik/backport_1.13.1
karthik/prepare_version_1.13.1
backport/doc_to_release/1.13.x
karthik/powershell_fix
backport/release_note-1.13.x
release_docs_1.13
dev_version_changes
karthik/docs_update_powershell
update-pr-template-pci
rel_version_change
fix_test_case
dependabot/github-actions-updates
update_version
backport-ryans-vsphere-change-to-website
winrm_firewall_port
hotfix/failing-acc-test
release/1.12.x
backport-nextjs
packer_fmt_multi_args
backport-bumps
bump-nextjs
tsccr-auto-pinning/trusted/2025-05-01
add_filebase64_function
karthik/powershell_encoding
doc_temp_exec
tsccr-auto-pinning/trusted/2025-04-01
packer_test_dump_commands
bump_x_net
docs/replace-dot-io-links
enabling_hcp_multibuilds
bump_version_main_packer_1.13.0-dev
bump_dependencies_vulns
bump_backport_assistant_0.5.3
prevent-name-conflicts-hcp
poc-top-level-hcp-block
hcp-multiple-build-block
RK/adjust-codeowners
docs/manual-backport-packer-seo
docs/packer-seo-fy2025q4
docs/packer-seo-final-batch
docs/packer-seo-functions-batch3
docs/packer-seo-templates-batch1
docs/packer-seo-templates-batch2
docs/packer-seo-provs
docs/packer-seo-builders-plugins
docs/packer-seo-ds-ref
1-12-docs
tsccr-auto-pinning/trusted/2025-01-01
change_upload_sbom
make_doc_TMPDIR_clickable
docs_put_hcl2_example_in_first_tab
remove_aws_plugin_dep_on_hcl2_upgrade
test_add_compilation_queue_and_customisations
add-strcontains-docs
tsccr-auto-pinning/trusted/2024-12-01
fix_hcp_slug_empty_with_envvar_set
poc/with-api-imported
hand-off-lucas
tsccr-auto-pinning/trusted/2024-11-04
tsccr-auto-pinning/trusted/2024-11-01
release/1.11.x
backport/patch-1/vigorously-rested-sponge
backport/patch-1/blatantly-smashing-eel
backport/patch-1/centrally-credible-maggot
file_datasource
tsccr-auto-pinning/trusted/2024-10-01
backport/s3-community-provisioner/marginally-present-killdeer
backport/s3-community-provisioner/partially-dominant-mole
backport/fix_panic_on_empty_git_repo_hcp/cheaply-mature-sunfish
backport/build/bump-go-1.22.7/overly-caring-toad
tsccr-auto-pinning/trusted/2024-09-01
test_plugin_dir_spec_as_struct
backport/feature/add-base64gzip-function-support/forcibly-chief-toad
backport/docs_update_manual_installation/annually-subtle-mallard
backport/docs_update_manual_installation/ideally-feasible-kite
protobuf_testing
backport/artifact-manifest/main/simply-heroic-ladybird/brightly-real-sheepdog
backport/change-cicd-type/blatantly-resolved-gator
nywilken.enable-ci-for-feature-branch
protobuf-serialization
backport/feature/build-metadata-phase-2/entirely-up-ghoul
feature/build-metadata-phase-2
backport/replace_enumer_upstream/blindly-sacred-rat
backport/bump_go/nominally-leading-mastiff
tsccr-auto-pinning/trusted/2024-07-01
backport/nywilken.update-changelog-1.11.1/specially-clean-ewe
nywilken.update-changelog-1.11.1
backport/nywilken.CVE-2024-6104/largely-hot-pheasant
nywilken.CVE-2024-6104
backport/patch-1/completely-excited-colt
backport/patch-1/recently-innocent-dragon
backport/dependabot/go_modules/github.com/hashicorp/hcp-sdk-go-0.99.0/annually-guided-mako
backport/hpr-1772-upsert-bucket-get-first/randomly-talented-sculpin
hpr-1772-upsert-bucket-get-first
backport/dependabot/go_modules/github.com/hashicorp/packer-plugin-sdk-0.5.4/visually-prompt-seahorse
backport/nywilken.document-tmpdir/naturally-sought-sailfish
backport/nywilken.document-tmpdir/officially-flowing-hedgehog
nywilken.document-tmpdir
backport/fix_locals_eval_order/hugely-welcome-rodent
backport/docs/string-templates/officially-on-garfish
backport/docs/string-templates/vastly-liked-whale
backport/docs/packer-init/heartily-large-cougar
backport/docs/packer-init/morally-full-bullfrog
backport/docs/update-ssh/amazingly-sound-stinkbug
backport/docs/update-ssh/miserably-light-flamingo
backport/doca/update-provisioners/externally-sought-skylark
backport/doca/update-provisioners/similarly-quality-crappie
backport/plugin_load_spec_docs/notably-correct-platypus
backport/acc_test_logic/wrongly-witty-moccasin
backport/fix_golangci_lint/lovely-giving-impala
fix_golangci_lint
backport/plugin_load_spec_docs/remotely-stirred-frog
backport/plugin_load_spec_docs/thankfully-square-monarch
plugin_load_spec_docs
tsccr-auto-pinning/trusted/2024-06-01
bump_main_minor_version
backport/docs/install-plugins-1.11-ga/radically-leading-muskrat
docs/install-plugins-1.11-ga
backport/patch-1/moderately-fair-cod
backport/patch-1/slowly-suitable-aphid
backport/patch-1/vastly-ace-kingfish
backport/bump-1.11-release-date/accurately-usable-goose
bump-1.11-release-date
cut_1.11.0
backport/script_prep_changelog_rm_wait/sharply-dashing-mayfly
script_prep_changelog_rm_wait
backport/bump_changelog_1.11.0/actively-central-condor
backport/refactor/remove_deprecated_ioutil_functions/gratefully-learning-elephant
release/1.11.0-beta
docs/update-init-command-HPR-1755
release/1.10.x
backport/patch-1/rarely-certain-narwhal
backport/patch-1/steadily-pumped-lark
register_components_once
backport/fix_doc_typo_hcp_version/generally-ethical-wahoo
backport/fix_doc_typo_hcp_version/purely-fast-tarpon
deps/bump-actions-checkout-version
concurrent-plugin-access
backport/add-docs-on-packer-fmt/humbly-humorous-shiner
backport/add-docs-on-packer-fmt/solely-creative-dassie
backport/nywilken/update-dockerfile-license/directly-liked-parrot
nywilken/update-dockerfile-license
poc_reversed_eval_order
poc_parallel_plugin_discovery
sdk_bump
backport/use_VERSION_as_source_of_truth/intensely-key-sparrow
backport/workflow_build_only_push_release_images/forcibly-willing-chow
backport/dep/bump_golang.org_x_net_v0.24.0/instantly-set-cat
use_VERSION_as_source_of_truth
dep/bump_golang.org_x_net_v0.24.0
alvin-huang/test-license
backport/sec/add-LICENSE-to-release-binaries/initially-able-ghost
sec/add-LICENSE-to-release-binaries
release/1.11.0-alpha2
plugins_remove_local_path_support
nywilken/ignore-prerelease-plugins_help_text
release/1.11.0-alpha
backport/main/reliably-polite-rhino
backport/update/integration-script-commands/apparently-strong-pug
backport/update/integration-script-commands/vertically-meet-coral
update/integration-script-commands
dev_version_show_build_time
deps/google.golang.org/protobuf-1.31.0
update/changelog-1.10.2
hardened_plugin_loading
protobuf_and_gob_support
terminology-doc-updates
bump/go-module-version
nywilken/remove-plugins-subnav
only_support_releases_plugins
fix/plugin-url-rewrite-errors
nywilken/plugin-install-docs
changelog-1.10.1
nywilken-cut-1.10.1
heat/bug.fix/update-website-dependencies
nywilken/hcp-packer-non-compliant-plugin-error
update/migrate_scaleway_and_mondoo_integration
rm_single_component_plugins
rm_upcloud_manifest
heat/pin-upcloud-plugin-version
bmm/upcloud-version-pin
heat/bug-fix/packer-plugin
release/1.9.x
reset_1.10.x
update/plugin-integration-docs
fix_flags_plugins_install
integration-docs
changelog/1.10.0
deps/bump_packer-plugin-sdk_with_gocty_fix
rm_source_on_var_arg_error
update/missing_builder_warning
dependabot/go_modules/github.com/hashicorp/hcp-sdk-go-0.74.0
update-releng-codeowners
update/hcp-sdk-go
update/bundled-plugins-cruft
update/CHANGELOG-pre-1.10.0-branch
update/prepare-changelog-for-backports
fix/CVE-2023-45283
REPLAT-962-Update-License-text
plugins_rm_err_if_none_found
nywilken/update-readme-busl-license
schedulers
prototype_plugin_override_arg
rm_flagsetflags_enum
backport_use_squash
parser_rework
datasource_logic_cleanup
add_path_attribute_to_required_plugins
docs/hashicorp-intergration-updates
log_used_plugins
nywilken/1.9.3-cleanup
backport_pr_12535
fix_release_1.9.x_license
dag_phase_1
nywilken-192-CHANGLELOG-updates
moss_bump_hcp_sdk_test
release/1.8.x
moss_test
doc_bundles
release/1.9.0-alpha
docs/amb.test-workflow
test-prepare
ks.update-generated-links
mktg-tf-3b0b4b19b15c85b7bb4266a386b186d0
nywilken/hcp_all_errors_at_once
release/1.7.x
dev-portal
hcp_null_builder
zs.draft-empty-page-check-script
azr/mini-dag
linode-hcp-ready
actions/fix-check-links
crt-onboarding-test
wilken/hcl2_upgrade-legacy-mode
wilken/implicitly-required-plugins-legacy-mode
wilken/packer-legacy-mode
brk.feat/mdx-v2
improved-error-handling-hcp-packer
validate_locals
update-alert-banner
update_sdk
vscode-customization
testing_hcp_rewrite_two
extract_outscale
azr_implicit_requried_plugin_2
config_docs
azr_acc_test_install_n_run_single_plugins
azr_remove_amazon_builder
use_progress_bar
pr/10199
poc/packer-init
d-powershell-generated-docs
f-inspect-regression
build-after-tests
b-azure_arm-cert-tim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.3
v1.9.4
v1.9.5
${ noResults }
14 Commits (98176f54297b3d6fde4dee8aec08c94de71a67fd)
| Author | SHA1 | Message | Date |
|---|---|---|---|
|
|
19055df3ec
|
[COMPLIANCE] License changes (#12568)
* Updating the license from MPL to Business Source License Going forward, this project will be licensed under the Business Source License v1.1. Please see our blog post for more details at https://hashi.co/bsl-blog, FAQ at https://hashi.co/license-faq, and details of the license at www.hashicorp.com/bsl. * Update copyright file headers to BUSL-1.1 --------- Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com> |
3 years ago |
|
|
eca75a6847 |
Run make fmt to fix checks
|
3 years ago |
|
|
b7df3ca36f
|
[COMPLIANCE] Add Copyright and License Headers (#12254)
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com> |
3 years ago |
|
|
d880d1bca7 |
Update ReadFromHCLBuildBlock to use the hcp_packer_registry.Description
In packer v1.8.5, the bucket's description was not properly set in the
bucket object we use for HCP, therefore all the buckets created by
Packer did not have their description updated.
Before the change
```
--- FAIL: TestReadFromHCLBuildBlock (0.00s)
--- FAIL: TestReadFromHCLBuildBlock/configure_bucket_using_only_hcp_packer_registry_block (0.00s)
types.bucket_test.go:380: expected the build to to have contents of hcp_packer_registry block but it does not: ®istry.Bucket{
Slug: "hcp_packer_registry-block-test",
- Description: "",
+ Description: "description from hcp_packer_registry block",
Destination: "",
BucketLabels: {"org": "test"},
... // 5 identical fields
}
FAIL
FAIL github.com/hashicorp/packer/internal/hcp/registry 1.072s
FAIL
```
After Change
```
~> go test ./...
? github.com/hashicorp/packer/internal/hcp/api [no test files]
ok github.com/hashicorp/packer/internal/hcp/env (cached)
ok github.com/hashicorp/packer/internal/hcp/registry 1.130s
```
|
3 years ago |
|
|
ec1d2e68f5 |
hcp: generate fingerprints on each new build
Fingerprints are how we link a packer build to an iteration on HCP. These are computed automatically from the Git SHA in the current state, and are unique to the bucket/iteration. The main problem with this approach is that while sound in theory, it quickly falls apart when users want to run the same build configuration twice, but expect a new image to be created. With the current model, this fails, as the iteration with the current SHA already exists. While this is solvable through environment variables, or by committing a change to the repository, we think this is not clear enough, and causes an extra step to what should otherwise be a simple process. Therefore, to lower the barrier of entry into HCP, we change this behaviour with this commit. Now, fingerprints are randomly generated ULIDs instead of a git SHA, and a new one is always generated, unless one is already specified in the environment. This makes continuation of an existing iteration a conscious choice rather than something automatic, and virtually eliminates conflicts such as the ones described above. |
3 years ago |
|
|
73482bb636 |
internal: remove unused Labels on Iteration
The iteration structure that we use for linking a packer build to an iteration on HCP defines a `Labels' attribute, which is never set nor read from at any point. Since it is unused, we remove it in this commit. |
3 years ago |
|
|
ca197afe9b |
hcp: remove superfluous return value on GetBuilds
This commit irons out one of the pain points of the HCP rework by introducing a HCPPublisher interface, implemented both by the JSON Core, and the HCL2 PackerConfig, which keeps a map of the build names used by Packer to the build names pushed on HCP. This in turn lets us go back to the old implementation of the GetBuilds function, which returns a list of (filtered) builds, and eventually an error if something went wrong while processing. |
3 years ago |
|
|
2200cb14ce |
hcp: set the status to CANCELLED when a build is
Related to the previous behaviour problem, this changes how the status of a build is set on HCP Packer, as a cancelled build is different from a failed one, we can set it to the appropriate state on cancellation. |
3 years ago |
|
|
4846301ff4 |
hcp: reject template type changes between builds
As a follow-up to tracking the template type for an iteration, we actively check that it remains consistent between two invocations of packer, and reject the update if it is not the case. |
3 years ago |
|
|
6d0045607c |
hcp: record template type when creating iterations
In order to ensure users keep the same templates between two packer invocations for a single iteration, we start tracking the type of template used when building images. |
3 years ago |
|
|
08f1e85fb1 |
hcp: fix payloads for new SDK version
The grpc_gateway v2 changes had some repercussions in the payloads of the API calls, making the current code non-functional against the latest SDK. |
3 years ago |
|
|
ccb5a22bb4 |
hcp: remove duplicated build registration for JSON
In JSON templates, we register the builds to process on HCP at the initialisation of the Registry. However, during the HCP breakout, this code was duplicated with a slight difference for the JSON templates, and the build names were registered once during initialisation, with the expected full name, and once at the start of PopulateIteration, with the truncated name. This caused a bug when processing a template that contains a builder with both a name and a type, as both would be registered, but only one would complete, leading to the iteration being unable to complete. |
3 years ago |
|
|
719c8681cd |
registry: don't use datasource output for ancestry
The ancestry inferral code relied on HCP datasource outputs for deciding what would be the ancestry for an image built with HCP. This brings a dependency into the hcp package, which is not really necessary as we only need a few information from those entities, hence this commit removes the full dependency on the structures, in favour of more focused data structures where we only cherry pick what is necessary for this code. |
3 years ago |
|
|
606e6c48f1 |
internal: reorganise registry/HCP code
This commit reorganises the code for both the registry/API and the Orchestrator/Registry. The main difference with the previous version is how stuff is exposed. Now we only expose a Registry interface to the outside (previously named Orchestrator), which has several implementations: null is the default, and is returned if HCP is not enabled. The other implementations being HCL/JSON, both private to the hcp sub-package. The api (previously `registry') is the set of functionality that abstracts and calls the HCP API. It was meant to be merged with the `hcp' package, but because of a dependency loop with the datasources, both are separated for now. |
3 years ago |