# emersonfelipesp/netbox-proxbox architecture

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

- Interactive diagram: https://gitdiagram.com/emersonfelipesp/netbox-proxbox
- Repository: https://github.com/emersonfelipesp/netbox-proxbox

## Overview

Proxbox is a NetBox plugin for discovering Proxmox infrastructure and synchronizing inventory into NetBox. Operators trigger syncs in the UI or schedule them through NetBox; synchronized records cover clusters, nodes, VMs, containers, storage, backups, snapshots, replication, network interfaces, and Firecracker inventory. Separate product branches provide intent-based Proxmox changes, browser consoles, data-protection views, and optional integrations. The map combines README-documented capabilities with sampled backend, model, and view references; unsampled subsystem links are omitted where their caller is not evidenced.

Main entry points: [`netbox_proxbox/views/backend_sync.py`](https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/views/backend_sync.py) (Backend sync), [`netbox_proxbox/views/sync.py`](https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/views/sync.py) (Sync controls), [`netbox_proxbox/jobs.py`](https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/jobs.py) (Scheduled sync), [`netbox_proxbox/services/individual_sync.py`](https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/services/individual_sync.py) (Individual sync)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_sync["Synchronization"]
  node_sync_ui["Sync controls<br/>[sync.py]"]
  node_scheduled_sync["Scheduled sync<br/>[jobs.py]"]
  node_backend_sync["Backend sync<br/>[backend_sync.py]"]
  node_individual_sync["Individual sync<br/>[individual_sync.py]"]
end

subgraph group_inventory["Inventory"]
  node_inventory_models[("Synced inventory")]
  node_storage_views["Storage views<br/>[storage.py]"]
  node_storage_sync["Storage sync action<br/>[storage.py]"]
  node_schemas["API schemas"]
  node_firecracker[("Firecracker inventory<br/>[firecracker.py]")]
end

subgraph group_operations["Operations"]
  node_intent["Intent planning"]
  node_console["VM console<br/>[vm_console.py]"]
  node_protection["Data protection calendar<br/>[data_protection.py]"]
  node_service_monitoring["Service monitoring<br/>[service_status.py]"]
end

subgraph group_backend["Backend and security"]
  node_backend_context["Backend context<br/>[backend_context.py]"]
  node_auth["Backend authentication<br/>[backend_auth.py]"]
  node_openbao["OpenBao credentials<br/>[openbao.py]"]
  node_companion_rpc["Optional RPC integration<br/>[rpc.py]"]
  node_settings[("Plugin settings<br/>[plugin_settings.py]")]
end

subgraph group_clients["User interfaces"]
  node_cli["Proxbox CLI<br/>[__init__.py]"]
  node_cli_config["CLI configuration<br/>[config.py]"]
end

node_operator(("NetBox operator"))
node_scheduler(("NetBox job system"))
node_proxmox["Proxmox infrastructure"]
node_api_proxy["Proxbox API"]

node_operator -->|"starts sync"| node_sync_ui
node_scheduler -->|"runs jobs"| node_scheduled_sync
node_sync_ui -.->|"requests sync"| node_backend_sync
node_scheduled_sync -.->|"requests sync"| node_backend_sync
node_backend_sync -.->|"calls backend"| node_api_proxy
node_api_proxy -->|"discovers inventory"| node_proxmox
node_api_proxy -->|"syncs records"| node_inventory_models
node_storage_sync -->|"invokes sync"| node_individual_sync
node_individual_sync -.->|"requests item sync"| node_api_proxy
node_storage_views -->|"reads live content"| node_api_proxy
node_schemas -.->|"models API data"| node_inventory_models
node_operator -.->|"plans changes"| node_intent
node_operator -->|"opens console"| node_console
node_console -->|"relays access"| node_api_proxy
node_operator -->|"views schedule"| node_protection
node_api_proxy -.->|"provides status"| node_service_monitoring
node_backend_sync -->|"uses context"| node_backend_context
node_backend_context -->|"uses authentication"| node_auth
node_backend_sync -->|"uses credentials"| node_openbao
node_openbao -.->|"reads policy"| node_settings
node_service_monitoring -->|"checks backend"| node_api_proxy
node_operator -.->|"runs commands"| node_cli
node_cli -->|"loads settings"| node_cli_config
node_companion_rpc -.->|"runs procedures"| node_proxmox
node_proxmox -->|"supplies cloud inventory"| node_firecracker

click node_sync_ui "https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/views/sync.py"
click node_scheduled_sync "https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/jobs.py"
click node_backend_sync "https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/views/backend_sync.py"
click node_individual_sync "https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/services/individual_sync.py"
click node_inventory_models "https://github.com/emersonfelipesp/netbox-proxbox/tree/main/netbox_proxbox/models"
click node_storage_views "https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/views/storage.py"
click node_storage_sync "https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/views/sync_now/storage.py"
click node_schemas "https://github.com/emersonfelipesp/netbox-proxbox/tree/main/netbox_proxbox/schemas"
click node_intent "https://github.com/emersonfelipesp/netbox-proxbox/tree/main/netbox_proxbox/intent"
click node_firecracker "https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/models/firecracker.py"
click node_console "https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/views/vm_console.py"
click node_protection "https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/views/data_protection.py"
click node_service_monitoring "https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/services/service_status.py"
click node_backend_context "https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/services/backend_context.py"
click node_auth "https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/services/backend_auth.py"
click node_openbao "https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/integrations/openbao.py"
click node_companion_rpc "https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/integrations/rpc.py"
click node_cli "https://github.com/emersonfelipesp/netbox-proxbox/blob/main/proxbox_cli/__init__.py"
click node_cli_config "https://github.com/emersonfelipesp/netbox-proxbox/blob/main/proxbox_cli/config.py"
click node_settings "https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/models/plugin_settings.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_sync_ui,node_scheduled_sync,node_backend_sync,node_individual_sync toneBlue
class node_inventory_models,node_storage_views,node_storage_sync,node_schemas,node_firecracker toneAmber
class node_intent,node_console,node_protection,node_service_monitoring,node_api_proxy toneMint
class node_backend_context,node_auth,node_openbao,node_companion_rpc,node_settings toneRose
class node_cli,node_cli_config,node_operator,node_scheduler,node_proxmox toneIndigo
```

## Components

### Synchronization

- [Sync controls](https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/views/sync.py): `netbox_proxbox/views/sync.py`
- [Scheduled sync](https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/jobs.py): `netbox_proxbox/jobs.py`
- [Backend sync](https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/views/backend_sync.py): `netbox_proxbox/views/backend_sync.py`
- [Individual sync](https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/services/individual_sync.py): `netbox_proxbox/services/individual_sync.py`

### Inventory

- [Synced inventory](https://github.com/emersonfelipesp/netbox-proxbox/tree/main/netbox_proxbox/models): `netbox_proxbox/models`
- [Storage views](https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/views/storage.py): `netbox_proxbox/views/storage.py`
- [Storage sync action](https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/views/sync_now/storage.py): `netbox_proxbox/views/sync_now/storage.py`
- [API schemas](https://github.com/emersonfelipesp/netbox-proxbox/tree/main/netbox_proxbox/schemas): `netbox_proxbox/schemas`
- [Firecracker inventory](https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/models/firecracker.py): `netbox_proxbox/models/firecracker.py`

### Operations

- [Intent planning](https://github.com/emersonfelipesp/netbox-proxbox/tree/main/netbox_proxbox/intent): `netbox_proxbox/intent`
- [VM console](https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/views/vm_console.py): `netbox_proxbox/views/vm_console.py`
- [Data protection calendar](https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/views/data_protection.py): `netbox_proxbox/views/data_protection.py`
- [Service monitoring](https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/services/service_status.py): `netbox_proxbox/services/service_status.py`

### Backend and security

- [Backend context](https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/services/backend_context.py): `netbox_proxbox/services/backend_context.py`
- [Backend authentication](https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/services/backend_auth.py): `netbox_proxbox/services/backend_auth.py`
- [OpenBao credentials](https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/integrations/openbao.py): `netbox_proxbox/integrations/openbao.py`
- [Optional RPC integration](https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/integrations/rpc.py): `netbox_proxbox/integrations/rpc.py`
- [Plugin settings](https://github.com/emersonfelipesp/netbox-proxbox/blob/main/netbox_proxbox/models/plugin_settings.py): `netbox_proxbox/models/plugin_settings.py`

### User interfaces

- [Proxbox CLI](https://github.com/emersonfelipesp/netbox-proxbox/blob/main/proxbox_cli/__init__.py): `proxbox_cli/__init__.py`
- [CLI configuration](https://github.com/emersonfelipesp/netbox-proxbox/blob/main/proxbox_cli/config.py): `proxbox_cli/config.py`

### Other components

- **NetBox operator**
- **NetBox job system**
- **Proxmox infrastructure**
- **Proxbox API**

## Connections

- NetBox operator → Sync controls: starts sync (evidence: `README.md`)
- NetBox job system → Scheduled sync: runs jobs (evidence: `README.md`)
- Sync controls → Backend sync: requests sync
- Scheduled sync → Backend sync: requests sync
- Backend sync → Proxbox API: calls backend
- Proxbox API → Proxmox infrastructure: discovers inventory (evidence: `README.md`)
- Proxbox API → Synced inventory: syncs records (evidence: `README.md`)
- Storage sync action → Individual sync: invokes sync (evidence: `netbox_proxbox/views/sync_now/storage.py`)
- Individual sync → Proxbox API: requests item sync
- Storage views → Proxbox API: reads live content (evidence: `netbox_proxbox/views/storage.py`)
- API schemas → Synced inventory: models API data
- NetBox operator → Intent planning: plans changes
- NetBox operator → VM console: opens console (evidence: `README.md`)
- VM console → Proxbox API: relays access (evidence: `README.md`)
- NetBox operator → Data protection calendar: views schedule (evidence: `README.md`)
- Proxbox API → Service monitoring: provides status
- Backend sync → Backend context: uses context (evidence: `netbox_proxbox/views/backend_sync.py`)
- Backend context → Backend authentication: uses authentication (evidence: `netbox_proxbox/services/backend_context.py`)
- Backend sync → OpenBao credentials: uses credentials (evidence: `netbox_proxbox/views/backend_sync.py`)
- OpenBao credentials → Plugin settings: reads policy
- Service monitoring → Proxbox API: checks backend (evidence: `netbox_proxbox/services/service_status.py`)
- NetBox operator → Proxbox CLI: runs commands
- Proxbox CLI → CLI configuration: loads settings (evidence: `proxbox_cli/__init__.py`)
- Optional RPC integration → Proxmox infrastructure: runs procedures (evidence: `README.md`)
- Proxmox infrastructure → Firecracker inventory: supplies cloud inventory (evidence: `README.md`)
