Skip to content

Support staged bootstrap with standard workload identity - #691

Open
gossion wants to merge 2 commits into
mainfrom
feat/prod-deployment-bootstrap
Open

gossion wants to merge 2 commits into
mainfrom
feat/prod-deployment-bootstrap

Conversation

@gossion

@gossion gossion commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Summary

New environments can install the internal CetiRun platform while their public certificate and Entra application changes are pending. Add an explicit internal-only bootstrap mode with exposure checks and a target-bound retry receipt, and support disabling Entra Agent Identity preview while retaining ordinary Portal sign-in, internal TLS, and managed identities.

The same deployment path adds Azure model-provider Workload Identity and direct model routing, a separately packaged Key Vault CSI certificate consumer, and a hostname-validating TLS probe. Blob NFS provisioning keeps HTTPS-only enabled and disables shared-key authentication; the documentation distinguishes REST protection from NFS transport security.

Related issue

Implements the requested new-environment deployment work. Environment-specific profiles, identifiers, keys, and deployment evidence remain outside the repository.

Validation

Offline:

  • python3 -B -m unittest scripts.tests.test_full_deployment -v: 126 passed.
  • Focused internal bootstrap, provider identity, external TLS, Key Vault TLS, release inventory, MCP release and CI gate suites: 122 passed.
  • make version-check artifact-check license-check python-check shell-check workflow-check bicep-check: passed using the available pinned validation tools.
  • make docs-check HUGO=<existing pinned Hugo 0.164.0>: passed.
  • Exact private deployment profile rendered against immutable local chart archives with digest-pinned images.
  • Final TLS protocol-floor and internal-bootstrap tests: 10 passed; make python-check passed.
  • git diff --cached --check: passed.

Authorized integration: private Blob NFS provisioning and nonroot write/fsync/rename passed; a separate-node Kata reader read the fixture and rejected writes with EROFS. Two Foundry model deployments succeeded. Internal Broker/platform rollouts and the enforced-admission server dry-run passed. Both models returned valid completions through the Gateway using ordinary Workload Identity, and aggregate queries verified actual ADX log and metric ingestion. Public certificate synchronization, login, DNS and rotation remain unverified pending owner prerequisites.

A clean final full make check was not rerun. Earlier component gates passed, and the changed areas were rerun as listed above. The charts are customized local deployment artifacts; this change does not publish a new release.

Compatibility and operational impact

Agent Identity remains enabled by default. Internal-only mode refuses existing public Gateways and externally exposed Services; it does not replace final public TLS or login acceptance. Existing published-upgrade safeguards are unchanged. The Key Vault consumer requires an exportable certificate backing secret and continuously running CSI mounts. No CRDs, application binaries, dependencies, or release versions changed.

Checklist

  • The change is focused and preserves unrelated work.
  • Tests cover the changed behavior.
  • Documentation matches the public configuration changes.
  • No generated API artifacts or dependencies changed.
  • The diff was checked for private identifiers and secrets.
  • Credentialed integration work was limited to the authorized new environment.
  • Maintainer and CLA checks are complete.

Comment thread scripts/verify_external_tls.py Fixed
@gossion
gossion marked this pull request as ready for review November 27, 2026 08:01
{{- if .Values.serviceAccount.create -}}
{{- $annotations := deepCopy (.Values.serviceAccount.annotations | default dict) }}
{{- if dig "enabled" false (.Values.providerIdentity | default dict) }}
{{- $_ := set $annotations "azure.workload.identity/client-id" .Values.providerIdentity.clientId }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P2] Restart Gateway Pods when the provider identity changes

Changing providerIdentity.clientId updates only the ServiceAccount annotation. When enabled remains true, the Deployment Pod template stays identical, so Helm does not replace the Gateway Pods. Azure Workload Identity injects AZURE_CLIENT_ID when Kubernetes creates each Pod; existing Pods continue to use the previous identity. This breaks identity replacement once the previous identity loses inference permissions. Add the effective identity to the Pod template or a ServiceAccount checksum, and add an upgrade regression test.

This branch has not been deployed

No deployments
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.

3 participants