feat: Backport parameter manager changes to 6.x#4157
Merged
jinseopkim0 merged 3 commits into6.xfrom Sep 29, 2025
Merged
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
… parameter manager (#3684) * feat(paramconfig): added support for remote configuration using the gcp parameter manager * feat(paramconfig): minor fix * feat(paramconfig): updated with render parameter method * feat(parameter): updated with parameter naming convention * feat(parameter): updated with parameter naming convention * feat(parametermanager): addressed review comments * fix(parametermanager): Updated README for Parameter Manager sample * fix(parametermanager): Update path of the file in README.adoc * fix: update spring-cloud-gcp version * fix: path to the suppressions file for maven-checkstyle-plugin * chore: update spring-cloud-gcp versions to 7.0.1-SNAPSHOT * feat(paramconfig): Update parameter.adoc file --------- Co-authored-by: Jin Seop Kim <[email protected]>
…#3699) Issue: [#3698](#3698) **Description** This pull request introduces a feature to the Spring Cloud GCP library, adding support for the parameter manager module. This enhancement enables the library to resolve the parameter presented in GCP Parameter Manager in the `application.properties` file and using the `@Value` annotation. It also expose the CRUD methods for the Parameter Manager. It will be implemented the same way as `secretmanager` is implemented. **Proposed Changes:** - Add the support of `parametermanager` module in the s`pring-cloud-gcp` which provides below functionality. - Inject parameter from Parameter Manager using `@Value` annotation with specified path i.e `pm@pm@global/my-param/v1` - Resolve the parameter from the Parameter Manager specified in the `application.properties` file - Expose the methods for `createParameter`, `enableParameterVersion`, `disableParameterVersion`, `deleteParameterVersion`, `getParameterString`, `deleteParameter`, `renderedParameterVersionString` - Add sample application which uses `parametermanager` to showcase the usecases - Add the documentation to reflect the new capabilities of `parametermanager` Refer to the [parametermanager.adoc](https://github.com/GoogleCloudPlatform/spring-cloud-gcp/blob/2aecef8378274397ee667dd1a9fbcf72da43355d/docs/src/main/asciidoc/parametermanager.adoc) file for detailed documentation. Performed the below mentioned manual unit tests to validate the working of the global and regional parameter operations. * Create parameter with given location, parameterId, version and payload * Create parameter with given project, location, parameterId, version and payload * Create parameter with given location, parameterId, version and payload, format * Create parameter with given project, location, parameterId, version and payload, format * Create parameter with given location, parameterId, version and payload and invalid projectId (project on which user doesn't have access) * Enable parameter version with given location, parameterId and version * Enable parameter version with given project, location, parameterId and version * Disable parameter version with given location, parameterId and version * Disable parameter version with given project, location, parameterId and version * Delete parameter with location and parameterId * Delete parameter with project, location and parameterId * Delete parameter version with location, parameterId and version * Delete parameter version with project, location, parameterId and version * Check if parameter exist with location and parameterId * Check if parameter exist with project, location and parameterId * Check if parameter version exist with location, parameterId and version * Check if parameter version exist with project, location, parameterId and version * Read parameter with parameter Identifier * Render parameter with parameter Identifier * Inject with `@value` annotation * Read parameter with project, location, parameterId and version for other project using service account * Check parameter resolution mentioned in the `application.properties`. More information about parameter manager: https://cloud.google.com/secret-manager/parameter-manager/docs/overview
…ry' (#4127) Issue: [#4117](#4117) Changes: - Make Parameter Manager as `optional dependency` in AutoConfigure module. - Changed the `clientFactory` bean name for both Secret Manager and Parameter Manager. - Added logic to resolve the registered bean in `spring.factories` only if the class is present in the classpath for Parameter Manager. - Added parameter manager module and starter module in `spring-cloud-gcp-dependencies`. Testing: - [x] Created project which uses secretManager - [x] Created project which uses parameterManager - [x] Created project which uses secretManager and parameterManager
97affdc to
4f11254
Compare
|
mpeddada1
approved these changes
Sep 29, 2025
jinseopkim0
added a commit
that referenced
this pull request
Sep 30, 2025
🤖 I have created a release *beep* *boop* --- ## [6.4.0](v6.3.4...v6.4.0) (2025-09-30) ### Features * Backport parameter manager changes to 6.x ([#4157](#4157)) ([e2708e6](e2708e6)) ### Dependencies * Update libraries-bom to v26.69.0 ([#4164](#4164)) ([965d979](965d979)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Jin Seop Kim <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Backports the following PRs to 6.x: #3699, #3684, #4127