Skip to content
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

.netrc compatibility problem #137

Open
vxsx opened this issue Nov 25, 2024 · 0 comments
Open

.netrc compatibility problem #137

vxsx opened this issue Nov 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@vxsx
Copy link

vxsx commented Nov 25, 2024

Current behavior:
When you login using storyblok cli it adds an entry in the netrc file with an extra field "region".

This breaks compatibility with python standard library, which throws an error when it parses the netrc file, because "region" is now a valid token (https://www.gnu.org/software/inetutils/manual/html_node/The-_002enetrc-file.html)

This loudly breaks things like e.g ansible, or any other clis that rely on python and silently breaks requests package if it's using netrc to make requests because requests ignores the file if there is a parsing error

Currently the only way to use both storyblok cli and all those other things is to comment region in and out and it's not great.

Expected behavior:
Nothing is broken

This is technically not something broken with storyblok cli itself, but please consider using something else for storing authentication, something like ~/.storyblok/credentials (similar to aws or so) or something similar

@vxsx vxsx added the bug Something isn't working label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant