Skip to content

feat(dev): compose native controller and Dex development package - #3189

Closed
jeff-mccoy wants to merge 47 commits into
defenseunicorns:mainfrom
jeff-mccoy:codex/native-dev-core
Closed

jeff-mccoy wants to merge 47 commits into
defenseunicorns:mainfrom
jeff-mccoy:codex/native-dev-core

Conversation

@jeff-mccoy

@jeff-mccoy jeff-mccoy commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

Superseded by #3192 so CI runs from a repository-owned branch with its normal registry credentials. The replacement also corrects the K0s documentation/version consistency failure.

Add core-native-dev, an opt-in package that combines the Go controller and native admission profile with password-only Dex identity. It uses signed Core 1.16.0 inputs and Go 1.27.3 while preserving standard Core package selection.

Installation fences tenant authoring, prepares trust and private DNS, starts reconciliation, registers Go callbacks, activates native policies, and checks identity and gateways before releasing the fence. The package verifies exact source and image inputs, accepts verified local identity build receipts, and rejects invalid values before cluster access.

This draft targets Linux AMD64 development clusters on Kubernetes 1.37+. The installer must reach the cluster's internal service network. The provider supports the uds realm at its two configured public and admin issuers; additional issuers, Java console assets, and Java session-status iframes remain outside its scope.

Dependencies and review boundary

Depends on Go controller/native admission #3187 and development identity #3188. This upstream PR targets main, so its diff includes both prerequisites until they land. Review the scoped composition diff in fork PR #1 for the changes this PR adds on top of their checked integration.

Validation

  • The 36 composition/integrity assertions, bootstrap race suite with the real embedded CLI, complete render, signed package creation, runtime-image verification, and schema rejection checks pass. The dedicated native package CI also passes.
  • The final artifact passes a fresh installation from empty storage, automatic initial private-CA publication and consumer reload, final readiness, and fence removal. All runtime image configs match the packaged images; no repair restart advances the reload proof.
  • Real paired CLI grants pass S256, exact app-plus-CLI ID-token audiences, narrower access-token audiences, protected-app access, invalid PKCE rejection, and old-grant rejection after Package UID replacement. That separate proof initializes its private CA explicitly.
  • All 26 unchanged API files run on the final artifact: 153 tests pass, three fail, and two retain their original conditional skips. The failures require a third issuer origin, Java console assets, or a master realm frontend. All 31 browser cases run: 30 pass on the first attempt; the third-issuer login case fails both its initial attempt and configured retry. No browser cases are skipped. Strict-TLS lifecycle, actual Pod-replacement persistence, and both unchanged HTTPS trust assertions also pass on the final runtime.

Earlier failed attempts remain recorded separately. After isolating the shared-kernel Falco fixtures, the supported network, admission, and event checks pass with the original product resources, API budgets, rules, assertions, retries, and deadlines.

The documentation workflow still reports the inherited K0s version mismatch: upstream main documents 1.36 while its setup pins 1.37.1. Documentation links, lint, and generated-content checks pass. The qualification record gives the current results and separates them from historical performance measurements.

jeff-mccoy and others added 30 commits October 4, 2026 14:17
Add an opt-in connected development profile with Kubernetes policy, Go
reconciliation, protected exemption publication, and persisted Dex identity.
Keep original production Keycloak and Pepr consumers unchanged.

Include source differential and recovery coverage, reproducible provider builds,
package activation gates, and explicit experimental qualification boundaries.

Co-Authored-By: Ark <ark@defenseunicorns.com>
Seed Core's existing inactive localhost chain when no managed chains exist,
including after last-client removal. Keep unmatched requests denied and peer
TLS verification enabled. Validate original and repaired configurations against
the exact Authservice image and real Envoy authorization calls.

Co-Authored-By: Ark <ark@defenseunicorns.com>
Pin the qualified Docker export API for package creation while retaining exact
runtime manifests and normal SBOM generation. Bootstrap native mutations with
the same zarf SSA manager used by Helm, without forcing ownership conflicts.

Verify real embedded CLI arguments, same-manager API-defaulted handoff,
competing-manager rejection, and canonical image payloads.

