mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-26 09:44:01 -04:00
* 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
19 lines
656 B
Go
19 lines
656 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
package env
|
|
|
|
const (
|
|
HCPClientID = "HCP_CLIENT_ID"
|
|
HCPClientSecret = "HCP_CLIENT_SECRET"
|
|
HCPCredFile = "HCP_CRED_FILE"
|
|
HCPDefaultCredFilePath = ".config/hcp/"
|
|
HCPDefaultCredFilePathFull = "~/.config/hcp/cred_file.json"
|
|
HCPDefaultCredFile = "cred_file.json"
|
|
HCPProjectID = "HCP_PROJECT_ID"
|
|
HCPOrganizationID = "HCP_ORGANIZATION_ID"
|
|
HCPPackerRegistry = "HCP_PACKER_REGISTRY"
|
|
HCPPackerBucket = "HCP_PACKER_BUCKET_NAME"
|
|
HCPPackerBuildFingerprint = "HCP_PACKER_BUILD_FINGERPRINT"
|
|
)
|