# ibm-hyper-protect/ccco-provisioner architecture

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

- Interactive diagram: https://gitdiagram.com/ibm-hyper-protect/ccco-provisioner
- Repository: https://github.com/ibm-hyper-protect/ccco-provisioner

## Overview

CCCO Provisioner is Ansible automation for preparing a bare-metal OpenShift cluster and generating and deploying confidential workloads, with PayNow as the documented default and Busybox as an alternate. The documented workflow starts with inventory and artifact inputs, configures Secure Execution and cluster operators, then generates the contract and sealed secret before producing workload deployment manifests. The README also names cleanup playbooks, but gives no implementation flow for them. No source excerpts were provided, so relationships below rely on README statements only.

Main entry points: [`playbooks/ccco_baremetal.yaml`](https://github.com/ibm-hyper-protect/ccco-provisioner/blob/main/playbooks/ccco_baremetal.yaml) (PayNow playbook), [`roles/ccco_sealed_secrets/tasks/main.yaml`](https://github.com/ibm-hyper-protect/ccco-provisioner/blob/main/roles/ccco_sealed_secrets/tasks/main.yaml) (Sealed secret), [`playbooks/ccco_busybox_deploy.yaml`](https://github.com/ibm-hyper-protect/ccco-provisioner/blob/main/playbooks/ccco_busybox_deploy.yaml) (Busybox playbook), [`roles/ccco_paynow_deploy/tasks/main.yaml`](https://github.com/ibm-hyper-protect/ccco-provisioner/blob/main/roles/ccco_paynow_deploy/tasks/main.yaml) (PayNow deployment)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inputs["Inputs and inventory"]
  node_artifacts["CCCO artifacts"]
  node_inventory["Cluster variables<br/>[all.yaml.template]"]
  node_hosts["Inventory generation<br/>[main.yaml]"]
end

subgraph group_cluster["Cluster preparation"]
  node_secure_execution["Secure Execution<br/>[main.yaml]"]
  node_nfd["NFD installation<br/>[main.yaml]"]
  node_osc["OSC installation<br/>[main.yaml]"]
  node_kata["Kata installation<br/>[main.yaml]"]
end

subgraph group_contract["Contract generation"]
  node_contract["Contract generator<br/>[main.yaml]"]
  node_sealed["Sealed secret<br/>[main.yaml]"]
end

subgraph group_workloads["Workload deployment"]
  node_baremetal["PayNow playbook"]
  node_busybox_play["Busybox playbook"]
  node_paynow["PayNow deployment<br/>[main.yaml]"]
  node_busybox["Busybox deployment<br/>[main.yaml]"]
end

node_operator(("Operator"))
node_bastion["Bastion host"]
node_openshift[("OpenShift cluster")]

node_operator -->|"runs"| node_baremetal
node_operator -->|"runs"| node_busybox_play
node_operator -->|"configures"| node_inventory
node_operator -->|"provides"| node_artifacts
node_baremetal -->|"generates hosts"| node_hosts
node_baremetal -->|"enables"| node_secure_execution
node_baremetal -->|"configures"| node_nfd
node_baremetal -->|"configures"| node_osc
node_baremetal -->|"configures"| node_kata
node_baremetal -->|"generates"| node_contract
node_baremetal -->|"creates and applies"| node_sealed
node_baremetal -->|"builds contract"| node_paynow
node_busybox_play -->|"builds contract"| node_busybox
node_baremetal -->|"copies artifacts"| node_bastion
node_sealed -->|"applies secret"| node_openshift
node_paynow -->|"generates deployment manifest"| node_openshift
node_busybox -->|"generates deployment manifest"| node_openshift

click node_artifacts "https://github.com/ibm-hyper-protect/ccco-provisioner/tree/main/artifacts"
click node_inventory "https://github.com/ibm-hyper-protect/ccco-provisioner/blob/main/inventories/default/group_vars/all.yaml.template"
click node_baremetal "https://github.com/ibm-hyper-protect/ccco-provisioner/blob/main/playbooks/ccco_baremetal.yaml"
click node_busybox_play "https://github.com/ibm-hyper-protect/ccco-provisioner/blob/main/playbooks/ccco_busybox_deploy.yaml"
click node_hosts "https://github.com/ibm-hyper-protect/ccco-provisioner/blob/main/roles/ccco_setinventory/tasks/main.yaml"
click node_secure_execution "https://github.com/ibm-hyper-protect/ccco-provisioner/blob/main/roles/ccco_enable_se/tasks/main.yaml"
click node_nfd "https://github.com/ibm-hyper-protect/ccco-provisioner/blob/main/roles/ccco_install_nfd/tasks/main.yaml"
click node_osc "https://github.com/ibm-hyper-protect/ccco-provisioner/blob/main/roles/ccco_install_osc/tasks/main.yaml"
click node_kata "https://github.com/ibm-hyper-protect/ccco-provisioner/blob/main/roles/ccco_install_kata/tasks/main.yaml"
click node_contract "https://github.com/ibm-hyper-protect/ccco-provisioner/blob/main/roles/ccco_contract_generator/tasks/main.yaml"
click node_sealed "https://github.com/ibm-hyper-protect/ccco-provisioner/blob/main/roles/ccco_sealed_secrets/tasks/main.yaml"
click node_paynow "https://github.com/ibm-hyper-protect/ccco-provisioner/blob/main/roles/ccco_paynow_deploy/tasks/main.yaml"
click node_busybox "https://github.com/ibm-hyper-protect/ccco-provisioner/blob/main/roles/ccco_busybox_deploy/tasks/main.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_artifacts,node_inventory,node_hosts toneBlue
class node_secure_execution,node_nfd,node_osc,node_kata,node_openshift toneAmber
class node_contract,node_sealed toneMint
class node_baremetal,node_busybox_play,node_paynow,node_busybox toneRose
class node_operator,node_bastion toneIndigo
```

## Components

### Inputs and inventory

- [CCCO artifacts](https://github.com/ibm-hyper-protect/ccco-provisioner/tree/main/artifacts): `artifacts`
- [Cluster variables](https://github.com/ibm-hyper-protect/ccco-provisioner/blob/main/inventories/default/group_vars/all.yaml.template): `inventories/default/group_vars/all.yaml.template`
- [Inventory generation](https://github.com/ibm-hyper-protect/ccco-provisioner/blob/main/roles/ccco_setinventory/tasks/main.yaml): `roles/ccco_setinventory/tasks/main.yaml`

### Cluster preparation

- [Secure Execution](https://github.com/ibm-hyper-protect/ccco-provisioner/blob/main/roles/ccco_enable_se/tasks/main.yaml): `roles/ccco_enable_se/tasks/main.yaml`
- [NFD installation](https://github.com/ibm-hyper-protect/ccco-provisioner/blob/main/roles/ccco_install_nfd/tasks/main.yaml): `roles/ccco_install_nfd/tasks/main.yaml`
- [OSC installation](https://github.com/ibm-hyper-protect/ccco-provisioner/blob/main/roles/ccco_install_osc/tasks/main.yaml): `roles/ccco_install_osc/tasks/main.yaml`
- [Kata installation](https://github.com/ibm-hyper-protect/ccco-provisioner/blob/main/roles/ccco_install_kata/tasks/main.yaml): `roles/ccco_install_kata/tasks/main.yaml`

### Contract generation

- [Contract generator](https://github.com/ibm-hyper-protect/ccco-provisioner/blob/main/roles/ccco_contract_generator/tasks/main.yaml): `roles/ccco_contract_generator/tasks/main.yaml`
- [Sealed secret](https://github.com/ibm-hyper-protect/ccco-provisioner/blob/main/roles/ccco_sealed_secrets/tasks/main.yaml): `roles/ccco_sealed_secrets/tasks/main.yaml`

### Workload deployment

- [PayNow playbook](https://github.com/ibm-hyper-protect/ccco-provisioner/blob/main/playbooks/ccco_baremetal.yaml): `playbooks/ccco_baremetal.yaml`
- [Busybox playbook](https://github.com/ibm-hyper-protect/ccco-provisioner/blob/main/playbooks/ccco_busybox_deploy.yaml): `playbooks/ccco_busybox_deploy.yaml`
- [PayNow deployment](https://github.com/ibm-hyper-protect/ccco-provisioner/blob/main/roles/ccco_paynow_deploy/tasks/main.yaml): `roles/ccco_paynow_deploy/tasks/main.yaml`
- [Busybox deployment](https://github.com/ibm-hyper-protect/ccco-provisioner/blob/main/roles/ccco_busybox_deploy/tasks/main.yaml): `roles/ccco_busybox_deploy/tasks/main.yaml`

### Other components

- **Operator**
- **Bastion host**
- **OpenShift cluster**

## Connections

- Operator → PayNow playbook: runs (evidence: `README.md`)
- Operator → Busybox playbook: runs (evidence: `README.md`)
- Operator → Cluster variables: configures (evidence: `README.md`)
- Operator → CCCO artifacts: provides (evidence: `README.md`)
- PayNow playbook → Inventory generation: generates hosts (evidence: `README.md`)
- PayNow playbook → Secure Execution: enables (evidence: `README.md`)
- PayNow playbook → NFD installation: configures (evidence: `README.md`)
- PayNow playbook → OSC installation: configures (evidence: `README.md`)
- PayNow playbook → Kata installation: configures (evidence: `README.md`)
- PayNow playbook → Contract generator: generates (evidence: `README.md`)
- PayNow playbook → Sealed secret: creates and applies (evidence: `README.md`)
- PayNow playbook → PayNow deployment: builds contract (evidence: `README.md`)
- Busybox playbook → Busybox deployment: builds contract (evidence: `README.md`)
- PayNow playbook → Bastion host: copies artifacts (evidence: `README.md`)
- Sealed secret → OpenShift cluster: applies secret (evidence: `README.md`)
- PayNow deployment → OpenShift cluster: generates deployment manifest (evidence: `README.md`)
- Busybox deployment → OpenShift cluster: generates deployment manifest (evidence: `README.md`)
