Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

ccluster-py

Latest version: v0.1.1.dev194

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
PyPI package Publisher: anjayarajan
12 Stars
10 Forks
69 Versions
6.5K Downloads
Go Repo language

Scan summary

ccluster-py was last scanned on 23 Nov 2026 at version 0.1.1.dev194. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 69 versions; the latest 5 were published on 23 Nov 2026.
  • Findings: No rules fired in version 0.1.1.dev194.
  • Downloads: 6,527 downloads.

Versions

69 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.1.dev194 LATEST 23 Nov 2026 No rules fired
0.1.1.dev193 23 Nov 2026 No rules fired
0.1.1.dev192 23 Nov 2026 No rules fired
0.1.1.dev191 23 Nov 2026 Not shown
0.1.1.dev190 23 Nov 2026 Not shown

No rules fired in 0.1.1.dev194

Findings

Findings for v0.1.1.dev194. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.1.1.dev194; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

ccluster (Python)

Pydantic v2 models for the ccluster.nvidia.com/v1alpha1 API and for the typed values of every chart in the catalog, plus a small client that registers clusters with the control plane and deploys component sets onto them. The models are generated: nothing under ccluster/v1alpha1/ other than base.py, or under ccluster/catalogs/ other than its __init__.py, is written by hand.

uv add ccluster-py --path ../python   # or: pip install ./python; released: pip install ccluster-py
from ccluster import catalogs
from ccluster.catalogs.cluster_base import gpu_operator, keda
from ccluster.v1alpha1 import CCLComponentSet, ObjectMeta
from ccluster.v1alpha1.cclcomponentset import CCLComponentSetSpec

cs = CCLComponentSet(
    metadata=ObjectMeta(name="local-base", namespace="ccluster-quickstart"),
    spec=CCLComponentSetSpec(
        components=[
            catalogs.component("keda", "ccluster-local", keda.CHART, "keda"),
            catalogs.component(
                "gpu-operator", "ccluster-local", gpu_operator.CHART, "gpu-operator",
                gpu_operator.Values(
                    gpu_operator=gpu_operator.ChartValues(
                        driver=gpu_operator.Toggle(enabled=False),
                    ),
                ),
            ),
        ]
    ),
)
print(cs.model_dump(mode="json", by_alias=True, exclude_none=True))   # kubectl apply -f this

Each kind's Spec and Status, the parts that differ between kinds, are generated from the CRD into ccluster.v1alpha1.<kind>. ccluster.v1alpha1.base is hand-written and holds what every kind shares: ObjectMeta (name, namespace, labels, annotations; server-managed fields are kept when reading back) and the generic CustomResource[Spec, Status] envelope with apiVersion fixed. ccluster.v1alpha1 itself is generated from the CRD kinds: the Kind enum and one concrete CustomResource per kind, kind fixed to its name.

Field names are snake_case with the wire name as the alias, so always dump with by_alias=True, exclude_none=True. exclude_none is what keeps an unset optional out of the values Helm sees while an explicit False stays in — the same distinction the Go catalog makes with pointer fields.

Creating an infra plane

A CCLClient works in one namespace, given at construction, and reaches no other: the namespace is the isolation boundary, and whoever constructs the client decides which one it serves. Construct one client per namespace. api_client is required; clients built on the same one share its connection pool and reuse its API discovery results, so a client per namespace costs nothing more. Constructing a client reads and writes no object. Every method takes the object's name by keyword.

apply_infraplane applies a Secret named <name>-credentials in Argo CD's cluster-secret shape (server, and a config carrying the bearer token and the CA) and a CCLInfraPlane pointing at it. The operator derives the cluster's DNS domain from the plane, <name>.<namespace>.<base domain> with the base domain its --base-domain, so the name must be a DNS label. It writes that domain to the infra-plane cluster's CCLClusterConfig. The plane's status.domain shows it once the control-plane operator has reconciled the plane, and status.clusterConfig.domain once the infra-plane operator has verified the cluster; check_infraplane dry-runs the same CCLInfraPlane apply, so the API server checks it, its name included, without writing anything; call it before creating credentials the plane needs; delete_infraplane deletes the Secret and the CCLInfraPlane, the CCLInfraPlane first so the operator's finalizer removes the mirrored Argo CD Secret, and leaves the namespace. ensure_namespace creates the namespace, and is the only method that does: keeping it separate means a mistyped namespace fails against the API server rather than quietly gaining a working plane. Everything is server-side applied under the ccluster field manager, the one the Go client in pkg/cclclient uses too, so re-registering a cluster rotates its token in place, whichever client registered it. Both apply_infraplane and apply_component_set return the applied object, a CCLInfraPlane or CCLComponentSet, with the metadata the server filled in and the status the operator has written so far.

