Skip to content

Multi-site support: per site credentials #8

@gberche-orange

Description

@gberche-orange

A single service broker instance which is registered on the 3 sites, (see strategies for distinguishing among sites at: http://docs.cloudfoundry.org/services/supporting-multiple-cf-instances.html)

  • distinct broker registration basic auth credentials per site
  • distinct route per site
  • rely on the X-Api-Info-Location header location

Some credentials can be identitical to all sites (e.g. of plans dev and preprod), some credentials can be different per site (e.g. plan prod below)

SERVICES_API_DIRECTORY_NAME: MyService

SERVICES_API_DIRECTORY_PLAN_1_NAME: dev
SERVICES_API_DIRECTORY_PLAN_1_CREDENTIALS_URI: http://mydev-api.org
SERVICES_API_DIRECTORY_PLAN_1_CREDENTIALS_ACCESS_KEY: AZERT23456664DFDSFSDFDSF
SERVICES_API_DIRECTORY_PLAN_2_NAME: preprod
SERVICES_API_DIRECTORY_PLAN_2_CREDENTIALS_URI: http://mypreprod-api.org
SERVICES_API_DIRECTORY_PLAN_2_CREDENTIALS_ACCESS_KEY: AZERT23456664DFDSFSDFDSF

SERVICES_API_DIRECTORY_PLAN_3_NAME: prod

SERVICES_API_DIRECTORY_PLAN_3_SITE_A_CREDENTIALS_URI: http://myprod-sitea-api.org
SERVICES_API_DIRECTORY_PLAN_3_SITE_A_CREDENTIALS_ACCESS_KEY: AZERT23456664DFDSFSDFDSF
SERVICES_API_DIRECTORY_PLAN_3_SITE_B_CREDENTIALS_URI: http://myprod-siteb-api.org
SERVICES_API_DIRECTORY_PLAN_3_SITE_B_CREDENTIALS_ACCESS_KEY: AZERT23456664DFDSFSDFDSF
SERVICES_API_DIRECTORY_PLAN_3_SITE_C_CREDENTIALS_URI: http://myprod-sitec-myprod-api.org
SERVICES_API_DIRECTORY_PLAN_3_SITE_C_CREDENTIALS_ACCESS_KEY: AZERT23456664DFDSFSDFDSF

The selection of the site to return is made through the information provided in X-Api-Info-Location see
http://docs.cloudfoundry.org/services/supporting-multiple-cf-instances.html

The mapping between the site ID and the v2/info url returned by the X-Api-Info-Location header is performed through the following declaration:

SITE_A_CC_API: https://api.siteA.my.org
SITE_B_CC_API: https://api.siteB.my.org
SITE_C_CC_API: https://api.siteB.my.org

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions