ISTIO 拒绝 CloudFront 主机标头。

0

【以下的问题经过翻译处理】 我的客户在EKS中使用ISTIO作为服务网格。每当他们尝试使用来自不同AWS帐户的CloudFront分发来调用EKS集群中的服务时,ISTIO将拒绝主机报头,从而出现问题。您是否知道是否有任何方法可以更改CloudFront中的主机报头,以模拟AWS EKS帐户中的经过认证的域名,例如别名或自定义报头?

profile picture
EXPERT
asked 6 months ago22 views
1 Answer
0

【以下的回答经过翻译处理】 您可以使用Lambda@Edge来更改转发请求到源的主机头。 请参考以下示例代码。 示例:使用Origin-Request触发器从Amazon S3源更改为自定义源 https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-examples.html#lambda-examples-content-based-custom-origin-request-trigger

profile picture
EXPERT
answered 6 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions