Skip to main content

Taranis-NG Core

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

TaranisNG backend setup

  1. Install Postgresql database and create database e.g. taranisdb
  2. Install Python 3.7 or later
  3. In taranis-ng-common, taranis-ng-collectors and taranis-ng-core install and activate python virtual environment: virtualenv -p python3.7 venv source venv/bin/activate pip3 install -e .
  4. Set environment variables for taranis-ng-core: DB_URL=127.0.0.1:5432;DB_DATABASE=taranisdb;DB_USER=;DB_PASSWORD=;JWT_SECRET_KEY=F1AE885322F1C
  5. Before first run uncomment line with import test.py in app.py to create set of test data. After first run comment this line again.
  6. Run taranis-ng-core: python3 run.py
  7. Set environment variables for taranis-ng-collectors: FLASK_RUN_PORT=5001;API_KEY=12345;TARANIS_NG_CORE_URL=http://127.0.0.1:5000;SSL_VERIFICATION=False
  8. Run taranis-ng-collectors: python3 run.py and it should collect first set of RSS news items from preconfigured test osint source

TaranisNG frontend setup

  1. Install Node.js from https://nodejs.org/en/
  2. Set environment variables for taranis-ng-gui: VUE_APP_TARANIS_NG_URL=http://127.0.0.1:8080;VUE_APP_TARANIS_NG_CORE_API=http://127.0.0.1:5000/api;VUE_APP_TARANIS_NG_LOCALE=en;VUE_APP_TARANIS_NG_CORE_SSE=http://127.0.0.1:5000/sse
  3. Install all required packages: npm install
  4. Run application inside taranis-ng-gui: npm run serve
  5. In Browser go to: http://127.0.0.1:8080/
  6. Test accounts are user with password user and admin with password admin

Keycloak setup

This quick setup guide demonstrates installation for early test purposes running on localhost and default ports. Everything in Keycloak can be reconfigured to specific needs as well as Login screen template. Keycloak is not needed to run test version of TaranisNG at the moment. You can use default TestAuthenticator instead.

  1. Requires JAVA 8 to run so download and install JDK from Oracle or OpenJDK e.g. apt install openjdk-8-jdk
  2. Download keycloak from https://www.keycloak.org/downloads.html
  3. In keycloak-8.0.2/standalone/configuration/standalone.xml change http listener port to 8081: <socket-binding name="http" port="${jboss.http.port:8081}"/>
  4. Run keycloak in keycloak-8.0.2/bin: sudo ./standalone.sh
  5. In browser go to http://127.0.0.1:8081/
  6. Create first admin account and log in to Master Realm
  7. Choose ADD REALM to create realm with the name taranisng
  8. In taranis-ng realm choose IMPORT and import file realm-export.json from taranis-ng-core root
  9. In CLIENTS choose taranis-ng and regenerate secret in CREDENTIALS -> REGENERATE SECRET and put secret it into client_secrets.json inside taranis-ng-core root (NOTE: this will be properly configurable inside admin interface in the future)
  10. Create 2 users user and admin in USERS -> ADD USER. These are test users in TaranisNG at the moment.
  11. Set TARANIS_NG_AUTHENTICATOR=keycloak environment variable for the core service.
  12. In taranis-ng-core add environment variable OPENID_LOGOUT_URL and set it according to your Keycloak installation e.g. http://127.0.0.1:8081/auth/realms/taranisng/protocol/openid-connect/logout?redirect_uri=<GOTO_URL>
  13. In taranis-ng-gui add these environment variables to activate external login: VUE_APP_TARANIS_NG_LOGIN_URL=http://127.0.0.1:5000/api/auth/login;VUE_APP_TARANIS_NG_LOGOUT_URL=http://127.0.0.1:5000/api/auth/logout

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

taranis_ng_core-0.1.6.tar.gz (80.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

taranis_ng_core-0.1.6-py3-none-any.whl (113.7 kB view details)

Uploaded Python 3

File details

Details for the file taranis_ng_core-0.1.6.tar.gz.

File metadata

  • Download URL: taranis_ng_core-0.1.6.tar.gz
  • Upload date:
  • Size: 80.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for taranis_ng_core-0.1.6.tar.gz
Algorithm Hash digest
SHA256 b68ef196bba4a39e0b4345636a1af1fc06b0f40701468b5a3bec66718bb8d9e3
MD5 cebf69df882cd42921439561d37e86d2
BLAKE2b-256 8e20503788147562c3d104299fdecc76c0168a14552c0e724747a959d5ec72d8

See more details on using hashes here.

File details

Details for the file taranis_ng_core-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for taranis_ng_core-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e08154bc1d9f5704b993fed3b0abc9ab6f5f3ece43945e209ce17a9d454f0946
MD5 ab9613c77474385ad955ceff53df98f1
BLAKE2b-256 56b39207457211efa7b1114589125da31c79c31b92d4665f46f12734b48a81ed

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page