Skip to content

Latest commit

 

History

History
237 lines (188 loc) · 11.8 KB

File metadata and controls

237 lines (188 loc) · 11.8 KB

Hack23 Logo

🏛️ Hack23 Homepage — Architecture

C4 Architecture Model: Static Website on AWS S3 + CloudFront
Corporate Cybersecurity Consulting Website — hack23.com

Owner Version Status Review Cycle

License OpenSSF Scorecard Verify and Deploy

📋 Document Owner: CEO | 📄 Version: 1.0 | 📅 Last Updated: 2026-02-20 (UTC) 🔄 Review Cycle: Quarterly | ⏰ Next Review: 2026-05-20 🏷️ Classification: Public Low Standard


📚 Architecture Documentation Map

Document Focus Description
🏛️ Architecture C4 Model C4 model showing system structure (this document)
🛡️ Security Architecture Security Security controls and infrastructure
📊 Data Model Data Content model and data structures
🔄 Flowchart Processes CI/CD and content workflows
📈 State Diagram States Deployment and content lifecycle states
🧠 Mindmap Concepts System conceptual relationships
💼 SWOT Strategy Strategic analysis and positioning
🔄 Workflows CI/CD GitHub Actions workflow documentation
🎯 Threat Model Threats STRIDE threat analysis
🛡️ CRA Assessment Compliance EU Cyber Resilience Act conformity
🏷️ Classification Data Security classification framework
🚀 Future Architecture Roadmap Architectural evolution plans

📑 Table of Contents


🌐 System Context

C4Context
    title System Context - Hack23 Homepage (hack23.com)

    Person(visitor, "🧑 Website Visitor", "Potential clients, partners, developers exploring Hack23's cybersecurity services")
    Person(admin, "👤 Content Admin", "CEO/developer maintaining website content")

    System(homepage, "🌐 Hack23 Homepage", "Static HTML/CSS corporate website showcasing cybersecurity consulting services, open-source projects, and ISMS transparency")

    System_Ext(cloudfront, "☁️ AWS CloudFront", "Global CDN with 400+ edge locations, DDoS protection, HTTPS termination")
    System_Ext(s3, "💾 AWS S3", "Static website hosting with versioning and encryption")
    System_Ext(github, "🔧 GitHub", "Source control, CI/CD, security scanning")
    System_Ext(ghpages, "📄 GitHub Pages", "DR hosting fallback")

    Rel(visitor, cloudfront, "Views website", "HTTPS/TLS 1.3")
    Rel(cloudfront, s3, "Serves content", "HTTPS")
    Rel(admin, github, "Pushes content changes", "HTTPS/SSH")
    Rel(github, s3, "Deploys via CI/CD", "AWS OIDC")
    Rel(visitor, ghpages, "DR fallback", "HTTPS")
Loading

🏢 Container View

C4Container
    title Container View - Hack23 Homepage

    Person(visitor, "Website Visitor", "Browser user")

    System_Boundary(website, "Hack23 Homepage") {
        Container(html, "📄 HTML Pages", "HTML5", "74+ pages across 14 languages: project showcases, blog posts, services, ISMS documentation")
        Container(css, "🎨 Stylesheet", "CSS3", "Single styles.css with responsive design, CSS custom properties, dark theme")
        Container(sitemap, "🗺️ Sitemap", "XML", "SEO sitemap with hreflang tags for 14 languages")
        Container(robots, "🤖 Robots.txt", "Text", "Search engine crawling directives")
        Container(schema, "📋 Schema.org", "JSON-LD", "Structured data for SEO: Organization, WebPage, FAQPage, BreadcrumbList")
    }

    System_Boundary(infra, "AWS Infrastructure") {
        Container(cf, "☁️ CloudFront", "CDN", "Global edge delivery, HTTPS, caching, security headers")
        Container(s3bucket, "💾 S3 Bucket", "Storage", "Static content with versioning, AES-256 encryption at rest")
        Container(route53, "🌍 Route53", "DNS", "Domain management with health checks")
        Container(acm, "🔒 ACM", "TLS", "SSL/TLS certificate management")
    }

    System_Boundary(cicd, "CI/CD Pipeline") {
        Container(actions, "⚙️ GitHub Actions", "CI/CD", "Build, validate, scan, deploy workflows")
        Container(scanning, "🔍 Security Scanning", "Tools", "CodeQL, ZAP, Scorecard, Dependency Review")
    }

    Rel(visitor, cf, "HTTPS requests", "TLS 1.3")
    Rel(cf, s3bucket, "Origin fetch", "HTTPS")
    Rel(actions, s3bucket, "Deploy content", "AWS OIDC")
    Rel(actions, scanning, "Security checks", "API")
