Repository navigation
feat(agent-platform): pick the namespace's EgressPolicies in the agent wizard - #3232
Merged
Merged
Conversation
Published Helm chart
|
| 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-rbcce4a8ft20261022184413h1447201Posted 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)
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.
Problem
agent-manager 2.12.0 takes
egressPolicyRefsoncreate_agent,update_agentandvalidate_agent, returns them fromget_agentand lists a namespace's EgressPolicies throughlist_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
list_egress_policiesas 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 whereget_infoannounces theegressPoliciescapability, 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.egressPolicyRefson create (omitted when none) and on update only when the set changed (order ignored;[]clears).EgressPolicies, each with its origins; a missing one says the agent reaches none of its origins).Agent.getEgressPolicyRefs()in kubernetes-react readsspec.egressPolicyRefs.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 fromspec.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
changedFields/updateOf), the create spec,PickedEgressPolicies,Agent.getEgressPolicyRefs.platform.devImages.backstage), asadmin@lab.localin the browser:agent-egress-policies.spec.tspassed (create → review → Configuration card →spec.egressPolicyRefs: [{name: e2e-picked-…}]→ Edit adds the second policy →[picked, unpicked]→ the agent page showsEgressPolicy "kagent/e2e-unpicked-…": Secret "…-credential" not foundunder "Sessions cannot start").https://example.com, a turn's bash tool:https://example.comanswered 200, the unpickedhttps://www.iana.organswered 403actor egress policy denied … it is not in this agent's egress policy.agent-egress-tls.spec.tsandform-validation.spec.tspassed;agentlab backstage-test29 PASS, 0 FAIL.agentlab platform-testpassed.