from kubernetes import client as k8s, config
from ccluster.client import CCLClient

config.load_incluster_config()
api_client = k8s.ApiClient()   # share one across every namespace's client

client = CCLClient("tenant-a", api_client=api_client)
client.ensure_namespace()
plane = client.apply_infraplane(
    name="edge-1",
    server="https://10.0.0.1:6443",
    bearer_token=open("token").read(),
    ca_cert=open("ca.crt").read(),
)
client.delete_infraplane(name="edge-1")

server, bearer_token and ca_cert are all optional. With none given, apply_infraplane registers the cluster the operator itself runs in, credential-free — Argo CD's special-cased in-cluster address, no ServiceAccount or token needed:

plane = client.apply_infraplane(name="ccluster-local")

From a workstation, pass an ApiClient built from your kubeconfig:

from kubernetes.config import new_client_from_config

client = CCLClient("tenant-a", api_client=new_client_from_config())

examples/register.py is the same as a command. The call returns once the objects are applied; kubectl get cclinfraplane -n <namespace> shows when the operator has marked the plane Available.

Deploying a component set

apply_component_set server-side applies a CCLComponentSet in the client's namespace from a list of components built with catalogs.component, each with a chart's typed Values where the defaults are not wanted. Each component's infraPlaneRef names the registered cluster it deploys to, so one set may span several planes; those planes must be in the client's namespace and already Available. List order is rollout order. Because the set is applied under the same ccluster field manager, calling apply_component_set again with a different list updates it in place. The client's namespace is the set's own, on the control plane; a component's own namespace is on its infra plane, created there by Argo CD from the CreateNamespace=true sync option the operator puts on every Application.

from ccluster import catalogs
from ccluster.catalogs.cluster_base import keda
from ccluster.client import CCLClient, component_set_current_conditions

client = CCLClient("tenant-a", api_client=api_client)   # api_client as above
client.ensure_namespace()
client.apply_infraplane(name="ccluster-local")
cs = client.apply_component_set(
    name="local-base",
    components=[
        catalogs.component(
            "keda", "ccluster-local", keda.CHART, "keda",
            keda.Values(keda=keda.ChartValues(operator=keda.Replicas(replica_count=1))),
        ),
    ],
)
finished = client.is_component_set_finished(name="local-base")
client.delete_component_set(name="local-base")

apply_component_set does not wait for rollout completion. Poll is_component_set_finished with a caller-defined timeout before deploying dependent sets. It reads once and requires Validated=True, ComponentsApplied=True and Progressing=False for the current generation. It returns False during deletion and raises NotFoundError for a missing set.

component_set_current_conditions says why a set is not finished yet. It keys its conditions by type and drops the ones the operator computed from an older generation, so what is left is its verdict on the spec as it now stands — after a failed validation ComponentsApplied still carries the previous generation's. get_component_set and get_infraplane read one object and return it as its model, or raise NotFoundError; list_component_sets and list_infraplanes return every one in the client's namespace.

if not client.is_component_set_finished(name="local-base"):
    conditions = component_set_current_conditions(
        client.get_component_set(name="local-base")
    )
    for condition in conditions.values():
        print(condition.type, condition.status.value, condition.reason, condition.message)

A type is absent when the operator did not get far enough to write it: a set whose validation failed has no ComponentsApplied condition for this generation.

Progressing=False means every Application matches the operator's current desired spec, Argo CD's latest comparison was of that spec and reports Synced, no operation for it is pending, running or failed, every component is Healthy or Succeeded, and no Application of a component removed from the spec is left. While rollout continues, the reason is WaveSyncing, or WaveSyncFailed when the last sync of a component's current spec failed. The operator does not retry a failed sync; a later successful sync of that Application in Argo CD clears WaveSyncFailed and resumes the rollout. When validation failed and the component being waited on needs the operator to write or delete its Application, the reason is the Validated condition's, such as InfraPlaneNotFound: the operator writes and deletes nothing until validation passes. Updates follow list order like the first rollout: a component's new spec is written only after every component before it has finished on its own current spec. The Applications of components removed from the spec are deleted last, after every remaining component has finished, one at a time in reverse order; the reason is ComponentRemoving meanwhile.

delete_component_set returns as soon as the delete is accepted. The operator's finalizer then uninstalls the set's charts in reverse order, one at a time, so the object stays in Terminating until the last one is gone; a missing set is not an error, and the referenced CCLInfraPlanes stay. kubectl get cclcomponentset -n <namespace> shows each set's Progress column, which carries the Progressing condition's reason, and when a deleted one has disappeared. examples/deploy.py deploys an inference service the same way; examples/quickstart walks through both.

