Repository navigation
feat(chart): agent.egress accepts tls://host:port entries - #94
Merged
Merged
Conversation
3 tasks done
Published Helm chart
|
| Chart | agent |
| Version | 2.1.5-r54333137t20261020093632hca5a5b1 |
| OCI reference | oci://gsoci.azurecr.io/charts/giantswarm/agent:2.1.5-r54333137t20261020093632hca5a5b1 |
| Digest | sha256:3142be1ebcbe98c509a5c893940c608ce59b07b52d5d434e46209480b209276f |
| Registry | public — gsoci.azurecr.io |
| Git catalog | giantswarm-test-catalog (index) |
Pull this chart
helm pull oci://gsoci.azurecr.io/charts/giantswarm/agent --version 2.1.5-r54333137t20261020093632hca5a5b1Posted by architect-orb · build 1198 · commit ca5a5b1 · updated in place on every push
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.
Written by an agent on Timo's behalf.
Problem
agent.egressaccepts only HTTP(S) origins, so an agent can't be allowed to reach a TLS service that isn't HTTP, such as a database or a message broker (#58).Change
agent.egressacceptstls://<host>:<port>next tohttp(s)://<host>[:port]: the same host rules (lowercase DNS name, a leftmost*.wildcard over at least two labels, no IP address), a required port in 1–65535, no path. The values schema, the@schemaannotation andagent.egress.validateshare one pattern, so a bad entry fails the render and names it.spec.egressunchanged. That needs kagent 1.21.0 or later (giantswarm/kagent-upstream#742); an older kagent refuses the Agent.tls://and anhttp(s)://entry for the same host and port leave the AgentCompatible=False.tls://entry renders next to HTTP(S) ones. The schema refuses an entry without a port, with a path, on an IP address,tls://*:443, and atcp://scheme.make helm-testpasses 109 of 109.Proof
Run in the agentlab on agent-platform 4.155.0, with kagent and kagent-crds pinned to 1.21.0 by a values overlay. I installed this PR's dev chart
2.1.5-r54333137t20261020093632hca5a5b1withagent.egress: [tls://example.org:443, https://example.com]:spec.egress, and reportsAccepted,ResolvedRefs,CompatibleandReadyall True.wget https://example.orgreaches example.org through the egress gateway untouched, and the page loads when the system roots verify it. The agent has nohttps://grant for example.org, so thetls://entry is what lets it through.https://example.com(the intercepted HTTPS entry) loads. Unlistedhttps://example.netgets403 actor egress policy denied.tls://db.example.comis refused:a tls:// origin requires a port.Afterwards the lab went back to its pinned release, and
platform-testpassed.Known gap, outside this chart: the Harness points
SSL_CERT_FILEat the egress interception CA only. A client that relies on it (busyboxwget, for example) can't verify a passthrough destination's public certificate until the kagent line adds the public roots to that bundle. That fix is tracked separately in the kagent line.