Environment Variables for the Container Gateway
This topic lists the environment variables that are specific to the Container Gateway application. To obtain a better understanding of how these environment variables are used, refer to the following documentation for the Docker Engine and OpenShift. CA Technologies recommends that you first review the sample files in the following documentation links before looking up the detailed descriptions.
gateway94
This topic lists the environment variables that are specific to the Container Gateway application. To obtain a better understanding of how these environment variables are used, refer to the following documentation for the Docker Engine and OpenShift. CA Technologies recommends that you first review the sample files in the following documentation links before looking up the detailed descriptions.
Docker Engine:
OpenShift:
Available Gateway Environment Variables
Variable | Required? | Default | Description |
| Yes | - | Set the ACCEPT_LICENSE environment variable to true to confirm that you have a valid commercial license for CA API Gateway. You also confirm that you have reviewed and accepted the terms of the CA End User License Agreement (EULA) that governs your use of the CA API Gateway.This value is case-sensitive. |
| No | 2G | The JVM heap size to use. This value should be a number, followed by m , M , k , K , g , or G (not case-sensitive). For example: "4G" or "4g" (4 gigabytes), "3M" or "3m" (3 megabytes). This value must be set to a value that is less than the mem_limit value set in the api-gateway section of the file. The mem_limit value should be 1GB more or 50% more than the
value, whichever is higher. For memory configuration guidelines, see Guidelines for Configuring Resources for the Container Gateway. |
SSG_ADMIN_USERNAME SSG_ADMIN_PASSWORD | No | random | These define the log in credentials for the Policy Manager. For improved security, the username and password (a 12-character minimum is recommended) may contain alphanumeric ASCII characters and any of the following symbols: ! @ . = - _ ^ + ; : # , % You should embed sensitive data such as passwords in plain-text within a configuration file only for convenience in development or test environments. Many container PaaS environments provide mechanisms for properly managing sensitive data. For an example, see "Secrets" in Configure Environment Variables in OpenShift. To disable Policy Manager connectivity, leave the SSG_ADMIN_USERNAME and SSG_ADMIN_PASSWORD variables empty. Disabling Policy Manager access is ideal if you want to enforce the redeployment of the container when making changes in a production environment. You will also do this if you have a derived image that is bootstrapped. |
SSG_DATABASE_JDBC_URL | No | - | The URL of the JDBC connection that is used to connect to the MySQL database. If this URL is not defined, the Container Gateway defaults to using the embedded database instead.
|
| Yes, if SSG_DATABASE_
JDBC_URL is provided | - | The user who is connecting to the MySQL server(s). The password may contain alphanumeric ASCII characters and any of the following symbols: ! @ . = - _ ^ + ; : # , %
|
| Yes, if SSG_DATABASE_
JDBC_URL is provided | - | Password that is used to connect to the MySQL server(s). The password may contain alphanumeric ASCII characters and any of the following symbols: ! @ . = - _ ^ + ; : # , %
|
| No | 300 seconds (5 minutes) | The time to wait (in seconds) for the database to become available. This value is used by the Container Gateway when
is provided. |
| Yes, if SSG_DATABASE_
JDBC_URL is provided | ${hostname} | The cluster hostname of the Container Gateway.Valid values are the quoted fully qualified domain name (FQDN) of the service endpoint; for example: mygateway.mycompany.com |
| Yes, if SSG_DATABASE_
JDBC_URL is provided | random | The cluster password. For improved security, the username and password (a 12-character minimum is recommended) may contain alphanumeric ASCII characters and any of the following symbols: ! @ . = - _ ^ + ; : # , |
| No | - | This variable defines any extra JVM properties to add to the Java command line here, or Gateway System Properties to set. Separate multiple entries with a space. Enclose the string within quotes. Example (line breaks added for readability):
Properties defined in EXTRA_JAVA_ARGS override the same properties defined in the Gateway System Properties. However, values from EXTRA_JAVA_ARGS do not modify the system.properties file. |
SSG_SSL_KEY | No | IMPORTANT: Use the SSG_SSL_KEY environment variable in a development or test environment only. It is not recommended for production use, since it exposes the SSL key license in plain text in your configuration file. The preferred method is to mount the license file(s) as secret volumes.The default Gateway SSL key as a base64 encoded string. For more information, see Manage Private Keys. Copy the string from the output of this Linux command
(add to the command if you are running Windows OS). | |
| No | The default Gateway SSL key password. Can be left empty if the
key is not password protected. | |
| No/Disabled by default | IMPORTANT: Use the SSG_LICENSE environment variable in a development or test environment only. It is not recommended for production use, since it exposes the (encoded) license in plain text in your configuration file. The preferred method is to mount the license file(s) as secret volumes.The CA API Gateway license as a Gzipped, Base64-encoded string (with no space characters or line breaks). A valid license is required to operate the Container Gateway.Use this SSG_LICENSE env var to install a single Gateway license. To install multiple licenses, use the preferred method of mounting the license file(s) as secret volumes. Providing the license through this environment variable is disabled by default. To enable, add the following to the docker-compose.yml file in Sample Docker Compose Deployment File:
gateway.env file in Sample Openshift Deployment Files:
|
Deprecated Environment Variables
These variables were used in the previous versions of the container Gateway and are no longer in use.
Variable |
|
SSG_DATABASE_TYPE SSG_DATABASE_HOST SSG_DATABASE_PORT SSG_DATABASE_NAME |
SSG_DATABASE_ADMIN_USER SSG_DATABASE_ADMIN_PASS |
|