Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NO-ISSUE: Refactor Management Console to support multiple runtimes and OpenID Connect #2758

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/kogito-management-console/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ COPY entrypoint.sh dist-dev/image-env-to-json-standalone dist-dev/EnvJson.schema
RUN microdnf --disableplugin=subscription-manager -y install httpd \
&& microdnf --disableplugin=subscription-manager clean all \
&& echo "Mutex posixsem" >> /etc/httpd/conf/httpd.conf \
&& echo "AllowEncodedSlashes NoDecode" >> /etc/httpd/conf/httpd.conf \
&& sed -i -e "/#ServerName www.example.com:80/aHeader set Content-Security-Policy \"frame-ancestors 'self';\"" /etc/httpd/conf/httpd.conf \
&& sed -i -e 's/Options Indexes FollowSymLinks/Options -Indexes +FollowSymLinks/' /etc/httpd/conf/httpd.conf \
&& sed -i "s/Listen 80/Listen ${KOGITO_MANAGEMENT_CONSOLE_PORT}/g" /etc/httpd/conf/httpd.conf \
Expand Down
3 changes: 1 addition & 2 deletions packages/kogito-management-console/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
# under the License.
#

# Copying the Task Console assets here is essential for when the container is running with the readOnlyRootFilesystem flag.
# But, just like any other directory modified during runtime, the /var/www/html must be a mounted volume in the container in this case.
# Copying the Management Console assets here is essential for when the container is running with the readOnlyRootFilesystem flag.
cp -R /management-console/app/* /var/www/html

/management-console/image-env-to-json-standalone --directory /var/www/html --json-schema /management-console/EnvJson.schema.json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
under the License.
-->

# runtime-tools-management-console-webapp
# Apache KIE™ Management Console

A web application to manage multiple Runtimes.

## Working with Management Console features

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,9 @@

const { env } = require("../env");

const version = require("../package.json").version;

module.exports = {
defaultEnvJson: {
RUNTIME_TOOLS_MANAGEMENT_CONSOLE_KOGITO_ENV_MODE: env.runtimeToolsManagementConsoleWebapp.kogitoEnvMode,
RUNTIME_TOOLS_MANAGEMENT_CONSOLE_KOGITO_APP_NAME: "Management Console",
RUNTIME_TOOLS_MANAGEMENT_CONSOLE_KOGITO_APP_VERSION: version,
RUNTIME_TOOLS_MANAGEMENT_CONSOLE_DATA_INDEX_ENDPOINT: env.runtimeToolsManagementConsoleWebapp.kogitoDataIndexUrl,
KOGITO_CONSOLES_KEYCLOAK_DISABLE_HEALTH_CHECK: false,
KOGITO_CONSOLES_KEYCLOAK_UPDATE_TOKEN_VALIDITY: 30,
KOGITO_CONSOLES_KEYCLOAK_HEALTH_CHECK_URL:
"http://localhost:8280/auth/realms/kogito/.well-known/openid-configuration",
KOGITO_CONSOLES_KEYCLOAK_REALM: "kogito",
KOGITO_CONSOLES_KEYCLOAK_URL: "http://localhost:8280/auth",
KOGITO_CONSOLES_KEYCLOAK_CLIENT_ID: "kogito-console-react",
RUNTIME_TOOLS_MANAGEMENT_CONSOLE_APP_NAME: env.runtimeToolsManagementConsoleWebapp.appName,
RUNTIME_TOOLS_MANAGEMENT_CONSOLE_OIDC_CLIENT_CLIENT_ID: env.runtimeToolsManagementConsoleWebapp.oidcClient.clientId,
},
};
Loading
Loading