Skip to content

Commit a4bfeda

Browse files
authored
Merge pull request #729 from dfir-iris/develop
v2.5.0-beta.1
2 parents e6aa4ba + 9441d4d commit a4bfeda

File tree

1,079 files changed

+28882
-365783
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,079 files changed

+28882
-365783
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 2.4.20
2+
current_version = 2.5.0-beta.1
33
commit = True
44
tag = True
55
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(-(?P<release>.*)-(?P<build>\d+))?

.devcontainer/Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM mcr.microsoft.com/devcontainers/python:1-3.9-bullseye
2+
3+
ENV PYTHONUNBUFFERED 1
4+
5+
# [Optional] If your requirements rarely change, uncomment this section to add them to the image.
6+
# COPY requirements.txt /tmp/pip-tmp/
7+
# RUN pip3 --disable-pip-version-check --no-cache-dir install -r /tmp/pip-tmp/requirements.txt \
8+
# && rm -rf /tmp/pip-tmp
9+
10+
# [Optional] Uncomment this section to install additional OS packages.
11+
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
12+
# && apt-get -y install --no-install-recommends <your-package-list-here>
13+
14+
15+

.devcontainer/devcontainer.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/postgres
3+
{
4+
"name": "iris-web",
5+
"dockerComposeFile": "docker-compose.yml",
6+
"service": "devcontainer",
7+
"workspaceFolder": "/workspaces/iris-web",
8+
// Features to add to the dev container. More info: https://containers.dev/features.
9+
// "features": {},
10+
// forward web app & postgres to host
11+
"forwardPorts": [
12+
8000,
13+
5432
14+
],
15+
// Configure tool-specific properties.
16+
// "customizations": {},
17+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
18+
// "remoteUser": "root"
19+
// https://containers.dev/implementors/json_reference/#lifecycle-scripts
20+
// prep our environment before creating & starting container
21+
"initializeCommand": "sh '${localWorkspaceFolder}/.devcontainer/pre-create.sh'",
22+
// setup the dev env after the container was setup
23+
"postCreateCommand": "sh /workspaces/iris-web/.devcontainer/post-create.sh",
24+
"customizations": {
25+
"vscode": {
26+
"extensions": [
27+
// python-related
28+
"ms-python.python",
29+
"ms-python.vscode-pylance",
30+
"KevinRose.vsc-python-indent",
31+
"njpwerner.autodocstring",
32+
33+
// github
34+
"github.vscode-github-actions",
35+
"GitHub.vscode-pull-request-github",
36+
37+
// yaml-related
38+
"redhat.vscode-yaml",
39+
40+
// docker-related
41+
"ms-azuretools.vscode-docker",
42+
43+
// utils
44+
"mtxr.sqltools"
45+
]
46+
}
47+
}
48+
}

.devcontainer/docker-compose.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
version: "3.8"
2+
3+
volumes:
4+
iris_data:
5+
postgres_data:
6+
7+
networks:
8+
devcontainer:
9+
10+
services:
11+
# Our dev env & workspace lives in this container
12+
devcontainer:
13+
build:
14+
context: ..
15+
dockerfile: .devcontainer/Dockerfile
16+
volumes:
17+
- ..:/workspaces/iris-web:cached
18+
- iris_data:/home/vscode/iris_data
19+
command: sleep infinity
20+
networks:
21+
- devcontainer
22+
env_file:
23+
- ../.env
24+
environment:
25+
- DOCKERIZED=1
26+
- IRIS_ORGANISATION_NAME=DFIR IRIS Web DevContainer
27+
- IRIS_LOGIN_BANNER_TEXT=You've successfully setup DFIR IRIS in a DevContainer! Default credentials are username "devcontainer" / password "DevContainersR0ck!".
28+
- IRIS_ADM_PASSWORD=DevContainersR0ck!
29+
- IRIS_ADM_API_KEY=B8BA5D730210B50F41C06941582D7965D57319D5685440587F98DFDC45A01594
30+
- IRIS_ADM_EMAIL=admin@localhost
31+
- IRIS_ADM_USERNAME=devcontainer
32+
- IRIS_ASSET_STORE_PATH=/home/vscode/iris_data/custom_assets
33+
- IRIS_BACKUP_PATH=/home/vscode/iris_data/backup
34+
- IRIS_DATASTORE_PATH=/home/vscode/iris_data/datastore
35+
- IRIS_TEMPLATES_PATH=/home/vscode/iris_data/user_templates
36+
- IRIS_UPDATES_PATH=/home/vscode/iris_data/updates
37+
- IRIS_UPLOADED_PATH=/home/vscode/iris_data/downloads
38+
39+
# ---- iris dependencies --------------------------------
40+
41+
# Postgres
42+
db:
43+
build:
44+
context: ../docker/db
45+
restart: unless-stopped
46+
volumes:
47+
- postgres_data:/var/lib/postgresql/data
48+
networks:
49+
- devcontainer
50+
environment:
51+
POSTGRES_ADMIN_USER:
52+
POSTGRES_ADMIN_PASSWORD:
53+
POSTGRES_USER:
54+
POSTGRES_DB:
55+
POSTGRES_PASSWORD:
56+
57+
# RabbitMQ
58+
rabbitmq:
59+
image: rabbitmq:3-management-alpine
60+
restart: unless-stopped
61+
networks:
62+
- devcontainer

.devcontainer/post-create.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#
2+
# after our initial creation of the devcontainer, we will...
3+
#
4+
5+
# mark workspace dir as safe dir for git (b/c container user != host user)
6+
git config --global --add safe.directory /workspaces/iris-web
7+
8+
# change working dir to source
9+
cd source
10+
11+
# install python dependencies
12+
pip install -r requirements.txt

.devcontainer/pre-create.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#
2+
# before we build the image & create the devcontainer, we will...
3+
#
4+
5+
echo $PWD
6+
7+
# copy `.env.model` to `.env` if it doesn't exist already
8+
if [ ! -f .env ]; then
9+
echo ".env not found, cloning .env.model"
10+
cp .env.model .env
11+
fi

.env.model

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# -- COMMON
2+
LOG_LEVEL=info
3+
14
# -- NGINX
25
NGINX_IMAGE_NAME=ghcr.io/dfir-iris/iriswebapp_nginx
36
NGINX_IMAGE_TAG=latest
@@ -30,6 +33,12 @@ IRIS_SECURITY_PASSWORD_SALT=ARandomSalt-NotThisOneEither
3033
IRIS_UPSTREAM_SERVER=app
3134
IRIS_UPSTREAM_PORT=8000
3235

36+
IRIS_FRONTEND_SERVER=frontend
37+
IRIS_FRONTEND_PORT=5173
38+
39+
IRIS_SVELTEKIT_FRONTEND_DIR=../iris-frontend
40+
41+
3342
# -- WORKER
3443
CELERY_BROKER=amqp://rabbitmq
3544

@@ -67,6 +76,18 @@ IRIS_AUTHENTICATION_TYPE=local
6776
#LDAP_PRIVATE_KEY=
6877
#LDAP_PRIVATE_KEY_PASSWORD=
6978

79+
# -- FOR OIDC AUTHENTICATION
80+
# IRIS_AUTHENTICATION_TYPE=oidc
81+
# OIDC_ISSUER_URL=
82+
# OIDC_CLIENT_ID=
83+
# OIDC_CLIENT_SECRET=
84+
# endpoints only required if provider doesn't support metadata discovery
85+
# OIDC_AUTH_ENDPOINT=
86+
# OIDC_TOKEN_ENDPOINT=
87+
# optional to include logout from oidc provider
88+
# OIDC_END_SESSION_ENDPOINT=
89+
# OIDC redirect URL for your IDP: https://<IRIS_SERVER_NAME>/oidc-authorize
90+
7091
# -- LISTENING PORT
7192
INTERFACE_HTTPS_PORT=443
7293

0 commit comments

Comments
 (0)