Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZeroNetX Changes #2809

Open
wants to merge 60 commits into
base: py3
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
eab7fc2
Tor V3 Patch
canewsin Nov 27, 2021
a1eb6ee
Fix Incorrect viewport on mobile while loading
canewsin Nov 27, 2021
7acd8df
Fix xrange is undefined error
canewsin Nov 28, 2021
7d1ec41
v 0.7.3 (4556)
canewsin Nov 28, 2021
edd2760
v 0.7.5 (4560)
canewsin Nov 28, 2021
7078bad
Update Docker Image
canewsin Dec 2, 2021
5ee9288
v 0.7.6 (4565)
canewsin Dec 11, 2021
f498aed
v0.7.8 (4580)
canewsin Mar 2, 2022
69d7eac
v 0.7.9-beta (4581)
canewsin Mar 6, 2022
f8c9f2d
remove old v2 onion service (#158)
marek22k Mar 12, 2022
eb397cf
Update Plugins Repo
canewsin Mar 12, 2022
7ce118d
Fix Repo Url for Bug Report
canewsin Mar 12, 2022
02ceb70
Tracker Supply improvemets
canewsin Mar 26, 2022
00db9c9
Rust Version Compatibility for update Protocol msg
canewsin Apr 8, 2022
a519023
v 0.7.9(4585)
canewsin Apr 8, 2022
b29884d
Create codeql-analysis.yml
canewsin May 18, 2022
f9d7ccd
Fix Unhandled File Access Errors
canewsin May 26, 2022
fe048cd
Update Plugins Repo
canewsin May 26, 2022
2ad80af
actionUpdate response Optimisation
canewsin May 26, 2022
ac70f83
v 0.7.9-patch(4586)
canewsin May 26, 2022
b257338
v 0.8.0(4590)
canewsin May 26, 2022
c3815c5
Revert File Open to catch File Access Errors.
canewsin May 27, 2022
5579c6b
rev4591
canewsin May 27, 2022
712ee18
Update FUNDING.yml
canewsin Jun 2, 2022
016cfe9
Console Log Updates, Specify min supported ZeroNet version for Rust v…
canewsin Jun 9, 2022
3ac677c
Don't Fail Silently When Cert is Not Selected
canewsin Jun 10, 2022
49e68c3
Include inner_path of failed request for signing in error msg and res…
canewsin Jun 10, 2022
0ed0b74
Update README-ru.md (#177)
BratishkaErik Jun 13, 2022
611fc77
Remove Patreon badge
canewsin Jun 13, 2022
86109ae
fix readdress loop
caryoscelus Jan 26, 2022
966f671
Update CHANGELOG.md
canewsin Sep 30, 2022
fd85798
v0.8.0(4600)
canewsin Sep 30, 2022
ac72d62
remove duplicate xescape(s)
canewsin Oct 4, 2022
ba96654
v 0.8.1-patch(4601)
canewsin Oct 4, 2022
d570354
Added documentation for getRandomPort fn
ganeshchowdarynune Oct 8, 2022
b7870ed
Fix Startup Error when plugins dir missing
canewsin Nov 1, 2022
459b0a7
Move trackers to seperate file & Add more trackers
canewsin Nov 1, 2022
ad95eed
Config:: Skip loading missing tracker files
canewsin Nov 1, 2022
0731787
v0.8.2(4610)
canewsin Nov 1, 2022
f79a73c
main.py -> Fix accessing unassigned varible
canewsin Nov 23, 2022
f1a7177
ContentManager -> Support for multiSig
canewsin Nov 23, 2022
1500d93
SiteStrorage.py -> Fix accessing unassigned varible
canewsin Dec 10, 2022
85ef28e
ContentManager.py Improve Logging of Valid Signers
canewsin Dec 10, 2022
3550a64
v0.8.3(4611)
canewsin Dec 10, 2022
99a8409
Increase Def Min Site Size to 25MB
canewsin Dec 10, 2022
edc5310
v0.8.4(4620)
canewsin Dec 10, 2022
77b4297
Update Stats Plugin
canewsin Dec 24, 2022
c354f9e
Use default theme-class for corrupt users.json file
canewsin Dec 24, 2022
06a9d1e
Fix openssl error in windows.
SetoKaiba Jan 4, 2023
dd2bb07
v0.8.5(4625)
canewsin Feb 11, 2023
f2ef6e5
Fix Response when site is missing for `actionAs`
canewsin Feb 24, 2023
d8e52ea
FileRequest -> Remove Unnecessary check
canewsin Mar 23, 2023
a429349
FileRequest -> Fix error wording
canewsin Mar 23, 2023
117bcf2
Fix pysha3 dep installation issue
canewsin Jun 30, 2023
fedcf9c
Added Proxy links
canewsin Jun 30, 2023
e8cf14b
Add trackers to Config.py for failsafety incase missing trackers..txt…
canewsin Jun 30, 2023
866179f
v0.8.6(4626)
canewsin Jun 30, 2023
2970e3a
Fetch plugins changes
canewsin Jul 11, 2023
25c5658
Upgrade GH runner to 20.04
canewsin Jul 12, 2023
2900259
v0.9.0(4630)
canewsin Jul 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 10 additions & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
custom: https://zeronet.io/docs/help_zeronet/donate/
github: canewsin
patreon: # Replace with a single Patreon username e.g., user1
open_collective: # Replace with a single Open Collective username e.g., user1
ko_fi: canewsin
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: canewsin
issuehunt: # Replace with a single IssueHunt username e.g., user1
otechie: # Replace with a single Otechie username e.g., user1
custom: ['https://paypal.me/PramUkesh', 'https://zerolink.ml/1DeveLopDZL1cHfKi8UXHh2UBEhzH6HhMp/help_zeronet/donate/']
72 changes: 72 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ py3-latest ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ py3-latest ]
schedule:
- cron: '32 19 * * 2'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript', 'python' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
78 changes: 40 additions & 38 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,46 +4,48 @@ on: [push, pull_request]

jobs:
test:

runs-on: ubuntu-16.04
runs-on: ubuntu-20.04
strategy:
max-parallel: 16
matrix:
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]
python-version: ["3.7", "3.8", "3.9"]

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}

- name: Prepare for installation
run: |
python3 -m pip install setuptools
python3 -m pip install --upgrade pip wheel
python3 -m pip install --upgrade codecov coveralls flake8 mock pytest==4.6.3 pytest-cov selenium

- name: Install
run: |
python3 -m pip install --upgrade -r requirements.txt
python3 -m pip list

- name: Prepare for tests
run: |
openssl version -a
echo 0 | sudo tee /proc/sys/net/ipv6/conf/all/disable_ipv6

- name: Test
run: |
catchsegv python3 -m pytest src/Test --cov=src --cov-config src/Test/coverage.ini
export ZERONET_LOG_DIR="log/CryptMessage"; catchsegv python3 -m pytest -x plugins/CryptMessage/Test
export ZERONET_LOG_DIR="log/Bigfile"; catchsegv python3 -m pytest -x plugins/Bigfile/Test
export ZERONET_LOG_DIR="log/AnnounceLocal"; catchsegv python3 -m pytest -x plugins/AnnounceLocal/Test
export ZERONET_LOG_DIR="log/OptionalManager"; catchsegv python3 -m pytest -x plugins/OptionalManager/Test
export ZERONET_LOG_DIR="log/Multiuser"; mv plugins/disabled-Multiuser plugins/Multiuser && catchsegv python -m pytest -x plugins/Multiuser/Test
export ZERONET_LOG_DIR="log/Bootstrapper"; mv plugins/disabled-Bootstrapper plugins/Bootstrapper && catchsegv python -m pytest -x plugins/Bootstrapper/Test
find src -name "*.json" | xargs -n 1 python3 -c "import json, sys; print(sys.argv[1], end=' '); json.load(open(sys.argv[1])); print('[OK]')"
find plugins -name "*.json" | xargs -n 1 python3 -c "import json, sys; print(sys.argv[1], end=' '); json.load(open(sys.argv[1])); print('[OK]')"
flake8 . --count --select=E9,F63,F72,F82 --show-source --statistics --exclude=src/lib/pyaes/
- name: Checkout ZeroNet
uses: actions/checkout@v2
with:
submodules: "true"

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}

- name: Prepare for installation
run: |
python3 -m pip install setuptools
python3 -m pip install --upgrade pip wheel
python3 -m pip install --upgrade codecov coveralls flake8 mock pytest==4.6.3 pytest-cov selenium

- name: Install
run: |
python3 -m pip install --upgrade -r requirements.txt
python3 -m pip list

- name: Prepare for tests
run: |
openssl version -a
echo 0 | sudo tee /proc/sys/net/ipv6/conf/all/disable_ipv6

- name: Test
run: |
catchsegv python3 -m pytest src/Test --cov=src --cov-config src/Test/coverage.ini
export ZERONET_LOG_DIR="log/CryptMessage"; catchsegv python3 -m pytest -x plugins/CryptMessage/Test
export ZERONET_LOG_DIR="log/Bigfile"; catchsegv python3 -m pytest -x plugins/Bigfile/Test
export ZERONET_LOG_DIR="log/AnnounceLocal"; catchsegv python3 -m pytest -x plugins/AnnounceLocal/Test
export ZERONET_LOG_DIR="log/OptionalManager"; catchsegv python3 -m pytest -x plugins/OptionalManager/Test
export ZERONET_LOG_DIR="log/Multiuser"; mv plugins/disabled-Multiuser plugins/Multiuser && catchsegv python -m pytest -x plugins/Multiuser/Test
export ZERONET_LOG_DIR="log/Bootstrapper"; mv plugins/disabled-Bootstrapper plugins/Bootstrapper && catchsegv python -m pytest -x plugins/Bootstrapper/Test
find src -name "*.json" | xargs -n 1 python3 -c "import json, sys; print(sys.argv[1], end=' '); json.load(open(sys.argv[1])); print('[OK]')"
find plugins -name "*.json" | xargs -n 1 python3 -c "import json, sys; print(sys.argv[1], end=' '); json.load(open(sys.argv[1])); print('[OK]')"
flake8 . --count --select=E9,F63,F72,F82 --show-source --statistics --exclude=src/lib/pyaes/
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "plugins"]
path = plugins
url = https://github.com/ZeroNetX/ZeroNet-Plugins.git
83 changes: 81 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,84 @@
### ZeroNet 0.7.2 (2020-09-?) Rev4206?

### ZeroNet 0.9.0 (2023-07-12) Rev4630
- Fix RDos Issue in Plugins https://github.com/ZeroNetX/ZeroNet-Plugins/pull/9
- Add trackers to Config.py for failsafety incase missing trackers.txt
- Added Proxy links
- Fix pysha3 dep installation issue
- FileRequest -> Remove Unnecessary check, Fix error wording
- Fix Response when site is missing for `actionAs`


