Class GcpProjectResolutionSupport

java.lang.Object
org.springframework.cloud.config.server.environment.secretmanager.GcpProjectResolutionSupport

public final class GcpProjectResolutionSupport extends Object
Resolves which Google Cloud project to use for GSM. When token-mandatory is false, client-supplied X-Project-ID is checked against allowed-project-ids. When token-mandatory is true, that allow-list is not applied for the header (authorization uses GoogleSecretManagerV1AccessStrategy.checkRemotePermissions() instead).
  • Constructor Details

  • Method Details

    • resolve

      public String resolve(GoogleConfigProvider configProvider, org.springframework.web.client.RestTemplate rest)
      Resolves the project for the current request. Returns null if no project can be determined or (when tokenMandatory is false) the client-supplied project is not allow-listed.