Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring Configuration Metadata is incorrect for Credentials properties (spring.cloud.gcp.credentials) #3713

Open
cdouillard opened this issue Apr 1, 2025 · 0 comments

Comments

@cdouillard
Copy link

Spring Configuration Metadata is incorrect for Credentials properties (spring.cloud.gcp.credentials).

In the spring-cloud-gcp-autoconfigure artifact, the spring-configuration-metadata.json file no longer defines the following properties:

  • spring.cloud.gcp.credentials.encoded-key
  • spring.cloud.gcp.credentials.location
  • spring.cloud.gcp.credentials.scopes

Instead, the following property is defined:

  • spring.cloud.gcp.credentials.default-scopes

The issue exists in Spring Cloud GCP versions 4, 5, and 6.
In version 3.8.18, the property definitions are correct.

v3.8.18:

{
  "name": "spring.cloud.gcp.credentials.encoded-key",
  "type": "java.lang.String",
  "sourceType": "com.google.cloud.spring.core.Credentials"
},
{
  "name": "spring.cloud.gcp.credentials.location",
  "type": "org.springframework.core.io.Resource",
  "sourceType": "com.google.cloud.spring.core.Credentials"
},
{
  "name": "spring.cloud.gcp.credentials.scopes",
  "type": "java.util.List<java.lang.String>",
  "sourceType": "com.google.cloud.spring.core.Credentials"
}

v4.0.0:

{
  "name": "spring.cloud.gcp.credentials.default-scopes",
  "type": "java.lang.String[]",
  "sourceType": "com.google.cloud.spring.core.Credentials"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant