【问题标题】:Is it possible to configure AppId in Kubernetes Ingress with both types web and api at the same time?是否可以同时在 Kubernetes Ingress 中使用 web 和 api 类型配置 AppId?
【发布时间】:2019-03-07 17:57:39
【问题描述】:

如果没有提供身份验证,浏览器会显示登录页面,但后端也会接受带有有效不记名令牌标头的调用。

这可能吗?如果有,怎么做?

我们在入口后面的同一个命名空间中有几个 kubernetes 服务,并用

注释入口
ingress.bluemix.net/appid-auth: "bindSecret=binding-appidname namespace=somenamespace requestType=api serviceName=service-a"

requestType=web 也可以,但是requestType=api,web 不起作用,使用相应的请求类型添加两次注释也不起作用。

AppId 文档 (https://console.bluemix.net/docs/services/appid/tutorial-kubernetes-auth.html) 在“serviceName”的描述中指出:To use multiple request types in the same cluster, configure an instance of App ID to use web and another to use api.,所以我觉得应该可以同时使用两者。

【问题讨论】:

    标签: ibm-cloud kubernetes-ingress ibm-appid


    【解决方案1】:

    您可以使用 Ingress 注释在同一命名空间中保护具有不同 requestType 的多个服务。语法是:

    ingress.bluemix.net/appid-auth: "bindSecret=binding-appid-01 requestType=web serviceName=service1;bindSecret=binding-appid-01 requestType=api serviceName=service2;bindSecret=binding-appid-02 requestType=web serviceName=service3;"

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-09-04
      • 2012-10-23
      • 2019-07-27
      • 2012-07-14
      • 2015-04-03
      • 1970-01-01
      • 2021-11-23
      • 1970-01-01
      相关资源
      最近更新 更多