Skip to content

mrachcore/config-inspector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Config Inspector

by mrachcore

Local configuration analysis & validation dashboard built with Python and Streamlit.

Modern sysadmin-style tooling for config inspection, security checks and risk reporting.


๐Ÿ“Œ Overview

Config Inspector is a lightweight local dashboard designed to analyze configuration files, detect risky settings, validate config structure, and generate simple security-oriented reports.

The application helps inspect uploaded config files such as:

  • .env
  • .json
  • .yaml
  • .ini
  • .cfg
  • .conf

and highlights possible security or configuration issues inside a clean modern dashboard interface.

This project was created as part of my learning journey during my Ausbildung as a Fachinformatiker fรผr Systemintegration.

The application runs fully locally and does not require:

  • cloud services
  • paid APIs
  • databases
  • Docker
  • external infrastructure

All analysis is performed locally on uploaded files only.


โœจ Features

๐Ÿ–ฅ Dashboard

  • Modern overview page
  • Config inspection workflow explanation
  • Professional internal-tool style UI
  • Clean metric cards and navigation

๐Ÿ“‚ Upload Config

  • Upload local config files
  • Detect file type automatically
  • Preview raw config content
  • Load included sample configs
  • File metadata overview

๐Ÿงฉ Structure Viewer

  • JSON validation
  • YAML validation
  • INI/CFG parsing
  • ENV variable parsing
  • Generic key=value detection
  • Friendly error handling for invalid files

๐Ÿ” Security Checks

Detect risky settings such as:

  • Debug mode enabled
  • Development environments
  • Weak/default passwords
  • Hardcoded secrets
  • Public access enabled
  • SSL/TLS disabled
  • Empty secret values

Severity levels:

  • INFO
  • WARNING
  • HIGH
  • CRITICAL

โš  Risk Overview

  • Simple risk scoring system
  • Severity distribution
  • Overall configuration risk level
  • Findings overview table
  • Risk summary metrics

๐Ÿ“‘ Reports

  • Generate local config inspection reports
  • TXT report export
  • CSV export for findings
  • Security findings summary

๐Ÿ›  Tech Stack

Technology Purpose
Python Core language
Streamlit Dashboard UI
pandas Tables & reporting
PyYAML YAML parsing
configparser INI parsing
regex Pattern detection
pathlib File handling

๐ŸŽจ UI Design

The interface is inspired by:

  • modern internal IT dashboards
  • infrastructure validation tools
  • security audit panels
  • sysadmin workflows

Design Highlights

  • Dark mode only
  • Professional dashboard layout
  • Soft glass-like cards
  • Terminal-style preview sections
  • Severity badges
  • Responsive layout
  • Modern typography
  • Cyber-inspired accent colors

๐Ÿš€ Installation & Setup

Requirements

  • Python 3.10 or newer recommended
  • Local laptop or desktop
  • Internet access only for installing Python packages

Clone Repository

git clone https://github.com/mrachcore/config-inspector.git

Open Project Folder

cd config-inspector

Create Virtual Environment

python -m venv .venv

Activate Virtual Environment

Windows

.venv\Scripts\activate

Linux/macOS

source .venv/bin/activate

Install Dependencies

pip install -r requirements.txt

โ–ถ Run The App

streamlit run app.py

Streamlit will print a local URL, usually:

http://localhost:8501

Open that URL in your browser.


๐Ÿ“‚ Project Structure

config-inspector/
โ”‚
โ”œโ”€โ”€ app.py
โ”œโ”€โ”€ requirements.txt
โ”œโ”€โ”€ README.md
โ”‚
โ”œโ”€โ”€ assets/
โ”‚   โ””โ”€โ”€ logo.png
โ”‚
โ”œโ”€โ”€ sample_configs/
โ”‚   โ”œโ”€โ”€ sample.env
โ”‚   โ”œโ”€โ”€ sample.json
โ”‚   โ”œโ”€โ”€ sample.yaml
โ”‚   โ””โ”€โ”€ sample.ini
โ”‚
โ”œโ”€โ”€ screenshots/
โ”‚   โ”œโ”€โ”€ dashboard.png
โ”‚   โ”œโ”€โ”€ upload-config.png
โ”‚   โ”œโ”€โ”€ structure-viewer.png
โ”‚   โ”œโ”€โ”€ security-checks.png
โ”‚   โ”œโ”€โ”€ risk-overview.png
โ”‚   โ””โ”€โ”€ reports.png
โ”‚
โ””โ”€โ”€ utils/
    โ”œโ”€โ”€ config_parser.py
    โ”œโ”€โ”€ security_checks.py
    โ””โ”€โ”€ report_generator.py

๐Ÿ“ธ Screenshots

Dashboard

Dashboard


Upload Config

Upload Config


Structure Viewer

Structure Viewer


Security Checks

Security Checks


Risk Overview

Risk Overview


Reports

Reports


๐Ÿ“„ Sample Config Files

The project includes example configuration files inside:

sample_configs/

Included examples:

  • sample.env
  • sample.json
  • sample.yaml
  • sample.ini

These files contain fictional insecure settings for testing and demonstration purposes only.

Example findings:

  • weak passwords
  • debug mode enabled
  • public access enabled
  • development environment settings
  • hardcoded secrets

๐ŸŽฏ Purpose of This Project

This project was built to:

  • improve Python skills
  • learn config parsing workflows
  • practice security-oriented validation logic
  • understand common configuration risks
  • build realistic sysadmin tooling
  • create a professional portfolio project

๐Ÿ“š What I Learned

  • Config file parsing
  • JSON/YAML validation
  • Regex-based security checks
  • Streamlit dashboard development
  • Risk scoring systems
  • Report generation
  • Error handling
  • Building beginner-friendly tooling

๐Ÿ”ฎ Future Improvements

Possible future additions:

  • TOML support
  • XML config support
  • Docker compose inspection
  • Kubernetes YAML validation
  • Rule customization
  • Advanced secret detection
  • Config comparison mode
  • PDF report export

๐Ÿ“ Notes

  • All analysis is performed locally.
  • No uploaded files leave the machine.
  • The application does not connect to production systems.
  • Invalid configs are handled gracefully where possible.
  • Example configs are fictional and intended only for testing.

๐Ÿ‘จโ€๐Ÿ’ป Author

mrachcore

Code. Connect. Control.


๐ŸŒ GitHub

Repository:

https://github.com/mrachcore/config-inspector

โš  Disclaimer

This tool was created for educational and portfolio purposes.

Use responsibly and only with configuration files you are authorized to analyze.

About

Local configuration analysis and validation dashboard built with Python & Streamlit.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages