Skip to content

Commit bbd612e

Browse files
authored
Merge pull request #8 from systeminit/push-ylknxxuqloou
fixing up call to crypto
2 parents f561d3d + 11a7129 commit bbd612e

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: Test Suite
33
on:
44
pull_request:
55
branches: [ main, master ]
6-
push:
7-
branches: [ main, master ]
86

97
jobs:
108
test-api:

DEPLOYMENT.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,24 @@ Example: `20250109143022-a7b3c5d`
7171
- `tonys-chips-subnet-db-1a` - 10.0.21.0/24 (us-west-1a)
7272
- `tonys-chips-subnet-db-1b` - 10.0.22.0/24 (us-west-1c)
7373

74-
5.`tonys-chips-rtb-private` (AWS::EC2::RouteTable)
74+
5. ✅ Route Tables:
75+
- `tonys-chips-rtb-private` (AWS::EC2::RouteTable) - For API and database subnets
76+
- `tonys-chips-rtb-public` (AWS::EC2::RouteTable) - For web subnets with IGW route
7577

76-
6. ✅ Route Table Associations (6 total):
77-
- All subnets associated with private route table
78+
6. ✅ Route Table Associations:
79+
- Web subnets (web-1a, web-1b) associated with public route table
80+
- API subnets (api-1a, api-1b) associated with private route table
81+
- Database subnets (db-1a, db-1b) associated with private route table
82+
83+
7.`tonys-chips-route-public-igw` (AWS::EC2::Route)
84+
- Destination: 0.0.0.0/0
85+
- Target: Internet Gateway
86+
- Allows public ALB to receive internet traffic
7887

7988
**Status:** Applied to HEAD. All resources created successfully.
8089

90+
**Note:** Web subnets are public (MapPublicIpOnLaunch: true, route to IGW) to support the internet-facing ALB. API and database subnets remain private with no internet access (use VPC endpoints).
91+
8192
### Phase 2: Security Infrastructure ✅ COMPLETED
8293
**Change Set:** `tonys-chips-security` (ID: 01K75SVYVVKKRPQFWXVZ6BME12)
8394

packages/web/src/context/CartContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { CartContext } from './CartContextType';
88
const generateSessionId = (): string => {
99
let sessionId = localStorage.getItem('sessionId');
1010
if (!sessionId) {
11-
sessionId = crypto.randomUUID();
11+
sessionId = window.crypto.randomUUID();
1212
localStorage.setItem('sessionId', sessionId);
1313
}
1414
return sessionId;

0 commit comments

Comments
 (0)