Repository navigation
feat: Add per-sidecar injection controls to agent and tool import - #1174
Conversation
|
@mrsabath since we have client registrations disabled in both paths: i) sidecar, ii) operator, can we enable sidecar client registration by default? Then in another PR later, we can enable operator and disable sidecar for client registration. |
huang195
left a comment
There was a problem hiding this comment.
Cześć Mariusz! Solid PR — wires three new per-sidecar injection controls (envoyProxyInject, spiffeHelperInject, clientRegistrationInject) cleanly through the full stack: React UI, TypeScript API types, FastAPI backend, Go TUI structs.
The implementation is consistent across all layers:
- Field names match across Python, TypeScript, and Go (with correct
json:"..."tags andomitempty/Optional[bool]for tri-state semantics) - Label logic is correct: envoy/spiffe are opt-out (
is False→"false"), client-registration is opt-in (is True→"true") - The
_build_common_labelspattern in agents.py propagates to pod templates vialabels.copy(), and tools.py sets bothlabelsandpod_labelsexplicitly — both achieve the same result - Finalize flows in both agents.py and tools.py correctly merge request overrides with stored config using the
request.field if not None else storedpattern - Frontend correctly guards sidecar fields behind
authBridgeEnabledin the submit handler
No security issues, no hardcoded secrets, no unused imports. The one commit is properly signed-off and follows conventions.
Areas reviewed: Python, Frontend (React/TS), Go/TUI
Commits: 1 commit, signed-off: ✅
CI status: All checks passing (E2E HyperShift pending manual trigger)
Dobra robota! Na zdrowie! 🍻
|
Done in 987cf19 — client-registration sidecar now defaults to enabled (checkbox ON) on both agent and tool import pages. When the operator path is ready, we can flip the default back to off in a follow-up PR. |
|
/run-e2e |
Wire envoyProxyInject, spiffeHelperInject, and clientRegistrationInject through the full stack (React UI, API types, FastAPI backend, TUI) so users can opt-out individual AuthBridge sidecars at import time. - Agents default AuthBridge ON; tools default OFF (opt-in checkbox) - Advanced Injection Controls section appears when AuthBridge is enabled - Backend sets kagenti.io/envoy-proxy-inject, spiffe-helper-inject, and client-registration-inject labels on workload pod templates - Shipwright build annotations and finalize flow propagate the fields - TUI request structs carry the new optional fields Closes #836 Ref #1167, #1168 Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Mariusz Sabath <[email protected]>
…nt-registration by default - Fix JSX indentation inside authBridgeEnabled conditional blocks to follow conventional 2-level nesting (ImportAgentPage, ImportToolPage) - Reset per-sidecar injection states to defaults when AuthBridge is toggled back on, preventing stale state from confusing users - Enable client-registration sidecar by default (was opt-in) since operator-managed registration is not yet available; will be swapped in a follow-up PR - Update checkbox label from "Legacy Client Registration Sidecar" to "Client Registration" with a clearer description Signed-off-by: Mariusz Sabath <[email protected]>
987cf19 to
b997972
Compare
New Commits DetectedThe New HEAD: For maintainers: Please review the new changes and comment Security checklistBefore running E2E tests, verify the PR does NOT contain:
This is an automated security measure to prevent TOCTOU attacks |
E2E HyperShift Tests FailedCommit: To re-run tests after fixing issues, comment |
|
/run-e2e |
E2E HyperShift Tests FailedCommit: To re-run tests after fixing issues, comment |
Summary
envoyProxyInject,spiffeHelperInject, andclientRegistrationInjectthrough the full stack (React UI, API types, FastAPI backend, Go TUI) so users can opt-out individual AuthBridge sidecars at import timekagenti.io/envoy-proxy-inject,kagenti.io/spiffe-helper-inject, andkagenti.io/client-registration-injectlabels on workload pod templatesFiles changed
constants.py,agents.py,tools.pyImportAgentPage.tsx,ImportToolPage.tsx,api.tstypes.go*boolfields on CreateAgentRequest and CreateToolRequestHow it works
Test plan
py_compileon all 3 files)Closes #836
Ref #1167, #1168