]> git.proxmox.com Git - proxmox-backup.git/log
proxmox-backup.git
3 years agodocs: mention support subscription plans
Dylan Whyte [Tue, 16 Mar 2021 13:21:07 +0000 (14:21 +0100)]
docs: mention support subscription plans

and change enterprise repository section to present tense.

Signed-off-by: Dylan Whyte <d.whyte@proxmox.com>
3 years agotools/zip: only add zip64 field when necessary
Dominik Csapak [Mon, 15 Mar 2021 11:21:17 +0000 (12:21 +0100)]
tools/zip: only add zip64 field when necessary

if neither offset nor size exceeds 32bit, do not add the
zip64 extension field

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: tape/DriveStatus: open task window on click on state
Dominik Csapak [Mon, 15 Mar 2021 12:01:46 +0000 (13:01 +0100)]
ui: tape/DriveStatus: open task window on click on state

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: tape: convert slot selection on transfer to combogrid
Dominik Csapak [Fri, 12 Mar 2021 15:06:27 +0000 (16:06 +0100)]
ui: tape: convert slot selection on transfer to combogrid

this is much handier than number field, and the user can instantly
see which one is an import/export slot

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: tape/Restore: let the user choose an owner
Dominik Csapak [Fri, 12 Mar 2021 10:28:41 +0000 (11:28 +0100)]
ui: tape/Restore: let the user choose an owner

so that the tape backup can be restored as any user, given
the current logged in user has the correct permission.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoproxmox-tape: add missing notify-user to 'proxmox-tape restore'
Dominik Csapak [Fri, 12 Mar 2021 10:28:40 +0000 (11:28 +0100)]
proxmox-tape: add missing notify-user to 'proxmox-tape restore'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agotape: use MB/s for backup speed (to match drive speed specification)
Dietmar Maurer [Tue, 16 Mar 2021 07:50:46 +0000 (08:50 +0100)]
tape: use MB/s for backup speed (to match drive speed specification)

3 years agotape: speedup backup by doing read/write in parallel
Dietmar Maurer [Tue, 16 Mar 2021 07:11:57 +0000 (08:11 +0100)]
tape: speedup backup by doing read/write in parallel

3 years agotools/zip: add missing start_disk field for zip64 extension
Dominik Csapak [Mon, 15 Mar 2021 11:21:16 +0000 (12:21 +0100)]
tools/zip: add missing start_disk field for zip64 extension

it is not optional, even though we give the size explicitely

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agobackup info: run rustfmt
Thomas Lamprecht [Sun, 14 Mar 2021 18:18:35 +0000 (19:18 +0100)]
backup info: run rustfmt

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoupdate to pxar 0.10
Wolfgang Bumiller [Fri, 12 Mar 2021 09:47:56 +0000 (10:47 +0100)]
update to pxar 0.10

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agofix feature flag logic in pxar create
Wolfgang Bumiller [Fri, 12 Mar 2021 09:00:34 +0000 (10:00 +0100)]
fix feature flag logic in pxar create

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agotape: write_chunk_archive - do not consume partially written chunk at EOT
Dietmar Maurer [Thu, 11 Mar 2021 11:59:57 +0000 (12:59 +0100)]
tape: write_chunk_archive - do not consume partially written chunk at EOT

So that it is re-written to the next tape.

3 years agobump version to 1.0.10-1 v1.0.10
Thomas Lamprecht [Thu, 11 Mar 2021 07:24:56 +0000 (08:24 +0100)]
bump version to 1.0.10-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agod/postinst: fixup tape permissions if existing with wrong permissions
Thomas Lamprecht [Thu, 11 Mar 2021 09:18:39 +0000 (10:18 +0100)]
d/postinst: fixup tape permissions if existing with wrong permissions

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agod/postinst: only check for broken task index on upgrade
Thomas Lamprecht [Thu, 11 Mar 2021 09:07:23 +0000 (10:07 +0100)]
d/postinst: only check for broken task index on upgrade

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agod/postinst: tell user that we restart when updating from older version
Thomas Lamprecht [Thu, 11 Mar 2021 12:39:27 +0000 (13:39 +0100)]
d/postinst: tell user that we restart when updating from older version

3 years agod/postinst: restart when updating from older version
Thomas Lamprecht [Thu, 11 Mar 2021 07:17:21 +0000 (08:17 +0100)]
d/postinst: restart when updating from older version

