AWS + Azure: add read-only sanity checks + AWS RI exchange#3
AWS + Azure: add read-only sanity checks + AWS RI exchange#3crisjermaglasang wants to merge 3 commits intomainfrom
Conversation
|
@crisjermaglasang thank you for your contribution, really appreciate it. I asked Claude Code to help me review it and it came up with the below output, which I largely agree with. Please address the below issues before we can merge this. PR #3 Review: AWS + Azure read-only sanity checks + AWS RI exchange+1025 / -1 across 17 files (3 commits) SummaryAdds three features:
The RI exchange safety model is well-designed (quote-first, explicit ack, spend cap guardrail). The sanity check framework is clean and useful. However, there are several issues that should be addressed before merging. Issues FoundCritical: Compiled binaries committed to the repoThree compiled binaries are included in the diff:
These should not be checked into git. Add them to Critical: Sensitive data committed in report filesThree JSON report files contain real credentials/identifiers:
These files are test artifacts that should be Critical: CI workflows won't trigger from current locationThe GitHub Actions workflows are placed at: GitHub only picks up workflows from Major: Hardcoded AWS account ID in CI workflow
EXPECTED_ACCOUNT: "816582314462" # change per test accountThis should reference a GitHub secret, not be hardcoded. Major: Azure sanity uses shell-out + fragile string matching
if !strings.Contains(string(out), fmt.Sprintf(`"id": "%s"`, opts.ExpectedSubID)) {This is fragile — it depends on exact JSON formatting from the CLI (key spacing, quote style). Since the rest of the codebase uses Azure SDK v2, the sanity checks should use it too, or at minimum use Minor:
|
Uh oh!
There was an error while loading. Please reload this page.