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 Type
    Method
    Description
    boolean
    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.
    boolean
    Enable or disable metadata server access to retrieve configuration options (projectId, region...).
    Google Cloud project ID.
    boolean
    Whether to enable the secret manager
    Google 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

      Optional<String> 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

      Optional<String> serviceAccountLocation()
      Google Cloud service account file location.
    • serviceAccountEncodedKey

      Optional<String> 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