1144 Commits

Author SHA1 Message Date
nicholaskuechler
d710db0bbc fix typos
Change-Id: I57b79f8f3a2af3fbf116d5257ea64fe699a03176
2024-09-30 08:56:47 -05:00
Radomir Dopieralski
079eceb2c2 Force logging of /auth/password in operation log
Normally the operation log doesn't include operations performed by users
that are not logged in, but we want to make an exception for the change
user password form, which is used for changing expired passwords, that
doesn't log the user in, but we still want to have it logged.

Also, update the default value of mask_fields to include the field
names used in that form.

Change-Id: Ib07efeda9eecd78b91f8f13624578264282c3f89
2024-08-19 17:55:04 +02:00
Francesco Di Nucci
88d8593ad4 Update USER_MENU_LINKS
Update default to reflect https://review.opendev.org/c/openstack/horizon/+/922207

Change-Id: Iac841a239e0e83dd01bf28d63d9910c06c05a95e
2024-06-26 11:08:19 +02:00
Zuul
64eddcd3f5 Merge "Remove old excludes" 2024-05-01 05:43:47 +00:00
Takashi Kajinami
a4e31aa9e4 Remove old excludes
These are detected as errors since the clean up was done[1] in
the requirements repository.

[1] 314734e938f107cbd5ebcc7af4d9167c11347406

Also remove the note about old pip's behavior because resolver in
recent pip does not require specific order.

Change-Id: Ic8a34616a5723517cad880da3d9b75d03808c265
2024-04-30 18:04:43 +09:00
OpenStack Proposal Bot
fb4f41e256 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I72e2ceafef660101a1f3d158ea72ca9440cca980
2024-04-19 04:51:10 +00:00
AgnesNM
04d6edb38a Include compound sorting information in docs
Compound sorting is an existing feature on the Horizon dashboard.
    It is not obvious, however.
    This change should bring this feature to the attention of users.
    It should also guide users into how to use the feature when sorting.
    Horizon DataTables.

    DocImpact
    Closes-Bug: #1287418
    Implements: compound sorting

Change-Id: I810e863e01ca54f6751e1608e99ce97833597aff
2024-03-28 19:45:25 +03:00
Radomir Dopieralski
1ea4f4d76f Add a setting for disabling dhcp agents column in the admin network view
Retrieving that information for every network can take considerable time
on large deployments with large number of networks, and for some kinds
of network drivers (ovn binary) this will be always zero anyways.

This setting lets us disable that column to speed up the networks view.

Change-Id: I1f1561916067d3f4a02f10ec9f62e8ba777a1501
2024-02-22 17:36:12 +01:00
OpenStack Proposal Bot
b83691224b Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I6525a7b82e9e8a59e8dffac1a9c1f43a95ec2e9f
2024-02-09 04:44:16 +00:00
manchandavishal
605a515ebc Drop Django 3.2 support
Django 3.2 support was dropped. Django 3.2 ends its extended support
in April 2024[1]. Considering this, horizon dropped Django 3.2 support
and used Django 4.2 as the default version of Django. It also updates
some references to Django 4.2 from Django 3.2 in the documentation.

[1] https://www.djangoproject.com/download/

Change-Id: I9fff310c5433cf96cdf0a2cd81d11a96c2a4a55b
2024-01-30 17:01:51 +05:30
OpenStack Proposal Bot
28dd7e3310 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I2aee7f3751eb1553793578c8762439571406e42b
2024-01-14 05:38:23 +00:00
OpenStack Proposal Bot
fcf23560b4 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I38fc4217564cb37cdd5b613fd4289e350496239d
2023-09-29 04:46:20 +00:00
OpenStack Proposal Bot
84ca532792 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: If5451e91c531c4d6c8a3c260b65b56f68e8aae3e
2023-09-26 04:07:39 +00:00
Radomir Dopieralski
80f1e30902 Fix sphinx extlinks captions
We are hitting https://github.com/sphinx-doc/sphinx/issues/11094 due
to changes in Sphinx.

Change-Id: Ie2d271c8cfbccd21aae1902ede49ac22321a67c6
2023-08-30 10:35:46 +02:00
Benjamin Lasseye
cb74c8c08f Add TOTP support
This patch adds support for MFA TOTP on openstack dashboard.
A new configuration variable OPENSTACK_KEYSTONE_MFA_TOTP_ENABLED
was added false by default.
If enabled, users needing TOTP are prompted with a new form.
keystone doc: https://docs.openstack.org/keystone/latest/admin/auth-totp.html
Demonstration video : https://youtu.be/prDJJdFoMpM

Change-Id: I1047102a379c8a900a5e6840096bb671da4fd2ff
Blueprint: #totp-support
Closes-Bug: #2030477
2023-08-18 12:02:25 +00:00
OpenStack Proposal Bot
630e0ac5cd Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I4380f67410532fc0ecedc29626a8350f2426badc
2023-02-04 03:53:02 +00:00
Andrey Kurilin
c8ee8c1965 Fix applying OPENSTACK_SERVER_DEFAULT_USER_DATA value
The final revision of I86ac21bf82c1667135abd4f20fb4514da0899450 is buggy
and doesn't work.
This commit fixes it and adds a proper test.

Also, this commit updates the docs with a proper horizon version that
corresponds to Zed release (the feature was introduced before final Zed
cut so the author tried to guess the final release number).

Change-Id: Id921b69df13af3cc209236f0446d82dd30e4d8a2
2023-01-26 14:42:15 +01:00
Takashi Kajinami
9fa98969e7 Use OPENSTACK_ENDPOINT_TYPE by default
This is follow-up of I8438bedaf7cead452fc499e484d23690b48894d9 and
ensures the OPENSTACK_ENDPOINT_TYPE parameter is used when
OPENSTACK_KEYSTONE_ENDPOINT_TYPE is not set. This avoids backward-
incompatible change which affects deployments with endpoint type set
to non-default values.

Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Change-Id: I94d2d3e31fc0103773fb5d3ed2f5f792e8851f78
2022-12-26 07:01:07 +09:00
Zuul
0add65eddc Merge "Add OPENSTACK_KEYSTONE_ENDPOINT_TYPE config opt" 2022-12-15 17:50:38 +00:00
Tobias Urdin
b22a6d65f7 Add OPENSTACK_KEYSTONE_ENDPOINT_TYPE config opt
The [1] changed the previous behavior of Horizon by
changing the hardcoded internal endpoint type to using
OPENSTACK_ENDPOINT_TYPE so it's no longer possible to use
internal endpoint type for Keystone but public for others.

This adds the OPENSTACK_KEYSTONE_ENDPOINT_TYPE config opt
to set the endpoint type for Keystone when grabbing it from
the service catalog.

[1] https://review.opendev.org/c/openstack/horizon/+/730781

Change-Id: I8438bedaf7cead452fc499e484d23690b48894d9
2022-09-29 13:23:59 +00:00
OpenStack Proposal Bot
214b99304a Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Iabcaaf4f7454f5e481c6172297bc49a142494e60
2022-09-21 02:15:49 +00:00
OpenStack Proposal Bot
9e9fabeb08 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I611d8026eccc1552f5773af86eb2e50a6f6072af
2022-09-07 03:28:05 +00:00
OpenStack Proposal Bot
58f8329537 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I4ac098693bbac4894cfabf895303d0125fa37995
2022-09-04 03:54:25 +00:00
Andrey Kurilin
3a2e82ab75 Extend settings with OPENSTACK_SERVER_DEFAULT_USER_DATA
The new setting should allow an administrator to specify default user_data
for new VMs. The default user_data can be a string template that accepts
request object which has info about the user, so the default user_data can
be personalized.

Change-Id: I86ac21bf82c1667135abd4f20fb4514da0899450
2022-09-01 19:23:00 +03:00
Zuul
272dbb61c7 Merge "Add new settings to LAUNCH_INSTANCE_DEFAULTS" 2022-08-30 11:34:06 +00:00
Andrey Kurilin
e9b8d707da Add new settings to LAUNCH_INSTANCE_DEFAULTS
The new settings ``LAUNCH_INSTANCE_DEFAULTS.enable_metadata`` and
``LAUNCH_INSTANCE_DEFAULTS.enable_net_ports`` allow to hide Metadata and
Network Ports tabs from launch instance workflow.

It is implemented in the similar way to existing enable_scheduler_hints
setting and doesn't change default behaviour

Change-Id: I3d1ae5ab6cee614dd2c400f66570e320efbe6100
2022-08-29 21:39:33 +03:00
Zuul
f3767aba90 Merge "Update OPENSTACK_ENDPOINT_TYPE documentation" 2022-07-14 05:37:20 +00:00
OpenStack Proposal Bot
f7a55fab69 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I0221eadc9b3670831c494676771ad5a7481a9615
2022-06-27 02:59:18 +00:00
OpenStack Proposal Bot
2ebbb384a0 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I2a9934feb6da480e0f6b3eac462377fb85c899ef
2022-06-21 02:58:12 +00:00
Tobias Urdin
36c91fd50d Update OPENSTACK_ENDPOINT_TYPE documentation
The [1] change updated the behavior but the doc was
never updated so it's no longer valid.

[1] https://review.opendev.org/c/openstack/horizon/+/730781

Change-Id: I2b592f1c50018658309b60103b73dd70f19c843b
2022-06-08 16:16:20 +00:00
manchandavishal
65d748fb25 Deprecate Django based Panel for Images, Keypair, and roles
As discussed in the horizon meetings or in horizon PTG sessions,
horizon team agreed to deprecate django version of Images, Keypair
and Roles panel as we think that feature gaps between the two
implementations have been closed. Let's mark the Django version as
deprecated for all these panels and gather more attention
from operators.

Change-Id: I965f9dbdd5e78b52a788f73b359c1c6fbc18637e
2022-05-10 05:28:28 +09:00
Zuul
f5a89f93bf Merge "[doc] Add documentation about the release process in horizon" 2022-03-31 12:37:05 +00:00
manchandavishal
89249f76e0 [doc] Add documentation about the release process in horizon
This patch adds documentation about the release process
in the horizon.

Change-Id: Iedcc857f0159dc7fea388e09469269130337ef5e
2022-03-31 04:33:10 +00:00
Zuul
0798bdacd3 Merge "Add SYSTEM_SCOPE_SERVICES setting that hides panels" 2022-03-24 10:36:17 +00:00
OpenStack Proposal Bot
51a15d4790 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I253f71b0b301a57b688918320c6db05039dd5d39
2022-03-24 02:57:09 +00:00
Radomir Dopieralski
6c814b241d Add SYSTEM_SCOPE_SERVICES setting that hides panels
Since not all services are ready to use the system scope token,
we need a way to disable and enable the use of system scope
token on a per-service basis. This setting let us configure
which services should use the system scope token. By default
the list is empty and system scope token is not used at all.

Change-Id: I5e0cdc7288221571f183a37b800c19dc4cff5707
2022-03-10 15:13:21 +01:00
Zuul
cf9a30d39e Merge "Address RemovedInDjango40Warning (3)" 2022-03-10 12:23:11 +00:00
Zuul
d4b5646fb3 Merge "Add Python 3 only classifier" 2022-03-08 16:12:28 +00:00
Zuul
ec1f1e0128 Merge "doc: Update setup file examples in the plugin tutorial" 2022-03-08 14:36:07 +00:00
Zuul
ba079cbe38 Merge "Create Horizon session control logic" 2022-03-03 18:57:00 +00:00
Zuul
dd9e4c82b5 Merge "Address RemovedInDjango40Warning (2)" 2022-03-03 10:14:04 +00:00
Hugo Brito
5d6eefa498 Create Horizon session control logic
The Multiple Simultaneous Logins Control is a feature designed
for securing Horizon dashboard sessions. The default Horizon
configuration allows the same user to login several times
(e.g. different browsers) simultaneously, that is, the same user
can have more than one active session for Horizon dashboard. When
there is the need to control the active sessions that one user can
have simultaneously, it will be possible to configure the Horizon dashboard
to disallow more than one active session per user. When multiple simultaneously
sessions are disabled, the most recent authenticated session will be considered
the valid one and the previous session will be invalidated.

The following manual tests encompass both simulteaneous session control
configuration: 'allow' and 'disconnect' and were verified with this code
change before submitting it:

Test Plan:
PASS: Verify that a user is able to login to Horizon dashboard (when
configuration is 'disconnect')
PASS: Verify that a user is able to start a second Horizon dashboard
session and the first session is finished (when configuration is
'disconnect')

Failure Path:
PASS: Verify that when a user fails to authenticate a second Horizon
dashboard session the first session stills active (when configuration is
'disconnect')

Regression:
PASS: Verify that a user is able to login to Horizon dashboard (when
configuration is default: 'allow')
PASS: Verify that a user is able to start multiple simultaneous Horizon
dashboard sessions (when configuration is default: 'allow')

Implements: blueprint handle-multiple-login-sessions-from-same-user-in-horizon
Signed-off-by: Hugo Brito <hugo.brito@windriver.com>
Co-authored-by: Thales Elero Cervi <thaleselero.cervi@windriver.com>
Change-Id: I8462aa98398dd8f27fe24d911c9bfaa7f303eb93
2022-02-28 23:48:47 +09:00
Zuul
da0024f666 Merge "Add a Note Under Install and configure Section in documentation" 2022-02-25 19:08:47 +00:00
OpenStack Proposal Bot
94e4e2df01 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I1efeebbc45fe158cf39dbef9a0ca3cfd90daca3c
2022-02-22 03:02:39 +00:00
Zuul
8b4e31fbd6 Merge "Update default value of OPENSTACK_KEYSTONE_DEFAULT_ROLE" 2022-02-10 20:31:25 +00:00
Takashi Kajinami
569caf0b7f Add Python 3 only classifier
Python 2 support was removed during Ussuri cycle. This change adds
the classifier to clearly state that only Python 3 is supported.

Change-Id: I51552cadaed82b29dcd10043ba23a0682e549156
2022-02-08 23:27:26 +09:00
Takashi Kajinami
fa29ed8e6d doc: Update setup file examples in the plugin tutorial
This commit updates the examples of setup.py and setup.cfg
to reflect the recent changes.

- Replace dashes by underscores in setup.cfg.
  Since setuptools v54.1.0[1], the parmeters with dash have been
  deprecated in favor of the new parameters with underscore.
- Update python versions in setup.cfg to match the current
  supported versions of python in OpenStack Yoga.
- Change the homepage URL in setup.cfg from horizon URL to a notice.
- Drop a workaround for python <2.7.4 in setup.py.
- Update the pbr requirement in setup.py
- Drop the unnecessary comment not to edit it
  as setup.py is not synced globally.

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Change-Id: Id38299245f31d2db17fb1b74d60cf1232ee4a509
2022-02-08 22:53:25 +09:00
Akihiro Motoki
d9266fd82c Address RemovedInDjango40Warning (3)
In Django 3.1, django.conf.urls.url() is deprecated
in favor of django.urls.re_path().

https://docs.djangoproject.com/en/4.0/releases/3.1/#id2

Change-Id: I484694f8718f61c022126a1935cf28fce075894b
2022-02-04 16:26:54 +09:00
Akihiro Motoki
cd7c1b5110 Address RemovedInDjango40Warning (2)
django.utils.translation.ugettext(), ugettext_lazy(), ugettext_noop(),
ungettext(), and ungettext_lazy() are deprecated in favor of the
functions that they’re aliases for: django.utils.translation.gettext(),
gettext_lazy(), gettext_noop(), ngettext(), and ngettext_lazy().

https://docs.djangoproject.com/en/4.0/releases/3.0/#id3

Change-Id: I77878f84e9d10cf6a136dada81eabf4e18676250
2022-02-04 16:22:07 +09:00
Zuul
047b81e979 Merge "Drop Django based implementation of launch instance" 2022-01-25 15:58:41 +00:00