Create a global "kill switch" for Package Manager?

Created on 31 March 2022, over 2 years ago
Updated 9 May 2023, over 1 year ago

Problem/Motivation

Allowing updating your codebase in production could be open some potential attack vectors.

Currently the update module in core also has this problem. To mitigate this the Update module allows you to set allow_authorize_operations = FALSE in settings.php which turns off this functionality.

Once Automatic Updates is in core there won't easy way to prevent a user with the correct permissions from turning on the Automatic Updates module and being able to update core, and other projects once we support updating them.

Proposed resolution

Consider adding a global "kill switch" mechanism in Package Manager, a boolean in settings.php like package_manager_disable = FALSE, which if set to TRUE would make all Package Manager operations throw an exception. That's one option;

Or we could just add global kill switch for Automatic Updates and other modules could follow the same pattern if they want to.

Remaining tasks

Decide if we should do this, and how. Then do it. Or don't. :)

User interface changes

TBD

API changes

TBD

Data model changes

TBD, but probably none.

✨ Feature request
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

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.71.5 2024