# owasp/go-scp architecture

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

- Interactive diagram: https://gitdiagram.com/owasp/go-scp
- Repository: https://github.com/owasp/go-scp

## Overview

This repository is a book and hands-on reference for secure Go web-application development, not a web application runtime. The workflow is for a developer to read the guide and consult its topic chapters and Go examples for secure-coding recommendations. The graph preserves the major subject areas visible in the repository; the README supports the guide’s overall topic-by-topic structure, but does not establish a sequence or calls between chapters.

Main entry points: [`README.md`](https://github.com/owasp/go-scp/blob/master/README.md) (Secure coding guide), [`src/access-control/README.md`](https://github.com/owasp/go-scp/blob/master/src/access-control/README.md) (Access control), [`src/authentication-password-management/README.md`](https://github.com/owasp/go-scp/blob/master/src/authentication-password-management/README.md) (Authentication), [`src/session-management/README.md`](https://github.com/owasp/go-scp/blob/master/src/session-management/README.md) (Session management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_guide["Guide"]
  node_guide["Secure coding guide<br/>[README.md]"]
end

subgraph group_identity["Identity and Access"]
  node_access["Access control<br/>[README.md]"]
  node_authentication["Authentication<br/>[README.md]"]
  node_session["Session management<br/>[README.md]"]
end

subgraph group_application["Application Security"]
  node_input["Input validation<br/>[README.md]"]
  node_output["Output encoding<br/>[README.md]"]
  node_csrf["CSRF practices"]
  node_file["File management<br/>[README.md]"]
  node_communication["Communication security<br/>[README.md]"]
end

subgraph group_operations["Data and Operations"]
  node_database["Database security<br/>[README.md]"]
  node_data["Data protection<br/>[README.md]"]
  node_crypto["Cryptographic practices<br/>[README.md]"]
  node_errors["Error handling and logging<br/>[README.md]"]
  node_configuration["System configuration<br/>[README.md]"]
  node_memory["Memory management<br/>[README.md]"]
  node_general["General coding practices<br/>[README.md]"]
end

node_developer(("Go developer"))

node_developer -->|"reads"| node_guide
node_guide -->|"covers topics"| node_access
node_guide -->|"covers topics"| node_authentication
node_guide -->|"covers topics"| node_session
node_guide -->|"covers topics"| node_input
node_guide -->|"covers topics"| node_output
node_guide -->|"covers topics"| node_csrf
node_guide -->|"covers topics"| node_file
node_guide -->|"covers topics"| node_communication
node_guide -->|"covers topics"| node_database
node_guide -->|"covers topics"| node_data
node_guide -->|"covers topics"| node_crypto
node_guide -->|"covers topics"| node_errors
node_guide -->|"covers topics"| node_configuration
node_guide -->|"covers topics"| node_memory
node_guide -->|"covers topics"| node_general

click node_guide "https://github.com/owasp/go-scp/blob/master/README.md"
click node_access "https://github.com/owasp/go-scp/blob/master/src/access-control/README.md"
click node_authentication "https://github.com/owasp/go-scp/blob/master/src/authentication-password-management/README.md"
click node_session "https://github.com/owasp/go-scp/blob/master/src/session-management/README.md"
click node_input "https://github.com/owasp/go-scp/blob/master/src/input-validation/README.md"
click node_output "https://github.com/owasp/go-scp/blob/master/src/output-encoding/README.md"
click node_csrf "https://github.com/owasp/go-scp/blob/master/src/general-coding-practices/cross-site-request-forgery.md"
click node_file "https://github.com/owasp/go-scp/blob/master/src/file-management/README.md"
click node_communication "https://github.com/owasp/go-scp/blob/master/src/communication-security/README.md"
click node_database "https://github.com/owasp/go-scp/blob/master/src/database-security/README.md"
click node_data "https://github.com/owasp/go-scp/blob/master/src/data-protection/README.md"
click node_crypto "https://github.com/owasp/go-scp/blob/master/src/cryptographic-practices/README.md"
click node_errors "https://github.com/owasp/go-scp/blob/master/src/error-handling-logging/README.md"
click node_configuration "https://github.com/owasp/go-scp/blob/master/src/system-configuration/README.md"
click node_memory "https://github.com/owasp/go-scp/blob/master/src/memory-management/README.md"
click node_general "https://github.com/owasp/go-scp/blob/master/src/general-coding-practices/README.md"

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_guide toneBlue
class node_access,node_authentication,node_session toneAmber
class node_input,node_output,node_csrf,node_file,node_communication toneMint
class node_database,node_data,node_crypto,node_errors,node_configuration,node_memory,node_general toneRose
class node_developer toneIndigo
```

## Components

### Guide

- [Secure coding guide](https://github.com/owasp/go-scp/blob/master/README.md): `README.md`

### Identity and Access

- [Access control](https://github.com/owasp/go-scp/blob/master/src/access-control/README.md): `src/access-control/README.md`
- [Authentication](https://github.com/owasp/go-scp/blob/master/src/authentication-password-management/README.md): `src/authentication-password-management/README.md`
- [Session management](https://github.com/owasp/go-scp/blob/master/src/session-management/README.md): `src/session-management/README.md`

### Application Security

- [Input validation](https://github.com/owasp/go-scp/blob/master/src/input-validation/README.md): `src/input-validation/README.md`
- [Output encoding](https://github.com/owasp/go-scp/blob/master/src/output-encoding/README.md): `src/output-encoding/README.md`
- [CSRF practices](https://github.com/owasp/go-scp/blob/master/src/general-coding-practices/cross-site-request-forgery.md): `src/general-coding-practices/cross-site-request-forgery.md`
- [File management](https://github.com/owasp/go-scp/blob/master/src/file-management/README.md): `src/file-management/README.md`
- [Communication security](https://github.com/owasp/go-scp/blob/master/src/communication-security/README.md): `src/communication-security/README.md`

### Data and Operations

- [Database security](https://github.com/owasp/go-scp/blob/master/src/database-security/README.md): `src/database-security/README.md`
- [Data protection](https://github.com/owasp/go-scp/blob/master/src/data-protection/README.md): `src/data-protection/README.md`
- [Cryptographic practices](https://github.com/owasp/go-scp/blob/master/src/cryptographic-practices/README.md): `src/cryptographic-practices/README.md`
- [Error handling and logging](https://github.com/owasp/go-scp/blob/master/src/error-handling-logging/README.md): `src/error-handling-logging/README.md`
- [System configuration](https://github.com/owasp/go-scp/blob/master/src/system-configuration/README.md): `src/system-configuration/README.md`
- [Memory management](https://github.com/owasp/go-scp/blob/master/src/memory-management/README.md): `src/memory-management/README.md`
- [General coding practices](https://github.com/owasp/go-scp/blob/master/src/general-coding-practices/README.md): `src/general-coding-practices/README.md`

### Other components

- **Go developer**

## Connections

- Go developer → Secure coding guide: reads (evidence: `README.md`)
- Secure coding guide → Access control: covers topics (evidence: `README.md`)
- Secure coding guide → Authentication: covers topics (evidence: `README.md`)
- Secure coding guide → Session management: covers topics (evidence: `README.md`)
- Secure coding guide → Input validation: covers topics (evidence: `README.md`)
- Secure coding guide → Output encoding: covers topics (evidence: `README.md`)
- Secure coding guide → CSRF practices: covers topics (evidence: `README.md`)
- Secure coding guide → File management: covers topics (evidence: `README.md`)
- Secure coding guide → Communication security: covers topics (evidence: `README.md`)
- Secure coding guide → Database security: covers topics (evidence: `README.md`)
- Secure coding guide → Data protection: covers topics (evidence: `README.md`)
- Secure coding guide → Cryptographic practices: covers topics (evidence: `README.md`)
- Secure coding guide → Error handling and logging: covers topics (evidence: `README.md`)
- Secure coding guide → System configuration: covers topics (evidence: `README.md`)
- Secure coding guide → Memory management: covers topics (evidence: `README.md`)
- Secure coding guide → General coding practices: covers topics (evidence: `README.md`)
