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

1.10.4 merge into main #1893

Merged
merged 85 commits into from
Mar 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
67cf4c4
add note about forceTcpRelay
laduke Feb 21, 2023
9124b0a
Merge branch 'main' into dev
glimberg Feb 23, 2023
dc54e0e
Create a sample systemd unit for tcp proxy
laduke Feb 23, 2023
032dc5c
set gitattributes for rust & cargo so hashes dont conflict on Windows
glimberg Mar 1, 2023
047e327
Revert "set gitattributes for rust & cargo so hashes dont conflict on…
glimberg Mar 1, 2023
936dda4
Turn off autocrlf for rust source
glimberg Mar 1, 2023
6cf3b65
Fix #1883 (#1886)
glimberg Mar 2, 2023
672c58b
Don't vendor packages for zeroidc (#1885)
glimberg Mar 2, 2023
c6adfd9
Added docker environment way to join networks (#1871)
leleobhz Mar 2, 2023
58e3b8c
add StringUtils
bostick Jan 24, 2023
216ed8c
fix headers
bostick Feb 1, 2023
0733af5
move extern "C"
bostick Jan 30, 2023
5be92a9
cleanup
bostick Feb 2, 2023
87edbb2
fix ANDROID-50: RESULT_ERROR_BAD_PARAMETER typo
bostick Jan 31, 2023
0027e6b
fix typo in log message
bostick Jan 31, 2023
1c88037
fix typos in JNI method signatures
bostick Feb 1, 2023
bfe4bc2
fix typo
bostick Feb 4, 2023
0100361
fix ANDROID-51: fieldName is uninitialized
bostick Jan 31, 2023
dd1b52c
fix ANDROID-35: memory leak
bostick Feb 1, 2023
703f929
fix missing DeleteLocalRef in loops
bostick Feb 1, 2023
21264ba
update to use unique error codes
bostick Feb 4, 2023
8373a0f
add GETENV macro
bostick Feb 2, 2023
71fc0dd
add LOG_TAG defines
bostick Feb 2, 2023
7890185
ANDROID-48: add ZT_jnicache.cpp
bostick Jan 30, 2023
82749e4
ANDROID-48: use ZT_jnicache.cpp and remove ZT_jnilookup.cpp and ZT_jn…
bostick Jan 30, 2023
7c5f256
add Event.fromInt
bostick Jan 31, 2023
056cef7
add PeerRole.fromInt
bostick Jan 31, 2023
34ff813
add ResultCode.fromInt
bostick Jan 31, 2023
acd8b95
fix ANDROID-36: issues with ResultCode
bostick Jan 31, 2023
7c27660
add VirtualNetworkConfigOperation.fromInt
bostick Jan 31, 2023
ed3918b
fix ANDROID-40: VirtualNetworkConfigOperation out-of-sync with ZT_Vir…
bostick Jan 31, 2023
85bd773
add VirtualNetworkStatus.fromInt
bostick Jan 31, 2023
d1460ab
fix ANDROID-37: VirtualNetworkStatus out-of-sync with ZT_VirtualNetwo…
bostick Jan 31, 2023
acf5b35
add VirtualNetworkType.fromInt
bostick Jan 31, 2023
4861ec5
make NodeStatus a plain data class
bostick Jan 31, 2023
f9528f1
fix ANDROID-52: synchronization bug with nodeMap
bostick Feb 27, 2023
90bf300
Node init work: separate Node construction and init
bostick Feb 2, 2023
7ef68a9
add Node.toString
bostick Jan 31, 2023
63f70ba
make PeerPhysicalPath a plain data class
bostick Jan 31, 2023
2de4c95
remove unused PeerPhysicalPath.fixed
bostick Jan 31, 2023
f51ce07
add array functions
bostick Jan 31, 2023
6cc055d
make Peer a plain data class
bostick Feb 1, 2023
6102c70
make Version a plain data class
bostick Feb 1, 2023
d5944ae
fix ANDROID-42: copy/paste error
bostick Feb 6, 2023
9cb16ac
fix ANDROID-49: VirtualNetworkConfig.equals is wrong
bostick Feb 27, 2023
8b72449
reimplement VirtualNetworkConfig.equals
bostick Feb 2, 2023
7392a32
reimplement VirtualNetworkConfig.compareTo
bostick Feb 2, 2023
e060ae3
add VirtualNetworkConfig.hashCode
bostick Feb 2, 2023
54fd7c7
make VirtualNetworkConfig a plain data class
bostick Feb 1, 2023
b8b8e58
remove unused VirtualNetworkConfig.enabled
bostick Feb 1, 2023
686561d
reimplement VirtualNetworkDNS.equals
bostick Feb 2, 2023
8b0be5c
add VirtualNetworkDNS.hashCode
bostick Feb 2, 2023
f9a27d6
make VirtualNetworkDNS a plain data class
bostick Feb 1, 2023
86122e1
reimplement VirtualNetworkRoute.equals
bostick Feb 2, 2023
920e1f5
reimplement VirtualNetworkRoute.compareTo
bostick Feb 2, 2023
d609295
reimplement VirtualNetworkRoute.toString
bostick Feb 2, 2023
d0c0585
add VirtualNetworkRoute.hashCode
bostick Feb 2, 2023
809022b
make VirtualNetworkRoute a plain data class
bostick Feb 1, 2023
40d5f9b
add isSocketAddressEmpty
bostick Feb 2, 2023
30cfe65
add addressPort
bostick Feb 2, 2023
4ee73fa
add fromSocketAddressObject
bostick Feb 1, 2023
e1c16a8
invert logic in a couple of places and return early
bostick Feb 1, 2023
132bff2
newInetAddress and newInetSocketAddress work
bostick Feb 1, 2023
0a925a6
fix ANDROID-38: stack corruption in onSendPacketRequested
bostick Feb 2, 2023
d28f443
use GETENV macro
bostick Feb 2, 2023
a2f7539
JniRef work
bostick Feb 2, 2023
a1bf139
use PRId64 macros
bostick Feb 2, 2023
914b4fa
switch statement work
bostick Feb 2, 2023
fbd8347
comments and logging
bostick Feb 2, 2023
ca73651
Modifier 'public' is redundant for interface members
bostick Feb 2, 2023
33a9cd0
NodeException can be made a checked Exception
bostick Feb 2, 2023
5b5625a
'NodeException' does not define a 'serialVersionUID' field
bostick Feb 2, 2023
1ab36d8
'finalize()' should not be overridden
bostick Feb 2, 2023
0aa4a4b
error handling, error reporting, asserts, logging
bostick Feb 2, 2023
7f996ea
simplify loadLibrary
bostick Feb 13, 2023
8d74d34
rename Node.networks -> Node.networkConfigs
bostick Feb 16, 2023
cc4251c
Windows file permissions fix (#1887)
glimberg Mar 4, 2023
9d5b9ef
Allow macOS interfaces to use multiple IP addresses (#1879)
laduke Mar 6, 2023
40705ca
Fix condition where full HELLOs might not be sent when necessary (#1877)
joseph-henry Mar 6, 2023
9f5bf06
1.10.4 version bumps
adamierymenko Mar 6, 2023
a1af94f
Add security policy to repo (#1889)
glimberg Mar 7, 2023
eedf270
[+] add e2k64 arch (#1890)
Keylost Mar 7, 2023
dd627cd
temp fix for ANDROID-56: crash inside newNetworkConfig from too many …
bostick Mar 7, 2023
9fb3f04
1.10.4 release notes
adamierymenko Mar 7, 2023
64423f3
Merge branch 'dev' of github.com:/zerotier/ZeroTierOne into dev
adamierymenko Mar 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ jobs:
steps:
- name: gitconfig
run: |
git config --global core.autocrlf false
git config --global core.eol lf
git config --global core.autocrlf input
# git config --global core.eol lf
- name: checkout
uses: actions/checkout@v3
- name: Install Rust
Expand Down Expand Up @@ -42,8 +42,8 @@ jobs:
steps:
- name: gitconfig
run: |
git config --global core.autocrlf false
git config --global core.eol lf
git config --global core.autocrlf input
# git config --global core.eol lf
- name: checkout
uses: actions/checkout@v3
- name: Install Rust
Expand Down Expand Up @@ -77,8 +77,8 @@ jobs:
steps:
- name: gitconfig
run: |
git config --global core.autocrlf false
git config --global core.eol lf
git config --global core.autocrlf true
# git config --global core.eol lf
- name: checkout
uses: actions/checkout@v3
- name: Install Rust
Expand Down
1 change: 1 addition & 0 deletions README.docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ To ensure you have a network available before trying to listen on it. Without pr

You can control a few settings including the identity used and the authtoken used to interact with the control socket (which you can forward and access through `localhost:9993`).

- `ZEROTIER_JOIN_NETWORKS`: additional way to set networks to join.
- `ZEROTIER_API_SECRET`: replaces the `authtoken.secret` before booting and allows you to manage the control socket's authentication key.
- `ZEROTIER_IDENTITY_PUBLIC`: the `identity.public` file for zerotier-one. Use `zerotier-idtool` to generate one of these for you.
- `ZEROTIER_IDENTITY_SECRET`: the `identity.secret` file for zerotier-one. Use `zerotier-idtool` to generate one of these for you.
Expand Down
13 changes: 13 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
ZeroTier Release Notes
======

# 2023-03-07 -- Version 1.10.4

* SECURITY FIX (Windows): this version fixes a file permission problem on
Windows that could allow non-privileged users on a Windows system to read
privileged files in the ZeroTier service's working directory. This could
allow an unprivileged local Windows user to administrate the local ZeroTier
instance without appropriate local permissions. This issue is not remotely
exploitable unless a remote user can read arbitrary local files, and does
not impact other operating systems.

* Fix a bug in the handling of multiple IP address assignments to virtual
interfaces on macOS.

# 2023-02-15 -- Version 1.10.3

* Fix for duplicate paths in client. Could cause connectivity issues. Affects all platforms.
Expand Down
95 changes: 95 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# Security

ZeroTier takes the security of our software products and services seriously, which
includes all source code repositories managed through our GitHub organization.

## Supported Versions

The following versions of ZeroTier One receive security updates

| Version | Supported |
| ------- | ------------------ |
| 1.10.x | :white_check_mark: |
| 1.8.x | :white_check_mark: |
| < 1.8.0 | :x: |

## Reporting a Vulnerability

**Please do not report security issues through public GitHub issues**

Instead, please report vulnerabilities via email to [email protected]. If possible,
please encrypt with our PGP key (see below).

Please include the following information, or as much as you can provide to help us
understand the nature and scope of the issue:


* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
* Full paths of source file(s) related to the manifestation of the issue
* The location of the affected source code (tag/branch/commit or direct URL)
* Any special configuration required to reproduce the issue
* Step-by-step instructions to reproduce the issue
* Proof-of-concept or exploit code (if possible)
* Impact of the issue, including how an attacker might exploit the issue


## Preferred Languages

We prefer all communications to be in English.

## [email protected] PGP key

```
-----BEGIN PGP PUBLIC KEY BLOCK-----

mQINBGQGOVIBEACalXTnNqaiSOVLFEiqHpDMg8N/OI5D5850Xy1ZEvx3B3rz7cbn
k30ozHtJKbh+vqpyItE7DjyQAuF19gP5Q64Yh0Y+MmLHq60q/GwOwAYz7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kCNgQYAQoAIBYhBH1HQGb+4jzl6mnFqf09m6uqADkABQJkBjlS
AhsMAAoJEP09m6uqADkAax0P/Rh8EZYRqW6dPYTl1YQusAK10rAcRNq3ekjofXGk
oXK1S7HWGoFgl5++5nfSfNgFJ5VLcgIM56wtIf49zFjWe5oC6fw8k+ghh4d2chMP
hdDILx6e0c30Iq1+EvovGR9hWa0wJ4cKTdzlwhY9ZC09q0ia+bl2mwpie1JQDR0c
zXCjt+PldLeeK9z1/XT0Q7KowYC+U18oR+KFm+EaRV4QT85JVequnIeGkmaHJrHB
lH4T5A5ib7y8edon1c0Zx3GsaxJUojkEJ0SX7ffVDu6ztUZfkHfCVpMW4VzUeGA/
m+CtFO9ciLRGZEkRa+zhIGoBvwEXU0GiwiF4nZ0F2C8UioeW0YIEV9zl3nXJctYE
ZKc2whSENQRTGgaYHVoVZhznt71LKWgFLshwBo81UCXVkzwAjMW1ActDnmPw5M7q
xR5Qp5G49Z1GmfSozazha0HVFPKNV5i3RlTzs4yLUnZyH0yC9IvtOefMHcLjG96L
N5miEV97gvJJjrn8rhRvpUwAWgmT/9IuYjBNQTtNN40arto5HxezR76WCjdKYxdL
p3dM1iiBDShHNm7LdyZlLFhTOMU0tNBxJJ7B09ar5gakeZjD+2aB1ODX9VuFtozL
onBjI2gIkry0UIkuznHfFw05lZAZAiqHEVgVi/WTk4C/bklDZNgE0lx+IWzEz2iS
L455
=lheL
-----END PGP PUBLIC KEY BLOCK-----
```
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
zerotier-one (1.10.4) unstable; urgency=medium

* See RELEASE-NOTES.md for release notes.

-- Adam Ierymenko <[email protected]> Mon, 06 Mar 2023 01:00:00 -0700

zerotier-one (1.10.3) unstable; urgency=medium

* See RELEASE-NOTES.md for release notes.
Expand Down
12 changes: 11 additions & 1 deletion entrypoint.sh.release
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,23 @@ trap killzerotier INT TERM
log "Configuring networks to join"
mkdir -p /var/lib/zerotier-one/networks.d

log_params "Joining networks:" $@
log_params "Joining networks from command line:" $@
for i in "$@"
do
log_detail_params "Configuring join:" "$i"
touch "/var/lib/zerotier-one/networks.d/${i}.conf"
done

if [ "x$ZEROTIER_JOIN_NETWORKS" != "x" ]
then
log_params "Joining networks from environment:" $ZEROTIER_JOIN_NETWORKS
for i in "$ZEROTIER_JOIN_NETWORKS"
do
log_detail_params "Configuring join:" "$i"
touch "/var/lib/zerotier-one/networks.d/${i}.conf"
done
fi

log "Starting ZeroTier"
nohup /usr/sbin/zerotier-one &

Expand Down
2 changes: 1 addition & 1 deletion ext/installfiles/mac/ZeroTier One.pkgproj
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@
<key>USE_HFS+_COMPRESSION</key>
<false/>
<key>VERSION</key>
<string>1.10.3</string>
<string>1.10.4</string>
</dict>
<key>TYPE</key>
<integer>0</integer>
Expand Down
112 changes: 0 additions & 112 deletions java/jni/ZT_jniarray.cpp

This file was deleted.

60 changes: 0 additions & 60 deletions java/jni/ZT_jniarray.h

This file was deleted.

Loading