add support for google host attributes: - project_id (Required): The project ID associated with the service account - zone (Required): The deployment area within a region disable_credential_rotation (Optional): Disables credential rotation by the plugin - client_email (Optional): The email address associated with the service account. The email address used to uniquely identify the service account. It is required for authentication and authorization. If it is not set, authentication will fail. - target_service_account_id (Optional): The unique identifier for the service account that will be impersonated. - disable_credential_rotation (Optional): Disable the rotation of google service account key associated with the plugin
25 lines
872 B
Go
25 lines
872 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
package credential
|
|
|
|
const (
|
|
// ConstProjectId defines the attribute name for a GCP project
|
|
ConstProjectId = "project_id"
|
|
|
|
// ConstZone defines the attribute name for a GCP zone
|
|
ConstZone = "zone"
|
|
|
|
// ConstDisableCredentialRotation is the key for the disable credential rotation in the GCP credentials.
|
|
ConstDisableCredentialRotation = "disable_credential_rotation"
|
|
|
|
// ConstCredsLastRotatedTime is the key for the last rotated time in the GCP credentials.
|
|
ConstCredsLastRotatedTime = "creds_last_rotated_time"
|
|
|
|
// ConstClientEmail is the email address associated with the service account
|
|
ConstClientEmail = "client_email"
|
|
|
|
// ConstTargetServiceAccountID is the unique identifier for the service account that will be impersonated.
|
|
ConstTargetServiceAccountID = "target_service_account_id"
|
|
)
|