Problem/Motivation

Recent work added new keys to myrest.auth_settings (enforce_csrf, hash_algorithm) and myrest.log_settings. Existing installations have no update path, so their configuration is missing these keys and does not validate against the schema.

Proposed resolution

  • Add hook_update_N() implementations that set defaults for every newly introduced key.
  • Add an update that migrates MD5-based tokens to the configured secure algorithm where possible.
  • Add a post-update hook to rebuild the router after the routing changes.

Remaining tasks

Write update hooks and test them against a pre-update configuration snapshot.

User interface changes

None.

Issue fork myrest-3615515

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

sergeydruua created an issue. See original summary.

  • sergeydruua committed 304365cb on 1.0.x
    Issue #3615515: Add update hooks for configuration changes
    
sergeydruua’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

sergeydruua’s picture

Status: Fixed » Closed (fixed)