Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
345 changes: 280 additions & 65 deletions LICENSE

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,7 @@ Background tasks are tracked in the **tasks** table with states:

## 📄 License

EdgeStream WebUI is licensed under the **Functional Source License 1.1,
ALv2 Future License (FSL-1.1-ALv2)**.
EdgeStream WebUI is licensed under the **Business Source License 1.1 (BUSL-1.1)**.

See:

Expand Down
9 changes: 9 additions & 0 deletions alembic/env.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
"""
Project: edgestream-api
File: alembic/env.py
Language: Python

License: BUSL-1.1
Copyright: (c) 2026 HYPERI PTY LIMITED
"""

from alembic import context
from edgestream.db.session import engine as app_engine, Base

Expand Down
9 changes: 9 additions & 0 deletions alembic/versions/1aefb8fac77f_transform_text_columns.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
"""
Project: edgestream-api
File: alembic/versions/1aefb8fac77f_transform_text_columns.py
Language: Python

License: BUSL-1.1
Copyright: (c) 2026 HYPERI PTY LIMITED
"""

"""transform text columns

Revision ID: 1aefb8fac77f
Expand Down
9 changes: 9 additions & 0 deletions alembic/versions/baf4beec17e4_use_text_for_params_value.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
"""
Project: edgestream-api
File: alembic/versions/baf4beec17e4_use_text_for_params_value.py
Language: Python

License: BUSL-1.1
Copyright: (c) 2026 HYPERI PTY LIMITED
"""

"""use Text for params value

Revision ID: baf4beec17e4
Expand Down
9 changes: 9 additions & 0 deletions alembic/versions/fbcca829bb92_users_set_updated_at.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
"""
Project: edgestream-api
File: alembic/versions/fbcca829bb92_users_set_updated_at.py
Language: Python

License: BUSL-1.1
Copyright: (c) 2026 HYPERI PTY LIMITED
"""

"""User database timestamp triggers

Revision ID: fbcca829bb92
Expand Down
9 changes: 9 additions & 0 deletions debian/contrib/ansible-queue/ansible-queue-runner.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
#!/usr/bin/env python3
"""
Project: edgestream-api
File: debian/contrib/ansible-queue/ansible-queue-runner.py
Language: Python

License: BUSL-1.1
Copyright: (c) 2026 HYPERI PTY LIMITED
"""

"""
EdgeStream Ansible Queue Runner (stdlib + requests + subprocess)

Expand Down
9 changes: 9 additions & 0 deletions debian/contrib/ansible-queue/edgestream-ansible-queue.path
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
#
# Project: edgestream-api
# File: usr/lib/systemd/system/edgestream-ansible-queue.path
# Language: Python
#
# License: BUSL-1.1
# Copyright: (c) 2026 HYPERI PTY LIMITED
#

[Unit]
Description=Watch EdgeStream Ansible queue for new jobs

Expand Down
9 changes: 9 additions & 0 deletions debian/contrib/ansible-queue/edgestream-ansible-queue.service
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
#
# Project: edgestream-api
# File: usr/lib/systemd/system/edgestream-ansible-queue.service
# Language: Python
#
# License: BUSL-1.1
# Copyright: (c) 2026 HYPERI PTY LIMITED
#

[Unit]
Description=EdgeStream Ansible Queue Runner
# Ensure the API is up before the runner tries to log in/poll
Expand Down
10 changes: 9 additions & 1 deletion debian/contrib/backup/edgestream-backup.service
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# /etc/systemd/system/edgestream-backup.service
#
# Project: edgestream-api
# File: usr/lib/systemd/system/edgestream-backup.service
# Language: Python
#
# License: BUSL-1.1
# Copyright: (c) 2026 HYPERI PTY LIMITED
#

[Unit]
Description=EdgeStream config backup (one-shot)

Expand Down
9 changes: 9 additions & 0 deletions debian/contrib/backup/edgestream-backup.timer
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
#
# Project: edgestream-api
# File: usr/lib/systemd/system/edgestream-backup.timer
# Language: Python
#
# License: BUSL-1.1
# Copyright: (c) 2026 HYPERI PTY LIMITED
#

[Unit]
Description=Run EdgeStream backup on a schedule

Expand Down
9 changes: 9 additions & 0 deletions debian/contrib/database_init.bin
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
#!/usr/bin/env bash
#
# Project: edgestream-api
# File: opt/edgestream-api/bin/database_init.bin
# Language: Python
#
# License: BUSL-1.1
# Copyright: (c) 2026 HYPERI PTY LIMITED
#

set -euo pipefail

