Skip to content

identity: Secure CSI Driver TCP Connections via Pod Identity - #956

Merged
hajiler merged 1 commit into
agent-substrate:mainfrom
hajiler:managed-tcp
Aug 25, 2026
Merged

hajiler merged 1 commit into
agent-substrate:mainfrom
hajiler:managed-tcp

Conversation

@hajiler

@hajiler hajiler commented Aug 14, 2026 •

Copy link
Copy Markdown
Collaborator

Secures network-based gRPC connections between the ate-api control plane and CSI driver controller services using mutual TLS (mTLS) backed by Substrate's Pod Identity.

Requests from ate-api to CSI driver controllers occur over the network, as configured via the CSIDriverConfig custom resource. This PR extends the CSIDriverConfig CRD to include a tls configuration section, which leverages
Substrate's Pod Identity certificate infrastructure (managed by podcertcontroller) to secure these
TCP connections using mTLS. Because standard CSI drivers typically communicate over Unix domain sockets, a proxy sidecar (e.g., envoy) is added to the CSI controller deployment to terminate TLS and forward requests to the local CSI socket.

#232

It's a good idea to open an issue first for discussion.

  • [X ] Tests pass
  • Appropriate changes to documentation are included in the PR

@hajiler
hajiler force-pushed the managed-tcp branch 7 times, most recently from ac4da29 to 669fed2 Compare August 14, 2026 22:31
@mattcary

Copy link
Copy Markdown

/lgtm

Seems to do the right thing from what I understand.

@mattcary

Copy link
Copy Markdown

/assgin Michael Taufen (@mtaufen)

match_typed_subject_alt_names:
- san_type: URI
matcher:
exact: "spiffe://cluster.local/ns/ate-system/sa/ate-api-server"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the near future we are going to have to make the cluster.local part configurable. What sort of matches does Envoy support in its config?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Envoy supports both an exact suffix and regex match, so I think we can accomodate future configuration changes once they are decided.

Comment thread internal/volume/csi/plugin.go Resolved
@hajiler
hajiler marked this pull request as ready for review August 18, 2026 00:13
@hajiler
hajiler force-pushed the managed-tcp branch 4 times, most recently from 807fd60 to b12265a Compare August 19, 2026 17:30
@hajiler hajiler changed the title Secure CSI Driver TCP Connections via Substrate Pod Identity identity: Secure CSI Driver TCP Connections via Pod Identity Aug 19, 2026
@hajiler
hajiler force-pushed the managed-tcp branch 2 times, most recently from 9cf58a1 to 85759b5 Compare August 21, 2026 15:57
}

// Read CA trust bundle on each TLS connection handshake.
roots, err := getCertPool(paths.caCert)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine for now, but we will need to add caching pre-GA.

@hajiler
hajiler merged commit ad4e65b into agent-substrate:main Aug 25, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants