Skip to content

feat(chart): agent.egress accepts tls://host:port entries - #94

Merged
teemow merged 2 commits into
mainfrom
feat/egress-tls
Oct 20, 2026
Merged

teemow merged 2 commits into
mainfrom
feat/egress-tls

Conversation

@teemow

@teemow teemow commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Written by an agent on Timo's behalf.

Problem

agent.egress accepts 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.egress accepts tls://<host>:<port> next to http(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 @schema annotation and agent.egress.validate share one pattern, so a bad entry fails the render and names it.
  • The entry renders into the Agent's spec.egress unchanged. That needs kagent 1.21.0 or later (giantswarm/kagent-upstream#742); an older kagent refuses the Agent.
  • The README's "What an agent can reach" section (and the helm-docs table) covers the form and its limits: SNI is required, STARTTLS doesn't pass, and a tls:// and an http(s):// entry for the same host and port leave the Agent Compatible=False.
  • Tests: a 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 a tcp:// scheme. make helm-test passes 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-r54333137t20261020093632hca5a5b1 with agent.egress: [tls://example.org:443, https://example.com]:

  • The Agent is admitted with both entries in spec.egress, and reports Accepted, ResolvedRefs, Compatible and Ready all True.
  • In a turn, wget https://example.org reaches example.org through the egress gateway untouched, and the page loads when the system roots verify it. The agent has no https:// grant for example.org, so the tls:// entry is what lets it through.
  • https://example.com (the intercepted HTTPS entry) loads. Unlisted https://example.net gets 403 actor egress policy denied.
  • A server-side dry run of an Agent with tls://db.example.com is refused: a tls:// origin requires a port.

Afterwards the lab went back to its pinned release, and platform-test passed.

Known gap, outside this chart: the Harness points SSL_CERT_FILE at the egress interception CA only. A client that relies on it (busybox wget, 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.

@teemow teemow mentioned this pull request Oct 20, 2026
3 tasks done
@circleci-architect

circleci-architect Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Published Helm chart agent

2.1.5-r54333137t20261020093632hca5a5b1
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-r54333137t20261020093632hca5a5b1

Posted by architect-orb · build 1198 · commit ca5a5b1 · updated in place on every push

@teemow
teemow marked this pull request as ready for review October 20, 2026 11:51
@teemow
teemow requested a review from a team as a code owner October 20, 2026 11:51
@teemow
teemow merged commit e3d7276 into main Oct 20, 2026
13 checks passed
@teemow
teemow deleted the feat/egress-tls branch October 20, 2026 11:51
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