Installing the New Edge Experience (Beta)

Edge for Private Cloud v4.18.01

This document describes how to install the Beta release of the New Edge experience for Edge for the Private Cloud. The New Edge experience is the next generation of UI for Edge.

To try out the New Edge experience in an Edge for Private Cloud installation, you must:

  • Enable SAML on Edge. The New Edge experience only supports SAML as the authentication mechanism.
  • Install the New Edge experience on its own node. You cannot install it on a node that contains other Edge components.

For more on the New Edge experience, see The New Edge Experience for Private Cloud.

Installation overview

To install the Beta version of the New Edge experience for Edge for the Private Cloud, you perform two different installation processes:

  • Install the base Edge UI, called shoehorn, and configure the base Edge UI to use SAML to authenticate with Edge.
  • Install the New Edge experience, and configure the New Edge experience to use SAML to authenticate with Edge. After installing the New Edge experience, you can log in and use it to work with Edge.

Installation prerequisites

  • You must enable SAML on Edge before you install the New Edge experience. The New Edge experience only supports SAML as its authentication mechanism.

    Note: In a non-production environment, you can leave basic authentication enabled on Edge so that users of the classic UI and of the Edge API can still use basic authentication.

    For information on enabling SAML on Edge, see Supporting SAML on Edge for Private Cloud.
  • You must install the New Edge experience on its own node. You cannot install it on a node that contains other Edge components. The node must meet the following requirements:
    • JAVA 1.8
    • 4 GBytes of RAM
    • 2-core
    • 60GB disk space
    • You must first install the 4.18.01 version of the apigee-setup utility on the node as described at Install the Edge apigee-setup utility.

Considerations before installing the New Edge experience

As described above in the prerequisites, the New Edge experience requires that you enable SAML on Edge. That means user authentication is controlled by a SAML IDP, where you configure the SAML IDP to use email addresses as the user ID. All New Edge experience users must therefore be registered in the SAML IDP.

The Edge classic UI, the default UI you installed with Edge for the Private Cloud, does not require SAML. It can use either SAML or basic authentication. That means you can either:

  • Enable SAML support on Edge and on both the classic UI and the New Edge experience.

    In this scenario, all classic UI and New Edge experience users are registered in the SAML IDP. For information on adding new users to the SAML IDP, see Register new Edge users.
  • Enable SAML support on Edge, but leave basic auth enabled. The New Edge experience uses SAML and the classic UI still uses basic authentication.

    In this scenario, all classic UI users log in with basic authentication credentials, where their credentials are stored in the Edge OpenLDAP database. New Edge experience users are registered in the SAML IDP and log in by using SAML.

    However, a classic UI user cannot log in to the New Edge experience until you have added that user to the SAML IDP as described in Register new Edge users.

Installation configuration file

The configuration file contains all the information necessary to install and configure the New Edge experience. You can use the same configuration file to install and configure both the base UI and the New Edge experience.

An example configuration file is shown below:

# IP of the Edge Management Server. 
# This node also hosts the Edge SSO module and the current, or classic, Edge UI.
IP1=11.111.111.111

# IP of the New Edge experience node.
IP2=22.222.222.222 

# Edge sys admin credentials.
ADMIN_EMAIL=your@email.com
APIGEE_ADMINPW=yourPassword    # If omitted, you are prompted for it.

# Edge Management Server information.
APIGEE_PORT_HTTP_MS=8080
MSIP=$IP1
MS_SCHEME=http

# URLs for the different UIs.
# URL of classic Edge UI.
ROUTES_CLASSICUI="http://$IP1:9000"
# URL of New Edge experience.
ROUTES_SHOEHORN="http://$IP2:9000"

# New Edge experience configuration.
# Enable the New Edge experience.
EDGEUI_ENABLE_UNIFIED_UI=y
# Access port for the New Edge experience.
MANAGEMENT_UI_PORT=3001
MANAGEMENT_UI_APP_ENV=OPDK
MANAGEMENT_UI_IP=$IP2
# Disable TLS on the New Edge experience.
# This release does not support TLS.
MANAGEMENT_UI_USE_HTTPS=n

# SSO configuration for the New Edge experience.
MANAGEMENT_UI_SSO_ENABLED=y
MANAGEMENT_UI_SSO_CLIENT_OVERWRITE=y
MANAGEMENT_UI_SSO_CLIENT_ID=newueclient
MANAGEMENT_UI_SSO_CLIENT_SECRET=secret111

# Location of New Edge experience.
MANAGEMENT_UI_PUBLIC_URIS=http://$IP2:3001
MANAGEMENT_UI_SSO_REGISTERED_PUBLIC_URIS=$MANAGEMENT_UI_PUBLIC_URIS
MANAGEMENT_UI_SSO_CSRF_SECRET=secret222
MANAGEMENT_UI_SSO_CSRF_EXPIRATION_HOURS=24
MANAGEMENT_UI_SSO_STRICT_TRANSPORT_SECURITY_AGE_HOURS=24
MANAGEMENT_UI_SSO_PUBLIC_KEY_CACHE_HOURS=0.5

