API GW SECURITY - TheOpenCloudEngine/uEngine-cloud GitHub Wiki

  • IAM 에 μ •μ˜λœ λ³΄μ•ˆκΆŒν•œμ— 따라 μš”μ²­λœ μœ μ €μ˜ κΆŒν•œμ— λ”°λ₯Έ μ„œλΉ„μŠ€ 각 μ•‘μ…˜(λ©”μ„œλ“œ)의 μš”μ²­μ„ μ—΄κ±°λ‚˜ λ‹«λŠ”λ‹€.
  • 예제 1:
    order:
      path: /orders/**
      serviceId: order-service
      stripPrefix: false

      # 일반 게슀트 μœ μ €μ— λŒ€ν•΄μ„œλŠ” (GET) ν—ˆμš©, catalog-order scope 을 가진 μœ μ €μΈ 경우 PUT, PATCH, POST, DELETE ν—ˆμš©
      iam-scopes:
        - guest/GET
        - catalog-order/PUT-PATCH-POST-DELETE
  • 예제 2: catalog-user scope 을 λ³΄μœ ν•œ μœ μ €λŠ” λͺ¨λ“  (*) μ•‘μ…˜ ν—ˆμš©
    item:
      path: /items/**
      serviceId: order-service
      stripPrefix: false
      iam-user-scopes-check: false
      iam-scopes:
        - catalog-user/*