You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR adds the change instead of calling every openstackcreds to get tenant. get list of openstackcreds before hand and get tenant name from in memory objectl.
Which issue(s) this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged)
The reason will be displayed to describe this comment to others. Learn more.
🚩 Behavioral change: individual per-credential error isolation is removed
Beyond the reported bug (Promise.all rejection), there's a subtler behavioral difference even in the success path. The old code fetched each credential individually, so if one credential resource was deleted or corrupted mid-request, only that one cluster's tenant name would be blank. The new code fetches the entire list at once, so a single malformed item in the API response could potentially cause the entire list parse to fail. In practice, since this is a Kubernetes list API that returns well-structured JSON, this is unlikely. However, if the credentials list is paginated or truncated by the API server (e.g., due to continue tokens on very large lists), some credentials might be missing from the lookup map, silently resulting in empty tenant names. The getOpenstackCredentialsList function at openstackCreds.ts:6-12 does not handle pagination (continue token in GetOpenstackCredsListMetadata), so at scale this could lead to incomplete data.
Was this helpful? React with 👍 or 👎 to provide feedback.
⚠️ no_baseline: No baseline available (all vulnerabilities treated as new)
Only HIGH and CRITICAL severity vulnerabilities are tracked Baseline: ad0d7ab4b641bb1e5198f3f9f3b60bb4de966772
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
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.
What this PR does / why we need it
This PR adds the change instead of calling every openstackcreds to get tenant. get list of openstackcreds before hand and get tenant name from in memory objectl.
Which issue(s) this PR fixes
(optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged)fixes #2053.
Special notes for your reviewer
Testing done
please add testing details (logs, screenshots, etc.)