StackStorm / chef-stackstorm

DEPRECATED! Community-maintained Chef Cookbook to deploy StackStorm, IFTTT for Ops
https://supermarket.chef.io/cookbooks/stackstorm
Apache License 2.0
16 stars 10 forks source link

Missing st2 auth credentials generation in /etc/st2/htpasswd #40

Closed arm4b closed 7 years ago

arm4b commented 7 years ago

Current Cookbook is missing st2 username:password configuration in /etc/st2/htpasswd, eg. there is no logic to generate contents. It means you can't run st2 with auth enabled (default) with this Cookbook.

According to Installation Docs this could be done via htpasswd utility, but I think there must be something in Chef/Ruby libs toolset to generate contents for /etc/st2/htpasswd, to avoid installing additional apache2-utils OS package.

Example in puppet-st2 https://github.com/StackStorm/puppet-st2/blob/master/manifests/auth_user.pp

This might work: http://stackoverflow.com/questions/29837267/write-users-to-htpasswd-in-chef-recipe