okta / okta-aws-cli

A CLI for having Okta as the IdP for AWS CLI operations
https://github.com/okta/okta-aws-cli
Other
128 stars 34 forks source link

Non-standard configuration file location #136

Closed smlx closed 9 months ago

smlx commented 1 year ago

~/.okta/ is a non-standard location for configuration files. It would be nice if this tool could use $XDG_CONFIG_HOME (as per XDG Spec. on Linux), ~/Library/Application Support/<app-identifier> (as per Apple guidelines on macOS) etc. There's a nice library for this here.

monde commented 1 year ago

Thanks @smlx I've added this as a stretch goal in our overall work for our headless feature. Agreed, striving to use the OEM's guidelines is a good development practice but their suggestion is also an introverted recommendation not considering a cross platform app. The *nix practice of a home directory and dotfiles / dotdirs is easily supported in the golang sdk with https://pkg.go.dev/os#UserHomeDir and it even supports Windows.

Okta internal reference: https://oktainc.atlassian.net/browse/OKTA-653007

monde commented 9 months ago

I'm going to close this request out - our open source tools, like our SDKs, standardized on having a config at $HOME/.okta/okta.yaml.