Environment Configuration

Introduction

The Environment Configuration is the place to do the initial configuration of your run time. To be able to deploy solutions you need to create at least one k5-project. This k5-project needs at least 3 service bindings to function and these three bindings can be created on the environment level.

Usually, you will only have to configure the environment settings once but you could change them if needed. Any settings made at this level will only apply to new k5-projects.

Create Service Bindings

The most important function of the Environment Configuration is to provide the cluster-wide default settings which are necessary to create k5-projects.

Open Solution Hub and visit the Environment Configuration tab on the Environment level of the overview. This tab provides three sections, one for each of the mandatory service bindings.

Alternatively, you can do the settings via a REST API called Configuration Management API (see API documentation). This API provides a Swagger UI for ease-of-use but you can use the tool of your choice for calling APIs (e.g. cURL, Postman).

Tip: As long as not configured otherwise, the default URL where you can find the Configuration Management Swagger UI is built like this:
<https://ssob-config>.<domain>

The exact URL can be found within the route named k5-configuration-management. It can be easily retrieved by executing

oc get route k5-configuration -n <namespace>

, whereby <namespace> points to the namespace, where the Solution Hub is installed.

Authentication

This service binding sets up the connection to your IAM provider that is used for authentication of a deployed solution. The following parameters have to be provided:

Form FieldDescription
NameSpecify a unique name for this binding.
Client IdThe client ID of a registered OAuth client
Client SecretThe secret value which is bound to the referenced OAuth client.
IssuerThe issuer which has issued the JWT.
JWK URIThe URL of the JSON Web Key set.
User Authorization URIThe URL of the OAuth authorization endpoint.
Token URIThe URL of the OAuth token endpoint.

Database

Form FieldDescription
NameSpecify a unique name for this binding.
Database URIThe MongoDB connection string

Example:

mongodb://username:password@mongodb.domain.svc.cluster.local:27017/admin?ssl=false

Messaging

Form FieldDescription
NameSpecify a unique name for this binding.
Message Hub URIEnter the Kafka connection string.
UsernameThe provided Kafka user must have the permission to read and create topics.
PasswordEnter the password for the specified message hub user.
SASL MechanismSelect the SASL mechanism to use with the message hub.
SASL JAAS Config Login ModuleThe SASL JAAS Config Login Module used for the SASL mechanism. This field will be auto-filled depending on the selected SASL mechanism.