fix(cloudformation): use static release manifest instead of GitHub Re…#8623
fix(cloudformation): use static release manifest instead of GitHub Re…#8623Zee2413 wants to merge 1 commit intoaws:masterfrom
Conversation
|
⏳ I'm reviewing this pull request for security vulnerabilities and code quality issues. I'll provide an update when I'm done |
|
|
✅ I finished the code review, and didn't find any security or code quality issues. |
This is behind the scenes operation not seen by user. |
|
We probably still want the fallback in case of throttles |
If the |
This would be the fallback right, 5000 users would try the raw.github endpoint and be successful, the 5001 user would get throttled and fallback to GithubApi which would succeed |
…leases API Replace GitHubManifestAdapter (GitHub Releases API) with direct fetch of the static release-manifest.json. Add CFN-specific manifest parser that respects the 'latest' flag per environment. - Delete githubManifestAdapter.ts and utils.ts (addWindows, dedupeAndGetLatestVersions) - Add cfnManifest.ts with parseCfnManifest() that prefers latest-flagged version - Use ManifestResolver with real manifest URL instead of custom GitHub API resolver - Make ManifestResolver.parseManifest protected for CFN override - Add cfnManifest.test.ts with 5 tests
The limits are not user-based, they're IP-based. The manifest is fetched once on startup so if there is any IP that is breaching these limits of 5000 of static content, the limit of 60 on the API (unauthenticated) is bound to be breached as well. Keeping the API as a fallback added complexity in the workflow without much benefit. |
…leases API
Replace GitHubManifestAdapter (GitHub Releases API) with direct fetch of the static release-manifest.json. Add CFN-specific manifest parser that respects the 'latest' flag per environment.
Problem
Solution
feature/xbranches will not be squash-merged at release time.