diff --git a/composer.json b/composer.json index 2b044f1..5d81e21 100644 --- a/composer.json +++ b/composer.json @@ -24,6 +24,7 @@ "drupal/page_manager": "^4.0@RC", "drupal/paragraphs": "^1.20", "drupal/redirect": "^1.12", + "drupal/shield": "^1.8", "drupal/upgrade_status": "^4.3", "wikimedia/composer-merge-plugin": "^2.1" }, diff --git a/composer.lock b/composer.lock index 3f9cd38..70ee9ba 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "e3713c236ff05fa58bb8c392621b49c7", + "content-hash": "22d13c8520e4cf5ccfd938823e0ca9b7", "packages": [ { "name": "asm89/stack-cors", @@ -6321,6 +6321,80 @@ "source": "https://git.drupalcode.org/project/seven" } }, + { + "name": "drupal/shield", + "version": "1.8.0", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/shield.git", + "reference": "8.x-1.8" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/shield-8.x-1.8.zip", + "reference": "8.x-1.8", + "shasum": "709b5580790a3b5bd8dda26f722cdb5a9c3911c5" + }, + "require": { + "drupal/core": "^9.2 || ^10 || ^11" + }, + "require-dev": { + "drupal/key": "^1.16" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "8.x-1.8", + "datestamp": "1719947682", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + }, + "branch-alias": { + "dev-8.x-1.x": "1.x-dev" + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "badjava", + "homepage": "https://www.drupal.org/user/83372" + }, + { + "name": "chx", + "homepage": "https://www.drupal.org/user/9446" + }, + { + "name": "geek-merlin", + "homepage": "https://www.drupal.org/user/229048" + }, + { + "name": "japerry", + "homepage": "https://www.drupal.org/user/45640" + }, + { + "name": "kalman.hosszu", + "homepage": "https://www.drupal.org/user/267481" + }, + { + "name": "pkiraly", + "homepage": "https://www.drupal.org/user/352587" + }, + { + "name": "vbouchet", + "homepage": "https://www.drupal.org/user/1671428" + } + ], + "description": "Creates a general shield for the site.", + "homepage": "https://www.drupal.org/project/shield", + "support": { + "source": "https://git.drupalcode.org/project/shield" + } + }, { "name": "drupal/smart_trim", "version": "2.3.1", diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index c848e19..79799e8 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -86,6 +86,7 @@ module: search: 0 search_api: 0 search_api_db: 0 + shield: 0 smart_trim: 0 smtp: 0 system: 0 diff --git a/config/sync/shield.settings.yml b/config/sync/shield.settings.yml new file mode 100644 index 0000000..65d0bfd --- /dev/null +++ b/config/sync/shield.settings.yml @@ -0,0 +1,17 @@ +_core: + default_config_hash: FLJZME3II5fjmMSrdEvJHp95ZJf8V_X0jbX0VdVU1BU +shield_enable: false +credential_provider: shield +credentials: + shield: + user: '' + pass: '' +allow_cli: true +debug_header: false +unset_basic_auth_headers: true +print: Hello! +method: 0 +paths: '' +allowlist: '' +http_method_allowlist: { } +domains: '' diff --git a/web_main/.htaccess b/web_main/.htaccess index 1610d60..4031da4 100644 --- a/web_main/.htaccess +++ b/web_main/.htaccess @@ -184,12 +184,3 @@ AddEncoding gzip svgz # Disable Proxy header, since it's an attack vector. RequestHeader unset Proxy - - -AuthUserFile /site/mathallo/.htpasswd -AuthGroupFile /dev/null -AuthName "Accès restreints - Veuillez vous authentifier" -AuthType Basic -require valid-user - -