Interface GcpBootstrapConfiguration
@ConfigMapping(prefix="quarkus.google.cloud")
@ConfigRoot(phase=RUN_TIME)
public interface GcpBootstrapConfiguration
Bootstrap configuration
We need these properties at bootstrap to be able to register the secret manager config source that needs it.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanEnable Google Cloud access token authentication For example, the access token which is returned as part of OpenId Connect Authorization Code Flow may be used to access Google Cloud services on behalf of the authenticated user.booleanEnable or disable metadata server access to retrieve configuration options (projectId, region...).Google Cloud project ID.booleanWhether to enable the secret managerGoogle Cloud service account base64 encoded content.Google Cloud service account file location.
-
Method Details
-
enableMetadataServer
@WithDefault("true") boolean enableMetadataServer()Enable or disable metadata server access to retrieve configuration options (projectId, region...). -
projectId
Google Cloud project ID. It defaults to `ServiceOptions.getDefaultProjectId()` if `google.cloud.enable-metadata-server` is set to true (which is the default), so to the project ID corresponding to the default credentials if the default credentials are set, otherwise null. -
serviceAccountLocation
Google Cloud service account file location. -
serviceAccountEncodedKey
Google Cloud service account base64 encoded content. -
accessTokenEnabled
@WithDefault("true") boolean accessTokenEnabled()Enable Google Cloud access token authentication For example, the access token which is returned as part of OpenId Connect Authorization Code Flow may be used to access Google Cloud services on behalf of the authenticated user. Note that if a service account location is configured then the access token will be ignored even if this property is enabled. Disable this property if the default Google Cloud authentication is required. -
secretManagerEnabled
@WithDefault("true") boolean secretManagerEnabled()Whether to enable the secret manager
-