Repository navigation
feat(identity): connect native credential policy enforcement - #346
Merged
Merged
Conversation
Apply and independently read back owned Broker enforcement records, bind credential issuance to current policy and record identities, and preserve independent connection discovery. Native workload authorization remains gated; no provider token or desired-state placeholder becomes applied evidence. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
7 of 8 tasks
Qualify common native workloads through current Pod-bound proof and existing protected admission authority. Wire Connections transport, owned storage and policy readback without a readiness cycle, while preserving provider and owner boundaries. Accept valid Kubernetes ServiceAccount and Pod names without relaxing namespace or source checks. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
FumingZhang
marked this pull request as ready for review
October 28, 2026 11:00
Merge main and resolve the Agent Identity guide conflict while retaining current native authorization guidance and environment setup links. Parse endpoint ports with an explicit unsigned 16-bit range before using int32 Service ports, and cover default, boundary, overflow and backend mappings. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Pengfei Ni (feiskyer)
requested changes
Oct 28, 2026
Reuse the shared retained suspension and restart test helpers for both Connections and ordinary-container coverage, preserving the merged Hermes ingress changes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Use the Kubernetes Service DNS identity promised by admission certificate configuration. Retain CA and hostname verification, and exercise a service-only certificate with socket redirection rather than rewriting the request host. Reject mismatched service names and untrusted roots across the shared Broker/MCP verifier. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
8 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Connect native OpenClaw/Hermes workloads to Broker/Connections authentication and credential-policy enforcement, rather than leaving every governed native runtime unsupported.
PolicyAppliedwithout a bootstrap/readiness cycle. Actual credential serving still requires a Ready Agent and Running/Ready current Pod.Native execution is now connected behind explicit configuration. Live identity-provider permissions, federation and cluster/dataplane qualification are not established by these local tests.
Related issue
Continues the Broker/Connections foundation from #331. The generic Entra and managed FQDN integrations in #345 and #347 were additionally tested together in an unpublished source snapshot. Neither implementation is imported into this branch, and the default/current-ServiceAccount native path does not depend on them or on #337.
Validation
Offline checks used Go 1.27.3, Helm 3.22.0 and isolated Kubernetes 1.37.0 API-server/etcd binaries. Kubernetes, admission, directory and provider fixtures are synthetic unless explicitly described below.
Complete module vet/build checks also passed. The final combined-source commands were:
Additional three-PR composition checks passed in an unpublished snapshot:
PolicyAppliedcase with Entra, FQDN and mTLS all enabled and a dotted ServiceAccount longer than 63 characters. Real local API tokens and admission were used; Broker readback and directory responses remained fixtures.These are offline composition checks, not a deployed Broker/MCP/Operator system. Scheduler, kubelet, model and provider observations remain synthetic. No raw diagnostic, credential or private deployment bundle is attached.
Not run: live AKS/Kata/Cilium/CSI or Istio transport, real model/provider operations, Entra federation/FIC changes, Azure permissions, kubelet token rotation, or whole-repository
make check/test/lint.Review follow-up: 2026-10-29
Merged main
cfdf7c555, resolving the shared suspension/restart test helperconflicts while retaining both native Connections and container coverage.
bf8e8a5f7uses the documentedcetirun-sandbox-admission.<operatorNamespace>.svcTLS identity. The sharedfixture now presents only that DNS SAN and redirects socket dialing to its local
server without changing the request hostname. Real TLS tests verify that the
documented certificate succeeds and wrong Service SANs or untrusted CAs fail;
CA and hostname verification remain enabled.
Compatibility and operational impact
No new Agent API/status properties are introduced. The earlier status-comment/generated-description synchronization remains; runtime wiring adds no CRD/deepcopy change or dependency upgrade. Broker/Connections retain the matching
2026-10-28internal contract and must be deployed with compatible builds.Native integration is opt-in through Operator
connectionsMCP.nativeEnabledand MCPnativeSandbox.enabled, with the matching protected peer inventory, Service, public CA, purpose audience and Operator namespace. Broker/MCP receive named read access to the fixed Pod-webhook configuration, not Pod write access. The Operator's existing Agent-owned storage grants scope Broker record access; Agent workloads receive no provider credentials or Secret API permissions.Native Pods do not have Istio workload certificates. With native opt-in, MCP port 8443 uses application HTTPS and Pod-bound proof instead of an additional outer Istio mTLS layer. A Service-scoped DestinationRule preserves ordinary meshed clients using the same application TLS/proof. MCP-to-Broker direct mTLS remains required; the default non-native configuration remains strict.
Configuration readback is not permission to serve credentials before readiness. Missing, changed, held, suspended, deleting or unqualified workload authority is rejected. Shared personal credentials remain outside Agent ownership; cleanup does not require a still-running Pod. Generic Entra exchange and Connections purpose proofs remain distinct.
Checklist