Commit Graph

117 Commits

Author SHA1 Message Date
Zuul
a2be3da692 Merge "Remove useless TEMPLATE_DEBUG from local_setings.py template" 2020-04-13 05:04:42 +00:00
Takashi Kajinami
cce34f1191 Remove useless TEMPLATE_DEBUG from local_setings.py template
... because the parameter was removed from Horizon quite long ago[1].

[1] 3488ab3d40f90e9d01598912f7ee398c823f4385

Change-Id: Ic7486153d96fc2a731e0156468171803a61f8591
2020-04-10 00:47:30 +09:00
Takashi Kajinami
fef2af55e8 Drop removed parameters from loca_settings.py template
The following parmaeters were already removed from horizon,
so we can remove the from the teamplte file.
 - FLAVOR_EXTRA_KEYS[1]
 - SAHARA_AUTO_IP_ALLOCATION_ENABLED[2]
 - OPENSTACK_TOKEN_HASH_ALGORITHM[3]
 - OPENSTACK_TOKEN_HASH_ENABLED[4]

[1] 5101ebdc2814fc80c63419eee85291d8340fd078
[2] 0659f9a98a2f175847c7acb005ac8126d03059bc
[3] 069329eeb220f6fd49670894e4d45a1e3ec59c4f
[4] 71993e3c983b113ce5672fd1291e6a1200fd5a7b

Change-Id: Ie1c4fdfc5f95ce3103beea311223ec78597a38ec
2020-04-10 00:46:48 +09:00
Marc Methot
fc6226565b Adding the HTTPONLY cookie header to secure_cookies
Change-Id: Ic34170530b260b426fd65ac96aa5f494591c2ff1
Closes-Bug: #1860608
2020-01-22 16:27:15 -05:00
Zuul
68566b6c41 Merge "Prefix memcached_servers IPv6 address with inet6:" 2019-05-28 15:37:09 +00:00
Zuul
cae9084e76 Merge "update "DROPDOWN_MAX_ITEMS" horizon parameter as a variable" 2019-05-27 16:39:13 +00:00
Harald Jensås
cd38dca375 Prefix memcached_servers IPv6 address with inet6:
New dependency: openstack/openstacklib

Depends-On: https://review.opendev.org/661136
Change-Id: I3e1d2108403ece5866a0df0afd367fb80145a0df
2019-05-24 11:06:58 +02:00
ZhongShengping
3eccf6586b Move to opendev
Use opendev.org instead of git.openstack.org.

You can see the discussion below:
http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html

Change-Id: Ib46448f0e9ecc038419f02c0ec743a40aa7d0da3
2019-04-24 14:43:35 +08:00
Zuul
7bdc645fd4 Merge "No dashboards in HORIZON_CONFIG" 2019-04-16 08:06:17 +00:00
Tobias Urdin
362221a324 Change keystone v2.0 url to v3
Change-Id: I9629f8317b54a8b4ecd81df4a609165f1ceff986
2019-02-24 13:04:42 +01:00
Thomas Goirand
2da3a40dfd No dashboards in HORIZON_CONFIG
The dashboards list from HORIZON_CONFIG is deprecated. Let's remove it.

Change-Id: I07bd32477e9029f72fc9db1e6783721874128181
2019-02-06 10:41:41 +01:00
Pratik Bandarkar
004142d577 update "DROPDOWN_MAX_ITEMS" horizon parameter as a variable
"DROPDOWN_MAX_ITEMS" horizon parameter was hardcoded in a ruby
template. Hence, it was not possible to manage it using heat.
This fix will allow user to manage "DROPDOWN_MAX_ITEMS" from
heat template.

Change-Id: I121a4ad2070cfef173c572a3d25788abbbf16989
Closes-Bug: #1813786
2019-01-30 11:29:47 +01:00
Nathan Kinder
f3238a81d8 Use correct case for WEBSSO_ENABLED config setting
Horizon is picky about the case of the value used for the
WEBSSO_ENABLED setting in local_settings.  When enabled, it expects
the value to be "True".  Currently, we set it to "true", which
causes Horizon to throw a 500 error when accessing the login page.
This patch sets the value using the proper case.

