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
{{ message }}
Repository navigation
fix(azure,gcp): fabricated commitment prices (hardcoded discount %) surfaced as real quotes #1020
Problem. When the pricing API returns no reservation/commitment line, the code invents one from a hardcoded multiplier and surfaces it as a real OfferingDetails.TotalCost/SavingsPercentage:
Impact. Misleading savings figures can justify uneconomical real purchases.
Suggested fix. Return an error (as managedredis does) or mark OfferingDetails.Estimated bool and omit SavingsPercentage when estimated, so the UI/CLI discloses it. Pairs with the savings-formula consolidation (I-20, report-12 D5).
References. Source: reports 09 (H4) + 10 (M4). Related: I-20 (shared SavingsPct with zero guard).
Filed from automated adversarial code review (see docs/code-review/). Source finding(s): 09-H4, 10-M4.
Activity
cristim commentedon Jun 7, 2026
Both halves of this issue are now implemented across two PRs (split by provider since the files are disjoint):
This issue should be closed once both PRs merge. Tracking here since neither PR uses an auto-closing
Closes #1020keyword on its own.fix(gcp): wire Count/pricing into GCP converters; refuse fabricated p…
sec(azure): harden HTTP clients + fix fabricated reservation prices i…
cristim commentedon Jun 8, 2026
All target files already apply the correct fix on
feat/multicloud-web-frontend:azure/services/cache,cosmosdb,database,search,compute,managedredis: returnfmt.Errorf("no reservation pricing found for ...")whenreservationPrice == 0, with a comment citing "issue fix(azure,gcp): fabricated commitment prices (hardcoded discount %) surfaced as real quotes #1020 H4".gcp/services/computeengine,cloudsql,memorystore,cloudstorage: returnfmt.Errorf("no commitment pricing found for ...")whencommitmentPrice == 0, citing issue fix(azure,gcp): fabricated commitment prices (hardcoded discount %) surfaced as real quotes #1020.The hardcoded multipliers (
* 0.62,* 0.63, etc.) are gone. Closing as completed.Generated by Claude Code