Skip to content

More Secure Key Storage #7082

@stpaultim

Description

@stpaultim

Description of the need

In a discussion about AI readiness for Backdrop Core it occurred to me that one of the issues I'm dealing with right now is secure API key storage. Many modules already need to need a way to configure API keys. The easiest way to implement this is by adding a configuration option and storing the key in the JSON config file. This is also very insecure and a bad idea, mostly because JSON config files can easily end up in version control. Despite that, at least several contrib projects are doing it already. Not just AI modules, but any module that needs an API key (Github, Trackt-TV, etc).

There is a key module, which provides some support for more secure key storage.

I don't yet have a preferred solution, but am asking the question of whether or not we could provide options in core for more secure API Key Storage. Mostly something that would help/support contrib or custom module developers.

What do you think?

Proposed solution

Not yet sure. Trying to gauge if this is even a good idea and to solicit good ideas for fixing it.

Alternatives that have been considered

The Key module - https://backdropcms.org/project/key

I've been led to believe that we may not want to add this module to core, but might find some inspiration from it.

Additional information

Draft of feature description for Press Release (1 paragraph at most)

Secure storage for API keys is a must have for any modern CMS. Backdrop CMS now provides improved methods for easily securing your API keys needed by custom or contrib projects.

NOTE: I did a quick search for previous issues on this topic and could not find any, which was a bit surprising. If we have other open issues on this topic, let's connect or merge the discussions.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions