Open lakshmi-kannan opened 6 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.
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.