StackStorm / StackStorm/st2-packages

Use 'st2 login' instead of modifying '~/.st2/config'

Open
#520 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bash installer enhancement good first issue
Dominant language
Shell
Stars
28
Forks
63
PR merge metrics
No merged PRs in 30d

Description

Current installer writes the username/password pair in ~/.st2/config.

https://github.com/StackStorm/st2-packages/blob/480f09944e4a22125d2d8f372aae6506fd451a25/scripts/st2bootstrap-deb.sh#L322-L324

The new way is to use st2 login --save-password which is more smart and really authenticates and saves credentials.

Bonus: Apply the same enhancement to ansible-st2.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at scripts/st2bootstrap-deb.sh around lines 322-324 and compare the existing credential handling with the documented st2 login --save-password command. Verify the installer authenticates and saves credentials through that command, then locate the corresponding ansible-st2 handling and apply the same enhancement if its entry point is identifiable.

Written by the indexing model from the issue text.

Assessment

Tech stack
ansible, shell
Domain
authentication, devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.