- Issue created by @pgndrupal
seems that `drush key:save` creates the key, 'pointing' to a file location.
it does NOT apparently create the file.
creating / populating that file requires the separate `dd = ...` step.
i run
drush status
Drupal version : 11.1.0
Site URI : http://default
DB driver : mysql
DB port :
DB username : drupal_user
DB name : drupal
Database : Connected
Drupal bootstrap : Successful
Default theme : olivero
Admin theme : claro
PHP binary : /usr/bin/php
PHP config : /usr/local/etc/php8/php.ini
PHP OS : Linux
PHP version : 8.4.2
Drush script : /srv/my.app/vendor/bin/drush.php
Drush version : 13.3.3.0
Drush temp : /tmp
Drush configs : /srv/my.app/vendor/drush/drush/drush.yml
Install profile : standard
Drupal root : /srv/my.app/web
Site path : sites/default
Files, Public : sites/default/files
Files, Private : /sec/drupal/private
Files, Temp : /var/lib/wwwrun/tmp/drupal/mysite
i've installed/enabled
drush pm:list | grep -i key
Security Key (key) Enabled 8.x-1.19
checking first,
drush key:list
(empty)
after exec of
drush key-save encryption_key --label="Encryption key" --key-type=encryption --key-type-settings='{"key_size":256}' --key-provider=file --key-provider-settings='{"file_location":"private://keys/test.encryption.key", "base64_encoded":true}' --key-input=none
verifying
drush config:get key.key.encryption_key
uuid: f...a
langcode: en
status: true
dependencies: { }
id: encryption_key
label: 'Encryption key'
description: ''
key_type: encryption
key_type_settings:
key_size: 256
key_provider: file
key_provider_settings:
file_location: 'private://keys/test.encryption.key'
base64_encoded: true
key_input: none
key_input_settings: { }
a key exists,
drush key:list
---------------- ---------------- ------------ --------------
Id Label Key_type Key_provider
---------------- ---------------- ------------ --------------
encryption_key Encryption key Encryption File
---------------- ---------------- ------------ --------------
apparently in DB?
but, not on filesystem, either at the expected "file_location",
cat settings.php
$settings = [
'file_private_path' => '/sec/drupal/private'
]
tree /sec/drupal/private/
/sec/drupal/private/
└── keys
or anywhere on disk,
updatedb
locate test.encryption.key
(empty)
Active
1.0
Code
seems that `drush key:save` creates the key, 'pointing' to a file location.
it does NOT apparently create the file.
creating / populating that file requires the separate `dd = ...` step.