Add stream wrapper support for generating keys using drush

Created on 18 September 2024, about 2 months ago

Problem/Motivation

Currently the drush simple-oauth:generate-keys [path] command only supports writing keys to a path on disk. In a server architecture with ephimeral storage, using external storage or a shared storage this can be an issue.

It is possible to use stream wrappers for the public_key and private_key paths, and the key generator of the configation form also supports this. The only reason the drush command doesn't support it is because of the validation of the directory path parameter.

Proposed resolution

Because the simple_oauth.key.generator service already validates the directory with support for stream wrappers the validation in the drush command can simply be removed.

Feature request
Status

Needs review

Version

6.0

Component

Code

Created by

🇧🇪Belgium klaasvw

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