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

rdme versions output isn't entirely JSON #697

Closed
theholla opened this issue Dec 3, 2022 · 3 comments
Closed

rdme versions output isn't entirely JSON #697

theholla opened this issue Dec 3, 2022 · 3 comments
Labels
command:versions Issues pertaining to the `versions` commands question Further information is requested

Comments

@theholla
Copy link

theholla commented Dec 3, 2022

Our company has some automation around the rdme versions command. I saw that as of #603, raw JSON should be the new default and the --raw is no longer available.

The issue I'm running into is that before outputting the raw JSON, the command outputs one line about auth: 🔑 someone@company.com is currently logged in, using the stored API key for this project: projectname.

I wanted to check whether this is intended, and if so if there's a way to disable the auth line? Otherwise we can update our automation to handle.

@kanadgupta
Copy link
Member

Hi @theholla! Sorry for the trouble. The reason that auth line is printed is because the tool is detecting stored credentials in your system. Does your automation use the rdme login command? If so then I’d instead recommend passing in your API key directly into each command via the --key option. If you’re not using rdme login then it’s likely a bug on our end.

@kanadgupta kanadgupta added question Further information is requested command:versions Issues pertaining to the `versions` commands labels Dec 5, 2022
@theholla
Copy link
Author

theholla commented Dec 5, 2022

That did the trick, thank you! To summarize, with a previous version of the rdme package, we were using rdme login with rdme versions --raw. With the latest version, we can use rdme versions --key <KEY> to the same effect.

Thanks for your help!

@kanadgupta
Copy link
Member

Great to hear! We definitely recommend using the --key option in automated workflows as opposed to rdme login since API keys are much safer to use than passwords. I'll make a note of this in our docs. Sorry for the disruption to your workflow!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
command:versions Issues pertaining to the `versions` commands question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants