packer/internal/hcp/api
Jenna Goldstrich 8a376a8845
HCP Certificate Authentication Support (#13435)
* Add support for using a certificate file instead of HCP Client Credentials to authenticate to HashiCorp Cloud Platform

* Docs

* Change certificate auth warnings to print to stdio

* rough draft docs

* Update comments

* Parse home directory correctly, default directory certs don't work before this

* cred-file => cred_file, and add unit test

* Fix invalid log, and use full path in log messages and error messages

* Fix original file not being reset in unit test

* Move test statements around to validate Windows behavior

* Use a 'windows friendly' path

* The issue here was the path error'd on mac and linux, but not Windows, when I swapped to the different path then nothing error'd causing everything to fail, I think this should fix it on 3 platforms

* 1.14.1 => 1.14.2
2025-08-12 10:40:55 +05:30
..
client.go HCP Certificate Authentication Support (#13435) 2025-08-12 10:40:55 +05:30
client_test.go deps: Bump github.com/hashicorp/hcp-sdk-go to v0.73.0 2023-11-15 10:27:51 -05:00
deprecated_client.go HCP Certificate Authentication Support (#13435) 2025-08-12 10:40:55 +05:30
deprecated_service.go Migrate HCP Packer to API V2 and new nomenclature changes (#12794) 2024-01-24 13:17:35 -05:00
errors.go Make error less brittle to fix upcoming error with HCP SDK Go changing how we return 404 error 2025-01-21 11:33:32 -08:00
errors_test.go Make error less brittle to fix upcoming error with HCP SDK Go changing how we return 404 error 2025-01-21 11:33:32 -08:00
mock_service.go HCP Packer Buckets: Change UpsertBucket to call GetBucket (#13059) 2024-06-21 08:28:09 -07:00
service_bucket.go HCP Packer Buckets: Change UpsertBucket to call GetBucket (#13059) 2024-06-21 08:28:09 -07:00
service_build.go Ensure org ID is set and move UploadSbom to api package 2025-01-21 16:57:50 -05:00
service_channel.go Migrate HCP Packer to API V2 and new nomenclature changes (#12794) 2024-01-24 13:17:35 -05:00
service_version.go Migrate HCP Packer to API V2 and new nomenclature changes (#12794) 2024-01-24 13:17:35 -05:00