Command line

The package installs a ccluster command, built on click. Run without a subcommand, it prints its usage. A Go build of the same command, taking the same long flags but not -cp and -ip, is also released; see Installation: command line. Both read the same config file, but install only one of them: the two are both called ccluster, and the first on your PATH wins.

Start with ccluster init, which names the control plane by its kubeconfig context, checks that it serves the ccluster API, and saves the context name to ~/.config/ccluster/config.yaml ($XDG_CONFIG_HOME/ccluster/config.yaml if set, or the file named by $CCLUSTER_CONFIG). Only the context name is saved; credentials stay in the kubeconfig. Run it again to switch control planes.

ccluster init -cp kind-ccluster-cp

ccluster register then registers an infra-plane cluster, also named by its kubeconfig context, with that control plane:

ccluster register edge-1 -n tenant-a -ip kind-ccluster-ip \
    --server https://ccluster-ip-control-plane:6443

It first creates the namespace on the control plane if needed and calls check_infraplane, so a name the API server refuses fails before anything is created on the infra plane. On the infra plane it then creates the ServiceAccount kube-system/ccluster-manager, binds it to cluster-admin (Argo CD installs CRDs and other cluster-scoped objects there, so it needs the same rights argocd cluster add grants), and reads the long-lived token the token controller writes into the Secret kube-system/ccluster-manager-token. On the control plane it calls apply_infraplane with that token and the cluster CA. The control-plane operator uses the same token to write the plane's domain, edge-1.tenant-a.<base domain>, to the infra plane's CCLClusterConfig. Anyone who can read <name>-credentials there is cluster-admin on the infra plane, so keep read access to that namespace's Secrets tight. Running it again reuses the same token.

register then waits until the CCLInfraPlane's ClusterConfigApplied condition is True, which means the control plane reached the cluster, and prints the domain. If it is not True within two minutes, register fails with the condition's reason and message; the CCLInfraPlane stays, so fix the cause and run register again.

--server is the address Argo CD dials, and defaults to the infra-plane context's server in the kubeconfig. Set it when that address is only reachable from your workstation, as with kind, whose kubeconfig points at 127.0.0.1.

ccluster unregister reverses register on the control plane: it deletes the CCLInfraPlane, then its <name>-credentials Secret, and leaves the namespace. The infra plane is not touched; its ServiceAccount and token stay, so registering the cluster again reuses them.

ccluster unregister edge-1 -n tenant-a

What is generated from what

Python Source Via
ccluster/v1alpha1/<kind>.py (<Kind>Spec, <Kind>Status and their nested types) config/crd/bases/*.yaml, the CRD's spec and status schemas hack/pyschema → JSON Schema → datamodel-code-generator
ccluster/v1alpha1/__init__.py (Kind, CCLComponentSet, CCLInfraPlane) the CRD kinds hack/pyschema: one Kind member and one CustomResource[Spec, Status] subclass per kind
ccluster/v1alpha1/base.py (API_VERSION, ObjectMeta, CustomResource) hand-written the generic envelope template the concrete kinds specialise
ccluster/catalogs/<catalog>/<chart>/__init__.py (Values and friends, CHART) catalogs/<catalog>/<chart>/component.go, via catalogs/components.All hack/pyschema (invopop/jsonschema reflection) → datamodel-code-generator; CHART appended by the Makefile

The CRD models carry controller-gen's constraints (name patterns, length and item bounds) and docstrings, so a bad spec fails in Pydantic before it reaches the API server. Chart values add nothing on the way from Go: optional scalars become None defaults. A chart accepts more values than its Go type models, so its models keep keys they do not model, at any depth, and catalogs.entry passes them to Helm as given, as the operator does: ingress_nginx.Values(**{"ingress-nginx": {"controller": {"podLabels": {...}}}}) works. Modelled keys are still type-checked; a misspelled key is not caught. A key set to None directly on a model, modelled or not, is left out; a None inside a plain dict or list value stays null, which Helm reads as "remove this default": {"nodeSelector": None} is dropped, {"nodeSelector": {"kubernetes.io/os": None}} keeps its null.

ccluster/__init__.py, ccluster/client.py (CCLClient), ccluster/cli.py (the ccluster command), ccluster/catalogs/__init__.py (entry, component), examples/ and tests/ are hand-written.

Regenerating

make python-generate     # from the repository root; needs Go and uv
make python-test

CI regenerates and fails on any diff, so edit the Go types or the CRD markers, regenerate, and commit the result. A new CRD is picked up from config/crd/bases; a new chart from catalogs/components/components.go. Neither needs a change to hack/pyschema.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases ccluster-py

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229