Skip to content

Commit

Permalink
userapi: send mesh root
Browse files Browse the repository at this point in the history
  • Loading branch information
3u13r committed Mar 11, 2024
1 parent 7112a66 commit df13407
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion coordinator/userapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion coordinator/userapi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
})
}
Expand Down

0 comments on commit df13407

Please sign in to comment.