Skip to content

Commit c7bdb6e

Browse files
committed
Add next-rsc-security.svg
1 parent 40bab9a commit c7bdb6e

File tree

2 files changed

+136
-0
lines changed

2 files changed

+136
-0
lines changed

β€ŽMyApp/_pages/_template-diagrams.mdβ€Ž

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,3 +321,37 @@ flowchart LR
321321
classDef nextApp fill:#f3e8ff,stroke:#6b21a8,stroke-width:2px,color:#6b21a8
322322
classDef static fill:#ecfdf5,stroke:#047857,stroke-width:2px
323323
```
324+
325+
### Security
326+
327+
```mermaid
328+
---
329+
config:
330+
layout: dagre
331+
look: neo
332+
theme: redux
333+
themeVariables:
334+
edgeLabelBackground: '#ffffff'
335+
---
336+
flowchart TB
337+
subgraph NET[".NET Process (port 8080)<br>(root user)"]
338+
NETAPI["/app/dotnet/<br>rwx------ root<br><br>πŸ’Ύ App_Data/<br>πŸ“„ appsettings<br>πŸ“¦ *.dll<br>"]
339+
end
340+
subgraph NODE["Node.js Process (port 3000)<br>(nextjs user)"]
341+
NODECLIENT["/app/nextjs/<br>r-x--- nextjs<br><br>πŸ“ node_modules/<br>πŸ“¦ dist/<br>🎨 public/<br>πŸ“„ package.json"]
342+
end
343+
subgraph Docker["🐳 Docker Container"]
344+
NET
345+
NODE
346+
end
347+
NET <-- (Proxy) --> NODE
348+
BLOCK["βœ… Only .NET CAN access /app/dotnet/<br><br>🚫 Node.js CAN ONLY access /tmp + /app/nextjs"]
349+
350+
BLOCK:::security
351+
classDef security fill:#ffebee,stroke:#c62828,stroke-width:2px
352+
style NETAPI fill:#bbdefb,stroke:#1976d2
353+
style NODECLIENT fill:#ffe0b2,stroke:#f57c00
354+
style NET fill:#e3f2fd,stroke:#1976d2,stroke-width:2px
355+
style NODE fill:#fff3e0,stroke:#f57c00,stroke-width:2px
356+
style Docker fill:#f0f0f0,stroke:#333,stroke-width:3px
357+
```

β€ŽMyApp/wwwroot/img/pages/react/info/next-rsc-security.svgβ€Ž

Lines changed: 102 additions & 0 deletions
Loading

0 commit comments

Comments
Β (0)