Skip to content

feat(agent-platform): pick the namespace's EgressPolicies in the agent wizard - #3232

Merged
teemow merged 3 commits into
mainfrom
eg38744-egress-policy-picker
Oct 22, 2026
Merged

teemow merged 3 commits into
mainfrom
eg38744-egress-policy-picker

Conversation

@teemow

@teemow teemow commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Problem

agent-manager 2.12.0 takes egressPolicyRefs on create_agent, update_agent and validate_agent, returns them from get_agent and lists a namespace's EgressPolicies through list_egress_policies (giantswarm/agent-manager#242), but the Dev Portal offers only the free-entry "Extra egress origins" field, so an author types every hostname of a well-known service on every agent and a tenant's shared policy does nothing (giantswarm/giantswarm#38744).

Proposed solution

  • Wizard (New agent and Edit), More options: an optional EgressPolicies checkbox list above "Extra egress origins": the namespace's policies from list_egress_policies as the person, each with its origin count, its origins and, where the gateway adds a credential, the header's name (https://api.github.com (adds Authorization)), never the Secret. Shown only where get_info announces the egressPolicies capability, never on a coding Harness (a move to one drops the picks; an unknown Harness's runtime is waited for). States: loading, "No EgressPolicies in . Your tenant admins can add them.", a read failure that keeps the picks, and an edited agent's pick the namespace no longer holds, kept visible so it is removed on purpose. A tenant, installation or model-namespace change clears the picks.
  • Sent as egressPolicyRefs on create (omitted when none) and on update only when the set changed (order ignored; [] clears).
  • Shown on both reviews and on the agent's Configuration card (EgressPolicies, each with its origins; a missing one says the agent reaches none of its origins). Agent.getEgressPolicyRefs() in kubernetes-react reads spec.egressPolicyRefs.
  • agentlab spec agent-egress-policies.spec.ts: two policies applied with kubectl are listed (one with its credential header), one is picked at create, shown on the review and the card and read back from spec.egressPolicyRefs; Edit pre-fills the pick, adds the second, the review names the change and the Agent carries both; the second policy's missing credential Secret shows on the agent's page as the status error.

Acceptance criteria

  • Unit tests: the picker (list, pick/unpick, empty, unsupported, coding Harness, unlisted pick), the edit model (changedFields/updateOf), the create spec, PickedEgressPolicies, Agent.getEgressPolicyRefs.
  • agentlab proof (agentlab-1, agent-platform 4.165.0-rc.2 with agent-manager 2.12.3, this branch's image through platform.devImages.backstage), as admin@lab.local in the browser:
    • agent-egress-policies.spec.ts passed (create → review → Configuration card → spec.egressPolicyRefs: [{name: e2e-picked-…}] → Edit adds the second policy → [picked, unpicked] → the agent page shows EgressPolicy "kagent/e2e-unpicked-…": Secret "…-credential" not found under "Sessions cannot start").
    • From the agent created in the wizard picking a policy that holds https://example.com, a turn's bash tool: https://example.com answered 200, the unpicked https://www.iana.org answered 403 actor egress policy denied … it is not in this agent's egress policy.
    • agent-egress-tls.spec.ts and form-validation.spec.ts passed; agentlab backstage-test 29 PASS, 0 FAIL.
    • The lab was restored afterwards and agentlab platform-test passed.

The EgressPolicies picker under More options
The Configuration card listing the picked policy with its origin
The agent page showing a picked policy's resolution error

@circleci-architect

circleci-architect Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Published Helm chart backstage

3.20.2-rbcce4a8ft20261022184413h1447201
Chart backstage
Version 3.20.2-rbcce4a8ft20261022184413h1447201
OCI reference oci://gsoci.azurecr.io/charts/giantswarm/backstage:3.20.2-rbcce4a8ft20261022184413h1447201
Digest sha256:10961d0eaa2fafbcba87e3a6a98b056c0001451028261d0a853e4703052cfce2
Registry public — gsoci.azurecr.io
Git catalog giantswarm-operations-platform-test-catalog (index)
Pull this chart
helm pull oci://gsoci.azurecr.io/charts/giantswarm/backstage --version 3.20.2-rbcce4a8ft20261022184413h1447201

Posted by architect-orb · build 71172 · commit 1447201 · updated in place on every push

…-picker

* origin/main:
  chore(deps): update dependency concurrently to v10.0.6 (#3237)
  fix(agent-platform): stop pulling the reader back down while a turn streams (#3228)
  fix(muster): the inbox's first read waits for the MCP sign-in status to settle (#3230)
  test(e2e): workspace-detail starts the Session its Sessions tab reads (#3221)
@teemow
teemow marked this pull request as ready for review October 22, 2026 18:48
@teemow
teemow requested a review from a team as a code owner October 22, 2026 18:48
@teemow
teemow merged commit 1fba94a into main Oct 22, 2026
14 checks passed
@teemow
teemow deleted the eg38744-egress-policy-picker branch October 22, 2026 19:06
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.

1 participant