Skip to content

Commit

Permalink
security layer
Browse files Browse the repository at this point in the history
Issue #2
  • Loading branch information
rsoika committed Aug 28, 2021
1 parent 8772b30 commit 54035ff
Show file tree
Hide file tree
Showing 16 changed files with 224 additions and 142 deletions.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
FROM jboss/wildfly:20.0.1.Final
FROM jboss/wildfly:22.0.1.Final

LABEL description="Imixs-Muluk"
LABEL maintainer="[email protected]"


# Setup configuration
COPY ./docker/configuration/wildfly/* /opt/jboss/wildfly/standalone/configuration/

# Deploy artefact
ADD ./target/*.war /opt/jboss/wildfly/standalone/deployments/
4 changes: 3 additions & 1 deletion Dockerfile-Dev
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
FROM jboss/wildfly:20.0.1.Final
FROM jboss/wildfly:22.0.1.Final

LABEL description="Imixs-Muluk"
LABEL maintainer="[email protected]"

# Setup configuration
COPY ./docker/configuration/wildfly/* /opt/jboss/wildfly/standalone/configuration/

# Deploy artefact
ADD ./target/*.war /opt/jboss/wildfly/standalone/deployments/
Expand Down
34 changes: 27 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,29 @@ Muluk is a super simple WebService Monitor. Muluk watches your web services and

# How to Start

Muluk is hosted on Docker-Hub. So you simply need Docker to run Muluk as a Web Service on any kind of server within you private network or in the itnernet.
Muluk is hosted on Docker-Hub. So you simply need Docker to run Muluk as a Web Service on any kind of server within you private network or in the Internet.


$ docker run \
-e TZ="CET" \
-e LANG="en_US.UTF-8" \
-v $PWD/config.xml:/opt/jboss/config.xml \
-p "8080:8080" \
imixs/muluk:latest

docker run....

## The Configuration

All you need is a configuration file defining the targets to monitor.


<muluk-dev>

<cluster name="local-dev">
<node>
<target>http://localhost:8080</target>
<auth type="BASIC" user="admin" password="adminadmin" />
</node>
</cluster>
<mail>
<smtp>...</smtp>
</mail>
Expand All @@ -31,7 +41,6 @@ All you need is a configuration file defining the targets to monitor.
<target>https://www.imixs.org</target>
<pattern>Imixs-Workflow supports the BPMN 2.0 standard</pattern>
</object>
<object type="web">
<target>https://foo.com/</target>
<pattern>my-data</pattern>
Expand All @@ -45,7 +54,20 @@ All you need is a configuration file defining the targets to monitor.
</muluk-def>


### Security

The Web interface is protected with a BASIC authentication security realm. You can use the default user 'admin' with the default password 'adminadmin'.

To change the user/password you simply need to create/edit the files '*muluk-users.properties*' and '*muluk-roles.properties*' and map these files into your docker container.

$ docker run \
-e TZ="CET" \
-e LANG="en_US.UTF-8" \
-v $PWD/config.xml:/opt/jboss/config.xml \
-v $PWD/muluk-users.properties:/opt/jboss/wildfly/standalone/configuration/muluk-users.properties \
-v $PWD/muluk-roles.properties:/opt/jboss/wildfly/standalone/configuration/muluk-roles.properties \
-p "8080:8080" \
imixs/muluk:latest

## Kubernetes

Expand Down Expand Up @@ -74,7 +96,6 @@ to start the container run:
$ docker run \
-e TZ="CET" \
-e LANG="en_US.UTF-8" \
-e MULUK_CONFIG_FILE="/opt/jboss/wildfly/config.xml" \
-v $PWD/docker/configuration/config.xml:/opt/jboss/wildfly/config.xml \
-p "8080:8080" \
imixs/muluk:latest
Expand All @@ -93,7 +114,6 @@ to start the container in dev mode run:
$ docker run \
-e TZ="CET" \
-e LANG="en_US.UTF-8" \
-e MULUK_CONFIG_FILE="/opt/jboss/wildfly/config.xml" \
-v $PWD/docker/deployments:/opt/jboss/wildfly/standalone/deployments/ \
-v $PWD/docker/configuration/config.xml:/opt/jboss/wildfly/config.xml \
-p "8080:8080" \
Expand Down
32 changes: 32 additions & 0 deletions config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema">


<cluster name="local-dev">
<node>
<target>http://localhost:8080</target>
<auth type="BASIC" user="admin" password="adminadmin" />
</node>
</cluster>

<!--
The Mail Configuration is used to send out mails. Define your login data for your SMPT mail sever here.
-->
<!-- Enable this section to receive E-Mail notifications
<mail host="mail.foo.com" port="465" user="your-user" password="your-password" from="[email protected]">
<recipients>[email protected]</recipients>
</mail>
-->

<monitor>
<object type="web" interval="35">
<target>https://www.imixs.org</target>
<pattern>Imixs-Workflow supports the BPMN 2.0 standard</pattern>
</object>
<object type="web" interval="55">
<target>https://manik.imixs.org/</target>
<pattern>Manik Hot-Deploy</pattern>
</object>
</monitor>
</config>
Binary file modified doc/resources/screen-01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docker/configuration/wildfly/muluk-roles.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
admin=org.imixs.ACCESSLEVEL.READERACCESS
2 changes: 2 additions & 0 deletions docker/configuration/wildfly/muluk-users.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Username = Password
admin=adminadmin
11 changes: 0 additions & 11 deletions docker/configuration/wildfly/sampleapp-roles.properties

This file was deleted.

11 changes: 0 additions & 11 deletions docker/configuration/wildfly/sampleapp-users.properties

This file was deleted.

Loading

0 comments on commit 54035ff

Please sign in to comment.