Key Cloudflare is an extension to the Key module.
This module provides a new key type for supporting authentication against the Cloudflare service. This key will capture both the API token and API key. Both are not required, but can be configured on the same key regardless.
Requirements
Requires the Key module:
https://www.drupal.org/project/key
Install
Install key_cloudflare using a standard method for installing a contributed Drupal
module, either by downloading the package or using composer command below:
composer require drupal/key_cloudflare
Usage
Follow the Key module documentation for getting and using keys.
Adding a key_select element to your form like below, in order to select your key.
You can apply a filter to select only cloudflare_key related keys:
$form['cloudflare_auth'] = [
'#type' => 'key_select',
'#title' => $this->t('Cloudflare Auth'),
'#key_filters' => ['type' => 'cloudflare_key'],
];
Project information
- Project categories: Developer tools
- Ecosystem: Key
- Created by geoanders on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.