Change-Id: Ic71a6c4b50556a1820a5f86bfc5a3e5102955c7b
2018-12-21 18:52:05 -08:00
Tobias Urdin
9db6f8cc09 Change default member role to member
A (long) time ago keystone-bootstrap changed the
default member role that is created to member from
the legacy _member_ role.

This changes the default value in horizon to conform
with what is the actual default when bootstrapping
keystone.

Deployments that might still be using _member_ should
set this explicitly.

Change-Id: I8c18b585c71817ec7c5450c425e2ec7bc9a83f18
2018-11-20 20:39:24 +01:00
Zuul
80b22e6331 Merge "Add SITE_BRANDING configuration option" 2018-10-08 17:56:05 +00:00
Zuul
9a56441457 Merge "Remove simple_ip_management" 2018-10-05 01:20:24 +00:00
Tobias Urdin
9cc909297b Add SITE_BRANDING configuration option
Used to control the title of the web pages
that horizon renders. Default value is set
to undef which means this option will not be
added to the configuration file and the horizon
default will be used.

If specified it will add the SITE_BRANDING option
to the local_settings file.

Change-Id: I683341f4f948fb9d639a35ce81a66959fe699962
2018-10-01 22:51:03 +02:00
Tobias Urdin
513dd2d2eb Remove simple_ip_management
The simple_ip_management option was removed in Rocky [1]
so we remove it for Stein.

[1] https://docs.openstack.org/releasenotes/horizon/rocky.html

Change-Id: I8e16c0feef9fe51075d9a6e8a98188c52962a6eb
2018-09-24 11:13:29 +00:00
Radomir Dopieralski
1e8909e4c5 Fix "create role" button in identity/roles
Since the identity/roles view now uses angular, the
'OPENSTACK_KEYSTONE_BACKEND' value needs to be added to the
REST_API_REQUIRED_SETTINGS setting for it to work properly,
as per https://review.openstack.org/#/c/579085/

Change-Id: Ib632dca7f438b39e10903ff75ec2d8f9115cc520
2018-09-21 12:52:56 +02:00
Zuul
f9c05f26d7 Merge "add parameter to set the cert to verify openstack SSL connections" 2018-07-13 02:29:56 +00:00
Benedikt Trefzer
1d6f500262 add parameter to set the cert to verify openstack SSL connections
Change-Id: I7c52c629c6d129310230320bda9144462d051cf0
2018-07-12 10:19:15 +02:00
Zuul
cff8e8329f Merge "Add simple_ip_management configuration option" 2018-07-12 02:06:38 +00:00
Tobias Urdin
8a88f3c995 Add simple_ip_management configuration option
Change-Id: I387479f34c6e059e136a26958d9ecf5a10a666b1
2018-07-03 16:42:51 +02:00
Eigil Obrestad
e14074e4fc Add option for populating a dropdown list instead of the textfield for
selecting domain at the horizon login

Depends-On: https://review.openstack.org/579475
Change-Id: I67c4c8923ef4d6e4c3420e0a2b0d38ee3c6e2819
2018-07-02 09:40:06 +02:00
Christoph Manns
7846563132 Add a new parameter named cache_server_url
If you want to use horizon with a different cacheing backend you
may run into problems. E.g. with redis it expects a database after
the port.
So introducing a new parameter which allows any string as LOCATION
solves this problem and maybe a couple of others.

Change-Id: Ida54599049f69573d27f477c395f14ae0ec26c3c
2018-06-18 16:52:58 +02:00
Zuul
58113f9297 Merge "Fix root_url bug when using a slash" 2018-05-02 19:06:56 +00:00
Tobias Urdin
c3eefcb86e Remove deprecated parameters
These parameters has been deprecated for
more than two years.

Let's remove them and add release notes.

Change-Id: I229f49ac4ce02e0b1ddbd0a2f111739ce3059f37
Closes-Bug: 1767114
2018-04-26 17:25:42 +02:00
Tobias Urdin
32a784c784 Fix root_url bug when using a slash
When settings the root_url to a slash the
paths in the local_settings.py and apache config
will be wrong. This patch fixes that issue.

Change-Id: Ib64b22bb88b2827ea4be2eb8356aa404984ee0ba
Closes-Bug: 1651720
2018-04-26 15:53:40 +02:00
Alfredo Moralejo
42b3291cd7 Move NullHandler to logging module
django.utils.log.NullHandler has been removed in django 1.9.

Switching to use NullHandler from logging module is needed to
upgrade django.

Change-Id: Ie4b97a715bedf967e28fbac5a6640a8252115f5e
2018-01-24 09:29:02 +01:00
Mathias Fechner
04854bf34b Added Parameter horizon_upload_mode
Adds a new Puppet parameter "horizon_upload_mode" which goes into
the local_settings.py configuration file and allows to change
the parameter "HORIZON_IMAGES_UPLOAD_MODE"
to one of "legacy", "off" or "direct" (default is "legacy").

Change-Id: I2e36227d318dd74267ad23f14595481b379cbbd6
Closes-Bug: 1738814
2017-12-20 15:07:08 +01:00
Lokesh Jain
5657428cab Added customization-module option to Horizon config
Horizon has a global override mechanism available to perform
customizations. This change adds customization_module key
to HORIZON_CONFIG dictionary in local_settings.py. The
corresponding template file is also modified to configure the
parameter. Spec tests are added to test the configuration.

Change-Id: Id204b60b2676f49713fb6ce7eede6200221f7163
Closes-Bug: #1722653
2017-10-10 17:39:40 -04:00
Matthew J. Black
f583d96659 Add parameter to configure instance defaults
New parameter accepts a hash value to configure
the LAUNCH_INSTANCE_DEFAULTS options in horizon
configuration.

Closes-Bug: #1721774
Change-Id: I778b3dc076d611d40205edbe0982141a815e1830
2017-10-06 11:01:01 -04:00
Mohammed Naser
c60cb1a392 Allow configuring 'CREATE_IMAGE_DEFAULTS' setting
Horizon now has the option of selecting various defaults for the
create image panel.  This patch allows configuring those options.

Change-Id: I01d9fc44d957394acc4243f3ee34e6e50eec0bdf
2017-09-11 15:53:02 -06:00
ZhongShengping
7b918a8b85 Update URLs in documents according to document migration
Change-Id: Ic12d16024f3fb4868e54ec3cea8f758e19048666
2017-07-14 12:37:34 +08:00
lhinds
04cf3ccbb3 Remove duplicate ENFORCE_PASSWORD_CHECK text
This change removes lines 587 to 590, as ENFORCE_PASSWORD_CHECK is
now situated at lines 157 to 163 as a HORIZON_CONFIG directive.

Change-Id: I8e7e6454955bea672042e20685ab96535b68dc47
2017-04-18 16:37:53 +01:00
Mariusz Karpiarz
47aeba3f5b Adds interface for enable_user_pass
Uncomments the `OPENSTACK_HEAT_STACK` dict and allows to
set `enable_user_pass` in the `local_settings.py.erb`
template

Change-Id: I97874af257a7cbb3eea862645952f6000e3fc3ce
Closes-Bug: #1676366
2017-04-12 15:53:22 +01:00
Luke Hinds
047e3b5c32 Manage password_validator with puppet manifest
Horizon provides a password validation check, which OpenStack cloud
operators can use to enforce password complexity checks for users
within horizon.

A dictionary containing a regular expression can be used for
password validation with help text that is displayed if the password
does not pass validation.

HORIZON_CONFIG["password_validator"] = {
   "regex": '.*', ]
   "help_text": _("Your password does not meet the requirements."),
   }

This change allows injection of the regex and help text into horizons
local_settings file.

Change-Id: If82a80ed6a8e6e65aecc2a25ee6d60640ae03c9a
Related-Bug: #1640800
2017-01-18 21:40:26 +00:00
Harald Jensas
4ed2edf02a WebSSO config options
Add support for WEBSSO options in local_settings.py.erb

Change-Id: Ie528eb1afeb967d30fc504cd682154913fe6927c
Closes-Bug: #1607912
2017-01-05 12:23:39 +01:00
Luke Hinds
218c35ea7b Manage disallow_iframe_embed with puppet manifest
DISALLOW_IFRAME_EMBED can be used to prevent Horizon from being embedded
within an iframe. Legacy browsers are still vulnerable to a Cross-Frame
Scripting (XFS) vulnerability, so this option allows extra security hardening
where iframes are not used in deployment

Change-Id: I5c540e552efe738bdec8598f9257fa22ae651a76
Related-Bug: #1641882
2016-12-10 08:52:46 +00:00
Juan Antonio Osorio Robles
5211ba5fc8 Add flag to enable the SECURE_PROXY_SSL_HEADER option
This is used to tell Django to take into account the X-Forwarded-Proto
header. It is disabled by default as it should only be enabled if one
is running horizon behind a proxy.

Change-Id: Ifed7d4c3409419c01c5b20c707221c1fc76ea09e
2016-12-09 10:37:14 +02:00
Luke Hinds
14cc9e89ab Manage enforce_password_check
By setting ENFORCE_PASSWORD_CHECK to `True`, it displays an 'Admin
Password' field on the Change Password form to verify that it is indeed
the admin logged-in who wants to change the password.

Change-Id: If7af97df7a011569a7e14fbab4f880688d7b82c3
Related-Bug: #1640806
2016-11-15 16:38:42 +00:00
Alex Schultz
ff13a2140f Manage disable_password_reveal
A user can disable the password reveal button in the horizon UI via the
configuration. This change adds the ability to toggle this to True via
the puppet modules.

Change-Id: Iacf899d595a2a3c522df1b96ca527731937ec698
Related-Bug: #1640492
2016-11-09 08:18:57 -07:00
Joel Merrick
0e28cea0d3 Add support for 'Retrieve Password' via Horizon UI
In local_settings.py.erb this value was hardcoded to false.
This change enables the setting of this value as referenced in
https://review.openstack.org/#/c/61032/

Change-Id: Ica6932cf97fd6f2dc00f17d523e28215401a297f
Closes-Bug: 1639851
2016-11-08 14:07:00 +00:00
Radomir Dopieralski
a117d3d2de Update REST_API_REQUIRED_SETTINGS
The REST_API_REQUIRED_SETTINGS variable needs to be updated as specified
in the release notes[0].

[0] http://docs.openstack.org/releasenotes/horizon/newton.html#id3

Change-Id: I2b579be8f0e451867238667b6d063ee74b8b373b
2016-10-31 10:29:53 +01:00
Alfredo Moralejo
4da543b4b5 Add images_panel parameter default to HORIZON_CONFIG
Review https://review.openstack.org/#/c/339122/ adds parameter
images_panel to HORIZON_CONFIG dict. It requires a default value
to work properly.

This patch add parameter images_panel to set the enabled panel
to legacy (default value) or angular.

Change-Id: I50ca03492464f9fb2f84963352b2e65c14d44953
2016-08-09 12:39:49 -04:00
Simon Murray
75b065b79c Allow Optional Password Auto-Completion
Extends the class interface to allow the login form's password field
to be automatically completed by the client browser.  Defaults to
'off' to maintain backwards compatibility with previous releases.

Change-Id: Id7e2ecd8502bb077679a2820ff0425ad519555d2
2016-07-28 09:33:44 +01:00
Marcos Fermin Lobo
7385841442 OPENSTACK_KEYSTONE_BACKEND should be configurable
In local_settings.py.erb, OPENSTACK_KEYSTONE_BACKEND is hardcoded.

We needed a new parameter in the module in order to change this to be
configurable.

Change-Id: I3f0859cd0e73012f444191797afc076beb68d7e9
Closes-Bug: #1575227
2016-07-18 20:32:45 +03:00
Iury Gregory Melo Ferreira
78c929c3ba Remove tuskar from horizon
tuskar is no longer maintained.

https://github.com/openstack/puppet-tuskar

Change-Id: I2fe967203fa10999afa6b6341103ad67d7b7f262
2016-05-24 06:53:07 -03:00
Matthew J Black
50fe686241 Deprecated custom theme path and added new params.
The custom theme path option has been deprecated in mitaka and two
new config options are available relating to themes. The new params
are available_themes and default_theme.

Change-Id: Ibc95cf88da83b257493a2701467198a5833e1aca
2016-05-23 11:54:25 +00:00
Nick Jones
8d70201feb Make syslog logging handler optional
This commit makes the inclusion of configuration for the syslog handler
conditional, based on the value of horizon::log_handler.

Change-Id: I284ffb7ca97ec7548bc9d98674d4a92d01c319ba
Closes-Bug: #1563239
2016-03-29 12:18:29 +01:00