Configuring Multi-Foundation Support in Apps Manager
Page last updated:
Warning: Pivotal Cloud Foundry (PCF) v2.5 is no longer supported because it has reached the End of General Support (EOGS) phase as defined by the Support Lifecycle Policy. To stay up to date with the latest software and security updates, upgrade to a supported version.
This topic describes how to configure multi-foundation support in Apps Manager.
Overview
Configuring multi-foundation support in Apps Manager allows you to search, view, and manage orgs, spaces, apps, and service instances across multiple foundations from a single interface.
Configure Multi-Foundation Support
This section describes the procedures for configuring multi-foundation support in Apps Manager.
Configure PAS
This section describes how to configure Pivotal Application Service (PAS) on a foundation to enable multi-foundation support in Apps Manager.
To configure multi-foundation support in Apps Manager:
In the PAS tile of one of your foundations, select Apps Manager.
For Multi-foundation Configuration (BETA), enter a JSON object for each additional foundation that you want to manage. Use the following format for the JSON object:
{ "FOUNDATION_NAME": { "ccUrl": "https://api.FOUNDATION_SYSTEM_DOMAIN.com", "systemDomain": "FOUNDATION_SYSTEM_DOMAIN.com", "usageServiceUrl": "https://app-usage.FOUNDATION_SYSTEM_DOMAIN.com", "invitationsServiceUrl": "https://p-invitations.FOUNDATION_SYSTEM_DOMAIN.com", "logoutUrl": "https://login.FOUNDATION_SYSTEM_DOMAIN.com/logout.do", "metricsUrl": "https://metrics.FOUNDATION_SYSTEM_DOMAIN.com", "uaaUrl": "https://login.FOUNDATION_SYSTEM_DOMAIN.com" } }Where:
FOUNDATION_NAMEis a name for the foundation.FOUNDATION_SYSTEM_DOMAINis the system domain of the foundation. The system domain is listed in the PAS tile Domains pane.metricsUrlis an optional field. If PCF Metrics is installed on the foundation, provide the PCF Metrics URL.
For PAS v2.5.21 and later, in the Redirect URIs field, enter a comma-separated list of the URI for each additional foundation on which you enabled multi-foundation support. Use the following format for each URI:
https://apps.FOUNDATION_SYSTEM_DOMAIN.com/**Where
FOUNDATION_SYSTEM_DOMAINis the system domain of the foundation on which you enabled multi-foundation support. For example:https://apps.example.com/**, https://apps.example2.com/**
Add Redirects in UAA (For PAS v2.5.20 and earlier)
The Apps Manager UAA clients on each foundation you want to manage must include a redirect to the foundation on which you enabled multi-foundation support. This allows Apps Manager to redirect to the other foundations and back when authenticating with UAA. For more information about UAA clients and configuring valid redirect URIs, see Client.redirect-uri in the UAA Concepts topic.
To add redirects:
Install the UAA CLI. See the CloudFoundry UAA Command Line Client repository on GitHub.
Record the UAA admin client credentials password for a foundation you want to manage with Apps Manager:
- In the PAS tile Credentials tab, for Admin Client Credentials, click Link to Credentials.
- Record the value in the
passwordfield.
Target UAA on the foundation:
uaac target uaa.FOUNDATION_SYSTEM_DOMAIN.comWhere
FOUNDATION_SYSTEM_DOMAINis the system domain of the foundation.Generate a token for the UAA admin client:
uaac token client get admin -s ADMIN_CLIENT_PASSWORDWhere
ADMIN_CLIENT_PASSWORDis the Admin Client Credentials password you recorded in step 2.Record the UAA redirect URIs. To view the redirect URIs on the UAA
apps_manager_jsclient:uaac client get apps_manager_jsAdd the URI of the foundation on which you enabled multi-foundation support to the
apps_manager_jsclient:uaac client update apps_manager_js --redirect_uri \ 'PREVIOUS_REDIRECT_URIS,https://apps.FOUNDATION_SYSTEM_DOMAIN.com/**'Where:
PREVIOUS_REDIRECT_URISis one or more redirect URIs that you recorded in the previous step. Include the previous redirect URIs in the command to ensure they are not overwritten.FOUNDATION_SYSTEM_DOMAINis the system domain of foundation on which you enabled multi-foundation support.
Repeat steps 2 through 6 for each foundation you want to manage with Apps Manager.
Add Trusted Certificate Authorities
Apps Manager must be able to validate the CAs used by all foundations.
If any foundation uses a certificate for TLS termination that is not signed by a globally-trusted CA, add the CA that signed the TLS certificate as a trusted CA on the foundation on which you enabled multi-foundation support.
For more information, see Setting Trusted Certificates.
(Optional) Configure the SAML Identity Provider
Pivotal recommends that all foundations use the same external SAML identity provider. This allows Apps Manager to automatically authenticate with the identity provider.
To configure all foundations to use the same SAML identity provider:
Select Authentication and Enterprise SSO in the PAS tile.
Verify that the foundation uses the correct provider for Provider Name.
Repeat the above steps for each foundation in your deployment.
For more information on UAA and identity providers, see Identity Providers in UAA.
For more information on how to set up identity providers in UAA, see Adding Existing SAML or LDAP Users to a PCF Deployment.