# Redirect output to journal
Expand Down
9 changes: 8 additions & 1 deletion debian/contrib/edgestream-audit-rotate
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# /etc/cron.d/edgestream-audit-rotate
#
# Project: edgestream-api
# File: etc/cron.d/edgestream-audit-rotate
# Language: Python
#
# License: BUSL-1.1
# Copyright: (c) 2026 HYPERI PTY LIMITED
#

# Run every Sunday at 00:00 (Midnight)
# m h dom mon dow user command
Expand Down
9 changes: 9 additions & 0 deletions debian/contrib/export_config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
#!/opt/edgestream-api/bin/python3
"""
Project: edgestream-api
File: debian/contrib/export_config.py
Language: Python

License: BUSL-1.1
Copyright: (c) 2026 HYPERI PTY LIMITED
"""

import sys
import json
import os
Expand Down
9 changes: 9 additions & 0 deletions debian/contrib/reset_admin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
#!/opt/edgestream-api/bin/python3
"""
Project: edgestream-api
File: debian/contrib/reset_admin.py
Language: Python

License: BUSL-1.1
Copyright: (c) 2026 HYPERI PTY LIMITED
"""

import os
import pwd
import re
Expand Down
9 changes: 9 additions & 0 deletions debian/contrib/update/edgestream-update
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
#
# Project: edgestream-api
# File: etc/sudoers.d/edgestream-update
# Language: Python
#
# License: BUSL-1.1
# Copyright: (c) 2026 HYPERI PTY LIMITED
#

edgestream ALL=(root) NOPASSWD: /usr/bin/systemctl start --wait edgestream-update@*
9 changes: 9 additions & 0 deletions debian/contrib/update/edgestream-update-root
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
#!/usr/bin/env bash
#
# Project: edgestream-api
# File: opt/edgestream-api/bin/edgestream-update-root
# Language: Python
#
# License: BUSL-1.1
# Copyright: (c) 2026 HYPERI PTY LIMITED
#

set -euo pipefail

LOG_DIR="/var/log/edgestream-api"
Expand Down
9 changes: 9 additions & 0 deletions debian/contrib/update/edgestream-update@.service
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
#
# Project: edgestream-api
# File: usr/lib/systemd/system/edgestream-update@.service
# Language: Python
#
# License: BUSL-1.1
# Copyright: (c) 2026 HYPERI PTY LIMITED
#

[Unit]
Description=EdgeStream privileged update (%i)
Wants=network-online.target
Expand Down
9 changes: 9 additions & 0 deletions debian/contrib/vpn/edgestream-vpn
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
#
# Project: edgestream-api
# File: etc/sudoers.d/edgestream-vpn
# Language: Python
#
# License: BUSL-1.1
# Copyright: (c) 2026 HYPERI PTY LIMITED
#

# Allow the API service account to execute systemctl commands for VPN services without a password
edgestream ALL=(ALL) NOPASSWD: /usr/bin/systemctl start openvpn-client@*
edgestream ALL=(ALL) NOPASSWD: /usr/bin/systemctl stop openvpn-client@*
Expand Down
9 changes: 9 additions & 0 deletions debian/contrib/vpn/edgestream-vpnctl
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
#!/usr/bin/env bash
#
# Project: edgestream-api
# File: opt/edgestream-api/bin/edgestream-vpnctl
# Language: Python
#
# License: BUSL-1.1
# Copyright: (c) 2026 HYPERI PTY LIMITED
#

set -euo pipefail

action="${1:?start|stop|restart}"
Expand Down
9 changes: 9 additions & 0 deletions debian/contrib/vpn/edgestream-wg-status.service
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
#
# Project: edgestream-api
# File: usr/lib/systemd/system/edgestream-wg-status.service
# Language: Python
#
# License: BUSL-1.1
# Copyright: (c) 2026 HYPERI PTY LIMITED
#

[Unit]
Description=EdgeStream WireGuard status cache
After=network-online.target
Expand Down
9 changes: 9 additions & 0 deletions debian/contrib/vpn/edgestream-wg-statusd
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
#!/usr/bin/env bash
#
# Project: edgestream-api
# File: opt/edgestream-api/bin/edgestream-wg-statusd
# Language: Python
#
# License: BUSL-1.1
# Copyright: (c) 2026 HYPERI PTY LIMITED
#

set -euo pipefail

OUT_DIR="/run/edgestream"
Expand Down
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ Description: EdgeStream Hub API
EdgeStream Hub is a network security and event collection appliance
providing event collection and aggregation.
.
Licensed under the Functional Source License 1.1 (ALv2 Future License).
Licensed under the Business Source License 1.1 (BUSL-1.1).
Loading