### ZeroNet 0.8.5 (2023-02-12) Rev4625
- Fix(https://github.com/ZeroNetX/ZeroNet/pull/202) for SSL cert gen failed on Windows.
- default theme-class for missing value in `users.json`.
- Fetch Stats Plugin changes.

### ZeroNet 0.8.4 (2022-12-12) Rev4620
- Increase Minimum Site size to 25MB.

### ZeroNet 0.8.3 (2022-12-11) Rev4611
- main.py -> Fix accessing unassigned varible
- ContentManager -> Support for multiSig
- SiteStrorage.py -> Fix accessing unassigned varible
- ContentManager.py Improve Logging of Valid Signers

### ZeroNet 0.8.2 (2022-11-01) Rev4610
- Fix Startup Error when plugins dir missing
- Move trackers to seperate file & Add more trackers
- Config:: Skip loading missing tracker files
- Added documentation for getRandomPort fn

### ZeroNet 0.8.1 (2022-10-01) Rev4600
- fix readdress loop (cherry-pick previously added commit from conservancy)
- Remove Patreon badge
- Update README-ru.md (#177)
- Include inner_path of failed request for signing in error msg and response
- Don't Fail Silently When Cert is Not Selected
- Console Log Updates, Specify min supported ZeroNet version for Rust version Protocol Compatibility
- Update FUNDING.yml

### ZeroNet 0.8.0 (2022-05-27) Rev4591
- Revert File Open to catch File Access Errors.

### ZeroNet 0.7.9-patch (2022-05-26) Rev4586
- Use xescape(s) from zeronet-conservancy
- actionUpdate response Optimisation
- Fetch Plugins Repo Updates
- Fix Unhandled File Access Errors
- Create codeql-analysis.yml

### ZeroNet 0.7.9 (2022-05-26) Rev4585
- Rust Version Compatibility for update Protocol msg
- Removed Non Working Trakers.
- Dynamically Load Trackers from Dashboard Site.
- Tracker Supply Improvements.
- Fix Repo Url for Bug Report
- First Party Tracker Update Service using Dashboard Site.
- remove old v2 onion service [#158](https://github.com/ZeroNetX/ZeroNet/pull/158)

### ZeroNet 0.7.8 (2022-03-02) Rev4580
- Update Plugins with some bug fixes and Improvements

### ZeroNet 0.7.6 (2022-01-12) Rev4565
- Sync Plugin Updates
- Clean up tor v3 patch [#115](https://github.com/ZeroNetX/ZeroNet/pull/115)
- Add More Default Plugins to Repo
- Doubled Site Publish Limits
- Update ZeroNet Repo Urls [#103](https://github.com/ZeroNetX/ZeroNet/pull/103)
- UI/UX: Increases Size of Notifications Close Button [#106](https://github.com/ZeroNetX/ZeroNet/pull/106)
- Moved Plugins to Seperate Repo
- Added `access_key` variable in Config, this used to access restrited plugins when multiuser plugin is enabled. When MultiUserPlugin is enabled we cannot access some pages like /Stats, this key will remove such restriction with access key.
- Added `last_connection_id_current_version` to ConnectionServer, helpful to estimate no of connection from current client version.
- Added current version: connections to /Stats page. see the previous point.

### ZeroNet 0.7.5 (2021-11-28) Rev4560
- Add more default trackers
- Change default homepage address to `1HELLoE3sFD9569CLCbHEAVqvqV7U2Ri9d`
- Change default update site address to `1Update8crprmciJHwp2WXqkx2c4iYp18`

### ZeroNet 0.7.3 (2021-11-28) Rev4555
- Fix xrange is undefined error
- Fix Incorrect viewport on mobile while loading
- Tor-V3 Patch by anonymoose


### ZeroNet 0.7.1 (2019-07-01) Rev4206
Expand Down
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
FROM alpine:3.11
FROM alpine:3.15

#Base settings
ENV HOME /root

COPY requirements.txt /root/requirements.txt

#Install ZeroNet
RUN apk --update --no-cache --no-progress add python3 python3-dev gcc libffi-dev musl-dev make tor openssl \
RUN apk --update --no-cache --no-progress add python3 python3-dev py3-pip gcc g++ autoconf automake libtool libffi-dev musl-dev make tor openssl \
&& pip3 install -r /root/requirements.txt \
&& apk del python3-dev gcc libffi-dev musl-dev make \
&& apk del python3-dev gcc g++ autoconf automake libtool libffi-dev musl-dev make \
&& echo "ControlPort 9051" >> /etc/tor/torrc \
&& echo "CookieAuthentication 1" >> /etc/tor/torrc

Expand All @@ -22,12 +22,12 @@ COPY . /root
VOLUME /root/data

#Control if Tor proxy is started
ENV ENABLE_TOR false
ENV ENABLE_TOR true

WORKDIR /root

#Set upstart command
CMD (! ${ENABLE_TOR} || tor&) && python3 zeronet.py --ui_ip 0.0.0.0 --fileserver_port 26552
CMD (! ${ENABLE_TOR} || tor&) && python3 zeronet.py --ui_ip 0.0.0.0 --fileserver_port 26117

#Expose ports
EXPOSE 43110 26552
EXPOSE 43110 26117