在App Engine上绕过Google Cloud Endpoints ESP进行相同的项目但使用不同的服务

问题描述 投票:0回答:1

我们提供了一个应用引擎服务,该服务公开了受GCP云端点保护的多个API,以下是开放的API定义YAML文件,仅供参考,而非实际的。 我们需要从其他App Engine服务调用该服务的端点,是否有任何方法可以绕过来自端点ESP的来自同一项目和网络的流量?

x-google-allow: all
swagger: '2.0'
info:
  description: 'Sample app'
  version: 0.1.0
host: service-api-server-project-id.appspot.com
schemes:
 - https
paths
  "/metrics":
    get:
      tags:
        - metrics
      summary: Query for  metrics data
      description: Application metrics
      operationId: metrics
      produces:
        - application/json
      responses:
        '200':
          description: successful retrieval of metrics
      security:
        - google_id_token_ic: []
securityDefinitions:
  google_id_token_cor:
    authorizationUrl: ""
    flow: "implicit"
    type: "oauth2"
    x-google-issuer: "<placeholder>"
    x-google-jwks_uri: "<placeholder>"
    x-google-audiences: "<placeholder>"

注意:需要从项目网络和GCP外部调用相同的API,这些API需要加以保护。

google-app-engine google-cloud-platform google-cloud-endpoints
1个回答
0
投票

在研究并浏览了论坛及其设置的架构图之后,我认为这是不可能的。

我能找到的最接近的调度规则可能使您将两个服务连接在一起,但是我认为请求仍然会通过ESP。

© www.soinside.com 2019 - 2024. All rights reserved.