Share Stackstorm's one-click installation and manual installation in the two blog posts above, we talk about permissions configuration
For simplicity, the reference deployment uses a file-based authentication provider. See Authentication to configure and use Pam or LDAP authentication.
Setting up authentication using a file-based provider: creating Users and Passwords
# if not please install HTPASSWD Toolkit
sudo yum-y install httpd-tools
# Create user
echo ' ch@ngeme ' in password file | sudo htpasswd-i/etc/st2 /HTPASSWD St2admin
Enabling and configuring Permissions in/etc/st2/st2.conf
[Auth]
# ...
Enable = True
backend = flat_file
Backend_kwargs = {"File_path": "/ETC/ST2/HTPASSWD"}
# ...
Restart ST2API Service
sudo st2ctl restart-component st2api
Verify, Set environment variables, check availability
# get permission tokens to use
st2 auth st2admin # in CLI and API to
create a shortcut for validating and exporting tokens
export st2_auth_token=$ (st2 auth st2admin-p ' Ch@n Geme '-t)
# Check if work
st2 action list