Added retry for TD policy propagation for security_test#237
Added retry for TD policy propagation for security_test#237
Conversation
|
Is it possible to change the order in which GCP resources are created to ensure the connection uses TLS from the start? Initializing a server in plaintext and then upgrading to TLS poses a security risk for production workloads. |
Yes its the correct way and need infra changes. Its already added in description and analysis in b/331206277 Yes it posses risk for production workload, but not to us as we are just using this to test. We will take it as a tech debt item (to be created). These is no point on keeping a failing/flaky test open because of this. As this is not a test failure |
Ideally, E2E tests should strictly mirror the customer's user journey. When they deviate, we risk missing real-world regressions. For example, if this test created resources with the desired state instead of patching them—and we still observed these failures—it would highlight a legitimate security issue. By introducing this change, the test loses its ability to catch such vulnerabilities, creating a false sense of security.
Do we have an estimate for the actual fix? In the meantime, is |
Agree, We want to mirror customer Journey. Disagree on the point that putting this fix we are losing ability to catch failure as we are currently patching security config. (With or without fix we will not be able to catch what is being described) On-Caller will pick it up based on priority. Cannot commit on timeline. keeping the issue in test, will not help us in prioritising as I can see issue is open more than 3 years back. I suggest fix what we are currently have, and plan for improvement based on discussion (mirror user journey and not do security patching) Due to higher number of issue happening, we see conflict in matchers increasing toil o on-caller. (This bug matcher is part of conflicts). Let us discuss offline if more discussion is needed on this, and converge. |
sergiitk
left a comment
There was a problem hiding this comment.
LGTM as long as the tests pass
Security test sometime fails usually in first or second step due to not receiving policy from TD.
This PR add a retry mechanism to account for this.
Internal bug b/280071258