-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detector code is still refering to postgres, yet it needs to stay unt…
…il we land #651
- Loading branch information
Showing
19 changed files
with
1,762 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
detector (0.2) unstable; urgency=medium | ||
|
||
* run webapp as a dedicated service | ||
|
||
-- Federico Ceratto <[email protected]> Tue, 26 Nov 2019 18:58:45 +0000 | ||
|
||
detector (0.1) unstable; urgency=medium | ||
|
||
* event detector | ||
|
||
-- Federico Ceratto <[email protected]> Tue, 26 Nov 2019 18:58:23 +0000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
Source: detector | ||
Section: python | ||
Priority: optional | ||
Maintainer: Federico Ceratto <[email protected]> | ||
Build-Depends: debhelper-compat (= 12), | ||
python3, | ||
dh-systemd (>= 1.5), | ||
dh-python, | ||
python3-boto3, | ||
python3-lz4, | ||
python3-paramiko, | ||
python3-psycopg2, | ||
python3-setuptools, | ||
python3-statsd, | ||
python3-systemd, | ||
python3-ujson | ||
Standards-Version: 4.1.3 | ||
|
||
Package: detector | ||
Architecture: all | ||
Depends: ${misc:Depends}, | ||
${python3:Depends}, | ||
python3-boto3, | ||
python3-lz4, | ||
python3-paramiko, | ||
python3-psycopg2, | ||
python3-setuptools, | ||
python3-statsd, | ||
python3-systemd, | ||
python3-ujson, | ||
nginx | ||
Suggests: | ||
bpython3, | ||
python3-pytest, | ||
python3-pytest-benchmark | ||
Description: OONI Event Detector | ||
OONI Event Detector |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
[Unit] | ||
Description=OONI Detector Webapp | ||
Wants=network-online.target | ||
After=network-online.target | ||
|
||
[Service] | ||
ExecStart=/usr/bin/detector --webapp | ||
Restart=on-abort | ||
Type=simple | ||
RestartSec=2s | ||
WorkingDirectory=/var/lib/detector | ||
|
||
User=fastpath | ||
Group=fastpath | ||
ReadOnlyDirectories=/ | ||
ReadWriteDirectories=/proc/self | ||
|
||
StandardOutput=syslog+console | ||
StandardError=syslog+console | ||
|
||
PermissionsStartOnly=true | ||
LimitNOFILE=65536 | ||
|
||
# Hardening | ||
CapabilityBoundingSet=CAP_SETUID CAP_SETGID | ||
SystemCallFilter=~@clock @debug @cpu-emulation @keyring @module @mount @obsolete @raw-io @reboot @swap | ||
NoNewPrivileges=yes | ||
PrivateDevices=yes | ||
PrivateTmp=yes | ||
ProtectHome=yes | ||
ProtectSystem=full | ||
ProtectKernelModules=yes | ||
ProtectKernelTunables=yes | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
[Unit] | ||
Description=OONI Event Detector | ||
Wants=network-online.target | ||
After=network-online.target | ||
|
||
[Service] | ||
ExecStart=/usr/bin/detector | ||
Restart=on-abort | ||
Type=simple | ||
RestartSec=2s | ||
WorkingDirectory=/var/lib/detector | ||
|
||
User=fastpath | ||
Group=fastpath | ||
ReadOnlyDirectories=/ | ||
ReadWriteDirectories=/proc/self | ||
ReadWriteDirectories=/var/lib/detector | ||
|
||
StandardOutput=syslog+console | ||
StandardError=syslog+console | ||
|
||
PermissionsStartOnly=true | ||
LimitNOFILE=65536 | ||
|
||
# Hardening | ||
CapabilityBoundingSet=CAP_SETUID CAP_SETGID | ||
SystemCallFilter=~@clock @debug @cpu-emulation @keyring @module @mount @obsolete @raw-io @reboot @swap | ||
NoNewPrivileges=yes | ||
PrivateDevices=yes | ||
PrivateTmp=yes | ||
ProtectHome=yes | ||
ProtectSystem=full | ||
ProtectKernelModules=yes | ||
ProtectKernelTunables=yes | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/make -f | ||
export DH_VERBOSE = 1 | ||
|
||
%: | ||
dh $@ --buildsystem=pybuild | ||
|
||
override_dh_installsystemd: | ||
dh_installsystemd --no-restart-on-upgrade --name detector | ||
dh_installsystemd --no-restart-on-upgrade --name detector-webapp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.0 (quilt) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
The country-list.json file is generated by https://github.com/ooni/country-util |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.