Конечная точка GCP – аутентификация

Я пытаюсь настроить конечные точки GCP, которые внутренне нацелены на службу входящего трафика K8s. Мой openapi.yaml

Проблема в том, что аутентификация не работает

curl api.endpoints.testproj.cloud.goog работает нормально без аутентификации. В чем проблема?

swagger: "2.0"
info:
  description: "A simple Google Cloud Endpoints API example."
  title: "Endpoints Example"
  version: "1.0.0"
host: "api.endpoints.testproj.cloud.goog"
consumes:
- "application/json"
produces:
- "application/json"
schemes:
- "http"
x-google-endpoints:
- name: "api.endpoints.testproj.cloud.goog"
  target: "10.200.140.51" (Ingress LB IP ) 
security:
- google_service_account: []
paths:
  "/":
    get:
      description: "Echo back a given message."
      operationId: "echo"
      responses:
        200:
          description: "Success."
          schema:
            type: string
        400:
          description: "The data structure is invalid or missing."

securityDefinitions:
  google_service_account:
    authorizationUrl: ""
    flow: "implicit"
    type: "oauth2"
    x-google-issuer: "[email protected]"
    x-google-jwks_uri: "https://www.googleapis.com/robot/v1/metadata/x509/[email protected]"
Эрнст
Вопрос задан13 января 2024 г.

1 Ответ

Ваш ответ

Загрузить файл.