Else one has quite a terrible UX when installing from 1.0 ISO and
then upgrading to latest release..

commit 0ec79339f7aebf9 for the fix and some other details

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoserver/worker_task: improve endtime for unknown tasks
Dominik Csapak [Thu, 11 Mar 2021 08:24:53 +0000 (09:24 +0100)]
server/worker_task: improve endtime for unknown tasks

instead of always using the starttime, use the last timestamp from the log
this way, one can see when the task was aborted without having to read
the log

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agotape/send_load_media_email: move to server/email_notifications
Dominik Csapak [Thu, 11 Mar 2021 08:24:52 +0000 (09:24 +0100)]
tape/send_load_media_email: move to server/email_notifications

and reuse 'send_job_status_mail' there so that we get consistent
formatted mails from pbs (e.g. html part and author)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agotape: improve backup task log
Dietmar Maurer [Thu, 11 Mar 2021 07:43:13 +0000 (08:43 +0100)]
tape: improve backup task log

3 years agotypo fixes all over the place
Thomas Lamprecht [Wed, 10 Mar 2021 15:37:09 +0000 (16:37 +0100)]
typo fixes all over the place

found and semi-manually replaced by using:
 codespell -L mut -L crate -i 3 -w

Mostly in comments, but also email notification and two occurrences
of misspelled  'reserved' struct member, which where not used and
cargo build did not complain about the change, soo ...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: fix typo in comment
Thomas Lamprecht [Wed, 10 Mar 2021 14:24:39 +0000 (15:24 +0100)]
ui: fix typo in comment

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: fix typo in options
Oguz Bektas [Wed, 10 Mar 2021 13:04:02 +0000 (14:04 +0100)]
ui: fix typo in options

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
3 years agod/postinst: fix typo in comment
Thomas Lamprecht [Wed, 10 Mar 2021 14:22:50 +0000 (15:22 +0100)]
d/postinst: fix typo in comment

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agotape: fix scsi volume_statistics and cartridge_memory for quantum drives
Dietmar Maurer [Wed, 10 Mar 2021 13:13:48 +0000 (14:13 +0100)]
tape: fix scsi volume_statistics and cartridge_memory for quantum drives

3 years agotape: documentation language fixup
Dylan Whyte [Tue, 9 Mar 2021 13:58:14 +0000 (14:58 +0100)]
tape: documentation language fixup

Signed-off-by: Dylan Whyte <d.whyte@proxmox.com>
3 years agoui: tape: increase tapestore interval
Dominik Csapak [Wed, 10 Mar 2021 09:10:47 +0000 (10:10 +0100)]
ui: tape: increase tapestore interval

from 2 to 60 seconds. To retain the response time of the gui
when adding/editing/removing, trigger a manual reload on these actions

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: NavigationTree: do not modify list while iterating
Dominik Csapak [Wed, 10 Mar 2021 09:10:46 +0000 (10:10 +0100)]
ui: NavigationTree: do not modify list while iterating

iterating over a nodeinterfaces children while removing them
will lead to 'child' being undefined

instead collect the children to remove in a separate list
and iterate over them

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agotape: improve backup task log (show percentage)
Dietmar Maurer [Wed, 10 Mar 2021 09:59:13 +0000 (10:59 +0100)]
tape: improve backup task log (show percentage)

3 years agotape: improve backup task log format
Dietmar Maurer [Wed, 10 Mar 2021 08:54:51 +0000 (09:54 +0100)]
tape: improve backup task log format

3 years agotape: read_tape_mam - pass correct allocation len
Dietmar Maurer [Wed, 10 Mar 2021 08:24:38 +0000 (09:24 +0100)]
tape: read_tape_mam - pass correct allocation len

3 years agotape: cleanup - remove wrong inline comment
Dietmar Maurer [Wed, 10 Mar 2021 07:11:51 +0000 (08:11 +0100)]
tape: cleanup - remove wrong inline comment

3 years agoapi2/tape/backup: continue on vanishing snapshots
Dominik Csapak [Tue, 9 Mar 2021 08:43:06 +0000 (09:43 +0100)]
api2/tape/backup: continue on vanishing snapshots

when we do a prune during a tape backup, do not cancel the tape backup,
but continue with a warning

