Add button to generate new SG key in settings UI

Created on 17 May 2024, 7 months ago
Updated 4 June 2024, 7 months ago

Problem/Motivation

If the module is installed but not enabled (for example via config import), trying to enable it via UI won't work because of a missing API key. At this point it is only possible to generate the API key by:

  • Uninstalling and installing the site Guardian module via UI.
  • Generate the API key somehow and configure it for the module.

Notice that if you install the module via UI, the API key is generated as expected.

Steps to reproduce

  • Install the Site Guardian module via configuration. Notice that, because the configurations of the module should be ignored (there's still some conversations ongoing about this) the module will only be installed but not enabled.
  • As a post deployment task try to enable Site Guardian via UI, this step will fail due to a missing key.

Proposed resolution

Add a 'Generate API Key' button to the Site Guardian configuration page, so that a new random key can be generated at discretion for whatever reason, with no need to uninstall or disable Site Guardian.

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024