Add Support For Key Module

Created on 2 April 2025, 5 days ago

Problem/Motivation

Leverage the Key module to store the site key and site secret.

Steps to reproduce

Proposed resolution

Enhance the form and module to check for either the existing turnstile_site_key and turnstile_secret_key or a new site_key_id and secret_key_id setup in the Key module.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

1.1

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @jimparo
  • πŸ‡ΊπŸ‡ΈUnited States greatmatter

    Please try out the dev version and let me know if it's working the way you intended.

  • In the form, I added an option to select Key Module and then expose two fields, one for the site key and one for the secret key. I also added a service to grab the available keys from the key module and populate the dropdowns. I added two helper functions in the module and used suggest for the key module rather than adding it as a dependency. The only issue was that the original form fields for site key and secret key were required so I had to enter some placeholder values to save the form. I tried to create a patch with my changes and have added it to the comment here.

  • πŸ‡ΊπŸ‡ΈUnited States greatmatter
  • πŸ‡ΊπŸ‡ΈUnited States greatmatter
Production build 0.71.5 2024