# itspluxstahre/mremoteng architecture

> Architecture diagram of the GitHub repository itspluxstahre/mremoteng, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/itspluxstahre/mremoteng
- Repository: https://github.com/itspluxstahre/mremoteng

## Overview

##### Main Components Identification

The system should be divided into these major components:

a. Core Components:
- Connection Management System
- Protocol Handlers
- Security Layer
- Configuration Management
- User Interface
- External Connectors

##### Detailed Architecture Breakdown

**┌─ Presentation Layer ─────────────────────┐**
- Main Window (UI/Forms/frmMain)         │
- Connection Tree                        │
- Property Panels                        │
- Options Dialogs                        │
- ┬────────────────────────┘
- ↓
**┌─ Business Logic Layer ───────────────────┐**
- ┌─ Connection Management ─┐              │
- Connection Initiator  │              │
- Protocol Factory     │              │
- Connection Info      │              │
- ┘              │
- ┌─ Security ────────────┐               │
- Encryption          │               │
- Authentication      │               │
- Credential Manager  │               │
- ┘              │
- ┬────────────────────────┘
- ↓
**┌─ Data Access Layer ──────────────────────┐**
- XML Serialization                      │
- SQL Storage                            │
- Credential Repository                  │
- Configuration Management               │
- ┬────────────────────────┘
- ↓
**┌─ External Protocols/Services ────────────┐**
- RDP                                    │
- VNC                                    │
- SSH                                    │
- Telnet                                │
- HTTP/HTTPS                            │
- PowerShell                            │
- ┘

##### Component Interactions

- User Interface → Connection Management (connection requests)
- Connection Management → Protocol Handlers (protocol-specific operations)
- Security Layer ↔ All Components (encryption/decryption, authentication)
- Data Access Layer ↔ Business Logic (persistence operations)

##### External Integrations

External connectors and services:
- AWS Integration
- CPS (Password State)
- DSS (Secret Server)
- External Tools Support

##### Important Details

a. Security Features:
- Encryption providers
- Authentication mechanisms
- Credential management

b. Configuration Management:
- Settings storage
- Connection information
- Inheritance system

c. Protocol Support:
- Protocol factory pattern
- Protocol-specific configurations
- Connection handling

##### Additional Elements

Supplementary information:
- Database schema (for SQL storage)
- File storage structure
- Configuration inheritance flow
- Authentication flow

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph PL[Presentation Layer]
        UI[User Interface]:::ui
        CT[Connection Tree]:::ui
        PP[Property Panels]:::ui
        OD[Options Dialogs]:::ui
    end

    subgraph BL[Business Logic Layer]
        subgraph CM[Connection Management]
            CI[Connection Initiator]:::core
            PF[Protocol Factory]:::core
            CInfo[Connection Info]:::core
        end

        subgraph SEC[Security]
            ENC[Encryption]:::security
            AUTH[Authentication]:::security
            CRED[Credential Manager]:::security
        end
    end

    subgraph DAL[Data Access Layer]
        XML[XML Serialization]:::data
        SQL[SQL Storage]:::data
        CR[Credential Repository]:::data
        CFG[Configuration Management]:::data
    end

    subgraph EXT[External Protocols/Services]
        RDP[RDP]:::protocol
        VNC[VNC]:::protocol
        SSH[SSH]:::protocol
        TEL[Telnet]:::protocol
        HTTP[HTTP/HTTPS]:::protocol
        PS[PowerShell]:::protocol
    end

    subgraph EI[External Integrations]
        AWS[AWS Integration]:::external
        CPS[Password State]:::external
        DSS[Secret Server]:::external
        ET[External Tools]:::external
    end

    %% Connections
    UI --> CM
    CT --> CM
    PP --> CM
    OD --> CM
    
    CM --> PF
    PF --> EXT
    
    SEC <--> CM
    SEC <--> DAL
    
    CM <--> DAL
    DAL <--> EI

    %% Click Events
    click UI "https://github.com/itspluxstahre/mRemoteNG/tree/v1.77.3-dev/mRemoteNG/UI/"
    click CT "https://github.com/itspluxstahre/mRemoteNG/tree/v1.77.3-dev/mRemoteNG/Tree/"
    click CI "https://github.com/itspluxstahre/mRemoteNG/blob/v1.77.3-dev/mRemoteNG/Connection/ConnectionInitiator.cs"
    click PF "https://github.com/itspluxstahre/mRemoteNG/blob/v1.77.3-dev/mRemoteNG/Connection/Protocol/ProtocolFactory.cs"
    click CInfo "https://github.com/itspluxstahre/mRemoteNG/blob/v1.77.3-dev/mRemoteNG/Connection/ConnectionInfo.cs"
    click ENC "https://github.com/itspluxstahre/mRemoteNG/tree/v1.77.3-dev/mRemoteNG/Security/SymmetricEncryption/"
    click AUTH "https://github.com/itspluxstahre/mRemoteNG/tree/v1.77.3-dev/mRemoteNG/Security/Authentication/"
    click CRED "https://github.com/itspluxstahre/mRemoteNG/tree/v1.77.3-dev/mRemoteNG/Credential/"
    click CR "https://github.com/itspluxstahre/mRemoteNG/tree/v1.77.3-dev/mRemoteNG/Credential/Repositories/"
    click CFG "https://github.com/itspluxstahre/mRemoteNG/tree/v1.77.3-dev/mRemoteNG/Config/"
    click RDP "https://github.com/itspluxstahre/mRemoteNG/tree/v1.77.3-dev/mRemoteNG/Connection/Protocol/RDP/"
    click VNC "https://github.com/itspluxstahre/mRemoteNG/tree/v1.77.3-dev/mRemoteNG/Connection/Protocol/VNC/"
    click SSH "https://github.com/itspluxstahre/mRemoteNG/tree/v1.77.3-dev/mRemoteNG/Connection/Protocol/SSH/"
    click AWS "https://github.com/itspluxstahre/mRemoteNG/tree/v1.77.3-dev/ExternalConnectors/AWS/"
    click CPS "https://github.com/itspluxstahre/mRemoteNG/tree/v1.77.3-dev/ExternalConnectors/CPS/"
    click DSS "https://github.com/itspluxstahre/mRemoteNG/tree/v1.77.3-dev/ExternalConnectors/DSS/"

    %% Styles
    classDef ui fill:#2196F3,stroke:#1565C0,color:white
    classDef core fill:#4CAF50,stroke:#2E7D32,color:white
    classDef security fill:#F44336,stroke:#C62828,color:white
    classDef data fill:#FFC107,stroke:#FFA000,color:black
    classDef protocol fill:#9C27B0,stroke:#6A1B9A,color:white
    classDef external fill:#795548,stroke:#4E342E,color:white

    %% Legend
    subgraph Legend
        L1[UI Components]:::ui
        L2[Core Components]:::core
        L3[Security Components]:::security
        L4[Data Components]:::data
        L5[Protocol Handlers]:::protocol
        L6[External Services]:::external
    end
```
