# nader11-hub/cloud_project architecture

> Architecture diagram of the GitHub repository nader11-hub/cloud_project, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nader11-hub/cloud_project
- Repository: https://github.com/nader11-hub/cloud_project

## Overview

Cloud Security: Login Monitor is a Flask authentication-monitoring service. Users submit login attempts; the app evaluates credentials and records outcomes in SQLite, while brute-force detection flags IPs with repeated failures. Operators use the SOC dashboard to review activity and manage logs; REST and health endpoints provide additional access. The single source file combines routes, persistence, detection, and UI, so components share its path. The detection implementation and endpoint internals were not sampled; those relationships rely on README statements.

Main entry points: [`app.py`](https://github.com/nader11-hub/cloud_project/blob/main/app.py) (Login Audit Logs)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingestion["Authentication &amp; Detection"]
  node_login_terminal["Login Terminal<br/>[app.py]"]
  node_credential_check["Credential Check<br/>[app.py]"]
  node_brute_force["Brute-Force Detection<br/>[app.py]"]
end

subgraph group_storage["Audit Storage"]
  node_audit_logs[("Login Audit Logs<br/>[app.py]")]
end

subgraph group_operations["SOC Operations"]
  node_soc_dashboard["SOC Dashboard<br/>[app.py]"]
  node_log_api["Logs API<br/>[app.py]"]
  node_health_endpoint["Health Endpoint<br/>[app.py]"]
  node_admin_actions["Admin Actions<br/>[app.py]"]
end

node_user(("User"))

node_user -->|"submits attempt"| node_login_terminal
node_login_terminal -->|"checks credentials"| node_credential_check
node_credential_check -->|"records outcome"| node_audit_logs
node_brute_force -.->|"flags repeated failures"| node_audit_logs
node_soc_dashboard -->|"queries activity"| node_audit_logs
node_log_api -.->|"serves logs"| node_audit_logs
node_admin_actions -->|"clears failed or all"| node_audit_logs

click node_login_terminal "https://github.com/nader11-hub/cloud_project/blob/main/app.py"
click node_credential_check "https://github.com/nader11-hub/cloud_project/blob/main/app.py"
click node_brute_force "https://github.com/nader11-hub/cloud_project/blob/main/app.py"
click node_audit_logs "https://github.com/nader11-hub/cloud_project/blob/main/app.py"
click node_soc_dashboard "https://github.com/nader11-hub/cloud_project/blob/main/app.py"
click node_log_api "https://github.com/nader11-hub/cloud_project/blob/main/app.py"
click node_health_endpoint "https://github.com/nader11-hub/cloud_project/blob/main/app.py"
click node_admin_actions "https://github.com/nader11-hub/cloud_project/blob/main/app.py"

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_login_terminal,node_credential_check,node_brute_force,node_user toneBlue
class node_audit_logs toneAmber
class node_soc_dashboard,node_log_api,node_health_endpoint,node_admin_actions toneMint
```

## Components

### Authentication & Detection

- [Login Terminal](https://github.com/nader11-hub/cloud_project/blob/main/app.py): `app.py`
- [Credential Check](https://github.com/nader11-hub/cloud_project/blob/main/app.py): `app.py`
- [Brute-Force Detection](https://github.com/nader11-hub/cloud_project/blob/main/app.py): `app.py`

### Audit Storage

- [Login Audit Logs](https://github.com/nader11-hub/cloud_project/blob/main/app.py): `app.py`

### SOC Operations

- [SOC Dashboard](https://github.com/nader11-hub/cloud_project/blob/main/app.py): `app.py`
- [Logs API](https://github.com/nader11-hub/cloud_project/blob/main/app.py): `app.py`
- [Health Endpoint](https://github.com/nader11-hub/cloud_project/blob/main/app.py): `app.py`
- [Admin Actions](https://github.com/nader11-hub/cloud_project/blob/main/app.py): `app.py`

### Other components

- **User**

## Connections

- User → Login Terminal: submits attempt (evidence: `app.py`)
- Login Terminal → Credential Check: checks credentials (evidence: `app.py`)
- Credential Check → Login Audit Logs: records outcome (evidence: `app.py`)
- Brute-Force Detection → Login Audit Logs: flags repeated failures (evidence: `README.md`)
- SOC Dashboard → Login Audit Logs: queries activity (evidence: `app.py`)
- Logs API → Login Audit Logs: serves logs (evidence: `README.md`)
- Admin Actions → Login Audit Logs: clears failed or all (evidence: `app.py`)
