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

Add scarb login command to handle registry auth #1579

Open
DelevoXDG opened this issue Sep 6, 2024 · 0 comments
Open

Add scarb login command to handle registry auth #1579

DelevoXDG opened this issue Sep 6, 2024 · 0 comments

Comments

@DelevoXDG
Copy link
Contributor

Problem

As of after #1570, we're using SCARB_REGISTRY_AUTH_TOKEN to support scarb publish, and potentially other commands that interact with registry and require authentication.

Requiring users to set environment variables doesn't seem like the best UX.

Additionally, this can lead to leaks in bash_history, due to, for example:

export SCARB_REGISTRY_AUTH_TOKEN=scrb_aaaaa

or

SCARB_REGISTRY_AUTH_TOKEN=scrb_aaaaa scarb_build

Proposed Solution

I think it would be great to have an interactive scarb login / scarb auth command that prompts the user to input the auth token, and preferably stores it in some config file.

Notes

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Triage
Development

No branches or pull requests

1 participant