Commit Graph
57 Commits
Author SHA1 Message Date
fufesou 873230e35a fix: key file perm (#705)
* fix: key file perm

Signed-off-by: fufesou <linlong1266@gmail.com>

* fix: enforce secure private key permissions on Unix

Create new keys with mode 0600 and verify permissions before writing.
Tighten existing keys to 0600 and propagate permission failures.
Preserve dangling symlinks and clean up failed key creation.

Signed-off-by: fufesou <linlong1266@gmail.com>

* fix: preserve read-only keys and prevent public key clobbering

Accept existing 0400 keys without changing their permissions.
Write the public key only after private key creation and writing succeed.

Signed-off-by: fufesou <linlong1266@gmail.com>

* fix: generate missing public keys and reject mismatched key pairs

Signed-off-by: fufesou <linlong1266@gmail.com>

* fix: publish public keys atomically without overwriting existing files

Signed-off-by: fufesou <linlong1266@gmail.com>

* fix: key file perms, comments

Signed-off-by: fufesou <linlong1266@gmail.com>

* fix: reject key conflicts and clean up failed private key writes

Reuse symlink resolution and simplify key loading and regression tests.

Signed-off-by: fufesou <linlong1266@gmail.com>

* fix: key file perm, simple refactor

Signed-off-by: fufesou <linlong1266@gmail.com>

---------

Signed-off-by: fufesou <linlong1266@gmail.com>
2026-10-10 17:34:18 +08:00
rustdesk 30fba48547 bump version 2026-07-23 20:13:48 +08:00
rustdesk 73523b31cf bump version 2026-07-21 05:26:35 +08:00
rustdesk 34cbd57e71 bump version 2026-01-13 10:20:40 +08:00
rustdesk 34946219c3 update workflow 2026-01-09 19:12:49 +08:00
rustdesk 1fd1a2a3b6 1.1.14 2025-01-25 20:37:16 +08:00
rustdesk b9e5968299 1.1.13 2025-01-21 01:09:21 +08:00
21pages 7a509f6975 replace libs/hbb_common with submodule (#502)
cargo update -p schannel to fix crash on higher rust toolchain, https://github.com/seanmonstar/reqwest/issues/2311

Signed-off-by: 21pages <sunboeasy@gmail.com>
2025-01-20 17:34:22 +08:00
XLion 4c74586ce0 Borrow Cargo.toml's profile.release from RustDesk for better binary (#481) 2024-10-14 11:00:38 +08:00
rustdesk 6f18a97644 v1.1.12 2024-10-07 16:21:36 +08:00
rustdesk 5078a1f797 reuse port, and revert hbbr -k 2024-05-24 18:37:11 +08:00
rustdesk 3cf0f6560f bump to 1.1.11 2024-05-24 17:59:53 +08:00
rustdesk 778c89efb1 bump to 1.1.10-3 2024-01-31 11:20:04 +08:00
rustdesk a7a0fa7cb5 bump to 1.1.10-2 2024-01-30 19:23:36 +08:00
Denis Fondras 2e06125974 Update mac_address
The latest version of mac_address allows to compile rustdesk-server on OpenBSD
2023-12-24 18:21:51 +01:00
rustdesk 4c27143125 bump 1.1.9 2023-12-05 17:09:07 +08:00
rustdesk 3a7904fa8e fix test_hbb and bump version 1.1.8 2023-06-08 13:42:34 +08:00
n-connect 178ff59623 Fix for core dumps on FreeBSD
Flexi_logger options for async writemode https://github.com/rustdesk/rustdesk-server/pull/232#issuecomment-1491347232
2023-04-01 11:14:51 +02:00
n-connect fe805e8554 Update Cargo.toml for FreeBSD build
Crate.io package local-ip-address from v0.5+ is Freebsd compatible, eg. it compiles and works. Simply changing the version to v0.5.1 in the Cargo.toml was possible to make a successful release build on FreeBSD 13 with prepackaged Rust 1.67.1.
2023-03-02 13:19:10 +01:00
rustdesk 4d6d439b1a 1.1.7-1 2023-02-18 13:44:25 +08:00
elilchen 388ae586ec crt-static 2023-02-16 15:23:31 +08:00
elilchen ad40d65070 issues #192 add MicrosoftEdgeWebview2Setup and fix the "VCRUNTIME140.dll Is Missing" error on windows server 2022 2023-02-16 13:39:08 +08:00
elilchen 7a0e300ff9 UI 2023-02-12 00:48:38 +08:00
rustdesk 5aaad36729 1.1.7 2023-01-10 16:26:06 +08:00
Paolo Asperti d878222fc1 rustdesk-server doctor 2022-08-07 00:25:18 +02:00
Paolo Asperti 06409279f4 rustdesk-utils 2022-07-14 15:59:39 +02:00
rustdesk 39153ce147 fix slow connection, '/' in pub key, and hbbr wait for key, and possible
solution for https://github.com/rustdesk/rustdesk-server/issues/24
2022-07-13 00:22:45 +08:00
rustdesk 03ca2a9517 missed files 2022-05-12 20:07:45 +08:00
rustdesk b3f39598a7 change sled to sqlite and remove lic 2022-05-12 20:00:33 +08:00
rustdesk 4774093ef2 refactor dep 2021-05-15 15:57:40 +08:00
open-trade 411e963187 some guys use empty id 2021-05-11 20:28:43 +08:00
rustdesk 26d926838f nonce 2021-05-04 20:42:13 +08:00
opentrade ea98675b21 minreq to remove libssl dep so that easy to deploy 2021-04-10 10:56:58 +08:00
opentrade c5e102fa6e Only ed25519 2021-04-10 10:41:27 +08:00
opentrade 4662b05d73 dec not working yet 2021-04-09 18:02:10 +08:00
opentrade da372f276d check_email 2021-04-09 12:27:22 +08:00
opentrade 1282e730af working on lic 2021-04-08 18:59:57 +08:00
opentrade 25554dd318 lic draft 2021-04-08 17:53:56 +08:00
rustdesk a10bb34f6e rename 2021-04-03 22:32:14 +08:00
open-trade f864e6988f refactor 2021-03-19 16:48:21 +08:00
open-trade 482b5e0a66 change to rocksdb 2021-03-19 11:32:28 +08:00
open-trade f1646522d1 license 2020-10-31 14:33:25 +08:00
hzhou 3d5d219a8c version 2020-09-24 17:26:58 +08:00
open-trade 33accfb2ca rendezvous_servers 2020-09-18 17:07:17 +08:00
open-trade ba9862cd7f clap 2020-09-18 13:04:39 +08:00
open-trade 0a1fbadb4f fix on request_relay 2020-09-18 00:47:15 +08:00
open-trade b32a948347 hbbf 2020-09-17 00:04:39 +08:00
open-trade f3554b153d sled_async 2020-05-14 19:16:46 +00:00
open-trade b06f9d22ac prepare sled 2020-05-14 09:18:07 +00:00
open-trade 69f60499db refactored 2020-03-09 23:54:36 +08:00