Skip to content

docs: add comprehensive gh-aw three-layer security architecture to WORKFLOWS.md and SECURITY_ARCHITECTURE.md#2868

Merged
pethers merged 3 commits into
mainfrom
copilot/update-threat-model
Jun 2, 2026
Merged

docs: add comprehensive gh-aw three-layer security architecture to WORKFLOWS.md and SECURITY_ARCHITECTURE.md#2868
pethers merged 3 commits into
mainfrom
copilot/update-threat-model

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jun 2, 2026

Both WORKFLOWS.md and SECURITY_ARCHITECTURE.md lacked formal coverage of the gh-aw security architecture despite the repository running 14 agentic workflows within that runtime. The existing docs mentioned individual controls (Squid proxy, iptables, safe-outputs) but didn't map them to gh-aw's formal three-layer trust model.

Changes

WORKFLOWS.md (v7.5 → v7.6)

  • New "🏗️ gh-aw Security Architecture" section with:
    • Three-layer trust model Mermaid diagram (Substrate → Configuration → Plan)
    • Per-layer component tables mapping gh-aw controls to Riksdagsmonitor's specific 17-domain allowlist, 3 containerised MCP servers, and 5-layer output validator
    • SafeOutputs execution flow sequence diagram (read-only agent → artifact buffer → threat detection → gate → safe output jobs)
    • Combined security posture diagram showing all 14 workflows through the security stack
    • ISMS control mapping (ISO 27001, NIST CSF 2.0, CIS Controls v8.1) per layer
  • Added gh-aw architecture link to References section

SECURITY_ARCHITECTURE.md (v2.4 → v2.5)

  • New "🏗️ gh-aw Platform Security Architecture (Three-Layer Model)" section with:
    • Layer 1 infrastructure diagram (VM → AWF → MCP Gateway → API Proxy)
    • Layer 2 compile-time flow (.md → schema validation + SHA pinning + scanners → .lock.yml)
    • Layer 3 runtime controls (SafeOutputs permission separation, threat detection pipeline, content sanitisation, integrity filtering, secret redaction)
    • Combined posture table mapping gh-aw layers to project-specific extensions
  • Updated Five-Layer Safe-Output section intro to note it extends gh-aw Layer 3
  • Added gh-aw to TOC and policy references table
  • Added cross-reference to external gh-aw architecture docs

Key diagram example (SafeOutputs flow)

sequenceDiagram
    participant Agent as 🤖 AI Agent (read-only)
    participant Buffer as 📦 Artifact Buffer
    participant Detect as 🕵️ Threat Detection Job
    participant Gate as ⛔ Analysis Gate
    participant Output as 📤 Safe Output Jobs

    Agent->>Buffer: Write analysis artifacts + article
    Buffer->>Detect: Download artifacts for analysis
    Detect->>Gate: Structural validation (checks 1–9b)
    Gate->>Output: Authorize safe output execution
Loading

…expand democratic threats, improve diagrams

- Add comprehensive GitHub Agentic Workflows (gh-aw) 5-layer defense-in-depth security section
- Add gh-aw SafeOutputs data flow diagram, AWF architecture diagram, security mindmap
- Expand Democratic Threat Catalog with 12 categories, advanced scenarios, foreign influence operations
- Add AI-enabled threat scenarios (prompt injection, data poisoning, model compromise)
- Add gh-aw trust boundaries (TB-AW-1 through TB-AW-6)
- Add 8 gh-aw-specific STRIDE threats with mitigations
- Add Hack23 AI Policy alignment mindmap (OWASP LLM + EU AI Act + gh-aw controls)
- Add compilation-time security controls table
- Enhance icons and visual presentation throughout
- Update version to 2.0, effective date to 2026-06-02

Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Copilot AI requested a review from pethers June 2, 2026 08:30
@github-actions github-actions Bot added documentation Documentation updates security Security improvements isms ISMS compliance changes size-l Large change (250-1000 lines) labels Jun 2, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 2, 2026

🏷️ Automatic Labeling Summary

This PR has been automatically labeled based on the files changed and PR metadata.

Applied Labels: documentation,security,isms,size-l

Label Categories

  • 🗳️ Content: news, dashboard, visualization, intelligence
  • 💻 Technology: html-css, javascript, workflow, security
  • 📊 Data: cia-data, riksdag-data, data-pipeline, schema
  • 🌍 I18n: i18n, translation, rtl
  • 🔒 ISMS: isms, iso-27001, nist-csf, cis-controls
  • 🏗️ Infrastructure: ci-cd, deployment, performance, monitoring
  • 🔄 Quality: testing, accessibility, documentation, refactor
  • 🤖 AI: agent, skill, agentic-workflow

For more information, see .github/labeler.yml.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 2, 2026

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

…, supply chain, geopolitical threats

- Add Democratic Integrity & Accountability Threats (F13–F16)
- Add GDPR/Privacy threats (F17–F18)
- Add Supply Chain & AI Governance threats (F19–F21)
- Add Geopolitical & FIMI section with language-tier analysis
- Extend security controls FUT-023 to FUT-032
- Add extended STRIDE→Control mapping for new categories
- Add risk heat map (quadrant chart)
- Add timeline mermaid diagram for threat evolution
- Add 5 new mermaid flowchart diagrams
- Bump version to 2.1, update revision history
- Add coverage dimensions table to Purpose & Scope
- Add shields.io badges for threat count and control count

Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Copilot AI changed the title feat: Update THREAT_MODEL.md v2.0 — gh-aw Security Architecture, Enhanced Democratic Threats & AI Policy Alignment feat: expand FUTURE_THREAT_MODEL.md v2.1 — democratic integrity, GDPR, supply chain & geopolitical threats Jun 2, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 2, 2026

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

…LOWS.md and SECURITY_ARCHITECTURE.md

- Add new "gh-aw Security Architecture" section to WORKFLOWS.md with three-layer
  trust model (Substrate, Configuration, Plan-Level), Mermaid diagrams, and
  detailed component tables mapping gh-aw controls to Riksdagsmonitor usage
- Add "gh-aw Platform Security Architecture" section to SECURITY_ARCHITECTURE.md
  with infrastructure isolation diagrams, compile-time enforcement, runtime
  controls (SafeOutputs, threat detection, content sanitisation, integrity
  filtering, secret redaction), and combined security posture mapping
- Update SECURITY_ARCHITECTURE.md TOC with new section links
- Add gh-aw architecture to policy references table
- Update cross-references between both documents and external gh-aw docs
- Improve existing Five-Layer section to note it extends gh-aw Layer 3
- Bump document versions (WORKFLOWS 7.5→7.6, SECURITY_ARCHITECTURE 2.4→2.5)

Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Copilot AI changed the title feat: expand FUTURE_THREAT_MODEL.md v2.1 — democratic integrity, GDPR, supply chain & geopolitical threats docs: add comprehensive gh-aw three-layer security architecture to WORKFLOWS.md and SECURITY_ARCHITECTURE.md Jun 2, 2026
@github-actions github-actions Bot added iso-27001 ISO 27001 controls nist-csf NIST CSF compliance labels Jun 2, 2026
@github-actions github-actions Bot added cis-controls CIS Controls size-xl Extra large change (> 1000 lines) labels Jun 2, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 2, 2026

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

@pethers pethers marked this pull request as ready for review June 2, 2026 09:22
Copilot AI review requested due to automatic review settings June 2, 2026 09:22
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@pethers pethers requested a review from Copilot June 2, 2026 09:25
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@pethers pethers merged commit 5064504 into main Jun 2, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cis-controls CIS Controls documentation Documentation updates isms ISMS compliance changes iso-27001 ISO 27001 controls nist-csf NIST CSF compliance security Security improvements size-l Large change (250-1000 lines) size-xl Extra large change (> 1000 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants