From: Thomas Dalichow Date: Mon, 13 Aug 2018 15:51:11 +0000 (+0200) Subject: fbb-api - create test http-auth X-Git-Tag: v0.1.0~425 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=c85ed3bf55a303e33210f18277785a732966fec6;p=pixelpark%2Fhiera.git fbb-api - create test http-auth --- diff --git a/customer/fbb-api/test.yaml b/customer/fbb-api/test.yaml index 8c6c83ec..6175b370 100644 --- a/customer/fbb-api/test.yaml +++ b/customer/fbb-api/test.yaml @@ -72,6 +72,7 @@ php::extensions: redis: {} mysqlnd: {} bcmath: {} + posix: {} php::settings: PHP/memory_limit: 320M diff --git a/customer/fbb-api/tst-api01-fbb.pixelpark.net.yaml b/customer/fbb-api/tst-api01-fbb.pixelpark.net.yaml index 818000ae..7c81385b 100644 --- a/customer/fbb-api/tst-api01-fbb.pixelpark.net.yaml +++ b/customer/fbb-api/tst-api01-fbb.pixelpark.net.yaml @@ -53,25 +53,25 @@ infra::profile::apache::pp_vhosts: allow_override: - All directoryindex: index.php index.html -# - location1: -# provider: location -# path: '/api/v1/cdm-ham/system-status-handler' -# auth_type: Basic -# auth_name: "Restricted Content" -# auth_user_file: '/var/www/.htaccess_fbb_api' -# require: -# requires: -# - 'user hh-push' -# - 'ip 10.5.13.142 10.5.13.144' -# enforce: all -# - location2: -# provider: location -# path: '/api/v1/cdm-ham/notification-handler' -# auth_type: Basic -# auth_name: "Restricted Content" -# auth_user_file: '/var/www/.htaccess_fbb_api' -# require: -# requires: -# - 'user hh-push' -# - 'ip 10.5.13.142 10.5.13.144' -# enforce: all + - location1: + provider: location + path: '/my-test1' + auth_type: Basic + auth_name: "Restricted Content" + auth_user_file: '/etc/httpd/conf.d/basic-auth-hh' + require: + requires: + - 'user hh-push' + - 'ip 10.5.13.142 10.5.13.144' + enforce: all + - location2: + provider: location + path: '/my-test2' + auth_type: Basic + auth_name: "Restricted Content" + auth_user_file: '/etc/httpd/conf.d/basic-auth-hh' + require: + requires: + - 'user hh-push' + - 'ip 10.5.13.142 10.5.13.144 217.66.51.248' + enforce: all diff --git a/customer/fbb-api/tst-api02-fbb.pixelpark.net.yaml b/customer/fbb-api/tst-api02-fbb.pixelpark.net.yaml index 48217858..9e836186 100644 --- a/customer/fbb-api/tst-api02-fbb.pixelpark.net.yaml +++ b/customer/fbb-api/tst-api02-fbb.pixelpark.net.yaml @@ -46,30 +46,25 @@ infra::profile::apache::pp_vhosts: allow_override: - All directoryindex: index.php index.html -# - location1: -# provider: location -# path: '/api/v1/cdm-ham/system-status-handler' -# auth_type: Digest -# auth_name: server -# auth_digest_provider: file -# auth_digest_algorithm: MD5 -# auth_user_file: '/etc/httpd/htdigest' -# auth_type: Basic -# auth_name: "Restricted Content" -# auth_user_file: '/var/www/.htaccess_fbb_api' -# require: -# requires: -# - 'user hh-push' -# - 'ip 10.5.13.142 10.5.13.144' -# enforce: all -# - location2: -# provider: location -# path: '/api/v1/cdm-ham/notification-handler' -# auth_type: Basic -# auth_name: "Restricted Content" -# auth_user_file: '/var/www/.htaccess_fbb_api' -# require: -# requires: -# - 'user hh-push' -# - 'ip 10.5.13.142 10.5.13.144' -# enforce: all + - location1: + provider: location + path: '/my-test1' + auth_type: Basic + auth_name: "Restricted Content" + auth_user_file: '/etc/httpd/conf.d/basic-auth-hh' + require: + requires: + - 'user hh-push' + - 'ip 10.5.13.142 10.5.13.144' + enforce: all + - location2: + provider: location + path: '/my-test2' + auth_type: Basic + auth_name: "Restricted Content" + auth_user_file: '/etc/httpd/conf.d/basic-auth-hh' + require: + requires: + - 'user hh-push' + - 'ip 10.5.13.142 10.5.13.144 217.66.51.248' + enforce: all