Fix the network name#5315
Conversation
Summary of ChangesHello, 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 addresses an issue with network naming within the daily test Cloud Build configurations. It introduces a standardized approach to name networks by dynamically applying a 'pr' or 'daily' prefix based on the test type. This ensures consistent and predictable network names across different testing environments, preventing potential conflicts or misconfigurations that could arise from variable network naming. Highlights
Changelog
Activity
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 introduces a command injection vulnerability in several daily test build configurations due to the direct use of the _TEST_PREFIX substitution variable within inline shell script blocks. This allows for arbitrary command execution if _TEST_PREFIX is manipulated. Furthermore, the logic for determining network prefixes and updating blueprints is duplicated across five files. It is recommended to refactor this complex, duplicated logic into a shared script to improve maintainability and address the security vulnerability by properly sanitizing or passing substitution variables as environment variables, as per repository guidelines on inline shell scripts.
|
PR-test-gke-tpu-v6e-flex is failing earlier too. This change won't have any affect and doesn't resolve the ongoing issue. |
Co-authored-by: laveen <laveenekka@google.com>
This reverts commit 8f07f2d.
- Revert 'Fix the network name (GoogleCloudPlatform#5315)' - Apply python logic and fixes from GoogleCloudPlatform#5385 - Apply modify_vpc.py across all filestore integration tests
- Revert 'Fix the network name (GoogleCloudPlatform#5315)' - Apply python logic and fixes from GoogleCloudPlatform#5385 - Apply modify_vpc.py across all filestore integration tests
This PR introduces static network names to be used for all the tests to avoid filestore limit
Submission Checklist
NOTE: Community submissions can take up to 2 weeks to be reviewed.
Please take the following actions before submitting this pull request.