voxpupuli / puppet-rundeck

Module for managing the installatation and configuration of the rundeck orchestration tool
https://forge.puppet.com/puppet/rundeck
MIT License
39 stars 129 forks source link

secrets / keys are not stored in the database when using rundeck::key_storage_type: db #426

Closed mschmeitz closed 9 months ago

mschmeitz commented 4 years ago

Affected Puppet, Ruby, OS and module versions/distributions

How to reproduce (e.g Puppet code you use)

Keys are defined with password/pgp/privatekey within the project.

What are you seeing

When using the default configuration, the keys are stored on the filesystem in /var/lib/rundeck/var/storage/content/keys and /var/lib/rundeck/var/storage/meta/keys. This all is as expected and works without issues.

When adding the following:

rundeck::key_storage_type: db
rundeck::projects_storage_type: db
rundeck::database_config:
  type: mysql
  url: jdbc:mysql://localhost/rundeckdb?autoReconnect=true&useSSL=false
  username: rundeckuser
  password: rundeckpassword
  driverClassName: com.mysql.jdbc.Driver

The projectname is created in the database, they keys are not created on the filesystem (which is ok), however, they keys are not created in the database.

What behaviour did you expect instead

I expected the keys to be available in the database.

Output log

N/A

Any additional information you'd like to impart

Is this 'Works as designed', and if so, did I miss any information in the documentation this is not supported?