GoogleCloudPlatform / GoogleCloudPlatform/spring-cloud-gcp

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

Open
#3,713 1 comment 0 reactions 0 assignees View on GitHub
priority: p3 type: bug
Dominant language
Java
Stars
551
Forks
349
Avg merge
1d 13h
Merged PRs (30d)
14

Description

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",
"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"
}
```

Contributor guide

Open the contributing guide

Research direction

Start in the spring-cloud-gcp-autoconfigure artifact by inspecting spring-configuration-metadata.json and comparing its Credentials entries with version 3.8.18. Trace how the metadata is produced for versions 4, 5, and 6. Done means encoded-key, location, and scopes are represented correctly, while default-scopes remains accurate.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
developer-experience
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.