# abdelrahmansaeed5/aws-data-protection-dashboard architecture

> Architecture diagram of the GitHub repository abdelrahmansaeed5/aws-data-protection-dashboard, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/abdelrahmansaeed5/aws-data-protection-dashboard
- Repository: https://github.com/abdelrahmansaeed5/aws-data-protection-dashboard

## Overview

Sentinel is a security-monitoring dashboard and prototype workflow for classifying sensitive data in uploaded CSVs. Users upload files through the dashboard; the local Node.js server either simulates a scan in demo mode or sends the file to S3, where the documented AWS workflow triggers Lambda scanning, classification, reporting, and alerts. The dashboard also displays reports, read-only security checks, and CloudWatch monitoring. The supplied tree contains no Lambda or security-script source, so those documented capabilities are represented without repository source paths.

Main entry points: [`server.mjs`](https://github.com/abdelrahmansaeed5/aws-data-protection-dashboard/blob/main/server.mjs) (API server), [`public/app.js`](https://github.com/abdelrahmansaeed5/aws-data-protection-dashboard/blob/main/public/app.js) (Dashboard UI), [`public/index.html`](https://github.com/abdelrahmansaeed5/aws-data-protection-dashboard/blob/main/public/index.html) (Dashboard layout), [`public/styles.css`](https://github.com/abdelrahmansaeed5/aws-data-protection-dashboard/blob/main/public/styles.css) (Dashboard styling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dashboard["Dashboard"]
  node_browser["Dashboard UI<br/>[app.js]"]
  node_dashboard_layout["Dashboard layout<br/>[index.html]"]
  node_dashboard_styles["Dashboard styling<br/>[styles.css]"]
end

subgraph group_api["Local API"]
  node_server["API server<br/>[server.mjs]"]
  node_demo_scan["Demo scanning<br/>[server.mjs]"]
end

subgraph group_aws["AWS workflow"]
  node_s3[("S3 storage")]
  node_lambda["Lambda scanner"]
  node_classification["Classification"]
  node_reports["Scan reports"]
  node_threshold[("Alert threshold")]
  node_sns["SNS alerts"]
  node_cloudwatch["CloudWatch"]
  node_security_services["IAM and KMS"]
  node_cloudtrail["CloudTrail analysis"]
  node_access_analyzer["Access Analyzer"]
end

node_user(("User"))

node_user -->|"uses"| node_browser
node_browser -.->|"renders"| node_dashboard_layout
node_browser -.->|"uses"| node_dashboard_styles
node_browser -->|"calls API"| node_server
node_server -->|"serves assets"| node_browser
node_server -->|"simulates scans"| node_demo_scan
node_server -->|"uploads files"| node_s3
node_s3 -->|"triggers scan"| node_lambda
node_lambda -->|"reads uploads"| node_s3
node_lambda -->|"checks patterns"| node_classification
node_lambda -->|"tags objects"| node_s3
node_lambda -->|"writes reports"| node_reports
node_lambda -->|"reads threshold"| node_threshold
node_lambda -->|"publishes alerts"| node_sns
node_lambda -->|"records activity"| node_cloudwatch
node_cloudwatch -->|"notifies alarm"| node_sns
node_server -->|"reads reports"| node_reports
node_server -->|"reads metrics"| node_cloudwatch
node_server -->|"checks settings"| node_s3
node_security_services -.->|"protects storage"| node_s3
node_security_services -.->|"controls access"| node_lambda
node_cloudtrail -.->|"supports event review"| node_user
node_access_analyzer -.->|"supports access review"| node_user

click node_browser "https://github.com/abdelrahmansaeed5/aws-data-protection-dashboard/blob/main/public/app.js"
click node_dashboard_layout "https://github.com/abdelrahmansaeed5/aws-data-protection-dashboard/blob/main/public/index.html"
click node_dashboard_styles "https://github.com/abdelrahmansaeed5/aws-data-protection-dashboard/blob/main/public/styles.css"
click node_server "https://github.com/abdelrahmansaeed5/aws-data-protection-dashboard/blob/main/server.mjs"
click node_demo_scan "https://github.com/abdelrahmansaeed5/aws-data-protection-dashboard/blob/main/server.mjs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_browser,node_dashboard_layout,node_dashboard_styles,node_user toneBlue
class node_server,node_demo_scan toneAmber
class node_s3,node_lambda,node_classification,node_reports,node_threshold,node_sns,node_cloudwatch,node_security_services,node_cloudtrail,node_access_analyzer toneMint
```

## Components

### Dashboard

- [Dashboard UI](https://github.com/abdelrahmansaeed5/aws-data-protection-dashboard/blob/main/public/app.js): `public/app.js`
- [Dashboard layout](https://github.com/abdelrahmansaeed5/aws-data-protection-dashboard/blob/main/public/index.html): `public/index.html`
- [Dashboard styling](https://github.com/abdelrahmansaeed5/aws-data-protection-dashboard/blob/main/public/styles.css): `public/styles.css`

### Local API

- [API server](https://github.com/abdelrahmansaeed5/aws-data-protection-dashboard/blob/main/server.mjs): `server.mjs`
- [Demo scanning](https://github.com/abdelrahmansaeed5/aws-data-protection-dashboard/blob/main/server.mjs): `server.mjs`

### AWS workflow

- **S3 storage**
- **Lambda scanner**
- **Classification**
- **Scan reports**
- **Alert threshold**
- **SNS alerts**
- **CloudWatch**
- **IAM and KMS**
- **CloudTrail analysis**
- **Access Analyzer**

### Other components

- **User**

## Connections

- User → Dashboard UI: uses (evidence: `README.md`)
- Dashboard UI → Dashboard layout: renders
- Dashboard UI → Dashboard styling: uses
- Dashboard UI → API server: calls API (evidence: `public/app.js`)
- API server → Dashboard UI: serves assets (evidence: `server.mjs`)
- API server → Demo scanning: simulates scans (evidence: `server.mjs`)
- API server → S3 storage: uploads files (evidence: `server.mjs`)
- S3 storage → Lambda scanner: triggers scan (evidence: `README.md`)
- Lambda scanner → S3 storage: reads uploads (evidence: `README.md`)
- Lambda scanner → Classification: checks patterns (evidence: `README.md`)
- Lambda scanner → S3 storage: tags objects (evidence: `README.md`)
- Lambda scanner → Scan reports: writes reports (evidence: `README.md`)
- Lambda scanner → Alert threshold: reads threshold (evidence: `README.md`)
- Lambda scanner → SNS alerts: publishes alerts (evidence: `README.md`)
- Lambda scanner → CloudWatch: records activity (evidence: `README.md`)
- CloudWatch → SNS alerts: notifies alarm (evidence: `README.md`)
- API server → Scan reports: reads reports (evidence: `README.md`)
- API server → CloudWatch: reads metrics (evidence: `README.md`)
- API server → S3 storage: checks settings (evidence: `README.md`)
- IAM and KMS → S3 storage: protects storage (evidence: `README.md`)
- IAM and KMS → Lambda scanner: controls access (evidence: `README.md`)
- CloudTrail analysis → User: supports event review (evidence: `README.md`)
- Access Analyzer → User: supports access review (evidence: `README.md`)