the task still fails and prompts the user to check the log

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agotape: lock artificial "__UNASSIGNED__" pool to avoid races
Dietmar Maurer [Tue, 9 Mar 2021 09:00:26 +0000 (10:00 +0100)]
tape: lock artificial "__UNASSIGNED__" pool to avoid races

3 years agotape: improve MediaPool allocation by sorting tapes by ctime and label_text
Dietmar Maurer [Tue, 9 Mar 2021 07:33:21 +0000 (08:33 +0100)]
tape: improve MediaPool allocation by sorting tapes by ctime and label_text

3 years agobump version to 1.0.9-1 v1.0.9
Thomas Lamprecht [Mon, 8 Mar 2021 14:56:59 +0000 (15:56 +0100)]
bump version to 1.0.9-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: navigation: adapt tape icons also here
Thomas Lamprecht [Mon, 8 Mar 2021 16:06:49 +0000 (17:06 +0100)]
ui: navigation: adapt tape icons also here

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: tape drive icon: invert
Thomas Lamprecht [Mon, 8 Mar 2021 14:51:47 +0000 (15:51 +0100)]
ui: tape drive icon: invert

Less anti-aliasing to do, so it looks better when small.

Note, I use a mask as else we could not cut out something
transparent, but only over paint it filled with white, which is not
the same and not how font awesome does it.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: tape panel: add/use icons
Thomas Lamprecht [Mon, 8 Mar 2021 13:35:28 +0000 (14:35 +0100)]
ui: tape panel: add/use icons

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: tape: code style: xtype coms first
Thomas Lamprecht [Mon, 8 Mar 2021 09:29:50 +0000 (10:29 +0100)]
ui: tape: code style: xtype coms first

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: tape/window/Tape{Backup, Restore}: allow empty notify user field
Dominik Csapak [Mon, 8 Mar 2021 13:10:51 +0000 (14:10 +0100)]
ui: tape/window/Tape{Backup, Restore}: allow empty notify user field

we have to set skipEmptyText on comboGrids

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agotape/linux_tape: remove debug prints
Dominik Csapak [Mon, 8 Mar 2021 13:10:50 +0000 (14:10 +0100)]
tape/linux_tape: remove debug prints

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agotape/backup: add success/error notifications
Dominik Csapak [Mon, 8 Mar 2021 13:10:49 +0000 (14:10 +0100)]
tape/backup: add success/error notifications

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: remove cartridge memory panel (show window after butten press instead)
Dietmar Maurer [Mon, 8 Mar 2021 11:52:06 +0000 (12:52 +0100)]
ui: remove cartridge memory panel (show window after butten press instead)

3 years agoui: fix date rendering in drive status
Dietmar Maurer [Mon, 8 Mar 2021 10:30:12 +0000 (11:30 +0100)]
ui: fix date rendering in drive status

3 years agoui: tape/Drive{Config, Status} move actions to status panel
Dominik Csapak [Mon, 8 Mar 2021 09:06:07 +0000 (10:06 +0100)]
ui: tape/Drive{Config, Status} move actions to status panel

so that the 'DriveConfig' panel is purely for configuration

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: tape/DriveStatus: add cartridge memory grid
Dominik Csapak [Mon, 8 Mar 2021 09:06:06 +0000 (10:06 +0100)]
ui: tape/DriveStatus: add cartridge memory grid

that the user can load when a tape is inserted

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agodocs: fix note about global media pool namespace
Dietmar Maurer [Mon, 8 Mar 2021 09:56:28 +0000 (10:56 +0100)]
docs: fix note about global media pool namespace

3 years agodocs: alabaster theme: better contrast for background color of topics
Thomas Lamprecht [Mon, 8 Mar 2021 09:19:19 +0000 (10:19 +0100)]
docs: alabaster theme: better contrast for background color of topics

The old value just was way to heavy, and notes/warnings/...
admonitions did not stick out anymore.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: add online help to drive/changer status
Dietmar Maurer [Mon, 8 Mar 2021 08:47:44 +0000 (09:47 +0100)]
ui: add online help to drive/changer status

3 years agotape: add docu link targets for online help
Dietmar Maurer [Mon, 8 Mar 2021 08:37:08 +0000 (09:37 +0100)]
tape: add docu link targets for online help

3 years agotape: clean - fix if cleaning tape is already loaded
Dietmar Maurer [Mon, 8 Mar 2021 08:07:24 +0000 (09:07 +0100)]
tape: clean - fix if cleaning tape is already loaded

