Stackstorm To configure permissions

Source: Internet
Author: User
Tags auth

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.