# fiston/spring-boot-signing-example architecture

> Architecture diagram of the GitHub repository fiston/spring-boot-signing-example, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/fiston/spring-boot-signing-example
- Repository: https://github.com/fiston/spring-boot-signing-example

## Overview

This is a small Spring-based IAM application. Its visible product surface includes web handling, resource persistence, security configuration, and a protobuf contract for client registration, updates, and deletion. The Kotlin implementation excerpts are unavailable and the README is empty, so connections among the controller, repository, and IAM client are not asserted; the graph shows only the contract-defined operations and the web entry point.

Main entry points: [`src/main/proto/iam.proto`](https://github.com/fiston/spring-boot-signing-example/blob/main/src/main/proto/iam.proto) (Registration contract), [`src/main/kotlin/com/example/iam/controller/WebController.kt`](https://github.com/fiston/spring-boot-signing-example/blob/main/src/main/kotlin/com/example/iam/controller/WebController.kt) (Web controller)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_app["Application bootstrap<br/>[IamApplication.kt]"]
  node_controller["Web controller<br/>[WebController.kt]"]
  node_security["Security configuration<br/>[SecurityConfig.kt]"]
end

subgraph group_resources["Resource persistence"]
  node_resource["Resource model<br/>[Resource.kt]"]
  node_repository["Resource repository"]
end

subgraph group_iam["IAM integration"]
  node_iamclient["IAM client<br/>[IamClient.kt]"]
  node_contract["Registration contract<br/>[iam.proto]"]
end

node_caller(("Web caller"))

node_caller -->|"sends web requests"| node_controller
node_contract -->|"defines register, update, delete RPCs"| node_contract

click node_app "https://github.com/fiston/spring-boot-signing-example/blob/main/src/main/kotlin/com/example/iam/IamApplication.kt"
click node_controller "https://github.com/fiston/spring-boot-signing-example/blob/main/src/main/kotlin/com/example/iam/controller/WebController.kt"
click node_security "https://github.com/fiston/spring-boot-signing-example/blob/main/src/main/kotlin/com/example/iam/config/SecurityConfig.kt"
click node_resource "https://github.com/fiston/spring-boot-signing-example/blob/main/src/main/kotlin/com/example/iam/domain/Resource.kt"
click node_repository "https://github.com/fiston/spring-boot-signing-example/blob/main/src/main/kotlin/com/example/iam/repository/ResourceRepository.kt"
click node_iamclient "https://github.com/fiston/spring-boot-signing-example/blob/main/src/main/kotlin/com/example/iam/iam/IamClient.kt"
click node_contract "https://github.com/fiston/spring-boot-signing-example/blob/main/src/main/proto/iam.proto"

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_app,node_controller,node_security toneBlue
class node_resource,node_repository toneAmber
class node_iamclient,node_contract toneMint
class node_caller toneIndigo
```

## Components

### Web application

- [Application bootstrap](https://github.com/fiston/spring-boot-signing-example/blob/main/src/main/kotlin/com/example/iam/IamApplication.kt): `src/main/kotlin/com/example/iam/IamApplication.kt`
- [Web controller](https://github.com/fiston/spring-boot-signing-example/blob/main/src/main/kotlin/com/example/iam/controller/WebController.kt): `src/main/kotlin/com/example/iam/controller/WebController.kt`
- [Security configuration](https://github.com/fiston/spring-boot-signing-example/blob/main/src/main/kotlin/com/example/iam/config/SecurityConfig.kt): `src/main/kotlin/com/example/iam/config/SecurityConfig.kt`

### Resource persistence

- [Resource model](https://github.com/fiston/spring-boot-signing-example/blob/main/src/main/kotlin/com/example/iam/domain/Resource.kt): `src/main/kotlin/com/example/iam/domain/Resource.kt`
- [Resource repository](https://github.com/fiston/spring-boot-signing-example/blob/main/src/main/kotlin/com/example/iam/repository/ResourceRepository.kt): `src/main/kotlin/com/example/iam/repository/ResourceRepository.kt`

### IAM integration

- [IAM client](https://github.com/fiston/spring-boot-signing-example/blob/main/src/main/kotlin/com/example/iam/iam/IamClient.kt): `src/main/kotlin/com/example/iam/iam/IamClient.kt`
- [Registration contract](https://github.com/fiston/spring-boot-signing-example/blob/main/src/main/proto/iam.proto): `src/main/proto/iam.proto`

### Other components

- **Web caller**

## Connections

- Web caller → Web controller: sends web requests
- Registration contract → Registration contract: defines register, update, delete RPCs
