# vsaisuneeth/myapp architecture

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

- Interactive diagram: https://gitdiagram.com/vsaisuneeth/myapp
- Repository: https://github.com/vsaisuneeth/myapp

## Overview

This repository is a container supply-chain and GitOps delivery example. Its principal workflow starts with a source change, builds and publishes an image, attaches an SBOM and keyless signature, then records the immutable image digest in GitOps so Argo CD can reconcile Kubernetes. Supporting branches cover AWS identity and ECR configuration, Helm workload configuration, and intended Kyverno admission policy. Workflow and deployment relationships are documented in the README; only the small Go HTTP server was sampled directly, so unsampled implementation details are not inferred.

Main entry points: [`.github/workflows/deploy.yml`](https://github.com/vsaisuneeth/myapp/blob/main/.github/workflows/deploy.yml) (GitHub Actions), [`kyverno/verify-image.yaml`](https://github.com/vsaisuneeth/myapp/blob/main/kyverno/verify-image.yaml) (Kyverno Policy), [`Dockerfile`](https://github.com/vsaisuneeth/myapp/blob/main/Dockerfile) (Image Build), [`infra/ecr.tf`](https://github.com/vsaisuneeth/myapp/blob/main/infra/ecr.tf) (ECR Configuration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_release["Release Pipeline"]
  node_actions["GitHub Actions<br/>[deploy.yml]"]
  node_oidc["GitHub OIDC"]
  node_iam["AWS IAM Role<br/>[role.json]"]
  node_ecr_config["ECR Configuration<br/>[ecr.tf]"]
  node_build["Image Build"]
  node_ecr[("Amazon ECR")]
end

subgraph group_trust["Artifact Trust"]
  node_sbom["CycloneDX SBOM<br/>[sbom.cdx.json]"]
  node_cosign["Cosign Signing"]
  node_digest["Immutable Digest"]
end

subgraph group_gitops["GitOps Delivery"]
  node_gitops_repo["GitOps Repository"]
  node_helm_values["Helm Values<br/>[values.yaml]"]
  node_argocd["Argo CD"]
end

subgraph group_runtime["Runtime and Policy"]
  node_helm_deploy["Helm Deployment<br/>[deployment.yaml]"]
  node_helm_service["Helm Service<br/>[service.yaml]"]
  node_kubernetes["Kubernetes"]
  node_app["Go HTTP Application<br/>[main.go]"]
  node_kyverno["Kyverno Policy<br/>[verify-image.yaml]"]
end

node_developer(("Developer"))

node_developer -->|"pushes source"| node_actions
node_actions -->|"authenticates through"| node_oidc
node_oidc -->|"assumes role"| node_iam
node_actions -->|"builds image"| node_build
node_build -->|"publishes image"| node_ecr
node_ecr_config -->|"configures registry"| node_ecr
node_actions -->|"generates and uploads"| node_sbom
node_actions -->|"signs and verifies"| node_cosign
node_ecr -->|"provides digest"| node_digest
node_actions -->|"retrieves digest"| node_digest
node_actions -->|"updates and pushes"| node_gitops_repo
node_gitops_repo -->|"stores image reference"| node_helm_values
node_argocd -->|"reconciles chart from"| node_gitops_repo
node_argocd -->|"synchronizes workload"| node_kubernetes
node_helm_deploy -->|"defines deployment"| node_kubernetes
node_helm_service -->|"defines service"| node_kubernetes
node_kubernetes -->|"runs application"| node_app
node_kyverno -.->|"intended admission policy"| node_kubernetes
node_kyverno -.->|"verifies image identity"| node_cosign

click node_actions "https://github.com/vsaisuneeth/myapp/blob/main/.github/workflows/deploy.yml"
click node_iam "https://github.com/vsaisuneeth/myapp/blob/main/role.json"
click node_ecr_config "https://github.com/vsaisuneeth/myapp/blob/main/infra/ecr.tf"
click node_build "https://github.com/vsaisuneeth/myapp/blob/main/Dockerfile"
click node_sbom "https://github.com/vsaisuneeth/myapp/blob/main/sbom.cdx.json"
click node_helm_values "https://github.com/vsaisuneeth/myapp/blob/main/myapp-chart/values.yaml"
click node_helm_deploy "https://github.com/vsaisuneeth/myapp/blob/main/myapp-chart/templates/deployment.yaml"
click node_helm_service "https://github.com/vsaisuneeth/myapp/blob/main/myapp-chart/templates/service.yaml"
click node_app "https://github.com/vsaisuneeth/myapp/blob/main/main.go"
click node_kyverno "https://github.com/vsaisuneeth/myapp/blob/main/kyverno/verify-image.yaml"

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_actions,node_oidc,node_iam,node_ecr_config,node_build,node_ecr toneBlue
class node_sbom,node_cosign,node_digest toneAmber
class node_gitops_repo,node_helm_values,node_argocd toneMint
class node_helm_deploy,node_helm_service,node_kubernetes,node_app,node_kyverno toneRose
class node_developer toneIndigo
```

## Components

### Release Pipeline

- [GitHub Actions](https://github.com/vsaisuneeth/myapp/blob/main/.github/workflows/deploy.yml): `.github/workflows/deploy.yml`
- **GitHub OIDC**
- [AWS IAM Role](https://github.com/vsaisuneeth/myapp/blob/main/role.json): `role.json`
- [ECR Configuration](https://github.com/vsaisuneeth/myapp/blob/main/infra/ecr.tf): `infra/ecr.tf`
- [Image Build](https://github.com/vsaisuneeth/myapp/blob/main/Dockerfile): `Dockerfile`
- **Amazon ECR**

### Artifact Trust

- [CycloneDX SBOM](https://github.com/vsaisuneeth/myapp/blob/main/sbom.cdx.json): `sbom.cdx.json`
- **Cosign Signing**
- **Immutable Digest**

### GitOps Delivery

- **GitOps Repository**
- [Helm Values](https://github.com/vsaisuneeth/myapp/blob/main/myapp-chart/values.yaml): `myapp-chart/values.yaml`
- **Argo CD**

### Runtime and Policy

- [Helm Deployment](https://github.com/vsaisuneeth/myapp/blob/main/myapp-chart/templates/deployment.yaml): `myapp-chart/templates/deployment.yaml`
- [Helm Service](https://github.com/vsaisuneeth/myapp/blob/main/myapp-chart/templates/service.yaml): `myapp-chart/templates/service.yaml`
- **Kubernetes**
- [Go HTTP Application](https://github.com/vsaisuneeth/myapp/blob/main/main.go): `main.go`
- [Kyverno Policy](https://github.com/vsaisuneeth/myapp/blob/main/kyverno/verify-image.yaml): `kyverno/verify-image.yaml`

### Other components

- **Developer**

## Connections

- Developer → GitHub Actions: pushes source (evidence: `README.md`)
- GitHub Actions → GitHub OIDC: authenticates through (evidence: `README.md`)
- GitHub OIDC → AWS IAM Role: assumes role (evidence: `README.md`)
- GitHub Actions → Image Build: builds image (evidence: `README.md`)
- Image Build → Amazon ECR: publishes image (evidence: `README.md`)
- ECR Configuration → Amazon ECR: configures registry (evidence: `README.md`)
- GitHub Actions → CycloneDX SBOM: generates and uploads (evidence: `README.md`)
- GitHub Actions → Cosign Signing: signs and verifies (evidence: `README.md`)
- Amazon ECR → Immutable Digest: provides digest (evidence: `README.md`)
- GitHub Actions → Immutable Digest: retrieves digest (evidence: `README.md`)
- GitHub Actions → GitOps Repository: updates and pushes (evidence: `README.md`)
- GitOps Repository → Helm Values: stores image reference (evidence: `README.md`)
- Argo CD → GitOps Repository: reconciles chart from (evidence: `README.md`)
- Argo CD → Kubernetes: synchronizes workload (evidence: `README.md`)
- Helm Deployment → Kubernetes: defines deployment (evidence: `README.md`)
- Helm Service → Kubernetes: defines service (evidence: `README.md`)
- Kubernetes → Go HTTP Application: runs application (evidence: `README.md`)
- Kyverno Policy → Kubernetes: intended admission policy (evidence: `README.md`)
- Kyverno Policy → Cosign Signing: verifies image identity (evidence: `README.md`)
