Want to be able to protect translation provider api_keys

Created on 19 April 2024, 2 months ago
Updated 25 April 2024, about 2 months ago

Problem/Motivation

Attempted to use the drupal/key module to protect the api_key and keep it out of the codebase, but when creating key override the api_key specified value get overwritten to "null" and isn't set to the specified key value. Hope to protect the API key so it is not in the codebase for a large organization's repository.

Steps to reproduce

  1. Make sure that TMGMT β†’ and Key β†’ modules are installed and enabled on site
  2. (using latest 1.17).

  3. Install and enable a TMGMT translation provider like tmgmt_file or tmgmt_google
  4. Create a basic config key "/admin/config/system/keys/add" with type as "Authentication", Key Provider as "Configuration" and add a test key value
  5. Add a Configuration key override for the provider "/admin/config/development/configuration/key-overrides/add"
    1. Configuration Type should equal "Provider"
    2. Select desired provider under "Configuration name", e.g., file or google
    3. Select desired config value that you're hoping to overwrite, e.g., for google provider -> settings.api_key
    4. Select the previously created Key and save the key override
  6. Check on overwritten value
    1. Configuration Type should equal "Provider"
    2. Select desired provider under "Configuration name", e.g., file or google
    3. Select desired config value that you're hoping to overwrite, e.g., for google provider -> settings.api_key
    4. Select the previously created Key and save the key override
  7. Look at value listed to check overwrite, e.g., "drush cget tmgmt.translator.google" or "drush cget tmgmt.translator.file"

Proposed resolution

Fix this issue to enable Key module compatibility with TMGMT module, or provide an alternative means to protect provider API keys.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Closed: outdated

Version

1.15

Component

Source: Configuration

Created by

πŸ‡ΊπŸ‡ΈUnited States zytegeist

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024