-
-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install script should setup ~/.st2/config with API key so users don't have to renegotiate auth tokens #283
Comments
I discussed this with @enykeev on Slack. I'm personally not a big fan of shoving API keys in the CLI config - CLI config already solves this problem by allowing user to put credentials (username and password) in the config and handles re-authentication for them. API keys are mostly meant for integration with 3rd party services so mixing those with credentials is confusing, imo. If we do decide to go with this approach we also need to make it clear which one has the priority (api key or credentials, etc.). |
@lakshmi-kannan Can you please also provide some background and context on this requirement (I'm just wondering why credentials don't solve this already - we already create a default set of credentials in the installer so this requires no additional work...)? |
@Kami Having API key in CLI config is a feature request from customers because they don’t want to put their LDAP or PAM password in config file on a shared box. And having auth token that expires every 24h is not ideal. |
That's for the clarification. In this case I'm fine with this feature, I would just think a bit more if [credentials] is the right CLI config section to put it in (and as mentioned above, making sure precedence, etc. works correctly and is documented somewhere). |
Are we sure about putting in an API key in the cli config by default. I would personally prefer if a user did this intentionally. I am +1 to having support for API keys from cli but not to using this option by default. |
That's a good point. Especially in that case since it's a custom installation (they use LDAP) I don't see much value for use to generating and API key and putting it in the config automatically (it should be done explicitly by the user). I'm fine with putting default credentials in the config though (for convenience) since that's something we need to generate and use by default anyway. |
I don't see the issue but if you guys feel it's somehow less secure, we can just add docs and point to docs at end of install script. |
No description provided.
The text was updated successfully, but these errors were encountered: