|
|
|
@ -278,20 +278,52 @@ type Format struct { |
|
|
|
|
type CredentialSource struct { |
|
|
|
|
// File is the location for file sourced credentials.
|
|
|
|
|
// One field amongst File, URL, Executable, or EnvironmentID should be provided, depending on the kind of credential in question.
|
|
|
|
|
//
|
|
|
|
|
// Important: If you accept a credential configuration (credential
|
|
|
|
|
// JSON/File/Stream) from an external source for authentication to Google
|
|
|
|
|
// Cloud Platform, you must validate it before providing it to any Google
|
|
|
|
|
// API or library. Providing an unvalidated credential configuration to
|
|
|
|
|
// Google APIs can compromise the security of your systems and data. For
|
|
|
|
|
// more information, refer to [Validate credential configurations from
|
|
|
|
|
// external sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
|
|
|
|
File string `json:"file"` |
|
|
|
|
|
|
|
|
|
// Url is the URL to call for URL sourced credentials.
|
|
|
|
|
// One field amongst File, URL, Executable, or EnvironmentID should be provided, depending on the kind of credential in question.
|
|
|
|
|
//
|
|
|
|
|
// Important: If you accept a credential configuration (credential
|
|
|
|
|
// JSON/File/Stream) from an external source for authentication to Google
|
|
|
|
|
// Cloud Platform, you must validate it before providing it to any Google
|
|
|
|
|
// API or library. Providing an unvalidated credential configuration to
|
|
|
|
|
// Google APIs can compromise the security of your systems and data. For
|
|
|
|
|
// more information, refer to [Validate credential configurations from
|
|
|
|
|
// external sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
|
|
|
|
URL string `json:"url"` |
|
|
|
|
// Headers are the headers to attach to the request for URL sourced credentials.
|
|
|
|
|
Headers map[string]string `json:"headers"` |
|
|
|
|
|
|
|
|
|
// Executable is the configuration object for executable sourced credentials.
|
|
|
|
|
// One field amongst File, URL, Executable, or EnvironmentID should be provided, depending on the kind of credential in question.
|
|
|
|
|
//
|
|
|
|
|
// Important: If you accept a credential configuration (credential
|
|
|
|
|
// JSON/File/Stream) from an external source for authentication to Google
|
|
|
|
|
// Cloud Platform, you must validate it before providing it to any Google
|
|
|
|
|
// API or library. Providing an unvalidated credential configuration to
|
|
|
|
|
// Google APIs can compromise the security of your systems and data. For
|
|
|
|
|
// more information, refer to [Validate credential configurations from
|
|
|
|
|
// external sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
|
|
|
|
Executable *ExecutableConfig `json:"executable"` |
|
|
|
|
|
|
|
|
|
// EnvironmentID is the EnvironmentID used for AWS sourced credentials. This should start with "AWS".
|
|
|
|
|
// One field amongst File, URL, Executable, or EnvironmentID should be provided, depending on the kind of credential in question.
|
|
|
|
|
//
|
|
|
|
|
// Important: If you accept a credential configuration (credential
|
|
|
|
|
// JSON/File/Stream) from an external source for authentication to Google
|
|
|
|
|
// Cloud Platform, you must validate it before providing it to any Google
|
|
|
|
|
// API or library. Providing an unvalidated credential configuration to
|
|
|
|
|
// Google APIs can compromise the security of your systems and data. For
|
|
|
|
|
// more information, refer to [Validate credential configurations from
|
|
|
|
|
// external sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
|
|
|
|
EnvironmentID string `json:"environment_id"` |
|
|
|
|
// RegionURL is the metadata URL to retrieve the region from for EC2 AWS credentials.
|
|
|
|
|
RegionURL string `json:"region_url"` |
|
|
|
|