Skip to content

Conversation

@davidweisse
Copy link
Contributor

This E2E test tests the different scenarios for when the KDS/PCS is unavailable, documented in the dev-docs. We can block the KDS/PCS connection from the CLI by setting up an HTTPS proxy and blocking specific domains. To simulate unavailability on the issuer side (i.e., Coordinator), we override the /etc/hosts file with, e.g., 127.0.0.1 kdsintf.amd.com. Simulating PCS unavailability for the issuer side is not possible, since all the interaction with the PCS/PCCS happens on the host side, not in the Go code. So for TDX, we only test PCS unavailability on the CLI side.

All the tests currently only test CLI <-> Coordinator connections. In the future, we may also want to test Coordinator <-> Initializer connections, where the Coordinator acts as the client.

SNP run: https://github.com/edgelesssys/contrast/actions/runs/19864351537/job/56922742153
TDX run: https://github.com/edgelesssys/contrast/actions/runs/19864358538/job/56922766667

@davidweisse davidweisse added the no changelog PRs not listed in the release notes label Dec 2, 2025
@burgerdev burgerdev self-assigned this Dec 18, 2025
defer setCancel()
err = ct.RunSet(setCtx)
t.Logf("Set error: %v", err)
require.Error(err)
Copy link
Member

Choose a reason for hiding this comment

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

I think we should be more specific about the error we're expecting here (same for TDX).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since this is just a context deadline exceeded error, it is not very meaningful, but I think checking both for context deadline exceeded and if the connection was proxied as suggested below, this should be good.

@davidweisse davidweisse force-pushed the dav/kds-pcs-downtime branch from aa8a1ed to 20334cd Compare January 7, 2026 14:14
@davidweisse davidweisse force-pushed the dav/kds-pcs-downtime branch from 20334cd to ced2f23 Compare January 7, 2026 14:15
@davidweisse davidweisse requested a review from burgerdev January 7, 2026 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog PRs not listed in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants