aibom-webhook
AIBOM mutating admission webhook and controller for OpenShift. PREREQUISITE: the AIBOM CRDs, which this chart does not include. Install them first, see the README.
About this chart
AIBOM Webhook
Records an AI Bill of Materials (AIBOM) for AI workloads. A mutating admission webhook instruments pods in opted-in namespaces with a hardware-discovery init container and dataset-detection hooks; when the workload finishes, a postprocess Job compiles an AIBOM custom resource covering hardware, model and training configuration, datasets, git provenance and Prometheus telemetry. Workload manifests don't change.
Full documentation: https://gavinsan33.github.io/project-aibom/
Prerequisite: install the AIBOM CRDs (OpenShift Helm catalog)
Prerequisite for installing from the OpenShift Helm catalog: the chart there does not include its CRDs, and nothing works without them. The catalog doesn't accept charts that contain CRDs. Before you install this chart from the Developer Catalog, a cluster-admin must apply the AIBOM and AIBOMTelemetry CRDs for the same version:
oc apply -f https://github.com/gavinsan33/aibom-webhook-service/releases/download/v1.0.4/aibom-crds.yaml
If they're missing, the install fails and prints this command. Apply them again before every upgrade, with the new version in the URL: Helm never installs or updates CRDs for this chart, and an AIBOM created against an older CRD silently loses any field the CRD doesn't know.
The chart from oci://quay.io/project-aibom/aibom-webhook includes the CRDs and installs them itself.
Requirements
- OpenShift 4.16 or later, or Kubernetes 1.29 or later.
- On Kubernetes, cert-manager, which issues the webhook's TLS certificate. On OpenShift the built-in service CA issues it, so nothing extra is needed.
- From the OpenShift Helm catalog: the
AIBOMandAIBOMTelemetryCRDs, installed first. See "Prerequisite: install the AIBOM CRDs" above. - A cluster-admin to install. The chart creates ClusterRoles, ClusterRoleBindings, a MutatingWebhookConfiguration and, from quay.io, the
AIBOM/AIBOMTelemetryCRDs.
Install
helm upgrade --install aibom-webhook oci://quay.io/project-aibom/aibom-webhook \
-n project-aibom --create-namespace --version <version>
Then enable each namespace that runs workloads: label it aibom.io/enabled=true and install the aibom-workload-namespace chart in it. Helm can't label a namespace it didn't create, so the label is a separate step:
oc label namespace <namespace> aibom.io/enabled=true
helm upgrade --install aibom-ns-<namespace> oci://quay.io/project-aibom/aibom-workload-namespace \
-n <namespace> --version <version>
If you installed this chart somewhere other than project-aibom, also set aibomSystemNamespace on the namespace chart.
Run helm test aibom-webhook -n project-aibom to check that the webhook answers and the CRDs are installed.
Things to know
- Upgrades don't update the CRDs. Helm installs a chart's CRDs once and never updates them. Before upgrading, apply the new ones:
helm show crds oci://quay.io/project-aibom/aibom-webhook --version <version> | oc apply -f -, or, withouthelm, theoc apply -fcommand above with the new version. - A
PYTHONPATHset in the image is overridden. The webhook setsPYTHONPATHon instrumented containers to load its detection hooks, and can't see anENV PYTHONPATHbaked into the image. Declare it with theaibom.io/python-pathpod annotation, for example/app:/app/lib, and it's appended. - The webhook fails open. If it's unreachable, pods are created uninstrumented and no AIBOM is recorded.
- Instrumented pods pull a discovery image. It's
quay.io/project-aibom/aibom-discovery, about 230 MB, at the chart's version. If the cluster can't reach Quay, setimage.discovery.repositoryand.tagto a copy it can pull; any image withpython3,bash,lscpuandlsblkworks. - Argo CD and other offline renders must set
platform: openshift(orkubernetes) on both charts, sinceautocan't detect the cluster without access to it, andsigning.createKeys: falseon the namespace chart (see the Argo CD install guide). Argo CD also doesn't run this chart'spost-deletehook, which removes the webhook's finalizers on uninstall. Before deleting the app, delete the workloads that are still running, or afterwards run the webhook image with--strip-finalizersas a cluster-admin. - Image labels are read from registries. With
gitProvenance.registryLookupon (the default), the postprocess Job reads image labels anonymously from the image's registry when the cluster has noImageobject for it, to find the git commit the image was built from. Set it tofalseto stop these outbound requests.
Every value is described in values.schema.json and in the configuration reference.
Deploy aibom-webhook with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has aibom-webhook on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartaibom-webhook is pinned at v1.0.4 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply