]> git.proxmox.com Git - proxmox.git/log
proxmox.git
2 years agoproxmox-sys: improve dev docs
Dietmar Maurer [Mon, 22 Nov 2021 17:06:13 +0000 (18:06 +0100)]
proxmox-sys: improve dev docs

And move WorkerTaskContext to top level.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-sys: imported pbs-tools/src/command.rs
Dietmar Maurer [Mon, 22 Nov 2021 16:49:03 +0000 (17:49 +0100)]
proxmox-sys: imported pbs-tools/src/command.rs

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-sys: imported pbs-tools/src/acl.rs
Dietmar Maurer [Mon, 22 Nov 2021 16:38:53 +0000 (17:38 +0100)]
proxmox-sys: imported pbs-tools/src/acl.rs

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-sys: imported pbs-tool/src/xattr.rs
Dietmar Maurer [Mon, 22 Nov 2021 16:35:08 +0000 (17:35 +0100)]
proxmox-sys: imported pbs-tool/src/xattr.rs

2 years agoproxmox-sys: move file_get_non_comment_lines to src/fs/file.rs
Dietmar Maurer [Mon, 22 Nov 2021 12:38:16 +0000 (13:38 +0100)]
proxmox-sys: move file_get_non_comment_lines to src/fs/file.rs

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-sys: split xattr code into extra file
Dietmar Maurer [Mon, 22 Nov 2021 12:36:55 +0000 (13:36 +0100)]
proxmox-sys: split xattr code into extra file

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-sys: imported pbs-tools/src/fs.rs to src/fs/read_dir.rs
Dietmar Maurer [Mon, 22 Nov 2021 12:30:59 +0000 (13:30 +0100)]
proxmox-sys: imported pbs-tools/src/fs.rs to src/fs/read_dir.rs

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-sys: imported proxmox tools/sys
Dietmar Maurer [Mon, 22 Nov 2021 11:51:33 +0000 (12:51 +0100)]
proxmox-sys: imported proxmox tools/sys

And split some files into smaller parts.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agobump proxmox-tfa to 1.3.2-1
Wolfgang Bumiller [Mon, 22 Nov 2021 12:26:57 +0000 (13:26 +0100)]
bump proxmox-tfa to 1.3.2-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agofix u2f context instantiation
Wolfgang Bumiller [Mon, 22 Nov 2021 12:25:47 +0000 (13:25 +0100)]
fix u2f context instantiation

don't use the appid for the origin if an origin was
specified

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobum proxmox-sys version to 0.1.2
Dietmar Maurer [Mon, 22 Nov 2021 09:31:10 +0000 (10:31 +0100)]
bum proxmox-sys version to 0.1.2

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-sys: fix test for wrong logrotate path
Dietmar Maurer [Mon, 22 Nov 2021 09:29:24 +0000 (10:29 +0100)]
proxmox-sys: fix test for wrong logrotate path

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoclipy fixes
Wolfgang Bumiller [Mon, 22 Nov 2021 08:07:29 +0000 (09:07 +0100)]
clipy fixes

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoadd Mmap::assume_init
Wolfgang Bumiller [Mon, 22 Nov 2021 08:05:13 +0000 (09:05 +0100)]
add Mmap::assume_init

to convert Mmap<MaybeUninit<T>> to Mmap<T>

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump proxmox-async version to 0.2.0
Dietmar Maurer [Sat, 20 Nov 2021 15:55:39 +0000 (16:55 +0100)]
bump proxmox-async version to 0.2.0

2 years agoproxmox-async: improve dev docs
Dietmar Maurer [Sat, 20 Nov 2021 15:52:17 +0000 (16:52 +0100)]
proxmox-async: improve dev docs

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-async: move AsyncChannelWriter to src/io
Dietmar Maurer [Sat, 20 Nov 2021 15:41:53 +0000 (16:41 +0100)]
proxmox-async: move AsyncChannelWriter to src/io

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-async: move TokioWriterAdapter to blocking
Dietmar Maurer [Sat, 20 Nov 2021 15:38:36 +0000 (16:38 +0100)]
proxmox-async: move TokioWriterAdapter to blocking

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-async: remove duplicate src/stream/wrapped_reader_stream.rs
Dietmar Maurer [Sat, 20 Nov 2021 15:15:05 +0000 (16:15 +0100)]
proxmox-async: remove duplicate src/stream/wrapped_reader_stream.rs

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-async: split stream.rs into separate files
Dietmar Maurer [Sat, 20 Nov 2021 15:12:55 +0000 (16:12 +0100)]
proxmox-async: split stream.rs into separate files

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-async: split blocking.rs into separate files
Dietmar Maurer [Sat, 20 Nov 2021 14:58:04 +0000 (15:58 +0100)]
proxmox-async: split blocking.rs into separate files

2 years agoproxmox-async: add copyright file
Dietmar Maurer [Fri, 19 Nov 2021 15:43:19 +0000 (16:43 +0100)]
proxmox-async: add copyright file

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-async: imported pbs-tools/src/zip.rs
Dietmar Maurer [Fri, 19 Nov 2021 15:27:35 +0000 (16:27 +0100)]
proxmox-async: imported pbs-tools/src/zip.rs

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-async: imported pbs-tools/src/compression.rs
Dietmar Maurer [Fri, 19 Nov 2021 15:21:02 +0000 (16:21 +0100)]
proxmox-async: imported pbs-tools/src/compression.rs

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-async: imported pbs-tools/src/tokio/tokio_writer_adapter.rs
Dietmar Maurer [Fri, 19 Nov 2021 15:16:20 +0000 (16:16 +0100)]
proxmox-async: imported pbs-tools/src/tokio/tokio_writer_adapter.rs

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-async: imported pbs-tools/src/stream.rs
Dietmar Maurer [Fri, 19 Nov 2021 15:12:31 +0000 (16:12 +0100)]
proxmox-async: imported pbs-tools/src/stream.rs

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-async: imported pbs-tools/src/broadcast_future.rs
Dietmar Maurer [Fri, 19 Nov 2021 15:06:43 +0000 (16:06 +0100)]
proxmox-async: imported pbs-tools/src/broadcast_future.rs

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-async: start new crate
Dietmar Maurer [Fri, 19 Nov 2021 15:03:09 +0000 (16:03 +0100)]
proxmox-async: start new crate

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-sys: add copyright file
Dietmar Maurer [Fri, 19 Nov 2021 14:47:14 +0000 (15:47 +0100)]
proxmox-sys: add copyright file

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agotfa: remove unnecessary bound attribute
Wolfgang Bumiller [Fri, 19 Nov 2021 11:45:23 +0000 (12:45 +0100)]
tfa: remove unnecessary bound attribute

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agosys: update d/control
Fabian Grünbichler [Fri, 19 Nov 2021 11:12:01 +0000 (12:12 +0100)]
sys: update d/control

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agobump proxmox-tfa to 1.3.1
Fabian Grünbichler [Thu, 18 Nov 2021 12:00:07 +0000 (13:00 +0100)]
bump proxmox-tfa to 1.3.1

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agotfa: bump webauthn-rs to 0.3
Fabian Grünbichler [Thu, 18 Nov 2021 12:04:33 +0000 (13:04 +0100)]
tfa: bump webauthn-rs to 0.3

switch WebauthnConfig to use Url for the origin field, via a wrapper
type to make Updater and ApiType happy.

the two new Credential fields `verified` and `registration_policy` are
always set to `false` and `Discouraged`, to get the same behaviour as
before.

Suggested-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Tested-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agotfa: properly wrap webauthn credentials
Fabian Grünbichler [Fri, 19 Nov 2021 10:17:06 +0000 (11:17 +0100)]
tfa: properly wrap webauthn credentials

this (external) struct gets new fields in webauthn-rs 0.3, so let's
properly wrap / convert it instead of just aliasing, else deserializing
will fail.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agobump proxmox-sys to 0.1.1
Fabian Grünbichler [Fri, 19 Nov 2021 10:46:04 +0000 (11:46 +0100)]
bump proxmox-sys to 0.1.1

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agosys: add missing file
Fabian Grünbichler [Fri, 19 Nov 2021 11:05:17 +0000 (12:05 +0100)]
sys: add missing file

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agobump proxmox-http to 0.5.6
Fabian Grünbichler [Thu, 18 Nov 2021 11:43:31 +0000 (12:43 +0100)]
bump proxmox-http to 0.5.6

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agobump proxmox to 0.15.4
Fabian Grünbichler [Thu, 18 Nov 2021 11:41:40 +0000 (12:41 +0100)]
bump proxmox to 0.15.4

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoall crates: bump base64 dep to 0.13
Fabian Grünbichler [Thu, 18 Nov 2021 11:40:06 +0000 (12:40 +0100)]
all crates: bump base64 dep to 0.13

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoproxmox-sys: imported pbs-tools/src/task.rs (as worker_task_context.rs)
Dietmar Maurer [Fri, 19 Nov 2021 08:27:23 +0000 (09:27 +0100)]
proxmox-sys: imported pbs-tools/src/task.rs (as worker_task_context.rs)

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-sys: imported pbs-tools/src/logrotate.rs (with various cleanups)
Dietmar Maurer [Fri, 19 Nov 2021 08:17:13 +0000 (09:17 +0100)]
proxmox-sys: imported pbs-tools/src/logrotate.rs (with various cleanups)

- new: CreateOption s instead of owner string
- new: returns Result instead of Option
- new: add max_files  option
- remove new_with_user()

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-sys: imported pbs-tools/src/process_locker.rs
Dietmar Maurer [Fri, 19 Nov 2021 06:40:21 +0000 (07:40 +0100)]
proxmox-sys: imported pbs-tools/src/process_locker.rs

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-sys: add new crate
Dietmar Maurer [Fri, 19 Nov 2021 06:35:19 +0000 (07:35 +0100)]
proxmox-sys: add new crate

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agobump proxmox version to 0.15.3-1
Dietmar Maurer [Thu, 18 Nov 2021 12:08:21 +0000 (13:08 +0100)]
bump proxmox version to 0.15.3-1

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox: add fd_change_cloexec
Dietmar Maurer [Thu, 18 Nov 2021 12:06:34 +0000 (13:06 +0100)]
proxmox: add fd_change_cloexec

2 years agobump proxmox-time version to 1.1.0
Dietmar Maurer [Wed, 17 Nov 2021 10:36:39 +0000 (11:36 +0100)]
bump proxmox-time version to 1.1.0

2 years agoproxmox-time: remove custom error type
Dietmar Maurer [Wed, 17 Nov 2021 10:33:13 +0000 (11:33 +0100)]
proxmox-time: remove custom error type

None of the functions we call returns a resonable error number anyways.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-time: added time related fuctions from proxmox-systemd crate.
Dietmar Maurer [Wed, 17 Nov 2021 10:25:17 +0000 (11:25 +0100)]
proxmox-time: added time related fuctions from proxmox-systemd crate.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoRevert "lang: get offsetof const fn ready"
Wolfgang Bumiller [Wed, 17 Nov 2021 09:04:03 +0000 (10:04 +0100)]
Revert "lang: get offsetof const fn ready"

This reverts commit 8f89f9ad60948d4853c05801414cfd152ddef16a.

generates broken code in release builds on current rustc
1.55

2 years agobump proxmox-tfa to 1.3.0-1
Wolfgang Bumiller [Wed, 17 Nov 2021 08:28:22 +0000 (09:28 +0100)]
bump proxmox-tfa to 1.3.0-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoproxmox-tfa: import tfa api from proxmox-perl-rs as api feature
Wolfgang Bumiller [Tue, 16 Nov 2021 10:58:43 +0000 (11:58 +0100)]
proxmox-tfa: import tfa api from proxmox-perl-rs as api feature

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump proxmox-shared-memory to version 0.1.1-1
Dietmar Maurer [Mon, 15 Nov 2021 10:32:16 +0000 (11:32 +0100)]
bump proxmox-shared-memory to version 0.1.1-1

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-shared-memory: depend on libc 0.2.107
Dietmar Maurer [Mon, 15 Nov 2021 10:29:53 +0000 (11:29 +0100)]
proxmox-shared-memory: depend on libc 0.2.107

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agobump proxmox-http to 0.5.5-1
Dietmar Maurer [Mon, 15 Nov 2021 10:04:39 +0000 (11:04 +0100)]
bump proxmox-http to 0.5.5-1

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-http: impl RateLimiterVec
Dietmar Maurer [Mon, 15 Nov 2021 07:17:21 +0000 (08:17 +0100)]
proxmox-http: impl RateLimiterVec

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agobump proxmox-shared-memory to version 0.1.0-2
Dietmar Maurer [Mon, 15 Nov 2021 06:22:01 +0000 (07:22 +0100)]
bump proxmox-shared-memory to version 0.1.0-2

And add missing debian files.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-shared-memory: avoid compiler warnings
Dietmar Maurer [Mon, 15 Nov 2021 06:28:29 +0000 (07:28 +0100)]
proxmox-shared-memory: avoid compiler warnings

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-shared-memory: remove debug println
Dietmar Maurer [Mon, 15 Nov 2021 06:14:49 +0000 (07:14 +0100)]
proxmox-shared-memory: remove debug println

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agobump proxmox-http version to 0.5.4-1
Dietmar Maurer [Sun, 14 Nov 2021 07:19:15 +0000 (08:19 +0100)]
bump proxmox-http version to 0.5.4-1

2 years agoproxmox-http: RateLimit - remove average_rate
Dietmar Maurer [Sun, 14 Nov 2021 07:15:42 +0000 (08:15 +0100)]
proxmox-http: RateLimit - remove average_rate

Instead, add a method to return overall traffic.

2 years agobump proxmox-http version to 0.5.3-1
Dietmar Maurer [Sat, 13 Nov 2021 16:35:34 +0000 (17:35 +0100)]
bump proxmox-http version to 0.5.3-1

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-http: use repr(C) for RateLimiter
Dietmar Maurer [Sat, 13 Nov 2021 16:33:58 +0000 (17:33 +0100)]
proxmox-http: use repr(C) for RateLimiter

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-http: use SharedRateLimit trait object for RateLimitedStream
Dietmar Maurer [Sat, 13 Nov 2021 14:16:18 +0000 (15:16 +0100)]
proxmox-http: use SharedRateLimit trait object for RateLimitedStream

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-http: define a RateLimit trait
Dietmar Maurer [Sat, 13 Nov 2021 07:02:27 +0000 (08:02 +0100)]
proxmox-http: define a RateLimit trait

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-shared-memory: improve regression tests
Dietmar Maurer [Fri, 12 Nov 2021 17:18:01 +0000 (18:18 +0100)]
proxmox-shared-memory: improve regression tests

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-shared-memory: create debian package
Dietmar Maurer [Fri, 12 Nov 2021 12:43:19 +0000 (13:43 +0100)]
proxmox-shared-memory: create debian package

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-shared-memory: implement helper to init subtypes
Dietmar Maurer [Fri, 12 Nov 2021 11:41:59 +0000 (12:41 +0100)]
proxmox-shared-memory: implement helper to init subtypes

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-shared-memory: add magic number test
Dietmar Maurer [Fri, 12 Nov 2021 10:37:44 +0000 (11:37 +0100)]
proxmox-shared-memory: add magic number test

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox-shared-memory: shared memory and shared mutex implementation
Dietmar Maurer [Thu, 11 Nov 2021 09:26:28 +0000 (10:26 +0100)]
proxmox-shared-memory: shared memory and shared mutex implementation

2 years agobump proxmox version to 0.15.2-1
Dietmar Maurer [Fri, 12 Nov 2021 16:39:38 +0000 (17:39 +0100)]
bump proxmox version to 0.15.2-1

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoimpl proxmox::tools::fs::CreateOptions::apply_to()
Dietmar Maurer [Fri, 12 Nov 2021 08:18:14 +0000 (09:18 +0100)]
impl proxmox::tools::fs::CreateOptions::apply_to()

Split out code to apply CreateOptions.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agobump proxmox-http version to 0.5.2-1
Dietmar Maurer [Wed, 10 Nov 2021 09:09:09 +0000 (10:09 +0100)]
bump proxmox-http version to 0.5.2-1

2 years agobump proxmox-schema version to 1.0.1-1
Dietmar Maurer [Wed, 10 Nov 2021 08:58:32 +0000 (09:58 +0100)]
bump proxmox-schema version to 1.0.1-1

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoRateLimiter: add update_rate method
Dietmar Maurer [Mon, 8 Nov 2021 05:34:40 +0000 (06:34 +0100)]
RateLimiter: add update_rate method

2 years agoRateLimitedStream: implement peer_addr
Dietmar Maurer [Thu, 4 Nov 2021 12:16:13 +0000 (13:16 +0100)]
RateLimitedStream: implement peer_addr

2 years agoRateLimiter: avoid panic in time computations
Dietmar Maurer [Thu, 4 Nov 2021 10:59:45 +0000 (11:59 +0100)]
RateLimiter: avoid panic in time computations

2 years agoRateLimitedStream: allow periodic limiter updates
Dietmar Maurer [Thu, 4 Nov 2021 09:36:41 +0000 (10:36 +0100)]
RateLimitedStream: allow periodic limiter updates

2 years agoHttpsConnector: use RateLimitedStream
Dietmar Maurer [Wed, 3 Nov 2021 10:22:07 +0000 (11:22 +0100)]
HttpsConnector: use RateLimitedStream

So that we can limit used bandwidth.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoRateLimitedStream: implement poll_write_vectored
Dietmar Maurer [Wed, 3 Nov 2021 08:13:17 +0000 (09:13 +0100)]
RateLimitedStream: implement poll_write_vectored

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoImplement a rate limiting stream (AsyncRead, AsyncWrite)
Dietmar Maurer [Wed, 3 Nov 2021 07:48:32 +0000 (08:48 +0100)]
Implement a rate limiting stream (AsyncRead, AsyncWrite)

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agowebsocket: adapt for client connection
Fabian Grünbichler [Fri, 5 Nov 2021 13:03:38 +0000 (14:03 +0100)]
websocket: adapt for client connection

previously, this was only used for the server side handling of web
sockets. by making the mask part of the WebSocket struct and making some
of the fns associated, we can re-use this for client-side connections
such as in proxmox-websocket-tunnel.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agobump proxmox-tfa to 1.2.0-1
Wolfgang Bumiller [Tue, 2 Nov 2021 11:54:13 +0000 (12:54 +0100)]
bump proxmox-tfa to 1.2.0-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoproxmox-tfa: add version field to u2f::AuthChallenge
Wolfgang Bumiller [Wed, 3 Nov 2021 13:44:05 +0000 (14:44 +0100)]
proxmox-tfa: add version field to u2f::AuthChallenge

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoproxmox-tfa: make u2f::AuthChallenge Clone + Debug
Wolfgang Bumiller [Tue, 2 Nov 2021 11:53:30 +0000 (12:53 +0100)]
proxmox-tfa: make u2f::AuthChallenge Clone + Debug

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoupdater: impl UpdaterType for Vec
Fabian Grünbichler [Thu, 28 Oct 2021 13:00:47 +0000 (15:00 +0200)]
updater: impl UpdaterType for Vec

by replacing the whole Vec.

if we ever want to support adding/removing/modifying elements of a Vec
via the Updater, we'd need to extend it anyway (or use a custom
updater).

Suggested-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agobump proxmox-tfa to 1.1.0-1
Wolfgang Bumiller [Fri, 29 Oct 2021 12:32:14 +0000 (14:32 +0200)]
bump proxmox-tfa to 1.1.0-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoproxmox-tfa: add Totp::digits
Wolfgang Bumiller [Fri, 29 Oct 2021 12:31:39 +0000 (14:31 +0200)]
proxmox-tfa: add Totp::digits

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump proxmox to 0.15.1-1
Wolfgang Bumiller [Thu, 21 Oct 2021 10:43:26 +0000 (12:43 +0200)]
bump proxmox to 0.15.1-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoproxmox: cleanup files on fsync errors
Wolfgang Bumiller [Thu, 21 Oct 2021 10:42:20 +0000 (12:42 +0200)]
proxmox: cleanup files on fsync errors

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump proxmox-http version to 0.5.1-1
Dietmar Maurer [Thu, 21 Oct 2021 05:36:05 +0000 (07:36 +0200)]
bump proxmox-http version to 0.5.1-1

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoproxmox: bump d/control
Dietmar Maurer [Thu, 21 Oct 2021 05:27:43 +0000 (07:27 +0200)]
proxmox: bump d/control

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agobump proxmox vertsion to 0.15.0-1
Dietmar Maurer [Thu, 21 Oct 2021 05:04:44 +0000 (07:04 +0200)]
bump proxmox vertsion to 0.15.0-1

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agoadd fsync parameter to replace_file and atomic_open_or_create
Dietmar Maurer [Wed, 20 Oct 2021 12:52:11 +0000 (14:52 +0200)]
add fsync parameter to replace_file and atomic_open_or_create

The fsync is required for consistency after power failure, so it should
be set when writing config files or otherwise important data.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2 years agouuid: bump d/control
Wolfgang Bumiller [Wed, 20 Oct 2021 10:50:26 +0000 (12:50 +0200)]
uuid: bump d/control

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agouuid: fixup debcargo.toml to include uuid-dev dependency
Wolfgang Bumiller [Wed, 20 Oct 2021 10:49:40 +0000 (12:49 +0200)]
uuid: fixup debcargo.toml to include uuid-dev dependency

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agotfa: u2f: bytes_as_base64{,url} weren't meant to be public
Wolfgang Bumiller [Mon, 18 Oct 2021 12:31:04 +0000 (14:31 +0200)]
tfa: u2f: bytes_as_base64{,url} weren't meant to be public

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agobump proxmox-router version to 1.1.0-1
Dietmar Maurer [Wed, 13 Oct 2021 10:27:39 +0000 (12:27 +0200)]
bump proxmox-router version to 1.1.0-1

2 years agoadd filename completions helper (moved from pbs-tools)
Dietmar Maurer [Wed, 13 Oct 2021 10:24:36 +0000 (12:24 +0200)]
add filename completions helper (moved from pbs-tools)

Depend on 'nix' now.

2 years agobump proxmox-borrow to 1.0.1-1
Wolfgang Bumiller [Wed, 13 Oct 2021 08:40:03 +0000 (10:40 +0200)]
bump proxmox-borrow to 1.0.1-1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2 years agoborrow: update to ManuallyDrop::take
Wolfgang Bumiller [Wed, 13 Oct 2021 08:39:11 +0000 (10:39 +0200)]
borrow: update to ManuallyDrop::take

and fixup into_boxed_inner along the way

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>