feat(secretmanager): Adding cmek samples#4216
feat(secretmanager): Adding cmek samples#4216khilan-crest wants to merge 10 commits intoGoogleCloudPlatform:mainfrom
Conversation
…odejs-docs-samples into node_list_samples
…odejs-docs-samples into node_cmek_samples
|
Here is the summary of changes. You are about to add 11 region tags.
This comment is generated by snippet-bot.
|
Summary of ChangesHello @khilan-crest, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly expands the Google Cloud Secret Manager Node.js samples by introducing a suite of new examples. These additions cover advanced secret creation options, such as using Customer-Managed Encryption Keys (CMEK) and user-managed replication policies, alongside enhanced capabilities for listing secrets and their versions with filters. Furthermore, new samples for managing tag bindings on secrets have been included, providing developers with more robust tools for organizing and securing their sensitive data within Google Cloud. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request adds several new samples for Secret Manager, focusing on CMEK, user-managed replication, and filtering/tagging secrets. The changes are well-structured and the new functionality is covered by tests. I've identified a few areas for improvement, including a recurring pattern of redundant nested functions that can be simplified, a potential bug in handling optional arguments, and a minor error in a test assertion. Overall, this is a great addition.
Adding cmek samples
Fixes #
Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
Checklist
npm test(see Testing)npm run lint(see Style)GoogleCloudPlatform/nodejs-docs-samples. Not a fork.