Class GcpProjectResolutionSupport
java.lang.Object
org.springframework.cloud.config.server.environment.secretmanager.GcpProjectResolutionSupport
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 Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionresolve(GoogleConfigProvider configProvider, org.springframework.web.client.RestTemplate rest) Resolves the project for the current request.
-
Constructor Details
-
GcpProjectResolutionSupport
-
-
Method Details
-
resolve
public String resolve(GoogleConfigProvider configProvider, org.springframework.web.client.RestTemplate rest) Resolves the project for the current request. Returnsnullif no project can be determined or (whentokenMandatoryisfalse) the client-supplied project is not allow-listed.
-