Loading

🧩 Component View

C4Component
    title Component View - Hack23 Homepage Content

    Container_Boundary(content, "Website Content") {
        Component(index, "🏠 Homepage", "HTML", "Main landing page with services overview")
        Component(projects, "📦 Project Pages", "HTML", "CIA, Compliance Manager, Black Trigram, EU Parliament MCP, Riksdagsmonitor, EU Parliament Monitor")
        Component(docs, "📚 Documentation Pages", "HTML", "6 project documentation pages with ISMS cards")
        Component(features, "⭐ Feature Pages", "HTML", "6 project feature showcase pages")
        Component(blog, "📝 Blog Posts", "HTML", "Security, compliance, Discordian framework articles")
        Component(services, "💼 Services", "HTML", "Consulting services and offerings")
        Component(i18n, "🌍 Translations", "HTML", "13+ language variants with _suffix naming")
    }

    Container_Boundary(seo, "SEO & Metadata") {
        Component(meta, "🏷️ Meta Tags", "HTML", "Open Graph, Twitter Cards, hreflang")
        Component(schemaorg, "📋 Schema.org", "JSON-LD", "Structured data markup")
        Component(breadcrumbs, "🍞 Breadcrumbs", "HTML", "Navigation with Schema.org BreadcrumbList")
    }

    Container_Boundary(style, "Styling") {
        Component(stylesheet, "🎨 styles.css", "CSS3", "Single CSS file with custom properties and responsive grid")
    }
Loading

📁 File Structure

hack23-homepage/
├── 📄 index.html                    # Main landing page
├── 📄 *-project.html                # Project overview pages (6)
├── 📄 *-features.html               # Project feature pages (6)
├── 📄 *-docs.html                   # Project documentation pages (6)
├── 📄 blog-*.html                   # Blog articles
├── 📄 services.html                 # Services page
├── 📄 why-hack23.html               # About/differentiators
├── 📄 *_{lang}.html                 # Translated pages (13+ languages)
├── 🎨 styles.css                    # Single stylesheet
├── 🗺️ sitemap.xml                   # XML sitemap with hreflang
├── 📄 sitemap_*.html                # HTML sitemaps per language
├── 🤖 robots.txt                    # Crawling directives
├── 📄 budget.json                   # Lighthouse performance budgets
├── 📄 .htmlhintrc                   # HTML linting configuration
├── 📁 screenshots/                  # Visual assets
├── 📁 .github/
│   ├── 📁 workflows/                # CI/CD pipeline definitions
│   ├── 📁 skills/                   # 58 skills library
│   └── 📁 agents/                   # 8 custom Copilot agents
├── 📄 SECURITY_ARCHITECTURE.md      # Security design
├── 📄 ARCHITECTURE.md               # C4 architecture (this file)
├── 📄 THREAT_MODEL.md               # Threat analysis
├── 📄 WORKFLOWS.md                  # CI/CD documentation
└── 📄 README.md                     # Project overview

⚙️ Technology Stack

Layer Technology Purpose
Content HTML5 Semantic markup with Schema.org structured data
Styling CSS3 Responsive design with custom properties
Hosting AWS S3 Static website hosting with versioning
CDN AWS CloudFront Global edge delivery with HTTPS
DNS AWS Route53 Domain management
TLS AWS ACM Certificate management (TLS 1.3)
CI/CD GitHub Actions Automated build, test, deploy pipeline
Security CodeQL, ZAP, Scorecard Multi-layer security scanning
Quality HTMLHint, Lighthouse, html5validator Content validation and performance
Supply Chain SLSA Build Level 3 Build provenance and attestation

🔄 Deployment Architecture

flowchart LR
    subgraph GitHub["🔧 GitHub"]
        repo[Repository] --> actions[GitHub Actions]
        actions --> validate[Validate HTML/CSS]
        validate --> scan[Security Scan]
        scan --> build[Minify & Build]
    end

    subgraph AWS["☁️ AWS"]
        build --> s3[S3 Bucket]
        s3 --> cf[CloudFront CDN]
        cf --> edge[Edge Locations]
    end

    edge --> visitor[🧑 Visitor]
Loading

📋 ISMS Compliance

This architecture aligns with the following ISMS frameworks:

Framework Controls Status
ISO 27001:2022 A.8.9 Configuration Management, A.8.25 Secure Development ✅ Implemented
NIST CSF 2.0 PR.DS-1 Data-at-Rest Protection, PR.IP-1 Configuration Baseline ✅ Implemented
CIS Controls v8.1 CIS 2 Software Inventory, CIS 16 Application Software Security ✅ Implemented

Related ISMS Policies