使用客户端证书将 Apollo Federation 连接到其子服务

问题描述

我有以下设置:

Client ---ssl---> Apollo Federation ---ssh(Client Cert required) ---> Subservice.

Apollo Federation 服务列表配置如下所示:

const gateway = new ApolloGateway({
  serviceList: [
    { name: 'service1',url: 'https://remote.host.tld:1234/sub-service1' },{ name: 'service2',url: 'https://another.host.tld:1234/sub-service2' }
  ]
});

其中一项服务需要客户端证书,我没有找到通过证书的方法。 (实际上我以某种方式侵入了 node.js 代码,但我确信它必须是一种更好的方法

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)