Skip to content

Dependency impact analysis and catalog conformance report; dependency upgrades across Rust, Go and UI - #11

Merged
ssahani merged 7 commits into
mainfrom
feat/impact-conformance-dependency-upgrades
Nov 23, 2026
Merged

ssahani merged 7 commits into
mainfrom
feat/impact-conformance-dependency-upgrades

Conversation

@ssahani

@ssahani ssahani commented Nov 23, 2026

Copy link
Copy Markdown
Member

Summary

  • Dependency impact analysis (crates/iris-core/src/impact.rs, GET /api/v1/impact): degraded or broken health now propagates along dependsOn, giving each app an effective status and a blockedBy list; reports blast radius (transitive dependents), dependency cycles including self-dependency, and unresolved references; ?app=namespace/slug returns one app with its upstream and downstream lists (404 if unknown). Hostile-input caps: 2000 apps, 64 dependencies per app, 20,000 edges, 253-character references and 50 items per list.
  • Catalog conformance report (crates/iris-core/src/conformance.rs, GET /api/v1/conformance): scores apps 0 to 100 against required fields from IRIS_CONFORMANCE_REQUIRE (owner, environment, description; default owner,environment); also flags no ready endpoints, dependency cycles and unresolved dependencies, with owner and namespace query filters; the policy string is length-capped, unknown names are ignored, at most 20 findings per app.
  • A new ImpactPanel on the Graph page (types, API client calls, a Playwright test that was not run); docs/RESEARCH.md, docs/api.md, architecture.md, ui.md, USER_STORIES Story 9 and the CHANGELOG (per CONTRIBUTING.md). No CLI surface exists in this repo, so none was added.

Upgrades: please review

  • Rust majors: rusqlite 0.32 to 0.43 (a u64 row read in count_audit had to become i64), tower-http 0.6 to 0.7, reqwest 0.12 to 0.13 (the repo uses ring, not aws-lc, so rustls-no-provider plus webpki-roots; the server installs the ring provider at startup and aws-lc-rs is not in the tree; the form feature was added where .form() is used; any new binary or test that builds a client must install the ring provider first), tokio-tungstenite 0.29 to 0.30, axum-extra 0.10 to 0.12, axum-server 0.8 to 0.9, jsonwebtoken 9 to 12 (needs the rust_crypto feature; key constructors now return Result), rand 0.8 to 0.10 (rand::rng() and the Rng trait replace thread_rng and RngCore).
  • Go majors: client-go, api and apimachinery 0.31 to 0.37.2, gateway-api 1.2 to 1.7, modernc sqlite 1.34 to 1.63. The go directive moved from 1.23 to 1.27 (required by the new dependencies); CI, the Dockerfiles and CONTRIBUTING were updated to match. The controller was never run against a cluster after the Kubernetes client jump.
  • UI: vite 6 to 8, @vitejs/plugin-react 4 to 6, typescript 5 to 7.0.2 (works here because the repo has no typescript-eslint to block it), lucide-react 0.511 to 1.78; react, react-query, react-router and playwright to their latest minor or patch releases; npm audit reports 0 vulnerabilities.
  • Docker and CI: golang 1.27-alpine, alpine 3.24, node 24-alpine, rust 1.100-trixie, debian trixie-slim (images not built; the tags were checked on Docker Hub from the agent's own machine, not from the build host); Node 24 and Go 1.27 in CI; checkout, setup-go and setup-node v7; setup-helm v5; buildx v4, login v4, build-push v7.
  • Held back (CHANGELOG Unreleased, under a second ### Added heading, so there are now two Added sections): k8s.io/kube-openapi is pinned to the 20260721 revision (the newest one pulls structured-merge-diff/v7, which breaks apimachinery 0.37.2, confirmed by a compile error); demo images grafana/grafana:11.3.0 (13.x exists) and prom/prometheus:v2.55.1 (v3.x exists) stay put (runtime majors that cannot be tested without containers); the dtolnay/rust-toolchain@stable and Swatinem/rust-cache@v2 pins are unverified and unchanged; the Helm chart's own image tags (0.2.0) and the Makefile version were left alone.

Rejected

Environment promotion diff (needs spec data the controller does not record); drift detection (needs a live cluster or a GitOps source); SLO and error-budget health (needs a metrics backend); cost labels (needs a billing source); progressive-sync gating (Iris does not deploy anything).

Caveats

  • Research: Argo CD health and progressive sync, Flux Kustomization dependsOn and drift handling, the Backstage descriptor format and the Score spec were read from fetched pages (the KubeVela and Keptn landing pages were thin and the file says so); Crossplane, Kratix, Radius, Humanitec, Porter, Knative, Argo Rollouts/Flagger, Kyverno/OPA and Helm/Kustomize are marked [U].
  • The existing test suites are very thin (the Rust tests are mostly new ones, the controller has two test files, and the UI has no unit tests). gofmt -l lists five Go files (cmd/iris-seed/main.go, controller/discovery/httproute.go, controller/discovery/watcher.go, controller/model/app.go, controller/store/sqlite.go); the one checked on main (httproute.go) was already unformatted, so this drift predates the PR and was left alone. CI runs npx eslint src but the repo has no eslint dependency or config, so that step is a no-op (marked continue-on-error). thiserror is an unused dependency in iris-core (a warning only). The CHANGELOG says the licence is Apache-2.0 but Cargo.toml and package.json still name the old Zyvor Production licence; not touched.
  • The agent reports it once set HOME to a temp directory and rustup auto-installed a toolchain under /data/tmp; it was removed and nothing was written outside /data.
  • Not run: the Playwright e2e tests (need a browser and a live server), Helm lint and template, any image build, anything against a cluster or containers.

Testing

cargo fmt --check and clippy --workspace --locked --all-targets -D warnings (re-run on the final tree: clean); cargo test --workspace --locked (iris-core 20 tests, iris-api 8); go vet ./... clean and go test ./... passes for cmd/iris-controller and controller/discovery (the other packages have no tests); UI tsc --noEmit clean and npm run build succeeds. GitHub CI has not run.

🤖 Generated with Claude Code

ssahani and others added 7 commits November 23, 2026 13:52
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…, tokio-tungstenite 0.30, axum-extra 0.12, axum-server 0.9, jsonwebtoken 12, rand 0.10)

reqwest 0.13 keeps the ring provider via rustls-no-provider (server installs it);
jsonwebtoken 12 needs the rust_crypto backend; rand 0.10 renames thread_rng to rng.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…te 1.63); go 1.27

kube-openapi pinned to 20260721 (newest revision pulls structured-merge-diff/v7, which breaks apimachinery 0.37.2).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Go 1.27, Alpine 3.24, Node 24, Rust 1.100 on trixie, Debian trixie-slim; actions to current majors.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…r updates

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
GET /api/v1/impact (health propagation, blast radius, cycles) and
GET /api/v1/conformance (owner/environment/description policy, structural rules),
bounded against hostile annotations; Graph page ImpactPanel; docs, user story, changelog.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@ssahani
ssahani merged commit 4edc5fe into main Nov 23, 2026
4 checks passed
@ssahani
ssahani deleted the feat/impact-conformance-dependency-upgrades branch November 23, 2026 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant