From c85ed3bf55a303e33210f18277785a732966fec6 Mon Sep 17 00:00:00 2001 From: Thomas Dalichow Date: Mon, 13 Aug 2018 17:51:11 +0200 Subject: [PATCH] fbb-api - create test http-auth --- customer/fbb-api/test.yaml | 1 + .../fbb-api/tst-api01-fbb.pixelpark.net.yaml | 44 ++++++++--------- .../fbb-api/tst-api02-fbb.pixelpark.net.yaml | 49 +++++++++---------- 3 files changed, 45 insertions(+), 49 deletions(-) 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 -- 2.39.5