hashicorp / packer

Packer is a tool for creating identical machine images for multiple platforms from a single source configuration.
http://www.packer.io
Other
15.13k stars 3.33k forks source link

Support Workload Identity federation to log to HCP Packer #13193

Open othmane399 opened 1 month ago

othmane399 commented 1 month ago

Community Note

Description

The only way to push an artifact to an hcp_packer_registry using packer CLI is to provide HCP_CLIENT_ID and HCP_CLIENT_SECRET credentials but there's no way to authenticate using workload identity federation

Use Case(s)

CI/CD: Automating Packer Build with Github Actions

lbajolet-hashicorp commented 1 week ago

Hey @othmane399,

For visibility since I've addressed the other issue you opened, this one will likely need some internal discussion to understand the implications and how we can implement it. Sorry if this takes a bit of time to be implemented, just want us to make sure we do it right!