Repository navigation
fix(ui): Align import page labels, defaults, and sections - #1175
Conversation
huang195
left a comment
There was a problem hiding this comment.
Cześć again Mariusz, double feature dzisiaj! This is a clean cosmetic + defaults alignment PR stacked on #1174.
The incremental changes (commit 2) are small and focused:
- Agent page: Label renames ("Git Branch or Tag", "Select Agent", "Source Subfolder"), section title update ("Build Configuration (Advanced)"), SPIRE defaults ON
- Tool page: Label renames to match agent page, default port 8000→9090, default env URL
.env.openai→.env.authbridge
No security issues, no logic changes beyond defaults. Both commits are signed-off. Deploy & Test CI failure is a Docker Hub timeout (infra flake, not PR-related). All other 18 checks pass.
Areas reviewed: Frontend (React/TS)
Commits: 2 commits (1st from #1174 dependency), all signed-off: ✅
CI status: 18/19 passing, Deploy & Test failed (Docker Hub timeout — infra flake)
Bardzo czyste zmiany, Mariusz — prosto i do celu! 🎯
|
/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]>
- Agent page: "Git Branch" -> "Git Branch or Tag", "Select Example" -> "Select Agent", "Source Path" -> "Source Subfolder", section title renames, SPIRE defaults ON - Tool page: "Branch or Tag" -> "Git Branch or Tag", "Example Tools" -> "Select Tool", default port 9090, env URL defaults to .env.authbridge Closes #762 Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Mariusz Sabath <[email protected]>
Keep .env.openai as the default "Load from .env" URL since most existing tool repos use that filename. Changing to .env.authbridge would silently break the load button for existing users. Signed-off-by: Mariusz Sabath <[email protected]>
9124d12 to
057e6aa
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 |
|
/run-e2e |
E2E HyperShift Tests FailedCommit: To re-run tests after fixing issues, comment |
E2E HyperShift Tests FailedCommit: To re-run tests after fixing issues, comment |
The UI defaults tool servicePorts to port 9090 / targetPort 9090 (since PR #1175), but _build_tool_env_vars always injected PORT=8000 from DEFAULT_ENV_VARS. This caused containers to listen on 8000 while the K8s Service routed to 9090, resulting in connection resets. Now _build_tool_env_vars accepts a service_ports parameter and overrides the PORT value to match the first entry's targetPort, ensuring the app listens where the Service expects. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Hai Huang <[email protected]>
The Kagenti UI defaults tool service ports to 9090 (since rossoctl/rossoctl#1175). These .env files still referenced port 8000, causing connection failures when agents tried to reach tools via the K8s service. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Hai Huang <[email protected]>
The UI defaults tool servicePorts to port 9090 / targetPort 9090 (since PR rossoctl#1175), but _build_tool_env_vars always injected PORT=8000 from DEFAULT_ENV_VARS. This caused containers to listen on 8000 while the K8s Service routed to 9090, resulting in connection resets. Now _build_tool_env_vars accepts a service_ports parameter and overrides the PORT value to match the first entry's targetPort, ensuring the app listens where the Service expects. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Hai Huang <[email protected]>
Summary
.env.authbridgeTest plan
Closes #762
Depends on #1174