This is the primary backend web service for managing complex, configurable, attack trees.
You will first want to populate a .env file (or use tests/mocklab_odic.env) to ensure logins
and the primary session token signing key are set.
-
RISKY_TREES_GOOGLE_REDIRECT_URL
-
RISKY_TREES_GOOGLE_CLIENT_ID
-
RISKY_TREES_GOOGLE_CLIENT_SECRET
-
RISKY_TREES_GOOGLE_AUTH_URL
-
RISKY_TREES_GOOGLE_TOKEN_URL
-
RISKY_TREES_GOOGLE_ISSUER_URL
-
RISKY_TREES_GOOGLE_JWKS_URL
-
RISKY_TREES_GITHUB_REDIRECT_URL
-
RISKY_TREES_GITHUB_CLIENT_ID
-
RISKY_TREES_GITHUB_CLIENT_SECRET
-
RISKY_TREES_GITHUB_AUTH_URL
-
RISKY_TREES_GITHUB_TOKEN_URL
-
RISKY_TREES_GITHUB_ISSUER_URL
-
RISKY_TREES_GITHUB_JWKS_URL
-
RISKY_TREES_JWT_SECRET
- You will need to install rust: https://www.rust-lang.org/tools/install
- You will also need docker installed: https://www.docker.com/get-started/
- To setup the database, run
./tests/simulatedb.sh - To build,
cdinto the riskytrees subdirectory and run:cargo build. - To run, execute:
export ROCKET_ADDRESS=0.0.0.0 && source ../tests/mocklab_odic.env && cargo run. (Replace../tests/mocklab_odic.envwith the path to your .env file if you changed anything.)