3 years agotape: test tape alert flags after drive clean
Dietmar Maurer [Mon, 8 Mar 2021 07:27:02 +0000 (08:27 +0100)]
tape: test tape alert flags after drive clean

3 years agoui: images: simplify tape icon
Thomas Lamprecht [Mon, 8 Mar 2021 07:59:15 +0000 (08:59 +0100)]
ui: images: simplify tape icon

1. Use same height as width
2. drop the top/bottom "frame" lines
3. instead of two "bearings" side by side, like VHS or music-compact
   tapes have, use a single bearing and an outer circle to denote the
   magnetic tape edge

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agopmt: add tape-alert-flags command
Dietmar Maurer [Mon, 8 Mar 2021 06:37:05 +0000 (07:37 +0100)]
pmt: add tape-alert-flags command

3 years agodocs: use code-block inside tape-backup.rst
Dietmar Maurer [Sat, 6 Mar 2021 11:20:26 +0000 (12:20 +0100)]
docs: use code-block inside tape-backup.rst

3 years agodocs: document tape backup jobs
Dietmar Maurer [Sat, 6 Mar 2021 11:10:39 +0000 (12:10 +0100)]
docs: document tape backup jobs

3 years agoadd proxmox-tape bash-completion
Dietmar Maurer [Sat, 6 Mar 2021 09:22:08 +0000 (10:22 +0100)]
add proxmox-tape bash-completion

3 years agoapi2/tape: add notify_user to backup(-jobs) and restore api calls
Dominik Csapak [Fri, 5 Mar 2021 13:10:19 +0000 (14:10 +0100)]
api2/tape: add notify_user to backup(-jobs) and restore api calls

so that a user can be given that will be notified for
manual intervention (e.g. inserting a tape)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: tape: add notify-user fields
Dominik Csapak [Fri, 5 Mar 2021 08:45:32 +0000 (09:45 +0100)]
ui: tape: add notify-user fields

to backup jobs, backups and restores

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoconfig/tape_job: add notify-user config to tape jobs
Dominik Csapak [Fri, 5 Mar 2021 08:45:30 +0000 (09:45 +0100)]
config/tape_job: add notify-user config to tape jobs

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
3 years agotape: avoid Updatable for now
Dietmar Maurer [Fri, 5 Mar 2021 11:43:39 +0000 (12:43 +0100)]
tape: avoid Updatable for now

3 years agotape: finish api permission checks
Dietmar Maurer [Fri, 5 Mar 2021 10:40:52 +0000 (11:40 +0100)]
tape: finish api permission checks

3 years agoacl: use /tape/device instead of /tape/drive and /tape/changer
Dietmar Maurer [Fri, 5 Mar 2021 09:06:19 +0000 (10:06 +0100)]
acl: use /tape/device instead of /tape/drive and /tape/changer

3 years agotape: improve PoolWriter logging
Dietmar Maurer [Fri, 5 Mar 2021 08:58:36 +0000 (09:58 +0100)]
tape: improve PoolWriter logging

Log reason why we allocate a new media set.

3 years agocleanup: rename token_user into auth_id_filter
Dietmar Maurer [Fri, 5 Mar 2021 07:36:18 +0000 (08:36 +0100)]
cleanup: rename token_user into auth_id_filter

3 years agoui: use shorter datetime format for encryption key creation time
Dietmar Maurer [Thu, 4 Mar 2021 16:57:40 +0000 (17:57 +0100)]
ui: use shorter datetime format for encryption key creation time

3 years agoui: do not show MediaSet Uuid in backup content grid
Dietmar Maurer [Thu, 4 Mar 2021 16:09:57 +0000 (17:09 +0100)]
ui: do not show MediaSet Uuid in backup content grid

3 years agotape: fix media_expire_time
Dietmar Maurer [Thu, 4 Mar 2021 12:11:04 +0000 (13:11 +0100)]
tape: fix media_expire_time

3 years agotfa docs: language fixup
Dylan Whyte [Thu, 4 Mar 2021 14:02:27 +0000 (15:02 +0100)]
tfa docs: language fixup

Simplifies the introduction a bit and makes it more readable.
Also some other minor language fixes throughout the section.

Signed-off-by: Dylan Whyte <d.whyte@proxmox.com>
3 years agotape: fix wrong media set expire time
Dietmar Maurer [Thu, 4 Mar 2021 11:36:45 +0000 (12:36 +0100)]
tape: fix wrong media set expire time

3 years agotape: improve media status in list_media
Dietmar Maurer [Thu, 4 Mar 2021 07:52:58 +0000 (08:52 +0100)]
tape: improve media status in list_media

3 years agoui: add acl paths for tape permission
Dietmar Maurer [Thu, 4 Mar 2021 07:33:26 +0000 (08:33 +0100)]
ui: add acl paths for tape permission

3 years agoui: tape: add missing monStoreErrors calls for the grids
Dominik Csapak [Wed, 3 Mar 2021 14:00:53 +0000 (15:00 +0100)]
ui: tape: add missing monStoreErrors calls for the grids

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agotape/drive: improve error and email handling for requesting a tape load
Dominik Csapak [Wed, 3 Mar 2021 14:00:52 +0000 (15:00 +0100)]
tape/drive: improve error and email handling for requesting a tape load

Try once first to load the correct tape before sending an email to
insert the correct one. This way, the admin does not get a mail
if the correct tape is already inserted.

Also include the error we got that prompted the email to insert the
tape. This means that if the admin gets prompted to insert e.g.
"FOO" but inserts "BAR", he'll get an email that the wrong
tape is inserted.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: tape: only add tapestore and nav element once
Dominik Csapak [Wed, 3 Mar 2021 14:00:51 +0000 (15:00 +0100)]
ui: tape: only add tapestore and nav element once

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoadd proxmox-tape zsh-completions
Dominik Csapak [Wed, 3 Mar 2021 14:00:50 +0000 (15:00 +0100)]
add proxmox-tape zsh-completions

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: tape/DriveStatus: fix handler name for eject
Dominik Csapak [Wed, 3 Mar 2021 14:00:49 +0000 (15:00 +0100)]
ui: tape/DriveStatus: fix handler name for eject

We call 'ejectMedia' not 'eject', so rename the function.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: webauthn registration: code cleanup long variable name
Thomas Lamprecht [Wed, 3 Mar 2021 13:05:02 +0000 (14:05 +0100)]
ui: webauthn registration: code cleanup long variable name

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: webauthn registration: adapt error messages
Thomas Lamprecht [Wed, 3 Mar 2021 12:59:58 +0000 (13:59 +0100)]
ui: webauthn registration: adapt error messages

There are variuos hints that 'InvalidStateError' can be assumed to
come from an already registered token[0][1].

So indicate that more strongly, also omit the extra line and warning
triangle, there's already an error icon present.

[0]: step 2: https://w3c.github.io/webauthn/#sctn-registering-a-new-credential
[1]: step 3: https://w3c.github.io/webauthn/#sctn-op-make-cred

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: LoginView: show webauthn errors in window
Dominik Csapak [Thu, 25 Feb 2021 09:01:22 +0000 (10:01 +0100)]
ui: LoginView: show webauthn errors in window

instead of silently discarding the error, else the user might be
confused because nothing happened

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoconfig/tfa: webauthn: disallow registering a token twice
Dominik Csapak [Thu, 25 Feb 2021 09:01:21 +0000 (10:01 +0100)]
config/tfa: webauthn: disallow registering a token twice

by adding the existing credential id to the 'excludeCredentials' list

this prevents the browser from registering a token twice, which
lets authentication fail on some browser/token combinations
(e.g. onlykey/solokey+chromium)
while is seems this is currently a bug in chromium, in a future spec
update the underlying behaviour should be better defined, making this
an authenticator bug

also explicitly catch registering errors and show appropriate error messages

0: https://bugs.chromium.org/p/chromium/issues/detail?id=1087642

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoRevert "ui: window/Settings / WebAuthn: add browser setting for userVerificationo"
Dominik Csapak [Thu, 25 Feb 2021 09:01:20 +0000 (10:01 +0100)]
Revert "ui: window/Settings / WebAuthn: add browser setting for userVerificationo"

even if the options *could* be set in the frontend, the backend
actually has to do validation of those settings, thus we should not
make that a browser setting

additionally, having the value 'preferred' does not actually make sense,
since it does not add any security (the backend skips the
userverification check then)

This reverts commit aca4c2b5a9de23f7cafab92da0f88123f4ca5d8c.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoconfig/tfa: set UserVerificationPolicy to Discouraged
Dominik Csapak [Thu, 25 Feb 2021 09:01:19 +0000 (10:01 +0100)]
config/tfa: set UserVerificationPolicy to Discouraged