# Edge SSO configuration.
# Some settings are for the classic UI, 
# but are still required to configure the New Edge experience.
# Enable SSO.
EDGEUI_SSO_ENABLED=y

# Information about Classic UI
EDGEUI_PUBLIC_URIS=http://$IP1:9000
# Information about publicly accessible URL for Classic UI.
EDGEUI_SSO_REGISTERED_PUBLIC_URIS=$EDGEUI_PUBLIC_URIS
# The name of the OAuth client used to connect to apigee-sso. 
# The default client name is edgeui.
# Apigee recommends that you use the same settings as you used
# when enabling SAML on the classic Edge UI.
EDGEUI_SSO_CLIENT_NAME=edgeui
# Oauth client password using uppercase, lowercase, number, and special chars. 
EDGEUI_SSO_CLIENT_SECRET=ssoClient123
# If set, existing EDGEUI client will deleted and new one will be created.
EDGEUI_SSO_CLIENT_OVERWRITE=y

# Information about Edge SSO module.
# Externally accessible IP or DNS of Edge SSO module.
SSO_PUBLIC_URL_HOSTNAME=$IP1
SSO_PUBLIC_URL_PORT=9099
# Default is http. Set to https if you enabled TLS on the Edge SSO module.
# If Edge SSO uses a self-signed cert, you must also set MANAGEMENT_UI_SKIP_VERIFY to "y".
# MANAGEMENT_UI_SKIP_VERIFY=y
SSO_PUBLIC_URL_SCHEME=http
# SSO admin credentials as set when you installed Edge SSO module.
SSO_ADMIN_NAME=ssoadmin
SSO_ADMIN_SECRET=Secret123

# Required SMTP information.
SKIP_SMTP=n       # Skip now and configure later by specifying "y".
SMTPHOST=smtp.gmail.com
SMTPUSER=your@email.com
SMTPPASSWORD=yourEmailPassword
SMTPSSL=y
SMTPPORT=465      # If no SSL, use a different port, such as 25.
SMTPMAILFROM="My Company <myco@company.com>"

Install the base Edge UI (shoehorn)

You must install the base Edge UI, called shoehorn, before you can install the New Edge experience.

To install the base UI:

  1. Install the 4.18.01 version of the apigee-setup utility on the node as described at Install the Edge apigee-setup utility.
  2. Clean Yum:
    > sudo yum clean all
  3. Create the config file as described above and ensure that is is owned by the "apigee" user:
    > chown apigee:apigee configFile

    where configFile is the configuration file described above in Installation configuration file.

  4. Install the Shoehorn version of the Edge UI:
    > /opt/apigee/apigee-service/bin/apigee-service edge-ui install
  5. Configure the Edge UI:
    > /opt/apigee/apigee-service/bin/apigee-service edge-ui setup -f configFile
  6. Enable SAML on the Edge UI:
    > /opt/apigee/apigee-service/bin/apigee-service edge-ui configure-sso -f configFile

Install the New Edge experience

After installing the base Edge UI, you can then install and configure the New Edge experience.

To install the New Edge experience:

  1. Install the New Edge experience:
    > /opt/apigee/apigee-service/bin/apigee-service edge-management-ui install
  2. Change to the edge-management-ui directory:
    > cd /opt/apigee/edge-management-ui
  3. Configure the New Edge experience:
    > /opt/apigee/apigee-service/bin/apigee-service edge-management-ui setup -f configFile

    where configFile is the configuration file described above in Installation configuration file.

  4. Enable SAML on the New Edge experience:
    > /opt/apigee/apigee-service/bin/apigee-service edge-management-ui configure-sso -f configFile
  5. Log in to the New Edge experience by opening the following URL in a browser:
    http://newEdgeExperienceIP:3001

    where newEdgeExperienceIP is the IP address of the node hosting the New Edge experience. You will be prompted for your SAML credentials. After entering your credentials, the New Edge experience appears.

  6. See The New Edge Experience for Private Cloud (Beta) for more information, including links for information on using the New Edge experience.

Uninstall the New Edge experience

To uninstall the New Edge experience:

> /opt/apigee/apigee-service/bin/apigee-service edge-management-ui uninstall

To uninstall the base Edge UI (shoehorn):

> /opt/apigee/apigee-service/bin/apigee-service edge-ui uninstall

To completely remove Edge from the node:

  1. Stop all Edge services running on the machine:
    > /opt/apigee/apigee-service/bin/apigee-all stop
  2. Clear the yum cache:
    > sudo yum clean all
  3. Remove all the Apigee RPMs:
    > sudo rpm -e $(rpm -qa | egrep "(apigee-|edge-|baas)")
  4. Remove the installation root directory:
    > sudo rm -rf /opt/apigee