StackStorm / st2

StackStorm (aka "IFTTT for Ops") is event-driven automation for auto-remediation, incident responses, troubleshooting, deployments, and more for DevOps and SREs. Includes rules engine, workflow, 160 integration packs with 6000+ actions (see https://exchange.stackstorm.org) and ChatOps. Installer at https://docs.stackstorm.com/install/index.html
https://stackstorm.com/
Apache License 2.0
5.96k stars 744 forks source link

st2 whoami to be reinvented #3832

Open lakshmi-kannan opened 6 years ago

lakshmi-kannan commented 6 years ago

I installed st2. I never ran st2 login. st2 whoami says I am logged in as st2admin. https://gist.github.com/lakshmi-kannan/2c791a6a3d8a02e699f03c289e79e83e

st2 whoami doesn't add much value. st2 whoami if it reads from st2 config should say “Current username is st2admin”. It never bothered to know if a login was actually done meaning it didn’t audit the login part.

At this point, I could cat ~/.st2/config

If I had something that tracked when last login was made, when last auth token was vended, when it expires and I include that info, then it’s different. In fact, this is useful along with rbac roles. See PR https://github.com/StackStorm/st2/pull/3831.

stale[bot] commented 5 years ago

Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically marking is as stale. If this issue is not relevant or applicable anymore (problem has been fixed in a new version or similar), please close the issue or let us know so we can close it. On the contrary, if the issue is still relevant, there is nothing you need to do, but if you have any additional details or context which would help us when working on this issue, please include it as a comment to this issue.