orange-cloudfoundry / cf-ops-automation-broker

On demand dedicated services through COA concourse pipeline engine
4 stars 0 forks source link

Dashboard step1: pass thru support (without CF sso support) #47

Closed gberche-orange closed 4 years ago

gberche-orange commented 5 years ago

As a service author, I need dashboard returned by nested brokers to be returned to end users. I'm ok to handle authentication for the dashboard (e.g. https url with basic auth credentials in the url) and have it shared among users.

Out of scope:

gberche-orange commented 5 years ago

See https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#body-4

a Service Broker that wishes to return dashboard_url for a Service Instance MUST return it with the initial response to the provision request, even if the service is provisioned asynchronously. If present, MUST be a string or null.

Asked clarification about behavior of GET /v2/service_instances/:instance_id w.r.t. dashboard_url returned in https://github.com/openservicebrokerapi/servicebroker/issues/498#issuecomment-507330920

Possible next steps:

Option 1: return inner broker dashboard in GET /v2/service_instances/:instance_id

1- have provisionning response return an initial (fake) dashboard url

2- implement the GET /v2/service_instances/:instance_id and return instances_retrievable in catalog service offering object

Limitations of this design:

Likely blocked by CC conformance, see https://github.com/cloudfoundry/cloud_controller_ng/issues/1390

Option 2: Return a dashboard URL served by COAB whose body response content includes a link to the dashboard URL of the inner broker

In step 2, project this COAB dashboard with SSO

gberche-orange commented 4 years ago

Option 3: return dashboard url template expanded from service instance guid

https://shield-webui-m_8b04f44b-ae11-4a94-8dda-1d54fc1b1ce1.((/secrets/cloudfoundry_ops_domain)) i.e. configured as https://shield-webui-{0}.my-redactedt-ops-domain.com where {0} is the service instance guid.

Ability to include brokered service guid (planned in https://github.com/orange-cloudfoundry/osb-cmdb/issues/15), or more generically Xpath expression to coab-vars.yml would enable to return a dashboard url for the cmdb users