Commit Graph

21 Commits

Author SHA1 Message Date
Clark Boylan 9998655fa9 Retire this project
OpenDev is no longer running an openstackid instance and the puppet
module isn't used by the folks running the current instance. We can go
ahead and clean this repo up.

Depends-On: https://review.opendev.org/c/openstack/project-config/+/818170
Change-Id: Ifab5aa7a839d8353aee9acacd5fd2eec525cc924
2021-11-16 14:41:11 -08:00
Jeremy Stanley 5fd8ea4c50 Add SSL options in www subdomain redirect vhost
The *:443 vhost for www needs ssl options set even though it only
hosts a redirect.

Change-Id: Ib9be4d3901a6abd4f55589e41bab363f066d747b
2020-03-27 21:56:21 +00:00
smarcet 24890661b8 added www. cname on vhost file
Change-Id: I0c81a5a4efd40c8fe53b843dae4543b6c31813a0
Signed-off-by: smarcet <smarcet@gmail.com>
2020-03-26 15:49:11 -03:00
smarcet 954b03a75f Fixing results from ZAP Scanning Report
added header Strict-Transport-Security Header Not Set

Change-Id: I22b14e30738254ebd3e847003f16a4ad3863ed8a
Signed-off-by: smarcet <smarcet@gmail.com>
2020-03-24 17:39:57 -03:00
smarcet f1f6e58ef8 Fixed broken deployment
Refactored to support Doctrine ORM
and Laravel Queues

Change-Id: Iea078ee1e7d2541872b3b6966825eb6988fd266e
2020-01-27 23:15:31 -03:00
smarcet 83c937e34a Fix on redirect urls regex
Change-Id: I705223d3b7c80cf482149b5eafa02a682cc8f5a6
2019-04-29 22:14:35 -03:00
smarcet d5b360bc02 Added rewriting rules
added rules to redirect registration/password lost
and resend verification to www site

Change-Id: I487a973826fb40675e5e9999be89d69481a7312e
Depends-On: https://review.opendev.org/#/c/656396/
2019-04-29 19:02:17 -03:00
Sebastian Marcet 5ad10537b4 Updated script to support PHP7
Added php 7.x support and xenial support using external
ppa from andrej

Depends-On: https://review.openstack.org/611936

Change-Id: Ic30cc62216be3035c363fa0203a757df662acf47
2019-01-15 15:01:21 -03:00
Sebastian Marcet 49e222aa4a Apache/PHP configuration tweaks
In order to improvee IDP responsiveness
follwing actions were taken:

* updated apache connection settings
* removed access log settings from apache2
* updated php pool settings
* added php.ini settings
** added zend opcode cache
** set php max memory limmit to 32MB
* added php-fpm.conf settings
** set emergency_restart settings

Change-Id: I52aafd41267aa46d4f481b7c91a24732c615632b
2017-04-05 12:24:49 -03:00
Sebastian Marcet 274521cca5 Updated PHP settings to avoid 503 by timeouts
In order to avoid 503 by timeouts from
php-fpm service timeout values were increased
as also the max request nbr
per php child proccess.

Change-Id: I06d94b88716895987ea97cf86365b39caeafa385
2016-11-01 23:50:44 -03:00
Sebastian Marcet b70762da8b PHP 503 errors
Checking the apache2 log i saw a lots of timeout errors like
[proxy_fcgi:error] (70007)The timeout specified has expired: AH01075
so timeout setting of the proxy was increased to solve it.

Change-Id: I805fcd0e21259905e4db51283a708c9a54a0557b
2016-10-27 11:15:20 +00:00
Sebastian Marcet 6f938175e0 PHP www pool tunning ( http 503 )
In order to avoid http 503 errors and taking a look
at php fpm logs , its has been increased the
start_servers, min_spare_servers and max_spare_servers
values to avoid erros like WARNING: [pool www] seems busy
(you may need to increase pm.start_servers, or
pm.min/max_spare_servers).

Change-Id: I5d47625ac4702c1b6704c66967d76fac2a895907
2016-10-25 13:43:43 +00:00
Sebastian Marcet 5efa3a5928 Fix on vhost config
added rewrite rule to pass the HTTP auth header to web app

Change-Id: I62f367f55aecf35eccbf2e10f7626f06843efc69
2016-04-05 14:23:36 -03:00
Sebastian Marcet 13c1777dc0 Fix Vhost (Apache2.4)
* fixed fastcgi configuration(changed to be compatible with < 2.4.10)
* fixed directory permissions

Change-Id: I789d67947b33d05409460c4b26e8c6a595d58694
2016-03-31 00:51:15 -03:00
Sebastian Marcet 6cb41de782 Update Configuration for Precise
added conditional logic to support fastcgi apache 2.2 mod on Precise

Change-Id: Ice7a2f9d802fe4fa65589456eb376bafe85ba448
2016-03-30 16:16:50 -03:00
Sebastian Marcet a1c7cc4ed7 Apache MPM events + php5 fpm
* Updated site config to change MPM from fork to event model
  and to start using php5-fpm (fast cgi) to get a better site
  performance and a better use or server resources.
* Updated mysql php driver to newer one (php5-mysqlnd).
* Added missing dependencies : php5-json (json functions) and
  php5-gmp( big number functions used by jose4php).
* Replaced puppet-httpd with puppetlabs-apache.
* added www.conf to tweak php5-fpm connection settings
* update vhost template to support proxy_fcgi.
* updated apache connections settings to improve performance on
  mpm events.
* updated dependency to puppetlabs/apache (1.8.1)
Change-Id: I66c6ad413a6b0c31a19cc663058a53edc3bec5cc
2016-03-30 11:18:59 -03:00
Donald Stufft 489b7ba022 Specify ciphers that optimize for security and performance
* Prefer the ECDHE + AESGCM ciper suites first, these represent the
  best performance and the best security.
* Then, prefer the DH + AESGCM, these are equivilant to the first in
  terms of security, however they are slower.
* Then, we'll prefer any AES cipher that supports PFS, sorting by
  strength, then performance.
* Then we'll prefer any non PFS cipher, with AESGCM first, but finally
  any another non PFS cipher.
* We then exclude any AES256 ciphers, we exclude there here instead of
  just not mentioning them so that they can be renabled simply by
  removing the !AES256. We exclude them because they are not
  meaningfully more secure than AES128, however they are slower.
* We then exclude !aNULL, this is needed because we're not manually
  specifying every cipher by name, and we're not specifying any
  authentication. This will ensure that no matter what we'll always
  have *some* authentication.
* We then exclude !eNULL, this isn't really needed since all of our
  included ciphers have encryption specified. It exists primarily for
  symmetry with !aNULL.
* We then exclude !MD5, much like !aNULL this is done because we don't
  specify a digest anywhere, so we want to make sure we don't support
  MD5.
* Finally we exclude DSS, PSK, and SRP. These are just to make
  debugging the list easier. It's basically impossible to get a DSS
  certificate issued instead of a RSA certificate and nobody really
  uses PSK or SRP.

This will drop support for IE8 on Windows XP, essentially dropping
support for all versions of IE on Windows XP. Windows XP users
would need to use Firefox or Chrome to use the service.

Change-Id: I4744a6f42b8f7ab4a4b41ad856ecaa424d8ce3fc
2015-03-13 13:35:24 -04:00
Dmitry Teselkin 8ed5baedad Fix vhost configuration sections
According to https://wiki.apache.org/httpd/CommonMisconfigurations
is is wrong to specify server name in opening tag. ServerName
should be used instead.

Indentations also fixed in some files.

Change-Id: Id9d20a672103221efa01be61a174b62706036e57
2014-12-18 19:33:01 +03:00
Timothy Chavez 70b9326528 Use the SSLProtocol blacklist approach
It turns out that specifying the ciphers we want to use leads to
breakage.  So instead we'll explicitly tell Apache which ciphers
we don't want to use.

Change-Id: I0f8211533495a6a4340c01dadb8069ccf9be429c
2014-10-16 11:41:04 -05:00
Clark Boylan 7e63b0ed57 Use only TLSv1 and greater to depoodle
The poodle SSLv3 vulnerability is a good reason to stop using SSLv3.
Switch to TLS everywhere in our apache vhost configs.

Change-Id: If7b18174253b6f185e029f97bfa77d8ad4941385
2014-10-14 17:07:06 -07:00
Jeremy Stanley e7e07ad1f5 Set up openstackid module
Refactor the openstack_project::openstackid_dev module out into a
top-level openstackid module in preparation for multiple servers,
set up Apache to serve content out of /srv/openstackid, add an
/etc/openstackid/database.php file with connection details injected
from hiera and keep an updated clone of openstack-infra/openstackid
in /opt/openstackid.

Change-Id: Icdde594384e3af27c8dd185a51b9e5a71619fb7b
2013-12-27 22:56:55 +00:00