Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(control-ui): success banner claims only the verified connector, not all shared-Secret connectors
Alfredo Lopezc2e478d872bd
diff --git a/control-ui/components/UpdateConnectorCredentials/index.tsx b/control-ui/components/UpdateConnectorCredentials/index.tsxindex 1a6190ecd..d2f51b262 100644--- a/control-ui/components/UpdateConnectorCredentials/index.tsx+++ b/control-ui/components/UpdateConnectorCredentials/index.tsx@@ -302,7 +302,20 @@ export function UpdateConnectorCredentials({}const busy = phase === 'saving' || phase === 'rotating'- const restartTargets = rotationAffected.length > 0 ? rotationAffected.join(', ') : serverName+ // The poll above verifies ONLY this connector's own DeploymentReady, via+ // getMcpServer(serverName). A shared Secret can be referenced by other+ // connectors too (result.affectedConnectors); the HCC restarts them as well,+ // but this screen never observes THEIR rollout. So the success banner asserts+ // the new credential is being served only for the connector it actually+ // verified (serverName), and names the rest as rolling out separately rather+ // than claiming an unobserved success for them.+ const otherAffected = rotationAffected.filter(name => name !== serverName)+ const otherAffectedNote =+ otherAffected.length === 0+ ? ''+ : ` ${otherAffected.length === 1 ? 'Another connector' : 'Other connectors'} sharing this Secret roll${+ otherAffected.length === 1 ? 's' : ''+ } out separately: ${otherAffected.join(', ')}.`return (<FormSection@@ -362,14 +375,15 @@ export function UpdateConnectorCredentials({{phase === 'rotating' ? (<div className="cu-banner cu-banner--info" role="status">- Rotating credentials — waiting for {restartTargets} to restart with the new value.+ Rotating credentials — waiting for {serverName} to restart with the new value.{phaseMessage ? ` ${phaseMessage}` : ''}</div>) : null}{phase === 'success' ? (<div className="cu-banner cu-banner--ok" role="status">- Credentials rotated. {restartTargets} restarted and is serving the new credential.+ Credentials rotated. {serverName} restarted and is serving the new credential.+ {otherAffectedNote}</div>) : null}diff --git a/control-ui/components/__tests__/UpdateConnectorCredentials.test.tsx b/control-ui/components/__tests__/UpdateConnectorCredentials.test.tsxindex 5201893dd..01980efc6 100644--- a/control-ui/components/__tests__/UpdateConnectorCredentials.test.tsx+++ b/control-ui/components/__tests__/UpdateConnectorCredentials.test.tsx@@ -545,4 +545,45 @@ describe('UpdateConnectorCredentials — rollout polling', () => {expect(screen.getByText(/did not finish within/i)).toBeInTheDocument()expect(screen.queryByText(/Credentials rotated/i)).not.toBeInTheDocument()})++ it('names only the verified connector as serving; lists other shared-Secret connectors as rolling out separately (no multi-connector overclaim)', async () => {+ // A Secret shared by several connectors: the PUT reports ALL of them in+ // affectedConnectors, but this screen's poll observes ONLY its own+ // (SERVER_NAME) DeploymentReady. The success banner must therefore claim the+ // new credential is being served for SERVER_NAME alone, and merely name the+ // others as rolling out separately — never assert an unobserved success for+ // them (a false-positive: SERVER_NAME could converge while the other pod+ // CrashLoopBackOffs, yet the old banner said both "restarted and is serving").+ const OTHER = 'other-connector-b'+ mockUpdateMcpSecret.mockResolvedValue({+ name: ENV_SECRET.name,+ namespace: 'mcp-server',+ keys: ['api-key'],+ affectedConnectors: [SERVER_NAME, OTHER],+ })+ mockGetMcpServer.mockResolvedValue(+ serverWithCondition({+ status: 'True',+ message: 'ready',+ lastTransitionTime: '2026-01-01T00:00:05.000Z',+ })+ )++ await renderPanel(ENV_SECRET)+ await submitRotation({ 'api-key': 'new-key-value' })+ await act(async () => {+ await vi.advanceTimersByTimeAsync(POLL_INTERVAL_MS)+ })++ const banner = screen.getByRole('status')+ // The verified connector IS asserted as serving; the other is only named as+ // rolling out separately.+ expect(banner).toHaveTextContent(+ `Credentials rotated. ${SERVER_NAME} restarted and is serving the new credential. ` ++ `Another connector sharing this Secret rolls out separately: ${OTHER}.`+ )+ // Regression guard for the overclaim: the unobserved connector must never be+ // asserted as already serving the new credential.+ expect(banner.textContent).not.toMatch(new RegExp(`${OTHER}[^.]*restarted and is serving`))+ })})diff --git a/control-ui/package-lock.json b/control-ui/package-lock.jsonindex a6c0cd8e6..0833bc7f7 100644--- a/control-ui/package-lock.json+++ b/control-ui/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-control-ui",- "version": "0.1.368",+ "version": "0.1.369","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-control-ui",- "version": "0.1.368",+ "version": "0.1.369","dependencies": {"@clerum/llm-providers": "file:../packages/llm-providers","@clerum/workflow-recipe-capability-policy": "file:../packages/workflow-recipe-capability-policy",diff --git a/control-ui/package.json b/control-ui/package.jsonindex 4785f48c7..17f42bbd4 100644--- a/control-ui/package.json+++ b/control-ui/package.json@@ -1,6 +1,6 @@{"name": "clerum-control-ui",- "version": "0.1.368",+ "version": "0.1.369","private": true,"scripts": {"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",