the current default is 'Preferred', which is not really useful, as the
(web) client can simply change this to discouraged, since the
webauthn_rs crate does not verify the 'user_verified' bit of the
response in that case

setting this to 'Required' is not really useful either at the moment,
since a user can have a mix of different authenticators that may or
may not support user verification

there is ongoing discussion in the crate how to handle that[0]

we could probably expose this setting(discouraged/required) to the user/admin
and save it to the credential and allow only registering credentials
of the same type or filter them out on login (i.e. if there is an
authenticator that can handle userVerification, require it)

in any case, the current default is not helpful for security, but
makes loggin in harder, since the key will by default want to verify
the user

0: https://github.com/kanidm/webauthn-rs/pull/49

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agozpool parsers: small code cleanup
Thomas Lamprecht [Wed, 3 Mar 2021 10:47:05 +0000 (11:47 +0100)]
zpool parsers: small code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agozpool parsers: fixup test value
Thomas Lamprecht [Wed, 3 Mar 2021 10:13:17 +0000 (11:13 +0100)]
zpool parsers: fixup test value

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agotape: impl access permission for media content list
Dietmar Maurer [Wed, 3 Mar 2021 12:16:15 +0000 (13:16 +0100)]
tape: impl access permission for media content list

3 years agotape: impl access permissions for tape jobs
Dietmar Maurer [Wed, 3 Mar 2021 11:44:39 +0000 (12:44 +0100)]
tape: impl access permissions for tape jobs

3 years agotape: add acl path /tape/job/{id}
Dietmar Maurer [Wed, 3 Mar 2021 11:46:27 +0000 (12:46 +0100)]
tape: add acl path /tape/job/{id}

3 years agotape: impl access permissions for encryption key config
Dietmar Maurer [Wed, 3 Mar 2021 11:21:55 +0000 (12:21 +0100)]
tape: impl access permissions for encryption key config

3 years agotape: impl api permissions for drive/changer/pool configuration
Dietmar Maurer [Wed, 3 Mar 2021 11:10:00 +0000 (12:10 +0100)]
tape: impl api permissions for drive/changer/pool configuration

3 years agocomplete_acl_path: add more paths
Dietmar Maurer [Wed, 3 Mar 2021 10:09:54 +0000 (11:09 +0100)]
complete_acl_path: add more paths

3 years agoadd roles to implement tape backup permissions
Dietmar Maurer [Wed, 3 Mar 2021 10:09:02 +0000 (11:09 +0100)]
add roles to implement tape backup permissions

3 years agodocs: mark tape backup as technology preview
Dietmar Maurer [Wed, 3 Mar 2021 09:04:11 +0000 (10:04 +0100)]
docs: mark tape backup as technology preview

3 years agoFix 3321: fix interactive restore command explanation
Dylan Whyte [Tue, 2 Mar 2021 13:50:19 +0000 (14:50 +0100)]
Fix 3321: fix interactive restore command explanation

The previous description in the docs was false. The restore command
with the pattern parameter will search the entire backup archive,
regardless of pwd.

Signed-off-by: Dylan Whyte <d.whyte@proxmox.com>
3 years agoinstall proxmox-tape binary
Dietmar Maurer [Wed, 3 Mar 2021 07:30:22 +0000 (08:30 +0100)]
install proxmox-tape binary

3 years agoui: enable experimental tape UI if tape.cfg exists
Dietmar Maurer [Wed, 3 Mar 2021 07:27:54 +0000 (08:27 +0100)]
ui: enable experimental tape UI if tape.cfg exists

3 years agodashboard: fix datastore full estimate for not changing usage
Dominik Csapak [Tue, 2 Mar 2021 13:38:49 +0000 (14:38 +0100)]
dashboard: fix datastore full estimate for not changing usage

If the usage of a datastore did not change, we did not
return an estimate. The ui interpreted this as 'not enough data', but
it should actually be 'never'.

Fixing this by always setting the estimate first to 0 and overwriting
if we successfully calculated one, and checking for 'undefined' in the ui.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: render medium-wearout as percentage
Dietmar Maurer [Tue, 2 Mar 2021 12:08:01 +0000 (13:08 +0100)]
ui: render medium-wearout as percentage