Co-Authored-By: Ark <ark@defenseunicorns.com>
Use two distinct ClusterIP Istio gateways, matching the published stock
development comparison. Preserve original production defaults, TLS, routes,
authorization and runtime resources. Validate the actual rendered service
contract and record the required hosted access boundary separately.

Update the qualification ledger with the complete main, browser, admission
and real drift results, retaining cold access and guest gates.

Co-Authored-By: Ark <ark@defenseunicorns.com>
Permit only the assigned node to retire deleting, terminal, controller-owned
infrastructure Pods with a matching DeleteOptions UID. Keep tenant authoring
fenced and retain Kubernetes Node authorization and RBAC.

Cover positive and negative CEL cases and actual kubelet/StatefulSet recovery
without manual Pod deletion or removing the bootstrap fence.

Co-Authored-By: Ark <ark@defenseunicorns.com>
Co-Authored-By: Ark <ark@defenseunicorns.com>
Co-Authored-By: Ark <ark@defenseunicorns.com>
Co-Authored-By: Ark <ark@defenseunicorns.com>
Co-Authored-By: Ark <ark@defenseunicorns.com>
Enforce S256 and paired ID-token audiences, revoke predecessor Package grants, and retain verified successor clients through reconciliation and restart. Qualify final native Core behavior against the original main, trust and browser suites.

Co-Authored-By: Ark <ark@defenseunicorns.com>
Co-Authored-By: Ark <ark@defenseunicorns.com>
Co-Authored-By: Ark <ark@defenseunicorns.com>
Co-Authored-By: Ark <ark@defenseunicorns.com>
Co-Authored-By: Ark <ark@defenseunicorns.com>
Merge current upstream, enforce client origins and registered redirects, preserve discovery endpoint aliases, and reject unsupported browser issuer hosts. Document development provider limits and include all Go compiler inputs in build receipts.

Co-Authored-By: Ark <ark@defenseunicorns.com>
Run the pinned bridge and Dex race suites, vet, compiler input receipts, chart assertions and package values in a secret-free workflow. Extend the live probe to verify credentialed token CORS and redirect rejection through both issuers and endpoint aliases.

Co-Authored-By: Ark <ark@defenseunicorns.com>
Reject custom session limits, inactivity expiration, Java login throttling and unknown realm settings in the password-only provider. Document the inherited Java throttle default as unsupported and cover each rejection with chart assertions.

Co-Authored-By: Ark <ark@defenseunicorns.com>
Include the empty real login page from the isolated Pepr and Dex validation environment so reviewers can see the replacement development UI.

Co-Authored-By: Ark <ark@defenseunicorns.com>
Carry current upstream and the independently reviewed identity implementation into the prerequisite integration branch. Keep native development package composition out of this review base.

Co-Authored-By: Ark <ark@defenseunicorns.com>
Integrate the current Go controller implementation and its snapshot recovery coverage alongside the independently reviewed identity branch. Native package composition remains outside this prerequisite review base.

Co-Authored-By: Ark <ark@defenseunicorns.com>
jeff-mccoy and others added 17 commits October 31, 2026 04:03
Carry the reviewed controller documentation and explicit native log selector into the prerequisite base without adding native development package composition.

Co-Authored-By: Ark <ark@defenseunicorns.com>
Require Go 1.27.3 and patch the reachable identity and pinned Dex dependency advisories. Gate shipped entrypoints with govulncheck, preserve same-origin invalid-client responses, and report unsupported third-party cookies through a stateless capability iframe.

Co-Authored-By: Ark <ark@defenseunicorns.com>
Integrate the reviewed identity and controller security updates while preserving the prerequisite-only review boundary. Native package composition remains outside this branch.

Co-Authored-By: Ark <ark@defenseunicorns.com>
Use the canonical uds.dev Package endpoint for live pairing provenance. Cover the real HTTP resource path and fail-closed API errors, and link the published identity reference to the repository development guide.

Co-Authored-By: Ark <ark@defenseunicorns.com>
Integrate the canonical Package authority reader, published-guide link, guarded full-ownership startup, and first-opt-in configuration reload fixes without adding package composition.

Co-Authored-By: Ark <ark@defenseunicorns.com>
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