Manage Modeler Customer Registry Secret

Create a secret file containing container registry credentials using information from Docker registries. The Docker registry contains a supported authentication method, such as from AWS, GCP, or Azure. Then create a Dockerfile for graphs where SAP Data Intelligence pulls the images from the external Docker registry.

Prerequisites

You must be a tenant administrator to perform these steps. Also, familiarize yourself with how to create an application secret in System Management by reading Add an Application Secret.

Procedure

  1. Prepare a secret file and name it vflow-customer-registry.yaml based on the steps in the following table for your database.
    The secret file contains the container registry credentials and the registry host name.

    Database Authentication Method

    Steps

    AWS

    Complete the following steps to create a secret file that contains the authentication method for AWS (Amazon Web Services):

    1. Fetch the credentials according to the instruction in the Amazon documentation Private Registry AuthenticationInformation published on non-SAP site.

    2. Use the following code as the System Management secret:

      ```yaml
      - username: "$AWS_REGISTRY_ACCOUNT_ID"
        password: "$AWS_REGISTRY_SECRET"
        address: "$AWS_REGISTRY_HOST"
        ``` 

    GCP

    Complete the following steps to create a secret file that contains the authentication method for GCP (Google Cloud Platform):

    1. Fetch the credentials according to the instructions in the Google documentation Service account keyInformation published on non-SAP site.

    2. Transform the credentials into a single-line format and use single-quotes for the password field of the secret.

    3. Use the following code as the System Management secret:

      ```yaml
      - username: "_json_key"
        password: `${SINGLE_LINE_KEY_FILE_CONTENT}`
        address: "eu.gcr.io" (or gcr.io, us.gcr.io, or asia.gcr.io)
        ``` 

    Azure

    Complete the following steps to create a secret file that contains the authentication method for Azure:

    1. Fetch the credentials according to the instructions in the Microsoft documentation Authenticate with the service principleInformation published on non-SAP site.

    2. Use the following code as the System Management secret:

      ```yaml
      - username: "$SP_APP_ID"
        password: "$SP_PASSWD"
        address: "***.azurecr.io"
        ``` 

    Native Docker registry

    Use the following code as the System Management secret:

    ```yaml
    - username: "$LOGIN_USERNAME"
      password: "$LOGIN_PASSWD"
      address: "$ADDRESS"
      ``` 
  2. Create a new secret in System Management and perform the following specific steps.
    1. Enter vflow-customer-register for Name.
    2. Choose Browse and choose the secret file vflow-customer-registry.txt.
    3. Choose Create.
  3. Choose (Application Configuration & Secrets).
  4. Enter a vSystem secret by performing the following substeps:
    1. Open the General tab and choose (Edit).
    2. Search for “Modeler: Name” to find the property Modeler: Name of the vSystem secret containing the credentials for Docker registry.
    3. Enter vflow-customer-registry for the value.
    4. Choose Update and choose OK to close the restart message.
    The system takes 5 minutes to reset.
  5. Create a Dockerfile that references the registry.