# ndanatnas/sigilla-iga-lab architecture

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

- Interactive diagram: https://gitdiagram.com/ndanatnas/sigilla-iga-lab
- Repository: https://github.com/ndanatnas/sigilla-iga-lab

## Overview

Sigilla IGA Lab is a configuration-led identity-governance demonstration for a fictional school. Its built workflow imports staff records from CSV into midPoint, correlating on employeeNumber; the README says all sixteen accounts are readable. Keycloak’s realm and group model are configured, but provisioning from midPoint is not built. Joiner, mover, leaver, reconciliation, and segregation-of-duties remediation are intended capabilities, not implemented flows. Edges reflect README statements; the XML configuration contents were not sampled, so their internal behavior is not inferred.

Main entry points: [`keycloak/realm-sigilla.json`](https://github.com/ndanatnas/sigilla-iga-lab/blob/main/keycloak/realm-sigilla.json) (Realm configuration), [`midpoint/objects/resource-hr-source-csv.xml`](https://github.com/ndanatnas/sigilla-iga-lab/blob/main/midpoint/objects/resource-hr-source-csv.xml) (CSV resource), [`hr-source/staff.csv`](https://github.com/ndanatnas/sigilla-iga-lab/blob/main/hr-source/staff.csv) (HR staff records), [`midpoint/objects/task-hr-source-import-full.xml`](https://github.com/ndanatnas/sigilla-iga-lab/blob/main/midpoint/objects/task-hr-source-import-full.xml) (Full import task)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_source["Authoritative source"]
  node_hr["HR staff records<br/>[staff.csv]"]
end

subgraph group_governance["Identity governance"]
  node_mpresource["CSV resource"]
  node_fullimport["Full import task"]
  node_simulation["Simulation task"]
  node_midpoint["midPoint engine"]
end

subgraph group_target["Target and entitlements"]
  node_realm["Realm configuration<br/>[realm-sigilla.json]"]
  node_keycloak["Keycloak target"]
  node_groups["Group entitlements<br/>[realm-sigilla.json]"]
end

subgraph group_planned["Planned governance"]
  node_lifecycle["Joiner mover leaver"]
  node_reconcile["Reconciliation"]
  node_sod["SoD detection"]
  node_certification["Access certification"]
end

node_hr -->|"read source"| node_mpresource
node_mpresource -->|"configure resource"| node_midpoint
node_fullimport -->|"import accounts"| node_midpoint
node_simulation -.->|"simulate import"| node_midpoint
node_midpoint -.->|"provision accounts"| node_keycloak
node_keycloak -.->|"reconcile drift"| node_midpoint
node_realm -->|"configure realm"| node_keycloak
node_realm -->|"defines entitlements"| node_groups
node_midpoint -.->|"planned flows"| node_lifecycle
node_midpoint -.->|"planned detection"| node_reconcile
node_midpoint -.->|"planned remediation"| node_sod
node_midpoint -.->|"roadmap campaign"| node_certification

click node_hr "https://github.com/ndanatnas/sigilla-iga-lab/blob/main/hr-source/staff.csv"
click node_mpresource "https://github.com/ndanatnas/sigilla-iga-lab/blob/main/midpoint/objects/resource-hr-source-csv.xml"
click node_fullimport "https://github.com/ndanatnas/sigilla-iga-lab/blob/main/midpoint/objects/task-hr-source-import-full.xml"
click node_simulation "https://github.com/ndanatnas/sigilla-iga-lab/blob/main/midpoint/objects/task-hr-source-import-simulation.xml"
click node_realm "https://github.com/ndanatnas/sigilla-iga-lab/blob/main/keycloak/realm-sigilla.json"
click node_groups "https://github.com/ndanatnas/sigilla-iga-lab/blob/main/keycloak/realm-sigilla.json"
click node_lifecycle "https://github.com/ndanatnas/sigilla-iga-lab/tree/main/midpoint/objects"
click node_reconcile "https://github.com/ndanatnas/sigilla-iga-lab/tree/main/midpoint/objects"
click node_sod "https://github.com/ndanatnas/sigilla-iga-lab/tree/main/midpoint/objects"
click node_certification "https://github.com/ndanatnas/sigilla-iga-lab/tree/main/midpoint/objects"

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_hr toneBlue
class node_mpresource,node_fullimport,node_simulation,node_midpoint toneAmber
class node_realm,node_keycloak,node_groups toneMint
class node_lifecycle,node_reconcile,node_sod,node_certification toneRose
```

## Components

### Authoritative source

- [HR staff records](https://github.com/ndanatnas/sigilla-iga-lab/blob/main/hr-source/staff.csv): `hr-source/staff.csv`

### Identity governance

- [CSV resource](https://github.com/ndanatnas/sigilla-iga-lab/blob/main/midpoint/objects/resource-hr-source-csv.xml): `midpoint/objects/resource-hr-source-csv.xml`
- [Full import task](https://github.com/ndanatnas/sigilla-iga-lab/blob/main/midpoint/objects/task-hr-source-import-full.xml): `midpoint/objects/task-hr-source-import-full.xml`
- [Simulation task](https://github.com/ndanatnas/sigilla-iga-lab/blob/main/midpoint/objects/task-hr-source-import-simulation.xml): `midpoint/objects/task-hr-source-import-simulation.xml`
- **midPoint engine**

### Target and entitlements

- [Realm configuration](https://github.com/ndanatnas/sigilla-iga-lab/blob/main/keycloak/realm-sigilla.json): `keycloak/realm-sigilla.json`
- **Keycloak target**
- [Group entitlements](https://github.com/ndanatnas/sigilla-iga-lab/blob/main/keycloak/realm-sigilla.json): `keycloak/realm-sigilla.json`

### Planned governance

- [Joiner mover leaver](https://github.com/ndanatnas/sigilla-iga-lab/tree/main/midpoint/objects): `midpoint/objects`
- [Reconciliation](https://github.com/ndanatnas/sigilla-iga-lab/tree/main/midpoint/objects): `midpoint/objects`
- [SoD detection](https://github.com/ndanatnas/sigilla-iga-lab/tree/main/midpoint/objects): `midpoint/objects`
- [Access certification](https://github.com/ndanatnas/sigilla-iga-lab/tree/main/midpoint/objects): `midpoint/objects`

## Connections

- HR staff records → CSV resource: read source (evidence: `README.md`)
- CSV resource → midPoint engine: configure resource (evidence: `README.md`)
- Full import task → midPoint engine: import accounts (evidence: `README.md`)
- Simulation task → midPoint engine: simulate import
- midPoint engine → Keycloak target: provision accounts (evidence: `README.md`)
- Keycloak target → midPoint engine: reconcile drift (evidence: `README.md`)
- Realm configuration → Keycloak target: configure realm (evidence: `README.md`)
- Realm configuration → Group entitlements: defines entitlements (evidence: `README.md`)
- midPoint engine → Joiner mover leaver: planned flows (evidence: `README.md`)
- midPoint engine → Reconciliation: planned detection (evidence: `README.md`)
- midPoint engine → SoD detection: planned remediation (evidence: `README.md`)
- midPoint engine → Access certification: roadmap campaign (evidence: `README.md`)
