From df13407df69a636d583fa4a83b7fab41a816ba23 Mon Sep 17 00:00:00 2001 From: Leonard Cohnen Date: Mon, 11 Mar 2024 12:35:41 +0100 Subject: [PATCH] userapi: send mesh root --- coordinator/userapi.go | 2 +- coordinator/userapi_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/coordinator/userapi.go b/coordinator/userapi.go index cd4748106..f2513c057 100644 --- a/coordinator/userapi.go +++ b/coordinator/userapi.go @@ -134,7 +134,7 @@ func (s *userAPIServer) GetManifests(_ context.Context, _ *userapi.GetManifestsR Manifests: manifestBytes, Policies: policySliceToBytesSlice(policies), CoordinatorRoot: s.caChainGetter.GetCoordinatorRootCert(), - MeshRoot: s.caChainGetter.GetIntermCert(), + MeshRoot: s.caChainGetter.GetMeshRootCert(), } s.logger.Info("GetManifest succeeded") diff --git a/coordinator/userapi_test.go b/coordinator/userapi_test.go index 29eb5fc82..bf8ba0a83 100644 --- a/coordinator/userapi_test.go +++ b/coordinator/userapi_test.go @@ -294,7 +294,7 @@ func TestGetManifests(t *testing.T) { } require.NoError(err) assert.Equal([]byte("root"), resp.CoordinatorRoot) - assert.Equal([]byte("inter"), resp.MeshRoot) + assert.Equal([]byte("mesh"), resp.MeshRoot) assert.Len(resp.Policies, len(tc.policyStoreContent)) }) }