Commit Graph

3962 Commits

Author SHA1 Message Date
Thomas Lamprecht
cea0f76433 ui: tfa: also include validity check for password field
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-05 13:33:19 +02:00
Thomas Lamprecht
54416bb319 ui: tfa: use userid directly for totp url generation
as name is now a displayfield, which by default does not
gets submitted, so just use the fixed userid directly

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-05 12:31:57 +02:00
Thomas Lamprecht
2f21247048 ui: tfa: show username as read only display field for info
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-05 12:26:45 +02:00
Thomas Lamprecht
9390af7b1e ui: tfa: remove fixed labelwidth
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-05 12:26:22 +02:00
Dominik Csapak
0509c444e9 ui: tfa: allow apply only on valid inputs
only when the totp form and the challenge is valid, allow pressing the
apply button, default is disabled, as the 'user_tfa' data binding was
not used anywhere else replace it with something more fitting.

change allowBlank for the challenge

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-04-05 10:35:50 +02:00
Thomas Lamprecht
af6390f0a9 ui: qemu: change suspend to disk icon to fa-download
it ressembles a state downloaded to disk, so quite fitting for
hibernate/suspend to disk

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-05 09:53:12 +02:00
Dominik Csapak
7bc701927e add a filter mask for the TFA Secret
this way a user cannot (easily) enter wrong characters
else if an invalid Character is entered, one can still hit apply
but not all characters will be used for the secret

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-04-05 09:20:47 +02:00
Dominik Csapak
805a7cb8b2 ui: parser use parseBoolean for firewall
so we detect on/ff,true/false,1/0

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-04-04 16:59:04 +02:00
Thomas Lamprecht
d7d4dc47ab bump version to 5.4-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-04 16:11:50 +02:00
Thomas Lamprecht
95e77b22cc ui: ct: fix displaying nic firewall if explicitly 0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-04 16:11:28 +02:00
Thomas Lamprecht
8b030d0848 ui: restore: add tooltip for unique checkbox and declare static
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-04 12:37:17 +02:00
Christian Ebner
c517e21226 fix: #1218 Expose unique MAC address generation on restore of VMs and CTs in UI
Adds a checkbox to the restore window, allowing the user to avoid MAC address
collisions when restoring a VM/CT to a different vmid.
When restoring to the same vmid the checkbox is not visible.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
2019-04-04 11:54:31 +02:00
Thomas Lamprecht
a23ffa167a ui: followup trailing comma fix
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-04 11:54:19 +02:00
Thomas Lamprecht
0bc11f81f1 ui: tfa: fix secret validator
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-04 11:26:12 +02:00
Thomas Lamprecht
ca7f3b3496 ui: user view: improxe "has TFA" check
detect also our old variant for TFA, so all users where the keys
values is non-empty have TFA

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-04 11:26:12 +02:00
Thomas Lamprecht
7fb4767d9c ui: user edit: move TFA key IDs field to advanced section
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-04 11:26:12 +02:00
Thomas Lamprecht
4c86db122c LoginWindow: make static
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-04 10:18:52 +02:00
Thomas Lamprecht
7b8d68fe5e ui: tfa: move qrcode creation to controller
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-04 10:07:25 +02:00
Thomas Lamprecht
6a1c9c29d2 ui: tfa: make lint happy, declare globals
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-04 09:31:27 +02:00
Thomas Lamprecht
aa8d628fc8 ui: tfa: also do not allow to delete TFA if not set
better UX

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-04 09:18:00 +02:00
Thomas Lamprecht
28ec45b20d ui: tfa: pregenerate secret if user has not setup TFA yet
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-04 09:09:38 +02:00
Thomas Lamprecht
bf0754fd8d ui: userview: show TFA column
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-04 08:49:54 +02:00
Thomas Lamprecht
2c2197a37e ui: tfa: hide digit/duration fields as some auth apps are broken
Google Authenticator, for example, just ignores it and thus one
cannot use they produced verification codes...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-04 08:35:28 +02:00
Thomas Lamprecht
31675561eb ui: tfa: follow up cleanups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-04 08:34:50 +02:00
Thomas Lamprecht
0abfdbfa98 ui: tfa: s/Code/Verification Code/
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-03 15:26:37 +02:00
Thomas Lamprecht
b688436d44 ui: tfa: ExtJS debug complains about - in references
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-03 15:26:37 +02:00
Thomas Lamprecht
34c08874de ui: tfa: make jsliunt a bit more happy
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-03 15:26:37 +02:00
Thomas Lamprecht
a8740316e3 ui: tfa: move randomize button right of secret field
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-03 15:26:37 +02:00
Thomas Lamprecht
a12805fbd4 ui: include qrcode and u2f libs also if debug is on
because it's really not ideal if enabling debug breaks things...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-03 15:26:37 +02:00
Thomas Lamprecht
ef50fb2903 ui: TFA: hide accout name
It's best to let this to the users real account name, it just
clutters the interface, an there's no real value in it.

One can already use the "issuer" field to add personalized info.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-03 15:26:37 +02:00
Thomas Lamprecht
7385f1edcb d/control: bump version dependency to proxmox-widget-toolkit
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-03 15:26:37 +02:00
Thomas Lamprecht
cdf1873cb4 d/control: bump version dependency to libpve-access-control
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-03 15:26:37 +02:00
Wolfgang Bumiller
24d2ed8c27 ui: support u2f authentication and configuration
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-04-03 15:26:37 +02:00
Wolfgang Bumiller
1702b529b6 ui: always show otp field
But make it optional.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-04-03 15:26:37 +02:00
Wolfgang Bumiller
16e13d2aef ui: add qrcode.min.js
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-04-03 15:26:37 +02:00
Wolfgang Bumiller
8c6ad4f6d1 add u2f-api.js
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-04-03 15:26:37 +02:00
Wolfgang Bumiller
7541d6a788 store u2f challenges in the rpc environment
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-04-03 15:26:37 +02:00
Thomas Lamprecht
2bdf85f84c fixup whitespaces
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-03 12:56:28 +02:00
Friedrich Ramberger
1cf7db21c5 Add Ceph, iscsi and more disk and zfs information to pvereport
Following items added to pvereport:

* more details about disks
* iscsi information
* more zfs information
* ceph information (only when ceph.conf exists)

When running from command line now report progress is shown at the console (STDERR)
2019-04-03 12:53:05 +02:00
Christian Ebner
b29918337e fix: #1145 enable CT/VM firewall by default on creation via WebUI
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
2019-04-03 11:25:25 +02:00
Thomas Lamprecht
facb06239b follow up: newline at end of file
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-02 12:53:32 +02:00
Dominik Csapak
0d3edfa945 adapt ceph log for new logview
since there is no 'doAttemptLoad' anymore, we use the
failCallback to overwrite the behaviour

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-04-02 12:52:42 +02:00
Christian Ebner
40120a3120 Allow to set the firewall log rate limit and burst from the UI
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
2019-04-01 14:59:16 +02:00
Tim Marx
4e36fbabe8 ui: ceph installer: set initial tab depending on current state
Signed-off-by: Tim Marx <t.marx@proxmox.com>
2019-04-01 13:58:47 +02:00
Thomas Lamprecht
833b048f9f ui: ct/vm: add tooltip to hibernate and stop button
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-03-30 15:21:12 +01:00
Dominik Csapak
38f7580279 gui: show Resume button if suspended
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-03-30 14:36:31 +01:00
Dominik Csapak
af856c9082 gui: add Hibernate/Pause to CmdMenu/Shutdown Menu
and have it in order of impact on the guest
(pause, hibernate, poweroff, stop)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-03-30 14:36:31 +01:00
Dominik Csapak
a33f612bcf gui: CmdMenu: rename suspend to paus
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-03-30 14:36:31 +01:00
Dominik Csapak
995a8ea2c6 gui: CmdMenu: hide the start and suspend button conditionally
only to disable them wastes space for no reason and might confuse users

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-03-30 14:36:31 +01:00
Thomas Lamprecht
7412755d27 fixup trailing whitespaces
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-03-29 13:12:11 +01:00