Skip to content

This is an execution runtime project for the cyber range. It's main purpose is to coordinate deployment of SDL-based scenario in live environment.

License

Notifications You must be signed in to change notification settings

Open-Cyber-Range/Ranger

Repository files navigation

CR14 Logo       EAS Logo       Taltech Logo       NG Logo       NTNU Logo

Ranger

This is an execution runtime project for the cyber range. It's main purpose is to coordinate deployment of SDL-based scenario in live environment.

Developing

Use VSCode and devcontainers to develop ranger and automatically have its dependencies deployed. The vSphere related dependencies (docker containers) require network access from the users system to vSphere, this may require logging into appropriate VPN's.

Use cargo install cargo-insta to have access to snapshot tooling under cargo insta command.

Use cargo install diesel_cli to have access to database management (setup, migrations, etc.) under diesel command.

Web

SVGs in the front-end app use #FFA263 as the baseline color for unDraw illustrations.

Setup

Before opening the folder in devcontainer configurations for dependency services need to be filled out. To get the apporiate list of configurations consult either .gitignore or .devcontainer/docker-compose.yml files.

Keycloak

Users for the development keycloak server are:

Username Password
test Testimine.123
admin admin
participant participant
manager manager
client client

Test exercise users are:

Username Password
noormeister noormeister
noormeister1 noormeister1
noormeister2 noormeister2

To add new values to realm permanently follow these steps:

  1. Make changes in the current realm

  2. Commit development keycloak docker container

docker commit [container-id] intermediate-keycloak

  1. Stop development keycloak docker container

docker container stop [container-id]

  1. Run the itermediate container

docker run -ti -v path-to-any-existing-file.json:/opt/keycloak/data/import/testrealm.json --entrypoint=sh intermediate-keycloak

  1. In container move to bin directory

cd /opt/keycloak/bin/

  1. Run the import command

./kc.sh export --realm OCR --file ./realm-export.json

  1. While itermediate container is still running, run cp on the host machine

docker cp [container-id]:/opt/keycloak/bin/realm-export.json ./

  1. Finally replace the realm export file with the existing realm file, which is located in repo at /.devcontainer/configs/keycloak-realm.json

About

This is an execution runtime project for the cyber range. It's main purpose is to coordinate deployment of SDL-based scenario in live environment.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages